diff --git a/kubernetes/.swagger-codegen-ignore b/kubernetes/.openapi-generator-ignore similarity index 100% rename from kubernetes/.swagger-codegen-ignore rename to kubernetes/.openapi-generator-ignore diff --git a/kubernetes/.openapi-generator/COMMIT b/kubernetes/.openapi-generator/COMMIT new file mode 100644 index 0000000000..c7b0c6f378 --- /dev/null +++ b/kubernetes/.openapi-generator/COMMIT @@ -0,0 +1,2 @@ +Requested Commit: mapping-ref-string +Actual Commit: 1d94be5b9b6fb3971962eafcad5135066e2ffb15 diff --git a/kubernetes/.openapi-generator/VERSION b/kubernetes/.openapi-generator/VERSION new file mode 100644 index 0000000000..c3a2c7076f --- /dev/null +++ b/kubernetes/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.2.0-SNAPSHOT \ No newline at end of file diff --git a/kubernetes/.openapi-generator/swagger.json.sha256 b/kubernetes/.openapi-generator/swagger.json.sha256 new file mode 100644 index 0000000000..3205414908 --- /dev/null +++ b/kubernetes/.openapi-generator/swagger.json.sha256 @@ -0,0 +1 @@ +f8a20b504132e3b1073ac861ee63bbf415ccfb26a8701d2f863f526597de8db8 \ No newline at end of file diff --git a/kubernetes/docs/AdmissionregistrationApi.md b/kubernetes/docs/AdmissionregistrationApi.md index 45c3a669ca..e77fc4ce31 100644 --- a/kubernetes/docs/AdmissionregistrationApi.md +++ b/kubernetes/docs/AdmissionregistrationApi.md @@ -1,6 +1,6 @@ # AdmissionregistrationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationApi apiInstance = new AdmissionregistrationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationApi apiInstance = new AdmissionregistrationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AdmissionregistrationV1beta1Api.md b/kubernetes/docs/AdmissionregistrationV1beta1Api.md index 2c622cadc8..918bcb0d48 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1Api.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1Api.md @@ -1,6 +1,6 @@ # AdmissionregistrationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -32,31 +32,40 @@ create a MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -V1beta1MutatingWebhookConfiguration body = new V1beta1MutatingWebhookConfiguration(); // V1beta1MutatingWebhookConfiguration | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1MutatingWebhookConfiguration result = apiInstance.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + V1beta1MutatingWebhookConfiguration body = new V1beta1MutatingWebhookConfiguration(); // V1beta1MutatingWebhookConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1MutatingWebhookConfiguration result = apiInstance.createMutatingWebhookConfiguration(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -79,9 +88,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createValidatingWebhookConfiguration** > V1beta1ValidatingWebhookConfiguration createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager) @@ -93,31 +110,40 @@ create a ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -V1beta1ValidatingWebhookConfiguration body = new V1beta1ValidatingWebhookConfiguration(); // V1beta1ValidatingWebhookConfiguration | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ValidatingWebhookConfiguration result = apiInstance.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + V1beta1ValidatingWebhookConfiguration body = new V1beta1ValidatingWebhookConfiguration(); // V1beta1ValidatingWebhookConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ValidatingWebhookConfiguration result = apiInstance.createValidatingWebhookConfiguration(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#createValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -140,12 +166,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionMutatingWebhookConfiguration** -> V1Status deleteCollectionMutatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -154,35 +188,50 @@ delete collection of MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -191,13 +240,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -209,12 +264,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionValidatingWebhookConfiguration** -> V1Status deleteCollectionValidatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -223,35 +284,50 @@ delete collection of ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteCollectionValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -260,13 +336,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -278,12 +360,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteMutatingWebhookConfiguration** -> V1Status deleteMutatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -292,34 +380,43 @@ delete a MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the MutatingWebhookConfiguration -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -329,11 +426,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the MutatingWebhookConfiguration | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -345,12 +442,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteValidatingWebhookConfiguration** -> V1Status deleteValidatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -359,34 +463,43 @@ delete a ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the ValidatingWebhookConfiguration -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#deleteValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -396,11 +509,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingWebhookConfiguration | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -412,9 +525,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -426,27 +546,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -463,12 +592,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listMutatingWebhookConfiguration** -> V1beta1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -477,35 +612,45 @@ list or watch objects of kind MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1MutatingWebhookConfigurationList result = apiInstance.listMutatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1MutatingWebhookConfigurationList result = apiInstance.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -514,6 +659,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -532,12 +678,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listValidatingWebhookConfiguration** -> V1beta1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -546,35 +698,45 @@ list or watch objects of kind ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ValidatingWebhookConfigurationList result = apiInstance.listValidatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ValidatingWebhookConfigurationList result = apiInstance.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#listValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -583,6 +745,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -601,9 +764,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchMutatingWebhookConfiguration** > V1beta1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force) @@ -615,33 +784,42 @@ partially update the specified MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the MutatingWebhookConfiguration -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1MutatingWebhookConfiguration result = apiInstance.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1MutatingWebhookConfiguration result = apiInstance.patchMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -650,7 +828,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the MutatingWebhookConfiguration | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -669,6 +847,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchValidatingWebhookConfiguration** > V1beta1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force) @@ -680,33 +864,42 @@ partially update the specified ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the ValidatingWebhookConfiguration -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1ValidatingWebhookConfiguration result = apiInstance.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ValidatingWebhookConfiguration result = apiInstance.patchValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#patchValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -715,7 +908,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ValidatingWebhookConfiguration | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -734,6 +927,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readMutatingWebhookConfiguration** > V1beta1MutatingWebhookConfiguration readMutatingWebhookConfiguration(name, pretty, exact, export) @@ -745,31 +944,40 @@ read the specified MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the MutatingWebhookConfiguration -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1MutatingWebhookConfiguration result = apiInstance.readMutatingWebhookConfiguration(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1MutatingWebhookConfiguration result = apiInstance.readMutatingWebhookConfiguration(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -792,9 +1000,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readValidatingWebhookConfiguration** > V1beta1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(name, pretty, exact, export) @@ -806,31 +1020,40 @@ read the specified ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the ValidatingWebhookConfiguration -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1ValidatingWebhookConfiguration result = apiInstance.readValidatingWebhookConfiguration(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1ValidatingWebhookConfiguration result = apiInstance.readValidatingWebhookConfiguration(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#readValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -853,9 +1076,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceMutatingWebhookConfiguration** > V1beta1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager) @@ -867,32 +1096,41 @@ replace the specified MutatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the MutatingWebhookConfiguration -V1beta1MutatingWebhookConfiguration body = new V1beta1MutatingWebhookConfiguration(); // V1beta1MutatingWebhookConfiguration | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1MutatingWebhookConfiguration result = apiInstance.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceMutatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the MutatingWebhookConfiguration + V1beta1MutatingWebhookConfiguration body = new V1beta1MutatingWebhookConfiguration(); // V1beta1MutatingWebhookConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1MutatingWebhookConfiguration result = apiInstance.replaceMutatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceMutatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -916,9 +1154,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceValidatingWebhookConfiguration** > V1beta1ValidatingWebhookConfiguration replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager) @@ -930,32 +1175,41 @@ replace the specified ValidatingWebhookConfiguration ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(); -String name = "name_example"; // String | name of the ValidatingWebhookConfiguration -V1beta1ValidatingWebhookConfiguration body = new V1beta1ValidatingWebhookConfiguration(); // V1beta1ValidatingWebhookConfiguration | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ValidatingWebhookConfiguration result = apiInstance.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingWebhookConfiguration"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AdmissionregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AdmissionregistrationV1beta1Api apiInstance = new AdmissionregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ValidatingWebhookConfiguration + V1beta1ValidatingWebhookConfiguration body = new V1beta1ValidatingWebhookConfiguration(); // V1beta1ValidatingWebhookConfiguration | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ValidatingWebhookConfiguration result = apiInstance.replaceValidatingWebhookConfiguration(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AdmissionregistrationV1beta1Api#replaceValidatingWebhookConfiguration"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -979,6 +1233,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md b/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md index eafb436867..b4a599d92b 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1ServiceReference.md @@ -1,12 +1,15 @@ + # AdmissionregistrationV1beta1ServiceReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | `name` is the name of the service. Required | **namespace** | **String** | `namespace` is the namespace of the service. Required | **path** | **String** | `path` is an optional URL path which will be sent in any request to this service. | [optional] +**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] diff --git a/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md b/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md index 568b9febfc..28e077fc4b 100644 --- a/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md +++ b/kubernetes/docs/AdmissionregistrationV1beta1WebhookClientConfig.md @@ -1,11 +1,13 @@ + # AdmissionregistrationV1beta1WebhookClientConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caBundle** | **byte[]** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**AdmissionregistrationV1beta1ServiceReference**](AdmissionregistrationV1beta1ServiceReference.md) | `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. | [optional] +**service** | [**AdmissionregistrationV1beta1ServiceReference**](AdmissionregistrationV1beta1ServiceReference.md) | | [optional] **url** | **String** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] diff --git a/kubernetes/docs/ApiextensionsApi.md b/kubernetes/docs/ApiextensionsApi.md index da5ccc06ba..21a04d3dcd 100644 --- a/kubernetes/docs/ApiextensionsApi.md +++ b/kubernetes/docs/ApiextensionsApi.md @@ -1,6 +1,6 @@ # ApiextensionsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsApi apiInstance = new ApiextensionsApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsApi apiInstance = new ApiextensionsApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ApiextensionsV1beta1Api.md b/kubernetes/docs/ApiextensionsV1beta1Api.md index 3267d9bbc7..4d18c48df4 100644 --- a/kubernetes/docs/ApiextensionsV1beta1Api.md +++ b/kubernetes/docs/ApiextensionsV1beta1Api.md @@ -1,6 +1,6 @@ # ApiextensionsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -28,31 +28,40 @@ create a CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -V1beta1CustomResourceDefinition body = new V1beta1CustomResourceDefinition(); // V1beta1CustomResourceDefinition | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CustomResourceDefinition result = apiInstance.createCustomResourceDefinition(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#createCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + V1beta1CustomResourceDefinition body = new V1beta1CustomResourceDefinition(); // V1beta1CustomResourceDefinition | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CustomResourceDefinition result = apiInstance.createCustomResourceDefinition(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#createCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionCustomResourceDefinition** -> V1Status deleteCollectionCustomResourceDefinition(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -89,35 +106,50 @@ delete collection of CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionCustomResourceDefinition(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#deleteCollectionCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#deleteCollectionCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -126,13 +158,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -144,12 +182,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCustomResourceDefinition** -> V1Status deleteCustomResourceDefinition(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -158,34 +202,43 @@ delete a CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteCustomResourceDefinition(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#deleteCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#deleteCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -195,11 +248,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -211,9 +264,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -225,27 +285,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -262,12 +331,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listCustomResourceDefinition** -> V1beta1CustomResourceDefinitionList listCustomResourceDefinition(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1CustomResourceDefinitionList listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -276,35 +351,45 @@ list or watch objects of kind CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1CustomResourceDefinitionList result = apiInstance.listCustomResourceDefinition(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#listCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1CustomResourceDefinitionList result = apiInstance.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#listCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -313,6 +398,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -331,9 +417,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchCustomResourceDefinition** > V1beta1CustomResourceDefinition patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, force) @@ -345,33 +437,42 @@ partially update the specified CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CustomResourceDefinition result = apiInstance.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#patchCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CustomResourceDefinition result = apiInstance.patchCustomResourceDefinition(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#patchCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -380,7 +481,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -399,6 +500,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchCustomResourceDefinitionStatus** > V1beta1CustomResourceDefinition patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, force) @@ -410,33 +517,42 @@ partially update status of the specified CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CustomResourceDefinition result = apiInstance.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#patchCustomResourceDefinitionStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CustomResourceDefinition result = apiInstance.patchCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#patchCustomResourceDefinitionStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -445,7 +561,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CustomResourceDefinition | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -464,6 +580,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readCustomResourceDefinition** > V1beta1CustomResourceDefinition readCustomResourceDefinition(name, pretty, exact, export) @@ -475,31 +597,40 @@ read the specified CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1CustomResourceDefinition result = apiInstance.readCustomResourceDefinition(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#readCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1CustomResourceDefinition result = apiInstance.readCustomResourceDefinition(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#readCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -522,9 +653,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readCustomResourceDefinitionStatus** > V1beta1CustomResourceDefinition readCustomResourceDefinitionStatus(name, pretty) @@ -536,29 +673,38 @@ read status of the specified CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1CustomResourceDefinition result = apiInstance.readCustomResourceDefinitionStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#readCustomResourceDefinitionStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1CustomResourceDefinition result = apiInstance.readCustomResourceDefinitionStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#readCustomResourceDefinitionStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -579,9 +725,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceCustomResourceDefinition** > V1beta1CustomResourceDefinition replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager) @@ -593,32 +745,41 @@ replace the specified CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -V1beta1CustomResourceDefinition body = new V1beta1CustomResourceDefinition(); // V1beta1CustomResourceDefinition | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CustomResourceDefinition result = apiInstance.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#replaceCustomResourceDefinition"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + V1beta1CustomResourceDefinition body = new V1beta1CustomResourceDefinition(); // V1beta1CustomResourceDefinition | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CustomResourceDefinition result = apiInstance.replaceCustomResourceDefinition(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#replaceCustomResourceDefinition"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -642,9 +803,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceCustomResourceDefinitionStatus** > V1beta1CustomResourceDefinition replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager) @@ -656,32 +824,41 @@ replace status of the specified CustomResourceDefinition ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiextensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(); -String name = "name_example"; // String | name of the CustomResourceDefinition -V1beta1CustomResourceDefinition body = new V1beta1CustomResourceDefinition(); // V1beta1CustomResourceDefinition | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CustomResourceDefinition result = apiInstance.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiextensionsV1beta1Api#replaceCustomResourceDefinitionStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiextensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiextensionsV1beta1Api apiInstance = new ApiextensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CustomResourceDefinition + V1beta1CustomResourceDefinition body = new V1beta1CustomResourceDefinition(); // V1beta1CustomResourceDefinition | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CustomResourceDefinition result = apiInstance.replaceCustomResourceDefinitionStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiextensionsV1beta1Api#replaceCustomResourceDefinitionStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -705,6 +882,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md b/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md index 6e1118420c..63e4f37fb9 100644 --- a/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md +++ b/kubernetes/docs/ApiextensionsV1beta1ServiceReference.md @@ -1,12 +1,15 @@ + # ApiextensionsV1beta1ServiceReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | `name` is the name of the service. Required | **namespace** | **String** | `namespace` is the namespace of the service. Required | **path** | **String** | `path` is an optional URL path which will be sent in any request to this service. | [optional] +**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] diff --git a/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md b/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md index 856cb60249..077e7b8c39 100644 --- a/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md +++ b/kubernetes/docs/ApiextensionsV1beta1WebhookClientConfig.md @@ -1,11 +1,13 @@ + # ApiextensionsV1beta1WebhookClientConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caBundle** | **byte[]** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**ApiextensionsV1beta1ServiceReference**](ApiextensionsV1beta1ServiceReference.md) | `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. | [optional] +**service** | [**ApiextensionsV1beta1ServiceReference**](ApiextensionsV1beta1ServiceReference.md) | | [optional] **url** | **String** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] diff --git a/kubernetes/docs/ApiregistrationApi.md b/kubernetes/docs/ApiregistrationApi.md index 4a11b905bc..45a70495fd 100644 --- a/kubernetes/docs/ApiregistrationApi.md +++ b/kubernetes/docs/ApiregistrationApi.md @@ -1,6 +1,6 @@ # ApiregistrationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationApi apiInstance = new ApiregistrationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationApi apiInstance = new ApiregistrationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ApiregistrationV1Api.md b/kubernetes/docs/ApiregistrationV1Api.md index d6f41bc559..f41f614f44 100644 --- a/kubernetes/docs/ApiregistrationV1Api.md +++ b/kubernetes/docs/ApiregistrationV1Api.md @@ -1,6 +1,6 @@ # ApiregistrationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -28,31 +28,40 @@ create an APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -V1APIService body = new V1APIService(); // V1APIService | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1APIService result = apiInstance.createAPIService(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#createAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + V1APIService body = new V1APIService(); // V1APIService | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1APIService result = apiInstance.createAPIService(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#createAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteAPIService** -> V1Status deleteAPIService(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -89,34 +106,43 @@ delete an APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteAPIService(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#deleteAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#deleteAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -126,11 +152,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -142,12 +168,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionAPIService** -> V1Status deleteCollectionAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionAPIService(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -156,35 +189,50 @@ delete collection of APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#deleteCollectionAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionAPIService(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#deleteCollectionAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -193,13 +241,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -211,9 +265,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -225,27 +285,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -262,12 +331,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listAPIService** -> V1APIServiceList listAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1APIServiceList listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -276,35 +351,45 @@ list or watch objects of kind APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1APIServiceList result = apiInstance.listAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#listAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1APIServiceList result = apiInstance.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#listAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -313,6 +398,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -331,9 +417,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchAPIService** > V1APIService patchAPIService(name, body, pretty, dryRun, fieldManager, force) @@ -345,33 +437,42 @@ partially update the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1APIService result = apiInstance.patchAPIService(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#patchAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1APIService result = apiInstance.patchAPIService(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#patchAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -380,7 +481,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -399,6 +500,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchAPIServiceStatus** > V1APIService patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force) @@ -410,33 +517,42 @@ partially update status of the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1APIService result = apiInstance.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#patchAPIServiceStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1APIService result = apiInstance.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#patchAPIServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -445,7 +561,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -464,6 +580,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readAPIService** > V1APIService readAPIService(name, pretty, exact, export) @@ -475,31 +597,40 @@ read the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1APIService result = apiInstance.readAPIService(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#readAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1APIService result = apiInstance.readAPIService(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#readAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -522,9 +653,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readAPIServiceStatus** > V1APIService readAPIServiceStatus(name, pretty) @@ -536,29 +673,38 @@ read status of the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1APIService result = apiInstance.readAPIServiceStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#readAPIServiceStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1APIService result = apiInstance.readAPIServiceStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#readAPIServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -579,9 +725,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceAPIService** > V1APIService replaceAPIService(name, body, pretty, dryRun, fieldManager) @@ -593,32 +745,41 @@ replace the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -V1APIService body = new V1APIService(); // V1APIService | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1APIService result = apiInstance.replaceAPIService(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#replaceAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + V1APIService body = new V1APIService(); // V1APIService | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1APIService result = apiInstance.replaceAPIService(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#replaceAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -642,9 +803,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceAPIServiceStatus** > V1APIService replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager) @@ -656,32 +824,41 @@ replace status of the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(); -String name = "name_example"; // String | name of the APIService -V1APIService body = new V1APIService(); // V1APIService | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1APIService result = apiInstance.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1Api#replaceAPIServiceStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1Api apiInstance = new ApiregistrationV1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + V1APIService body = new V1APIService(); // V1APIService | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1APIService result = apiInstance.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1Api#replaceAPIServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -705,6 +882,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ApiregistrationV1beta1Api.md b/kubernetes/docs/ApiregistrationV1beta1Api.md index 77aa41e7ce..f4379ce6a3 100644 --- a/kubernetes/docs/ApiregistrationV1beta1Api.md +++ b/kubernetes/docs/ApiregistrationV1beta1Api.md @@ -1,6 +1,6 @@ # ApiregistrationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -28,31 +28,40 @@ create an APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -V1beta1APIService body = new V1beta1APIService(); // V1beta1APIService | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1APIService result = apiInstance.createAPIService(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#createAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + V1beta1APIService body = new V1beta1APIService(); // V1beta1APIService | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1APIService result = apiInstance.createAPIService(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#createAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteAPIService** -> V1Status deleteAPIService(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -89,34 +106,43 @@ delete an APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteAPIService(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#deleteAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#deleteAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -126,11 +152,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -142,12 +168,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionAPIService** -> V1Status deleteCollectionAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionAPIService(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -156,35 +189,50 @@ delete collection of APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#deleteCollectionAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionAPIService(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#deleteCollectionAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -193,13 +241,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -211,9 +265,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -225,27 +285,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -262,12 +331,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listAPIService** -> V1beta1APIServiceList listAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1APIServiceList listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -276,35 +351,45 @@ list or watch objects of kind APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1APIServiceList result = apiInstance.listAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#listAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1APIServiceList result = apiInstance.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#listAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -313,6 +398,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -331,9 +417,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchAPIService** > V1beta1APIService patchAPIService(name, body, pretty, dryRun, fieldManager, force) @@ -345,33 +437,42 @@ partially update the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1APIService result = apiInstance.patchAPIService(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#patchAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1APIService result = apiInstance.patchAPIService(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#patchAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -380,7 +481,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -399,6 +500,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchAPIServiceStatus** > V1beta1APIService patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force) @@ -410,33 +517,42 @@ partially update status of the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1APIService result = apiInstance.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#patchAPIServiceStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1APIService result = apiInstance.patchAPIServiceStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#patchAPIServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -445,7 +561,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the APIService | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -464,6 +580,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readAPIService** > V1beta1APIService readAPIService(name, pretty, exact, export) @@ -475,31 +597,40 @@ read the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1APIService result = apiInstance.readAPIService(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#readAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1APIService result = apiInstance.readAPIService(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#readAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -522,9 +653,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readAPIServiceStatus** > V1beta1APIService readAPIServiceStatus(name, pretty) @@ -536,29 +673,38 @@ read status of the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1APIService result = apiInstance.readAPIServiceStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#readAPIServiceStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1APIService result = apiInstance.readAPIServiceStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#readAPIServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -579,9 +725,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceAPIService** > V1beta1APIService replaceAPIService(name, body, pretty, dryRun, fieldManager) @@ -593,32 +745,41 @@ replace the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -V1beta1APIService body = new V1beta1APIService(); // V1beta1APIService | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1APIService result = apiInstance.replaceAPIService(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#replaceAPIService"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + V1beta1APIService body = new V1beta1APIService(); // V1beta1APIService | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1APIService result = apiInstance.replaceAPIService(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#replaceAPIService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -642,9 +803,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceAPIServiceStatus** > V1beta1APIService replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager) @@ -656,32 +824,41 @@ replace status of the specified APIService ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApiregistrationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(); -String name = "name_example"; // String | name of the APIService -V1beta1APIService body = new V1beta1APIService(); // V1beta1APIService | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1APIService result = apiInstance.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApiregistrationV1beta1Api#replaceAPIServiceStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApiregistrationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApiregistrationV1beta1Api apiInstance = new ApiregistrationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the APIService + V1beta1APIService body = new V1beta1APIService(); // V1beta1APIService | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1APIService result = apiInstance.replaceAPIServiceStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApiregistrationV1beta1Api#replaceAPIServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -705,6 +882,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md b/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md index c3cca91af8..b9049a1e75 100644 --- a/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md +++ b/kubernetes/docs/ApiregistrationV1beta1ServiceReference.md @@ -1,11 +1,14 @@ + # ApiregistrationV1beta1ServiceReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name is the name of the service | [optional] **namespace** | **String** | Namespace is the namespace of the service | [optional] +**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] diff --git a/kubernetes/docs/ApisApi.md b/kubernetes/docs/ApisApi.md index 9193638c9c..7028f220ee 100644 --- a/kubernetes/docs/ApisApi.md +++ b/kubernetes/docs/ApisApi.md @@ -1,6 +1,6 @@ # ApisApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get available API versions ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ApisApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ApisApi apiInstance = new ApisApi(); -try { - V1APIGroupList result = apiInstance.getAPIVersions(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ApisApi#getAPIVersions"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ApisApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ApisApi apiInstance = new ApisApi(defaultClient); + try { + V1APIGroupList result = apiInstance.getAPIVersions(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ApisApi#getAPIVersions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AppsApi.md b/kubernetes/docs/AppsApi.md index 1271744237..416ac32788 100644 --- a/kubernetes/docs/AppsApi.md +++ b/kubernetes/docs/AppsApi.md @@ -1,6 +1,6 @@ # AppsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsApi apiInstance = new AppsApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsApi apiInstance = new AppsApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AppsV1Api.md b/kubernetes/docs/AppsV1Api.md index 61b6fe3aef..0f9ecfbdd5 100644 --- a/kubernetes/docs/AppsV1Api.md +++ b/kubernetes/docs/AppsV1Api.md @@ -1,6 +1,6 @@ # AppsV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -79,32 +79,41 @@ create a ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ControllerRevision body = new V1ControllerRevision(); // V1ControllerRevision | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ControllerRevision result = apiInstance.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#createNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ControllerRevision body = new V1ControllerRevision(); // V1ControllerRevision | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ControllerRevision result = apiInstance.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#createNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,9 +137,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDaemonSet** > V1DaemonSet createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager) @@ -142,32 +159,41 @@ create a DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1DaemonSet result = apiInstance.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#createNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1DaemonSet result = apiInstance.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#createNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -191,9 +217,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDeployment** > V1Deployment createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager) @@ -205,32 +239,41 @@ create a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Deployment body = new V1Deployment(); // V1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#createNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Deployment body = new V1Deployment(); // V1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#createNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -254,9 +297,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedReplicaSet** > V1ReplicaSet createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager) @@ -268,32 +319,41 @@ create a ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ReplicaSet result = apiInstance.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#createNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ReplicaSet result = apiInstance.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#createNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -317,9 +377,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedStatefulSet** > V1StatefulSet createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager) @@ -331,32 +399,41 @@ create a StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1StatefulSet result = apiInstance.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#createNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1StatefulSet result = apiInstance.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#createNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -380,12 +457,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedControllerRevision** -> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -394,36 +479,51 @@ delete collection of ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -433,13 +533,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -451,12 +557,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -465,36 +577,51 @@ delete collection of DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -504,13 +631,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -522,12 +655,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -536,36 +675,51 @@ delete collection of Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -575,13 +729,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -593,12 +753,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -607,36 +773,51 @@ delete collection of ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -646,13 +827,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -664,12 +851,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -678,36 +871,51 @@ delete collection of StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteCollectionNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -717,13 +925,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -735,12 +949,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedControllerRevision** -> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -749,35 +969,44 @@ delete a ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -788,11 +1017,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -804,12 +1033,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedDaemonSet** -> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -818,35 +1054,44 @@ delete a DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -857,11 +1102,11 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -873,12 +1118,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -887,35 +1139,44 @@ delete a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -926,11 +1187,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -942,12 +1203,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedReplicaSet** -> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -956,35 +1224,44 @@ delete a ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -995,11 +1272,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1011,12 +1288,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedStatefulSet** -> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1025,35 +1309,44 @@ delete a StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#deleteNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#deleteNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1064,11 +1357,11 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1080,9 +1373,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1094,27 +1394,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1131,12 +1440,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listControllerRevisionForAllNamespaces** -> V1ControllerRevisionList listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ControllerRevisionList listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1145,35 +1460,45 @@ list or watch objects of kind ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ControllerRevisionList result = apiInstance.listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listControllerRevisionForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ControllerRevisionList result = apiInstance.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listControllerRevisionForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1181,6 +1506,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1200,12 +1526,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDaemonSetForAllNamespaces** -> V1DaemonSetList listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1DaemonSetList listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1214,35 +1546,45 @@ list or watch objects of kind DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1DaemonSetList result = apiInstance.listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listDaemonSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1DaemonSetList result = apiInstance.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listDaemonSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1250,6 +1592,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1269,12 +1612,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDeploymentForAllNamespaces** -> V1DeploymentList listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1DeploymentList listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1283,35 +1632,45 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1DeploymentList result = apiInstance.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listDeploymentForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1DeploymentList result = apiInstance.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listDeploymentForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1319,6 +1678,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1338,12 +1698,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedControllerRevision** -> V1ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1352,36 +1718,46 @@ list or watch objects of kind ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ControllerRevisionList result = apiInstance.listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ControllerRevisionList result = apiInstance.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1391,6 +1767,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1409,12 +1786,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDaemonSet** -> V1DaemonSetList listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1DaemonSetList listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1423,36 +1806,46 @@ list or watch objects of kind DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1DaemonSetList result = apiInstance.listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1DaemonSetList result = apiInstance.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1462,6 +1855,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1480,12 +1874,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDeployment** -> V1DeploymentList listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1DeploymentList listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1494,36 +1894,46 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1533,6 +1943,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1551,12 +1962,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedReplicaSet** -> V1ReplicaSetList listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ReplicaSetList listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1565,36 +1982,46 @@ list or watch objects of kind ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ReplicaSetList result = apiInstance.listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ReplicaSetList result = apiInstance.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1604,6 +2031,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1622,12 +2050,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedStatefulSet** -> V1StatefulSetList listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1StatefulSetList listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1636,36 +2070,46 @@ list or watch objects of kind StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1StatefulSetList result = apiInstance.listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1StatefulSetList result = apiInstance.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1675,6 +2119,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1693,12 +2138,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listReplicaSetForAllNamespaces** -> V1ReplicaSetList listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ReplicaSetList listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1707,35 +2158,45 @@ list or watch objects of kind ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ReplicaSetList result = apiInstance.listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listReplicaSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ReplicaSetList result = apiInstance.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listReplicaSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1743,6 +2204,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1762,12 +2224,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listStatefulSetForAllNamespaces** -> V1StatefulSetList listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1StatefulSetList listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1776,35 +2244,45 @@ list or watch objects of kind StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1StatefulSetList result = apiInstance.listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#listStatefulSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1StatefulSetList result = apiInstance.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#listStatefulSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1812,6 +2290,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1831,9 +2310,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedControllerRevision** > V1ControllerRevision patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1845,34 +2330,43 @@ partially update the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ControllerRevision result = apiInstance.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ControllerRevision result = apiInstance.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1882,7 +2376,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1901,6 +2395,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDaemonSet** > V1DaemonSet patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1912,34 +2412,43 @@ partially update the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1DaemonSet result = apiInstance.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1DaemonSet result = apiInstance.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1949,7 +2458,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1968,6 +2477,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDaemonSetStatus** > V1DaemonSet patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1979,34 +2494,43 @@ partially update status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1DaemonSet result = apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1DaemonSet result = apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2016,7 +2540,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2035,6 +2559,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeployment** > V1Deployment patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2046,34 +2576,43 @@ partially update the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2083,7 +2622,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2102,6 +2641,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentScale** > V1Scale patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2113,34 +2658,43 @@ partially update scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2150,7 +2704,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2169,6 +2723,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentStatus** > V1Deployment patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2180,34 +2740,43 @@ partially update status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2217,7 +2786,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2236,6 +2805,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSet** > V1ReplicaSet patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2247,34 +2822,43 @@ partially update the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ReplicaSet result = apiInstance.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ReplicaSet result = apiInstance.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2284,7 +2868,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2303,6 +2887,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSetScale** > V1Scale patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2314,34 +2904,43 @@ partially update scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Scale result = apiInstance.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Scale result = apiInstance.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2351,7 +2950,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2370,6 +2969,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSetStatus** > V1ReplicaSet patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2381,34 +2986,43 @@ partially update status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ReplicaSet result = apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ReplicaSet result = apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2418,7 +3032,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2437,6 +3051,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSet** > V1StatefulSet patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2448,34 +3068,43 @@ partially update the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1StatefulSet result = apiInstance.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1StatefulSet result = apiInstance.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2485,7 +3114,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2504,6 +3133,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSetScale** > V1Scale patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2515,34 +3150,43 @@ partially update scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Scale result = apiInstance.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Scale result = apiInstance.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2552,7 +3196,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2571,6 +3215,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSetStatus** > V1StatefulSet patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2582,34 +3232,43 @@ partially update status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1StatefulSet result = apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#patchNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1StatefulSet result = apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#patchNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2619,7 +3278,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2638,6 +3297,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedControllerRevision** > V1ControllerRevision readNamespacedControllerRevision(name, namespace, pretty, exact, export) @@ -2649,32 +3314,41 @@ read the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2698,9 +3372,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDaemonSet** > V1DaemonSet readNamespacedDaemonSet(name, namespace, pretty, exact, export) @@ -2712,32 +3392,41 @@ read the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2761,9 +3450,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDaemonSetStatus** > V1DaemonSet readNamespacedDaemonSetStatus(name, namespace, pretty) @@ -2775,30 +3470,39 @@ read status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2820,9 +3524,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeployment** > V1Deployment readNamespacedDeployment(name, namespace, pretty, exact, export) @@ -2834,32 +3544,41 @@ read the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2883,9 +3602,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentScale** > V1Scale readNamespacedDeploymentScale(name, namespace, pretty) @@ -2897,30 +3622,39 @@ read scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2942,9 +3676,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentStatus** > V1Deployment readNamespacedDeploymentStatus(name, namespace, pretty) @@ -2956,30 +3696,39 @@ read status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3001,9 +3750,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSet** > V1ReplicaSet readNamespacedReplicaSet(name, namespace, pretty, exact, export) @@ -3015,32 +3770,41 @@ read the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3064,9 +3828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSetScale** > V1Scale readNamespacedReplicaSetScale(name, namespace, pretty) @@ -3078,30 +3848,39 @@ read scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3123,9 +3902,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSetStatus** > V1ReplicaSet readNamespacedReplicaSetStatus(name, namespace, pretty) @@ -3137,30 +3922,39 @@ read status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3182,9 +3976,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSet** > V1StatefulSet readNamespacedStatefulSet(name, namespace, pretty, exact, export) @@ -3196,32 +3996,41 @@ read the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3245,9 +4054,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSetScale** > V1Scale readNamespacedStatefulSetScale(name, namespace, pretty) @@ -3259,30 +4074,39 @@ read scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3304,9 +4128,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSetStatus** > V1StatefulSet readNamespacedStatefulSetStatus(name, namespace, pretty) @@ -3318,30 +4148,39 @@ read status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#readNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#readNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3363,9 +4202,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedControllerRevision** > V1ControllerRevision replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager) @@ -3377,33 +4222,42 @@ replace the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ControllerRevision body = new V1ControllerRevision(); // V1ControllerRevision | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ControllerRevision result = apiInstance.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ControllerRevision body = new V1ControllerRevision(); // V1ControllerRevision | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ControllerRevision result = apiInstance.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3428,9 +4282,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDaemonSet** > V1DaemonSet replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3442,33 +4303,42 @@ replace the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1DaemonSet result = apiInstance.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1DaemonSet result = apiInstance.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3493,9 +4363,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDaemonSetStatus** > V1DaemonSet replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3507,33 +4384,42 @@ replace status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1DaemonSet result = apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1DaemonSet body = new V1DaemonSet(); // V1DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1DaemonSet result = apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3558,9 +4444,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeployment** > V1Deployment replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager) @@ -3572,33 +4465,42 @@ replace the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Deployment body = new V1Deployment(); // V1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Deployment body = new V1Deployment(); // V1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3623,9 +4525,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentScale** > V1Scale replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -3637,33 +4546,42 @@ replace scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Scale body = new V1Scale(); // V1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Scale body = new V1Scale(); // V1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3688,9 +4606,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentStatus** > V1Deployment replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3702,33 +4627,42 @@ replace status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Deployment body = new V1Deployment(); // V1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Deployment body = new V1Deployment(); // V1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3753,9 +4687,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSet** > V1ReplicaSet replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3767,33 +4708,42 @@ replace the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ReplicaSet result = apiInstance.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ReplicaSet result = apiInstance.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3818,9 +4768,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSetScale** > V1Scale replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -3832,33 +4789,42 @@ replace scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Scale body = new V1Scale(); // V1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Scale result = apiInstance.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Scale body = new V1Scale(); // V1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Scale result = apiInstance.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3883,9 +4849,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSetStatus** > V1ReplicaSet replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3897,33 +4870,42 @@ replace status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ReplicaSet result = apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ReplicaSet body = new V1ReplicaSet(); // V1ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ReplicaSet result = apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3948,9 +4930,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSet** > V1StatefulSet replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3962,33 +4951,42 @@ replace the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1StatefulSet result = apiInstance.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1StatefulSet result = apiInstance.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4013,9 +5011,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSetScale** > V1Scale replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -4027,33 +5032,42 @@ replace scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Scale body = new V1Scale(); // V1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Scale result = apiInstance.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Scale body = new V1Scale(); // V1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Scale result = apiInstance.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4078,9 +5092,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSetStatus** > V1StatefulSet replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -4092,33 +5113,42 @@ replace status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1Api apiInstance = new AppsV1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1StatefulSet result = apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1Api#replaceNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1Api apiInstance = new AppsV1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1StatefulSet body = new V1StatefulSet(); // V1StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1StatefulSet result = apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1Api#replaceNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4143,6 +5173,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AppsV1beta1Api.md b/kubernetes/docs/AppsV1beta1Api.md index 24e3636265..77715f5a46 100644 --- a/kubernetes/docs/AppsV1beta1Api.md +++ b/kubernetes/docs/AppsV1beta1Api.md @@ -1,6 +1,6 @@ # AppsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -55,32 +55,41 @@ create a ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1ControllerRevision body = new V1beta1ControllerRevision(); // V1beta1ControllerRevision | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ControllerRevision result = apiInstance.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#createNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ControllerRevision body = new V1beta1ControllerRevision(); // V1beta1ControllerRevision | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ControllerRevision result = apiInstance.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#createNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -104,9 +113,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDeployment** > AppsV1beta1Deployment createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager) @@ -118,32 +135,41 @@ create a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -AppsV1beta1Deployment body = new AppsV1beta1Deployment(); // AppsV1beta1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - AppsV1beta1Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#createNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + AppsV1beta1Deployment body = new AppsV1beta1Deployment(); // AppsV1beta1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + AppsV1beta1Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#createNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -167,9 +193,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDeploymentRollback** > V1Status createNamespacedDeploymentRollback(name, namespace, body, dryRun, fieldManager, pretty) @@ -181,33 +215,42 @@ create rollback of a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the DeploymentRollback -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -AppsV1beta1DeploymentRollback body = new AppsV1beta1DeploymentRollback(); // AppsV1beta1DeploymentRollback | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Status result = apiInstance.createNamespacedDeploymentRollback(name, namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#createNamespacedDeploymentRollback"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DeploymentRollback + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + AppsV1beta1DeploymentRollback body = new AppsV1beta1DeploymentRollback(); // AppsV1beta1DeploymentRollback | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Status result = apiInstance.createNamespacedDeploymentRollback(name, namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#createNamespacedDeploymentRollback"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -232,9 +275,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedStatefulSet** > V1beta1StatefulSet createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager) @@ -246,32 +297,41 @@ create a StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1StatefulSet body = new V1beta1StatefulSet(); // V1beta1StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1StatefulSet result = apiInstance.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#createNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1StatefulSet body = new V1beta1StatefulSet(); // V1beta1StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1StatefulSet result = apiInstance.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#createNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -295,12 +355,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedControllerRevision** -> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -309,36 +377,51 @@ delete collection of ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#deleteCollectionNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#deleteCollectionNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -348,13 +431,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -366,12 +455,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -380,36 +475,51 @@ delete collection of Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#deleteCollectionNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#deleteCollectionNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -419,13 +529,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -437,12 +553,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -451,36 +573,51 @@ delete collection of StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#deleteCollectionNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#deleteCollectionNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -490,13 +627,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -508,12 +651,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedControllerRevision** -> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -522,35 +671,44 @@ delete a ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#deleteNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#deleteNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -561,11 +719,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -577,12 +735,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -591,35 +756,44 @@ delete a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#deleteNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#deleteNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -630,11 +804,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -646,12 +820,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedStatefulSet** -> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -660,35 +841,44 @@ delete a StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#deleteNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#deleteNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -699,11 +889,11 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -715,9 +905,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -729,27 +926,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -766,12 +972,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listControllerRevisionForAllNamespaces** -> V1beta1ControllerRevisionList listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1ControllerRevisionList listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -780,35 +992,45 @@ list or watch objects of kind ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ControllerRevisionList result = apiInstance.listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#listControllerRevisionForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ControllerRevisionList result = apiInstance.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#listControllerRevisionForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -816,6 +1038,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -835,12 +1058,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDeploymentForAllNamespaces** -> AppsV1beta1DeploymentList listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> AppsV1beta1DeploymentList listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -849,35 +1078,45 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - AppsV1beta1DeploymentList result = apiInstance.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#listDeploymentForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + AppsV1beta1DeploymentList result = apiInstance.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#listDeploymentForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -885,6 +1124,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -904,12 +1144,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedControllerRevision** -> V1beta1ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -918,36 +1164,46 @@ list or watch objects of kind ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ControllerRevisionList result = apiInstance.listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#listNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ControllerRevisionList result = apiInstance.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#listNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -957,6 +1213,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -975,12 +1232,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDeployment** -> AppsV1beta1DeploymentList listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> AppsV1beta1DeploymentList listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -989,36 +1252,46 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - AppsV1beta1DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#listNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + AppsV1beta1DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#listNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1028,6 +1301,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1046,12 +1320,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedStatefulSet** -> V1beta1StatefulSetList listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1StatefulSetList listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1060,36 +1340,46 @@ list or watch objects of kind StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1StatefulSetList result = apiInstance.listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#listNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1StatefulSetList result = apiInstance.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#listNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1099,6 +1389,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1117,12 +1408,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listStatefulSetForAllNamespaces** -> V1beta1StatefulSetList listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1StatefulSetList listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1131,35 +1428,45 @@ list or watch objects of kind StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1StatefulSetList result = apiInstance.listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#listStatefulSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1StatefulSetList result = apiInstance.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#listStatefulSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1167,6 +1474,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1186,9 +1494,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedControllerRevision** > V1beta1ControllerRevision patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1200,34 +1514,43 @@ partially update the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1ControllerRevision result = apiInstance.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ControllerRevision result = apiInstance.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1237,7 +1560,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1256,6 +1579,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeployment** > AppsV1beta1Deployment patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1267,34 +1596,43 @@ partially update the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - AppsV1beta1Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + AppsV1beta1Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1304,7 +1642,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1323,6 +1661,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentScale** > AppsV1beta1Scale patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1334,34 +1678,43 @@ partially update scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - AppsV1beta1Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + AppsV1beta1Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1371,7 +1724,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1390,6 +1743,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentStatus** > AppsV1beta1Deployment patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1401,34 +1760,43 @@ partially update status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - AppsV1beta1Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + AppsV1beta1Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1438,7 +1806,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1457,6 +1825,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSet** > V1beta1StatefulSet patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1468,34 +1842,43 @@ partially update the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1StatefulSet result = apiInstance.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1StatefulSet result = apiInstance.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1505,7 +1888,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1524,6 +1907,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSetScale** > AppsV1beta1Scale patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1535,34 +1924,43 @@ partially update scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - AppsV1beta1Scale result = apiInstance.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + AppsV1beta1Scale result = apiInstance.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1572,7 +1970,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1591,6 +1989,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSetStatus** > V1beta1StatefulSet patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1602,34 +2006,43 @@ partially update status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1StatefulSet result = apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1StatefulSet result = apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#patchNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1639,7 +2052,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1658,6 +2071,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedControllerRevision** > V1beta1ControllerRevision readNamespacedControllerRevision(name, namespace, pretty, exact, export) @@ -1669,32 +2088,41 @@ read the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1718,9 +2146,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeployment** > AppsV1beta1Deployment readNamespacedDeployment(name, namespace, pretty, exact, export) @@ -1732,32 +2166,41 @@ read the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - AppsV1beta1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + AppsV1beta1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1781,9 +2224,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentScale** > AppsV1beta1Scale readNamespacedDeploymentScale(name, namespace, pretty) @@ -1795,30 +2244,39 @@ read scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - AppsV1beta1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + AppsV1beta1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1840,9 +2298,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentStatus** > AppsV1beta1Deployment readNamespacedDeploymentStatus(name, namespace, pretty) @@ -1854,30 +2318,39 @@ read status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - AppsV1beta1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + AppsV1beta1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1899,9 +2372,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSet** > V1beta1StatefulSet readNamespacedStatefulSet(name, namespace, pretty, exact, export) @@ -1913,32 +2392,41 @@ read the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1962,9 +2450,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSetScale** > AppsV1beta1Scale readNamespacedStatefulSetScale(name, namespace, pretty) @@ -1976,30 +2470,39 @@ read scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - AppsV1beta1Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + AppsV1beta1Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2021,9 +2524,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSetStatus** > V1beta1StatefulSet readNamespacedStatefulSetStatus(name, namespace, pretty) @@ -2035,30 +2544,39 @@ read status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#readNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#readNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2080,9 +2598,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedControllerRevision** > V1beta1ControllerRevision replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager) @@ -2094,33 +2618,42 @@ replace the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1ControllerRevision body = new V1beta1ControllerRevision(); // V1beta1ControllerRevision | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ControllerRevision result = apiInstance.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ControllerRevision body = new V1beta1ControllerRevision(); // V1beta1ControllerRevision | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ControllerRevision result = apiInstance.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2145,9 +2678,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeployment** > AppsV1beta1Deployment replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager) @@ -2159,33 +2699,42 @@ replace the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -AppsV1beta1Deployment body = new AppsV1beta1Deployment(); // AppsV1beta1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - AppsV1beta1Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + AppsV1beta1Deployment body = new AppsV1beta1Deployment(); // AppsV1beta1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + AppsV1beta1Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2210,9 +2759,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentScale** > AppsV1beta1Scale replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -2224,33 +2780,42 @@ replace scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -AppsV1beta1Scale body = new AppsV1beta1Scale(); // AppsV1beta1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - AppsV1beta1Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + AppsV1beta1Scale body = new AppsV1beta1Scale(); // AppsV1beta1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + AppsV1beta1Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2275,9 +2840,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentStatus** > AppsV1beta1Deployment replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -2289,33 +2861,42 @@ replace status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -AppsV1beta1Deployment body = new AppsV1beta1Deployment(); // AppsV1beta1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - AppsV1beta1Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + AppsV1beta1Deployment body = new AppsV1beta1Deployment(); // AppsV1beta1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + AppsV1beta1Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2340,9 +2921,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSet** > V1beta1StatefulSet replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -2354,33 +2942,42 @@ replace the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1StatefulSet body = new V1beta1StatefulSet(); // V1beta1StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1StatefulSet result = apiInstance.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1StatefulSet body = new V1beta1StatefulSet(); // V1beta1StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1StatefulSet result = apiInstance.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2405,9 +3002,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSetScale** > AppsV1beta1Scale replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -2419,33 +3023,42 @@ replace scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -AppsV1beta1Scale body = new AppsV1beta1Scale(); // AppsV1beta1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - AppsV1beta1Scale result = apiInstance.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + AppsV1beta1Scale body = new AppsV1beta1Scale(); // AppsV1beta1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + AppsV1beta1Scale result = apiInstance.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2470,9 +3083,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSetStatus** > V1beta1StatefulSet replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -2484,33 +3104,42 @@ replace status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta1Api apiInstance = new AppsV1beta1Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1StatefulSet body = new V1beta1StatefulSet(); // V1beta1StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1StatefulSet result = apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta1Api apiInstance = new AppsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1StatefulSet body = new V1beta1StatefulSet(); // V1beta1StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1StatefulSet result = apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta1Api#replaceNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2535,6 +3164,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AppsV1beta1Deployment.md b/kubernetes/docs/AppsV1beta1Deployment.md index 04eb5f93c3..62e7581e29 100644 --- a/kubernetes/docs/AppsV1beta1Deployment.md +++ b/kubernetes/docs/AppsV1beta1Deployment.md @@ -1,14 +1,16 @@ + # AppsV1beta1Deployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**AppsV1beta1DeploymentSpec**](AppsV1beta1DeploymentSpec.md) | | [optional] +**status** | [**AppsV1beta1DeploymentStatus**](AppsV1beta1DeploymentStatus.md) | | [optional] diff --git a/kubernetes/docs/AppsV1beta1DeploymentCondition.md b/kubernetes/docs/AppsV1beta1DeploymentCondition.md index c2d36d77fa..99c0e91847 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentCondition.md +++ b/kubernetes/docs/AppsV1beta1DeploymentCondition.md @@ -1,7 +1,9 @@ + # AppsV1beta1DeploymentCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/AppsV1beta1DeploymentList.md b/kubernetes/docs/AppsV1beta1DeploymentList.md index 285ccdca11..d610d7954a 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentList.md +++ b/kubernetes/docs/AppsV1beta1DeploymentList.md @@ -1,13 +1,15 @@ + # AppsV1beta1DeploymentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<AppsV1beta1Deployment>**](AppsV1beta1Deployment.md) | Items is the list of Deployments. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/AppsV1beta1DeploymentRollback.md b/kubernetes/docs/AppsV1beta1DeploymentRollback.md index 202875daa1..8611accb79 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentRollback.md +++ b/kubernetes/docs/AppsV1beta1DeploymentRollback.md @@ -1,13 +1,15 @@ + # AppsV1beta1DeploymentRollback ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **String** | Required: This must match the Name of a deployment. | -**rollbackTo** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | The config of this deployment rollback. | +**rollbackTo** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | | **updatedAnnotations** | **Map<String, String>** | The annotations to be updated to a deployment | [optional] diff --git a/kubernetes/docs/AppsV1beta1DeploymentSpec.md b/kubernetes/docs/AppsV1beta1DeploymentSpec.md index 8b305f92ec..6c60ac4113 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentSpec.md +++ b/kubernetes/docs/AppsV1beta1DeploymentSpec.md @@ -1,7 +1,9 @@ + # AppsV1beta1DeploymentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] @@ -9,10 +11,10 @@ Name | Type | Description | Notes **progressDeadlineSeconds** | **Integer** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] **replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. | [optional] -**rollbackTo** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**rollbackTo** | [**AppsV1beta1RollbackConfig**](AppsV1beta1RollbackConfig.md) | | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**strategy** | [**AppsV1beta1DeploymentStrategy**](AppsV1beta1DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | diff --git a/kubernetes/docs/AppsV1beta1DeploymentStatus.md b/kubernetes/docs/AppsV1beta1DeploymentStatus.md index 600e18f2eb..d678da0cdd 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentStatus.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStatus.md @@ -1,7 +1,9 @@ + # AppsV1beta1DeploymentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] diff --git a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md index 5a6c559ec6..ec9626ea9b 100644 --- a/kubernetes/docs/AppsV1beta1DeploymentStrategy.md +++ b/kubernetes/docs/AppsV1beta1DeploymentStrategy.md @@ -1,10 +1,12 @@ + # AppsV1beta1DeploymentStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rollingUpdate** | [**AppsV1beta1RollingUpdateDeployment**](AppsV1beta1RollingUpdateDeployment.md) | | [optional] **type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/AppsV1beta1RollbackConfig.md b/kubernetes/docs/AppsV1beta1RollbackConfig.md index dec48802b0..d554140c5c 100644 --- a/kubernetes/docs/AppsV1beta1RollbackConfig.md +++ b/kubernetes/docs/AppsV1beta1RollbackConfig.md @@ -1,7 +1,9 @@ + # AppsV1beta1RollbackConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **revision** | **Long** | The revision to rollback to. If set to 0, rollback to the last revision. | [optional] diff --git a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md index fe82fd1a99..b7285e60d9 100644 --- a/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/AppsV1beta1RollingUpdateDeployment.md @@ -1,11 +1,13 @@ + # AppsV1beta1RollingUpdateDeployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxSurge** | [**IntOrString**](IntOrString.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**maxUnavailable** | [**IntOrString**](IntOrString.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**maxSurge** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/AppsV1beta1Scale.md b/kubernetes/docs/AppsV1beta1Scale.md index 88331f7a28..b323dfb6bf 100644 --- a/kubernetes/docs/AppsV1beta1Scale.md +++ b/kubernetes/docs/AppsV1beta1Scale.md @@ -1,14 +1,16 @@ + # AppsV1beta1Scale ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**AppsV1beta1ScaleSpec**](AppsV1beta1ScaleSpec.md) | | [optional] +**status** | [**AppsV1beta1ScaleStatus**](AppsV1beta1ScaleStatus.md) | | [optional] diff --git a/kubernetes/docs/AppsV1beta1ScaleSpec.md b/kubernetes/docs/AppsV1beta1ScaleSpec.md index 84ee74fdaf..0fd85f9eb9 100644 --- a/kubernetes/docs/AppsV1beta1ScaleSpec.md +++ b/kubernetes/docs/AppsV1beta1ScaleSpec.md @@ -1,7 +1,9 @@ + # AppsV1beta1ScaleSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | desired number of instances for the scaled object. | [optional] diff --git a/kubernetes/docs/AppsV1beta1ScaleStatus.md b/kubernetes/docs/AppsV1beta1ScaleStatus.md index 5b52c41409..127f6efd9d 100644 --- a/kubernetes/docs/AppsV1beta1ScaleStatus.md +++ b/kubernetes/docs/AppsV1beta1ScaleStatus.md @@ -1,7 +1,9 @@ + # AppsV1beta1ScaleStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | actual number of observed instances of the scaled object. | diff --git a/kubernetes/docs/AppsV1beta2Api.md b/kubernetes/docs/AppsV1beta2Api.md index 5c86efc7a8..aaa07143c6 100644 --- a/kubernetes/docs/AppsV1beta2Api.md +++ b/kubernetes/docs/AppsV1beta2Api.md @@ -1,6 +1,6 @@ # AppsV1beta2Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -79,32 +79,41 @@ create a ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2ControllerRevision body = new V1beta2ControllerRevision(); // V1beta2ControllerRevision | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2ControllerRevision result = apiInstance.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#createNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ControllerRevision body = new V1beta2ControllerRevision(); // V1beta2ControllerRevision | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2ControllerRevision result = apiInstance.createNamespacedControllerRevision(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#createNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,9 +137,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDaemonSet** > V1beta2DaemonSet createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager) @@ -142,32 +159,41 @@ create a DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2DaemonSet body = new V1beta2DaemonSet(); // V1beta2DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2DaemonSet result = apiInstance.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#createNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2DaemonSet body = new V1beta2DaemonSet(); // V1beta2DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2DaemonSet result = apiInstance.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#createNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -191,9 +217,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDeployment** > V1beta2Deployment createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager) @@ -205,32 +239,41 @@ create a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2Deployment body = new V1beta2Deployment(); // V1beta2Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#createNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2Deployment body = new V1beta2Deployment(); // V1beta2Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#createNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -254,9 +297,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedReplicaSet** > V1beta2ReplicaSet createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager) @@ -268,32 +319,41 @@ create a ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2ReplicaSet body = new V1beta2ReplicaSet(); // V1beta2ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2ReplicaSet result = apiInstance.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#createNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ReplicaSet body = new V1beta2ReplicaSet(); // V1beta2ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2ReplicaSet result = apiInstance.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#createNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -317,9 +377,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedStatefulSet** > V1beta2StatefulSet createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager) @@ -331,32 +399,41 @@ create a StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2StatefulSet body = new V1beta2StatefulSet(); // V1beta2StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2StatefulSet result = apiInstance.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#createNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2StatefulSet body = new V1beta2StatefulSet(); // V1beta2StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2StatefulSet result = apiInstance.createNamespacedStatefulSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#createNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -380,12 +457,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedControllerRevision** -> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -394,36 +479,51 @@ delete collection of ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -433,13 +533,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -451,12 +557,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -465,36 +577,51 @@ delete collection of DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -504,13 +631,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -522,12 +655,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -536,36 +675,51 @@ delete collection of Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -575,13 +729,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -593,12 +753,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -607,36 +773,51 @@ delete collection of ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -646,13 +827,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -664,12 +851,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedStatefulSet** -> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -678,36 +871,51 @@ delete collection of StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteCollectionNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -717,13 +925,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -735,12 +949,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedControllerRevision** -> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -749,35 +969,44 @@ delete a ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -788,11 +1017,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -804,12 +1033,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedDaemonSet** -> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -818,35 +1054,44 @@ delete a DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -857,11 +1102,11 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -873,12 +1118,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -887,35 +1139,44 @@ delete a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -926,11 +1187,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -942,12 +1203,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedReplicaSet** -> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -956,35 +1224,44 @@ delete a ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -995,11 +1272,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1011,12 +1288,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedStatefulSet** -> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1025,35 +1309,44 @@ delete a StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#deleteNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1064,11 +1357,11 @@ Name | Type | Description | Notes **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1080,9 +1373,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1094,27 +1394,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1131,12 +1440,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listControllerRevisionForAllNamespaces** -> V1beta2ControllerRevisionList listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta2ControllerRevisionList listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1145,35 +1460,45 @@ list or watch objects of kind ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2ControllerRevisionList result = apiInstance.listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listControllerRevisionForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ControllerRevisionList result = apiInstance.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listControllerRevisionForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1181,6 +1506,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1200,12 +1526,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDaemonSetForAllNamespaces** -> V1beta2DaemonSetList listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta2DaemonSetList listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1214,35 +1546,45 @@ list or watch objects of kind DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2DaemonSetList result = apiInstance.listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listDaemonSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2DaemonSetList result = apiInstance.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listDaemonSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1250,6 +1592,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1269,12 +1612,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDeploymentForAllNamespaces** -> V1beta2DeploymentList listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta2DeploymentList listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1283,35 +1632,45 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2DeploymentList result = apiInstance.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listDeploymentForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2DeploymentList result = apiInstance.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listDeploymentForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1319,6 +1678,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1338,12 +1698,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedControllerRevision** -> V1beta2ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta2ControllerRevisionList listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1352,36 +1718,46 @@ list or watch objects of kind ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2ControllerRevisionList result = apiInstance.listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ControllerRevisionList result = apiInstance.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1391,6 +1767,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1409,12 +1786,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDaemonSet** -> V1beta2DaemonSetList listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta2DaemonSetList listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1423,36 +1806,46 @@ list or watch objects of kind DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2DaemonSetList result = apiInstance.listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2DaemonSetList result = apiInstance.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1462,6 +1855,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1480,12 +1874,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDeployment** -> V1beta2DeploymentList listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta2DeploymentList listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1494,36 +1894,46 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1533,6 +1943,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1551,12 +1962,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedReplicaSet** -> V1beta2ReplicaSetList listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta2ReplicaSetList listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1565,36 +1982,46 @@ list or watch objects of kind ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2ReplicaSetList result = apiInstance.listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ReplicaSetList result = apiInstance.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1604,6 +2031,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1622,12 +2050,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedStatefulSet** -> V1beta2StatefulSetList listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta2StatefulSetList listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1636,36 +2070,46 @@ list or watch objects of kind StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2StatefulSetList result = apiInstance.listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2StatefulSetList result = apiInstance.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1675,6 +2119,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1693,12 +2138,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listReplicaSetForAllNamespaces** -> V1beta2ReplicaSetList listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta2ReplicaSetList listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1707,35 +2158,45 @@ list or watch objects of kind ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2ReplicaSetList result = apiInstance.listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listReplicaSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2ReplicaSetList result = apiInstance.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listReplicaSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1743,6 +2204,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1762,12 +2224,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listStatefulSetForAllNamespaces** -> V1beta2StatefulSetList listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta2StatefulSetList listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1776,35 +2244,45 @@ list or watch objects of kind StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta2StatefulSetList result = apiInstance.listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#listStatefulSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta2StatefulSetList result = apiInstance.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#listStatefulSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1812,6 +2290,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1831,9 +2310,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedControllerRevision** > V1beta2ControllerRevision patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1845,34 +2330,43 @@ partially update the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2ControllerRevision result = apiInstance.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ControllerRevision result = apiInstance.patchNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1882,7 +2376,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ControllerRevision | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1901,6 +2395,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDaemonSet** > V1beta2DaemonSet patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1912,34 +2412,43 @@ partially update the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2DaemonSet result = apiInstance.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DaemonSet result = apiInstance.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1949,7 +2458,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1968,6 +2477,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDaemonSetStatus** > V1beta2DaemonSet patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1979,34 +2494,43 @@ partially update status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2DaemonSet result = apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2DaemonSet result = apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2016,7 +2540,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2035,6 +2559,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeployment** > V1beta2Deployment patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2046,34 +2576,43 @@ partially update the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2083,7 +2622,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2102,6 +2641,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentScale** > V1beta2Scale patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2113,34 +2658,43 @@ partially update scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2150,7 +2704,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2169,6 +2723,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentStatus** > V1beta2Deployment patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2180,34 +2740,43 @@ partially update status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2217,7 +2786,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2236,6 +2805,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSet** > V1beta2ReplicaSet patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2247,34 +2822,43 @@ partially update the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2ReplicaSet result = apiInstance.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ReplicaSet result = apiInstance.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2284,7 +2868,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2303,6 +2887,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSetScale** > V1beta2Scale patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2314,34 +2904,43 @@ partially update scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2Scale result = apiInstance.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2Scale result = apiInstance.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2351,7 +2950,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2370,6 +2969,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSetStatus** > V1beta2ReplicaSet patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2381,34 +2986,43 @@ partially update status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2ReplicaSet result = apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2ReplicaSet result = apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2418,7 +3032,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2437,6 +3051,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSet** > V1beta2StatefulSet patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2448,34 +3068,43 @@ partially update the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2StatefulSet result = apiInstance.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2StatefulSet result = apiInstance.patchNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2485,7 +3114,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2504,6 +3133,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSetScale** > V1beta2Scale patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2515,34 +3150,43 @@ partially update scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2Scale result = apiInstance.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2Scale result = apiInstance.patchNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2552,7 +3196,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2571,6 +3215,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedStatefulSetStatus** > V1beta2StatefulSet patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2582,34 +3232,43 @@ partially update status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta2StatefulSet result = apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta2StatefulSet result = apiInstance.patchNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#patchNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2619,7 +3278,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StatefulSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2638,6 +3297,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedControllerRevision** > V1beta2ControllerRevision readNamespacedControllerRevision(name, namespace, pretty, exact, export) @@ -2649,32 +3314,41 @@ read the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta2ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta2ControllerRevision result = apiInstance.readNamespacedControllerRevision(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2698,9 +3372,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDaemonSet** > V1beta2DaemonSet readNamespacedDaemonSet(name, namespace, pretty, exact, export) @@ -2712,32 +3392,41 @@ read the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta2DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta2DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2761,9 +3450,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDaemonSetStatus** > V1beta2DaemonSet readNamespacedDaemonSetStatus(name, namespace, pretty) @@ -2775,30 +3470,39 @@ read status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2820,9 +3524,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeployment** > V1beta2Deployment readNamespacedDeployment(name, namespace, pretty, exact, export) @@ -2834,32 +3544,41 @@ read the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta2Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta2Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2883,9 +3602,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentScale** > V1beta2Scale readNamespacedDeploymentScale(name, namespace, pretty) @@ -2897,30 +3622,39 @@ read scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2942,9 +3676,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentStatus** > V1beta2Deployment readNamespacedDeploymentStatus(name, namespace, pretty) @@ -2956,30 +3696,39 @@ read status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3001,9 +3750,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSet** > V1beta2ReplicaSet readNamespacedReplicaSet(name, namespace, pretty, exact, export) @@ -3015,32 +3770,41 @@ read the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta2ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta2ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3064,9 +3828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSetScale** > V1beta2Scale readNamespacedReplicaSetScale(name, namespace, pretty) @@ -3078,30 +3848,39 @@ read scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3123,9 +3902,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSetStatus** > V1beta2ReplicaSet readNamespacedReplicaSetStatus(name, namespace, pretty) @@ -3137,30 +3922,39 @@ read status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3182,9 +3976,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSet** > V1beta2StatefulSet readNamespacedStatefulSet(name, namespace, pretty, exact, export) @@ -3196,32 +3996,41 @@ read the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta2StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta2StatefulSet result = apiInstance.readNamespacedStatefulSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3245,9 +4054,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSetScale** > V1beta2Scale readNamespacedStatefulSetScale(name, namespace, pretty) @@ -3259,30 +4074,39 @@ read scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2Scale result = apiInstance.readNamespacedStatefulSetScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3304,9 +4128,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedStatefulSetStatus** > V1beta2StatefulSet readNamespacedStatefulSetStatus(name, namespace, pretty) @@ -3318,30 +4148,39 @@ read status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta2StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#readNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta2StatefulSet result = apiInstance.readNamespacedStatefulSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#readNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3363,9 +4202,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedControllerRevision** > V1beta2ControllerRevision replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager) @@ -3377,33 +4222,42 @@ replace the specified ControllerRevision ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ControllerRevision -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2ControllerRevision body = new V1beta2ControllerRevision(); // V1beta2ControllerRevision | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2ControllerRevision result = apiInstance.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedControllerRevision"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ControllerRevision + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ControllerRevision body = new V1beta2ControllerRevision(); // V1beta2ControllerRevision | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2ControllerRevision result = apiInstance.replaceNamespacedControllerRevision(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedControllerRevision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3428,9 +4282,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDaemonSet** > V1beta2DaemonSet replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3442,33 +4303,42 @@ replace the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2DaemonSet body = new V1beta2DaemonSet(); // V1beta2DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2DaemonSet result = apiInstance.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2DaemonSet body = new V1beta2DaemonSet(); // V1beta2DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2DaemonSet result = apiInstance.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3493,9 +4363,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDaemonSetStatus** > V1beta2DaemonSet replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3507,33 +4384,42 @@ replace status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2DaemonSet body = new V1beta2DaemonSet(); // V1beta2DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2DaemonSet result = apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2DaemonSet body = new V1beta2DaemonSet(); // V1beta2DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2DaemonSet result = apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3558,9 +4444,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeployment** > V1beta2Deployment replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager) @@ -3572,33 +4465,42 @@ replace the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2Deployment body = new V1beta2Deployment(); // V1beta2Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2Deployment body = new V1beta2Deployment(); // V1beta2Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3623,9 +4525,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentScale** > V1beta2Scale replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -3637,33 +4546,42 @@ replace scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2Scale body = new V1beta2Scale(); // V1beta2Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2Scale body = new V1beta2Scale(); // V1beta2Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3688,9 +4606,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentStatus** > V1beta2Deployment replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3702,33 +4627,42 @@ replace status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2Deployment body = new V1beta2Deployment(); // V1beta2Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2Deployment body = new V1beta2Deployment(); // V1beta2Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3753,9 +4687,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSet** > V1beta2ReplicaSet replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3767,33 +4708,42 @@ replace the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2ReplicaSet body = new V1beta2ReplicaSet(); // V1beta2ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2ReplicaSet result = apiInstance.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ReplicaSet body = new V1beta2ReplicaSet(); // V1beta2ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2ReplicaSet result = apiInstance.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3818,9 +4768,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSetScale** > V1beta2Scale replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -3832,33 +4789,42 @@ replace scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2Scale body = new V1beta2Scale(); // V1beta2Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2Scale result = apiInstance.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2Scale body = new V1beta2Scale(); // V1beta2Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2Scale result = apiInstance.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3883,9 +4849,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSetStatus** > V1beta2ReplicaSet replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3897,33 +4870,42 @@ replace status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2ReplicaSet body = new V1beta2ReplicaSet(); // V1beta2ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2ReplicaSet result = apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2ReplicaSet body = new V1beta2ReplicaSet(); // V1beta2ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2ReplicaSet result = apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3948,9 +4930,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSet** > V1beta2StatefulSet replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3962,33 +4951,42 @@ replace the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2StatefulSet body = new V1beta2StatefulSet(); // V1beta2StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2StatefulSet result = apiInstance.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedStatefulSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2StatefulSet body = new V1beta2StatefulSet(); // V1beta2StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2StatefulSet result = apiInstance.replaceNamespacedStatefulSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedStatefulSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4013,9 +5011,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSetScale** > V1beta2Scale replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -4027,33 +5032,42 @@ replace scale of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2Scale body = new V1beta2Scale(); // V1beta2Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2Scale result = apiInstance.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedStatefulSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2Scale body = new V1beta2Scale(); // V1beta2Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2Scale result = apiInstance.replaceNamespacedStatefulSetScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedStatefulSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4078,9 +5092,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedStatefulSetStatus** > V1beta2StatefulSet replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -4092,33 +5113,42 @@ replace status of the specified StatefulSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AppsV1beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AppsV1beta2Api apiInstance = new AppsV1beta2Api(); -String name = "name_example"; // String | name of the StatefulSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta2StatefulSet body = new V1beta2StatefulSet(); // V1beta2StatefulSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta2StatefulSet result = apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedStatefulSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AppsV1beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AppsV1beta2Api apiInstance = new AppsV1beta2Api(defaultClient); + String name = "name_example"; // String | name of the StatefulSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta2StatefulSet body = new V1beta2StatefulSet(); // V1beta2StatefulSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta2StatefulSet result = apiInstance.replaceNamespacedStatefulSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AppsV1beta2Api#replaceNamespacedStatefulSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4143,6 +5173,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuditregistrationApi.md b/kubernetes/docs/AuditregistrationApi.md index 6d6cf81101..7463ef5454 100644 --- a/kubernetes/docs/AuditregistrationApi.md +++ b/kubernetes/docs/AuditregistrationApi.md @@ -1,6 +1,6 @@ # AuditregistrationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationApi apiInstance = new AuditregistrationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationApi apiInstance = new AuditregistrationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuditregistrationV1alpha1Api.md b/kubernetes/docs/AuditregistrationV1alpha1Api.md index 9e1e17f220..5b6451942b 100644 --- a/kubernetes/docs/AuditregistrationV1alpha1Api.md +++ b/kubernetes/docs/AuditregistrationV1alpha1Api.md @@ -1,6 +1,6 @@ # AuditregistrationV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create an AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -V1alpha1AuditSink body = new V1alpha1AuditSink(); // V1alpha1AuditSink | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1AuditSink result = apiInstance.createAuditSink(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#createAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + V1alpha1AuditSink body = new V1alpha1AuditSink(); // V1alpha1AuditSink | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1AuditSink result = apiInstance.createAuditSink(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#createAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteAuditSink** -> V1Status deleteAuditSink(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteAuditSink(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -86,34 +103,43 @@ delete an AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -String name = "name_example"; // String | name of the AuditSink -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteAuditSink(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#deleteAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the AuditSink + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteAuditSink(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#deleteAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,11 +149,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the AuditSink | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -139,12 +165,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionAuditSink** -> V1Status deleteCollectionAuditSink(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionAuditSink(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -153,35 +186,50 @@ delete collection of AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionAuditSink(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#deleteCollectionAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionAuditSink(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#deleteCollectionAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -190,13 +238,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +262,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listAuditSink** -> V1alpha1AuditSinkList listAuditSink(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1AuditSinkList listAuditSink(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1AuditSinkList result = apiInstance.listAuditSink(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#listAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1AuditSinkList result = apiInstance.listAuditSink(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#listAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchAuditSink** > V1alpha1AuditSink patchAuditSink(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -String name = "name_example"; // String | name of the AuditSink -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1AuditSink result = apiInstance.patchAuditSink(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#patchAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the AuditSink + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1AuditSink result = apiInstance.patchAuditSink(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#patchAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the AuditSink | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readAuditSink** > V1alpha1AuditSink readAuditSink(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -String name = "name_example"; // String | name of the AuditSink -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1alpha1AuditSink result = apiInstance.readAuditSink(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#readAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the AuditSink + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1alpha1AuditSink result = apiInstance.readAuditSink(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#readAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceAuditSink** > V1alpha1AuditSink replaceAuditSink(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified AuditSink ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(); -String name = "name_example"; // String | name of the AuditSink -V1alpha1AuditSink body = new V1alpha1AuditSink(); // V1alpha1AuditSink | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1AuditSink result = apiInstance.replaceAuditSink(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuditregistrationV1alpha1Api#replaceAuditSink"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuditregistrationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuditregistrationV1alpha1Api apiInstance = new AuditregistrationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the AuditSink + V1alpha1AuditSink body = new V1alpha1AuditSink(); // V1alpha1AuditSink | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1AuditSink result = apiInstance.replaceAuditSink(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuditregistrationV1alpha1Api#replaceAuditSink"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuthenticationApi.md b/kubernetes/docs/AuthenticationApi.md index 8cb0b9ea19..b72719117e 100644 --- a/kubernetes/docs/AuthenticationApi.md +++ b/kubernetes/docs/AuthenticationApi.md @@ -1,6 +1,6 @@ # AuthenticationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthenticationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthenticationApi apiInstance = new AuthenticationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthenticationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthenticationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthenticationApi apiInstance = new AuthenticationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthenticationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuthenticationV1Api.md b/kubernetes/docs/AuthenticationV1Api.md index c5b8b1b2db..4e0329920e 100644 --- a/kubernetes/docs/AuthenticationV1Api.md +++ b/kubernetes/docs/AuthenticationV1Api.md @@ -1,6 +1,6 @@ # AuthenticationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -19,31 +19,40 @@ create a TokenReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthenticationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthenticationV1Api apiInstance = new AuthenticationV1Api(); -V1TokenReview body = new V1TokenReview(); // V1TokenReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1TokenReview result = apiInstance.createTokenReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1Api#createTokenReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthenticationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthenticationV1Api apiInstance = new AuthenticationV1Api(defaultClient); + V1TokenReview body = new V1TokenReview(); // V1TokenReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1TokenReview result = apiInstance.createTokenReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthenticationV1Api#createTokenReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -66,9 +75,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -80,27 +97,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthenticationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthenticationV1Api apiInstance = new AuthenticationV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthenticationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthenticationV1Api apiInstance = new AuthenticationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthenticationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -117,6 +143,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuthenticationV1beta1Api.md b/kubernetes/docs/AuthenticationV1beta1Api.md index 4835874e37..ec9b5e9b1f 100644 --- a/kubernetes/docs/AuthenticationV1beta1Api.md +++ b/kubernetes/docs/AuthenticationV1beta1Api.md @@ -1,6 +1,6 @@ # AuthenticationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -19,31 +19,40 @@ create a TokenReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthenticationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(); -V1beta1TokenReview body = new V1beta1TokenReview(); // V1beta1TokenReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1TokenReview result = apiInstance.createTokenReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1beta1Api#createTokenReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthenticationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(defaultClient); + V1beta1TokenReview body = new V1beta1TokenReview(); // V1beta1TokenReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1TokenReview result = apiInstance.createTokenReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthenticationV1beta1Api#createTokenReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -66,9 +75,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -80,27 +97,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthenticationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthenticationV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthenticationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthenticationV1beta1Api apiInstance = new AuthenticationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthenticationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -117,6 +143,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuthorizationApi.md b/kubernetes/docs/AuthorizationApi.md index 22665a77f2..fc9c2b1c66 100644 --- a/kubernetes/docs/AuthorizationApi.md +++ b/kubernetes/docs/AuthorizationApi.md @@ -1,6 +1,6 @@ # AuthorizationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationApi apiInstance = new AuthorizationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationApi apiInstance = new AuthorizationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuthorizationV1Api.md b/kubernetes/docs/AuthorizationV1Api.md index 16da54f6e0..8f898a0b0c 100644 --- a/kubernetes/docs/AuthorizationV1Api.md +++ b/kubernetes/docs/AuthorizationV1Api.md @@ -1,6 +1,6 @@ # AuthorizationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,32 +22,41 @@ create a LocalSubjectAccessReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1Api apiInstance = new AuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1LocalSubjectAccessReview body = new V1LocalSubjectAccessReview(); // V1LocalSubjectAccessReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1LocalSubjectAccessReview result = apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1Api#createNamespacedLocalSubjectAccessReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1Api apiInstance = new AuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1LocalSubjectAccessReview body = new V1LocalSubjectAccessReview(); // V1LocalSubjectAccessReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1LocalSubjectAccessReview result = apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1Api#createNamespacedLocalSubjectAccessReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -71,9 +80,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createSelfSubjectAccessReview** > V1SelfSubjectAccessReview createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty) @@ -85,31 +102,40 @@ create a SelfSubjectAccessReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1Api apiInstance = new AuthorizationV1Api(); -V1SelfSubjectAccessReview body = new V1SelfSubjectAccessReview(); // V1SelfSubjectAccessReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1SelfSubjectAccessReview result = apiInstance.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1Api#createSelfSubjectAccessReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1Api apiInstance = new AuthorizationV1Api(defaultClient); + V1SelfSubjectAccessReview body = new V1SelfSubjectAccessReview(); // V1SelfSubjectAccessReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1SelfSubjectAccessReview result = apiInstance.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1Api#createSelfSubjectAccessReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -132,9 +158,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createSelfSubjectRulesReview** > V1SelfSubjectRulesReview createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty) @@ -146,31 +180,40 @@ create a SelfSubjectRulesReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1Api apiInstance = new AuthorizationV1Api(); -V1SelfSubjectRulesReview body = new V1SelfSubjectRulesReview(); // V1SelfSubjectRulesReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1SelfSubjectRulesReview result = apiInstance.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1Api#createSelfSubjectRulesReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1Api apiInstance = new AuthorizationV1Api(defaultClient); + V1SelfSubjectRulesReview body = new V1SelfSubjectRulesReview(); // V1SelfSubjectRulesReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1SelfSubjectRulesReview result = apiInstance.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1Api#createSelfSubjectRulesReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -193,9 +236,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createSubjectAccessReview** > V1SubjectAccessReview createSubjectAccessReview(body, dryRun, fieldManager, pretty) @@ -207,31 +258,40 @@ create a SubjectAccessReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1Api apiInstance = new AuthorizationV1Api(); -V1SubjectAccessReview body = new V1SubjectAccessReview(); // V1SubjectAccessReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1SubjectAccessReview result = apiInstance.createSubjectAccessReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1Api#createSubjectAccessReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1Api apiInstance = new AuthorizationV1Api(defaultClient); + V1SubjectAccessReview body = new V1SubjectAccessReview(); // V1SubjectAccessReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1SubjectAccessReview result = apiInstance.createSubjectAccessReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1Api#createSubjectAccessReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -254,9 +314,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -268,27 +336,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1Api apiInstance = new AuthorizationV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1Api apiInstance = new AuthorizationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -305,6 +382,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AuthorizationV1beta1Api.md b/kubernetes/docs/AuthorizationV1beta1Api.md index 259de9cb72..0838e8e5d9 100644 --- a/kubernetes/docs/AuthorizationV1beta1Api.md +++ b/kubernetes/docs/AuthorizationV1beta1Api.md @@ -1,6 +1,6 @@ # AuthorizationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -22,32 +22,41 @@ create a LocalSubjectAccessReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1LocalSubjectAccessReview body = new V1beta1LocalSubjectAccessReview(); // V1beta1LocalSubjectAccessReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1LocalSubjectAccessReview result = apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1beta1Api#createNamespacedLocalSubjectAccessReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1LocalSubjectAccessReview body = new V1beta1LocalSubjectAccessReview(); // V1beta1LocalSubjectAccessReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1LocalSubjectAccessReview result = apiInstance.createNamespacedLocalSubjectAccessReview(namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1beta1Api#createNamespacedLocalSubjectAccessReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -71,9 +80,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createSelfSubjectAccessReview** > V1beta1SelfSubjectAccessReview createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty) @@ -85,31 +102,40 @@ create a SelfSubjectAccessReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(); -V1beta1SelfSubjectAccessReview body = new V1beta1SelfSubjectAccessReview(); // V1beta1SelfSubjectAccessReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1SelfSubjectAccessReview result = apiInstance.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1beta1Api#createSelfSubjectAccessReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(defaultClient); + V1beta1SelfSubjectAccessReview body = new V1beta1SelfSubjectAccessReview(); // V1beta1SelfSubjectAccessReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1SelfSubjectAccessReview result = apiInstance.createSelfSubjectAccessReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1beta1Api#createSelfSubjectAccessReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -132,9 +158,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createSelfSubjectRulesReview** > V1beta1SelfSubjectRulesReview createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty) @@ -146,31 +180,40 @@ create a SelfSubjectRulesReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(); -V1beta1SelfSubjectRulesReview body = new V1beta1SelfSubjectRulesReview(); // V1beta1SelfSubjectRulesReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1SelfSubjectRulesReview result = apiInstance.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1beta1Api#createSelfSubjectRulesReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(defaultClient); + V1beta1SelfSubjectRulesReview body = new V1beta1SelfSubjectRulesReview(); // V1beta1SelfSubjectRulesReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1SelfSubjectRulesReview result = apiInstance.createSelfSubjectRulesReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1beta1Api#createSelfSubjectRulesReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -193,9 +236,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createSubjectAccessReview** > V1beta1SubjectAccessReview createSubjectAccessReview(body, dryRun, fieldManager, pretty) @@ -207,31 +258,40 @@ create a SubjectAccessReview ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(); -V1beta1SubjectAccessReview body = new V1beta1SubjectAccessReview(); // V1beta1SubjectAccessReview | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1SubjectAccessReview result = apiInstance.createSubjectAccessReview(body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1beta1Api#createSubjectAccessReview"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(defaultClient); + V1beta1SubjectAccessReview body = new V1beta1SubjectAccessReview(); // V1beta1SubjectAccessReview | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1SubjectAccessReview result = apiInstance.createSubjectAccessReview(body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1beta1Api#createSubjectAccessReview"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -254,9 +314,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -268,27 +336,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AuthorizationV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AuthorizationV1beta1Api apiInstance = new AuthorizationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AuthorizationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -305,6 +382,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AutoscalingApi.md b/kubernetes/docs/AutoscalingApi.md index 1ad2aebcf2..d7537dc682 100644 --- a/kubernetes/docs/AutoscalingApi.md +++ b/kubernetes/docs/AutoscalingApi.md @@ -1,6 +1,6 @@ # AutoscalingApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingApi apiInstance = new AutoscalingApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingApi apiInstance = new AutoscalingApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AutoscalingV1Api.md b/kubernetes/docs/AutoscalingV1Api.md index b84064c8c8..001877bbc1 100644 --- a/kubernetes/docs/AutoscalingV1Api.md +++ b/kubernetes/docs/AutoscalingV1Api.md @@ -1,6 +1,6 @@ # AutoscalingV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create a HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#createNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#createNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete a HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#deleteNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#deleteNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listHorizontalPodAutoscalerForAllNamespaces** -> V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#listHorizontalPodAutoscalerForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#listHorizontalPodAutoscalerForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedHorizontalPodAutoscaler** -> V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#listNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#listNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#patchNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#patchNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedHorizontalPodAutoscalerStatus** > V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#patchNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#patchNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#readNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#readNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedHorizontalPodAutoscalerStatus** > V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#readNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#readNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedHorizontalPodAutoscaler** > V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#replaceNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#replaceNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedHorizontalPodAutoscalerStatus** > V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV1Api apiInstance = new AutoscalingV1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV1Api#replaceNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV1Api apiInstance = new AutoscalingV1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1HorizontalPodAutoscaler body = new V1HorizontalPodAutoscaler(); // V1HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV1Api#replaceNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AutoscalingV2beta1Api.md b/kubernetes/docs/AutoscalingV2beta1Api.md index 72d8847844..a10e8db0c3 100644 --- a/kubernetes/docs/AutoscalingV2beta1Api.md +++ b/kubernetes/docs/AutoscalingV2beta1Api.md @@ -1,6 +1,6 @@ # AutoscalingV2beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create a HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#createNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#createNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete a HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#deleteNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#deleteNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listHorizontalPodAutoscalerForAllNamespaces** -> V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V2beta1HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#listHorizontalPodAutoscalerForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V2beta1HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#listHorizontalPodAutoscalerForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedHorizontalPodAutoscaler** -> V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V2beta1HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#listNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V2beta1HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#listNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedHorizontalPodAutoscaler** > V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#patchNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#patchNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedHorizontalPodAutoscalerStatus** > V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#patchNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#patchNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedHorizontalPodAutoscaler** > V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#readNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#readNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedHorizontalPodAutoscalerStatus** > V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#readNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#readNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedHorizontalPodAutoscaler** > V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#replaceNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#replaceNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedHorizontalPodAutoscalerStatus** > V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2beta1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta1Api#replaceNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta1Api apiInstance = new AutoscalingV2beta1Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2beta1HorizontalPodAutoscaler body = new V2beta1HorizontalPodAutoscaler(); // V2beta1HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2beta1HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta1Api#replaceNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/AutoscalingV2beta2Api.md b/kubernetes/docs/AutoscalingV2beta2Api.md index 7bebc84ce4..fdd5094f8b 100644 --- a/kubernetes/docs/AutoscalingV2beta2Api.md +++ b/kubernetes/docs/AutoscalingV2beta2Api.md @@ -1,6 +1,6 @@ # AutoscalingV2beta2Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create a HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2beta2HorizontalPodAutoscaler body = new V2beta2HorizontalPodAutoscaler(); // V2beta2HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#createNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2beta2HorizontalPodAutoscaler body = new V2beta2HorizontalPodAutoscaler(); // V2beta2HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.createNamespacedHorizontalPodAutoscaler(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#createNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedHorizontalPodAutoscaler** -> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#deleteCollectionNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedHorizontalPodAutoscaler** -> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete a HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#deleteNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#deleteNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listHorizontalPodAutoscalerForAllNamespaces** -> V2beta2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V2beta2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V2beta2HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#listHorizontalPodAutoscalerForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V2beta2HorizontalPodAutoscalerList result = apiInstance.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#listHorizontalPodAutoscalerForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedHorizontalPodAutoscaler** -> V2beta2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V2beta2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V2beta2HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#listNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V2beta2HorizontalPodAutoscalerList result = apiInstance.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#listNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedHorizontalPodAutoscaler** > V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#patchNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#patchNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedHorizontalPodAutoscalerStatus** > V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#patchNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.patchNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#patchNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the HorizontalPodAutoscaler | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedHorizontalPodAutoscaler** > V2beta2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#readNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscaler(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#readNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedHorizontalPodAutoscalerStatus** > V2beta2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#readNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.readNamespacedHorizontalPodAutoscalerStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#readNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedHorizontalPodAutoscaler** > V2beta2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2beta2HorizontalPodAutoscaler body = new V2beta2HorizontalPodAutoscaler(); // V2beta2HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#replaceNamespacedHorizontalPodAutoscaler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2beta2HorizontalPodAutoscaler body = new V2beta2HorizontalPodAutoscaler(); // V2beta2HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscaler(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#replaceNamespacedHorizontalPodAutoscaler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedHorizontalPodAutoscalerStatus** > V2beta2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified HorizontalPodAutoscaler ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.AutoscalingV2beta2Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(); -String name = "name_example"; // String | name of the HorizontalPodAutoscaler -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2beta2HorizontalPodAutoscaler body = new V2beta2HorizontalPodAutoscaler(); // V2beta2HorizontalPodAutoscaler | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2beta2HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling AutoscalingV2beta2Api#replaceNamespacedHorizontalPodAutoscalerStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.AutoscalingV2beta2Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + AutoscalingV2beta2Api apiInstance = new AutoscalingV2beta2Api(defaultClient); + String name = "name_example"; // String | name of the HorizontalPodAutoscaler + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2beta2HorizontalPodAutoscaler body = new V2beta2HorizontalPodAutoscaler(); // V2beta2HorizontalPodAutoscaler | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2beta2HorizontalPodAutoscaler result = apiInstance.replaceNamespacedHorizontalPodAutoscalerStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AutoscalingV2beta2Api#replaceNamespacedHorizontalPodAutoscalerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/BatchApi.md b/kubernetes/docs/BatchApi.md index 98b1dce4b9..72223096a3 100644 --- a/kubernetes/docs/BatchApi.md +++ b/kubernetes/docs/BatchApi.md @@ -1,6 +1,6 @@ # BatchApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchApi apiInstance = new BatchApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchApi apiInstance = new BatchApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/BatchV1Api.md b/kubernetes/docs/BatchV1Api.md index c05cfb6a65..674827bc03 100644 --- a/kubernetes/docs/BatchV1Api.md +++ b/kubernetes/docs/BatchV1Api.md @@ -1,6 +1,6 @@ # BatchV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create a Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Job body = new V1Job(); // V1Job | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Job result = apiInstance.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#createNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Job body = new V1Job(); // V1Job | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Job result = apiInstance.createNamespacedJob(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#createNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedJob** -> V1Status deleteCollectionNamespacedJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#deleteCollectionNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#deleteCollectionNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedJob** -> V1Status deleteNamespacedJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete a Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#deleteNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#deleteNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listJobForAllNamespaces** -> V1JobList listJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1JobList listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1JobList result = apiInstance.listJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#listJobForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1JobList result = apiInstance.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#listJobForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedJob** -> V1JobList listNamespacedJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1JobList listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1JobList result = apiInstance.listNamespacedJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#listNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1JobList result = apiInstance.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#listNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedJob** > V1Job patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Job result = apiInstance.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#patchNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Job result = apiInstance.patchNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#patchNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedJobStatus** > V1Job patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Job result = apiInstance.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#patchNamespacedJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Job result = apiInstance.patchNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#patchNamespacedJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Job | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedJob** > V1Job readNamespacedJob(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Job result = apiInstance.readNamespacedJob(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#readNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Job result = apiInstance.readNamespacedJob(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#readNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedJobStatus** > V1Job readNamespacedJobStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Job result = apiInstance.readNamespacedJobStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#readNamespacedJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Job result = apiInstance.readNamespacedJobStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#readNamespacedJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedJob** > V1Job replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Job body = new V1Job(); // V1Job | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Job result = apiInstance.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#replaceNamespacedJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Job body = new V1Job(); // V1Job | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Job result = apiInstance.replaceNamespacedJob(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#replaceNamespacedJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedJobStatus** > V1Job replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified Job ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1Api apiInstance = new BatchV1Api(); -String name = "name_example"; // String | name of the Job -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Job body = new V1Job(); // V1Job | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Job result = apiInstance.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1Api#replaceNamespacedJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1Api apiInstance = new BatchV1Api(defaultClient); + String name = "name_example"; // String | name of the Job + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Job body = new V1Job(); // V1Job | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Job result = apiInstance.replaceNamespacedJobStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1Api#replaceNamespacedJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/BatchV1beta1Api.md b/kubernetes/docs/BatchV1beta1Api.md index 1303658406..083e4f5372 100644 --- a/kubernetes/docs/BatchV1beta1Api.md +++ b/kubernetes/docs/BatchV1beta1Api.md @@ -1,6 +1,6 @@ # BatchV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create a CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CronJob result = apiInstance.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#createNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CronJob result = apiInstance.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#createNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#deleteCollectionNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#deleteCollectionNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedCronJob** -> V1Status deleteNamespacedCronJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete a CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#deleteNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#deleteNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listCronJobForAllNamespaces** -> V1beta1CronJobList listCronJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1CronJobList listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1CronJobList result = apiInstance.listCronJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#listCronJobForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1CronJobList result = apiInstance.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#listCronJobForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedCronJob** -> V1beta1CronJobList listNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1CronJobList listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1CronJobList result = apiInstance.listNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#listNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1CronJobList result = apiInstance.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#listNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCronJob** > V1beta1CronJob patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CronJob result = apiInstance.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#patchNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CronJob result = apiInstance.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#patchNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCronJobStatus** > V1beta1CronJob patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CronJob result = apiInstance.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#patchNamespacedCronJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CronJob result = apiInstance.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#patchNamespacedCronJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedCronJob** > V1beta1CronJob readNamespacedCronJob(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#readNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#readNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedCronJobStatus** > V1beta1CronJob readNamespacedCronJobStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#readNamespacedCronJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#readNamespacedCronJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedCronJob** > V1beta1CronJob replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CronJob result = apiInstance.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#replaceNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CronJob result = apiInstance.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#replaceNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedCronJobStatus** > V1beta1CronJob replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV1beta1Api apiInstance = new BatchV1beta1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CronJob result = apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV1beta1Api#replaceNamespacedCronJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV1beta1Api apiInstance = new BatchV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1CronJob body = new V1beta1CronJob(); // V1beta1CronJob | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CronJob result = apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV1beta1Api#replaceNamespacedCronJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/BatchV2alpha1Api.md b/kubernetes/docs/BatchV2alpha1Api.md index ce2d012e39..fcf70d5c8d 100644 --- a/kubernetes/docs/BatchV2alpha1Api.md +++ b/kubernetes/docs/BatchV2alpha1Api.md @@ -1,6 +1,6 @@ # BatchV2alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create a CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2alpha1CronJob result = apiInstance.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#createNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2alpha1CronJob result = apiInstance.createNamespacedCronJob(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#createNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedCronJob** -> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#deleteCollectionNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#deleteCollectionNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedCronJob** -> V1Status deleteNamespacedCronJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete a CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#deleteNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#deleteNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listCronJobForAllNamespaces** -> V2alpha1CronJobList listCronJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V2alpha1CronJobList listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V2alpha1CronJobList result = apiInstance.listCronJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#listCronJobForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V2alpha1CronJobList result = apiInstance.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#listCronJobForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedCronJob** -> V2alpha1CronJobList listNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V2alpha1CronJobList listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V2alpha1CronJobList result = apiInstance.listNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#listNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V2alpha1CronJobList result = apiInstance.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#listNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCronJob** > V2alpha1CronJob patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V2alpha1CronJob result = apiInstance.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V2alpha1CronJob result = apiInstance.patchNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCronJobStatus** > V2alpha1CronJob patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V2alpha1CronJob result = apiInstance.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedCronJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V2alpha1CronJob result = apiInstance.patchNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#patchNamespacedCronJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CronJob | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedCronJob** > V2alpha1CronJob readNamespacedCronJob(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V2alpha1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V2alpha1CronJob result = apiInstance.readNamespacedCronJob(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedCronJobStatus** > V2alpha1CronJob readNamespacedCronJobStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V2alpha1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedCronJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V2alpha1CronJob result = apiInstance.readNamespacedCronJobStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#readNamespacedCronJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedCronJob** > V2alpha1CronJob replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2alpha1CronJob result = apiInstance.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedCronJob"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2alpha1CronJob result = apiInstance.replaceNamespacedCronJob(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedCronJob"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedCronJobStatus** > V2alpha1CronJob replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified CronJob ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.BatchV2alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(); -String name = "name_example"; // String | name of the CronJob -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V2alpha1CronJob result = apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedCronJobStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.BatchV2alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + BatchV2alpha1Api apiInstance = new BatchV2alpha1Api(defaultClient); + String name = "name_example"; // String | name of the CronJob + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V2alpha1CronJob body = new V2alpha1CronJob(); // V2alpha1CronJob | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V2alpha1CronJob result = apiInstance.replaceNamespacedCronJobStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling BatchV2alpha1Api#replaceNamespacedCronJobStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CertificatesApi.md b/kubernetes/docs/CertificatesApi.md index 80cc73866e..ddcf9bd590 100644 --- a/kubernetes/docs/CertificatesApi.md +++ b/kubernetes/docs/CertificatesApi.md @@ -1,6 +1,6 @@ # CertificatesApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesApi apiInstance = new CertificatesApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesApi apiInstance = new CertificatesApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CertificatesV1beta1Api.md b/kubernetes/docs/CertificatesV1beta1Api.md index 8b64f04fec..d5f7462890 100644 --- a/kubernetes/docs/CertificatesV1beta1Api.md +++ b/kubernetes/docs/CertificatesV1beta1Api.md @@ -1,6 +1,6 @@ # CertificatesV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,31 +29,40 @@ create a CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CertificateSigningRequest result = apiInstance.createCertificateSigningRequest(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#createCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CertificateSigningRequest result = apiInstance.createCertificateSigningRequest(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#createCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -76,12 +85,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCertificateSigningRequest** -> V1Status deleteCertificateSigningRequest(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -90,34 +107,43 @@ delete a CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteCertificateSigningRequest(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#deleteCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -127,11 +153,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -143,12 +169,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionCertificateSigningRequest** -> V1Status deleteCollectionCertificateSigningRequest(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -157,35 +190,50 @@ delete collection of CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionCertificateSigningRequest(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#deleteCollectionCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#deleteCollectionCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -194,13 +242,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -212,9 +266,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -226,27 +286,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -263,12 +332,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listCertificateSigningRequest** -> V1beta1CertificateSigningRequestList listCertificateSigningRequest(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1CertificateSigningRequestList listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -277,35 +352,45 @@ list or watch objects of kind CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1CertificateSigningRequestList result = apiInstance.listCertificateSigningRequest(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#listCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1CertificateSigningRequestList result = apiInstance.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#listCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -314,6 +399,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -332,9 +418,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchCertificateSigningRequest** > V1beta1CertificateSigningRequest patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, force) @@ -346,33 +438,42 @@ partially update the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#patchCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequest(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#patchCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -381,7 +482,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -400,6 +501,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchCertificateSigningRequestStatus** > V1beta1CertificateSigningRequest patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, force) @@ -411,33 +518,42 @@ partially update status of the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#patchCertificateSigningRequestStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CertificateSigningRequest result = apiInstance.patchCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#patchCertificateSigningRequestStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -446,7 +562,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CertificateSigningRequest | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -465,6 +581,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readCertificateSigningRequest** > V1beta1CertificateSigningRequest readCertificateSigningRequest(name, pretty, exact, export) @@ -476,31 +598,40 @@ read the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1CertificateSigningRequest result = apiInstance.readCertificateSigningRequest(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#readCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1CertificateSigningRequest result = apiInstance.readCertificateSigningRequest(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#readCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -523,9 +654,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readCertificateSigningRequestStatus** > V1beta1CertificateSigningRequest readCertificateSigningRequestStatus(name, pretty) @@ -537,29 +674,38 @@ read status of the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#readCertificateSigningRequestStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1CertificateSigningRequest result = apiInstance.readCertificateSigningRequestStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#readCertificateSigningRequestStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -580,9 +726,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceCertificateSigningRequest** > V1beta1CertificateSigningRequest replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager) @@ -594,32 +746,41 @@ replace the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#replaceCertificateSigningRequest"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequest(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceCertificateSigningRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -643,9 +804,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceCertificateSigningRequestApproval** > V1beta1CertificateSigningRequest replaceCertificateSigningRequestApproval(name, body, dryRun, fieldManager, pretty) @@ -657,32 +825,41 @@ replace approval of the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestApproval(name, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#replaceCertificateSigningRequestApproval"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestApproval(name, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceCertificateSigningRequestApproval"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -706,9 +883,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceCertificateSigningRequestStatus** > V1beta1CertificateSigningRequest replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager) @@ -720,32 +904,41 @@ replace status of the specified CertificateSigningRequest ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CertificatesV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(); -String name = "name_example"; // String | name of the CertificateSigningRequest -V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CertificatesV1beta1Api#replaceCertificateSigningRequestStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CertificatesV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CertificatesV1beta1Api apiInstance = new CertificatesV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CertificateSigningRequest + V1beta1CertificateSigningRequest body = new V1beta1CertificateSigningRequest(); // V1beta1CertificateSigningRequest | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CertificateSigningRequest result = apiInstance.replaceCertificateSigningRequestStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CertificatesV1beta1Api#replaceCertificateSigningRequestStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -769,6 +962,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoordinationApi.md b/kubernetes/docs/CoordinationApi.md index 794bd3a53f..9aaf6e5cac 100644 --- a/kubernetes/docs/CoordinationApi.md +++ b/kubernetes/docs/CoordinationApi.md @@ -1,6 +1,6 @@ # CoordinationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationApi apiInstance = new CoordinationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationApi apiInstance = new CoordinationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoordinationV1Api.md b/kubernetes/docs/CoordinationV1Api.md index 7c7e88e16c..e0ff8c4fd9 100644 --- a/kubernetes/docs/CoordinationV1Api.md +++ b/kubernetes/docs/CoordinationV1Api.md @@ -1,6 +1,6 @@ # CoordinationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,32 +26,41 @@ create a Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Lease body = new V1Lease(); // V1Lease | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Lease result = apiInstance.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#createNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Lease body = new V1Lease(); // V1Lease | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Lease result = apiInstance.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#createNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedLease** -> V1Status deleteCollectionNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -89,36 +106,51 @@ delete collection of Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#deleteCollectionNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#deleteCollectionNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,13 +160,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -146,12 +184,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedLease** -> V1Status deleteNamespacedLease(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -160,35 +204,44 @@ delete a Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedLease(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#deleteNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#deleteNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,11 +252,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -215,9 +268,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -229,27 +289,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -266,12 +335,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listLeaseForAllNamespaces** -> V1LeaseList listLeaseForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1LeaseList listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -280,35 +355,45 @@ list or watch objects of kind Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1LeaseList result = apiInstance.listLeaseForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#listLeaseForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1LeaseList result = apiInstance.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#listLeaseForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -316,6 +401,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -335,12 +421,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedLease** -> V1LeaseList listNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1LeaseList listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -349,36 +441,46 @@ list or watch objects of kind Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1LeaseList result = apiInstance.listNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#listNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1LeaseList result = apiInstance.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#listNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -388,6 +490,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -406,9 +509,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedLease** > V1Lease patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -420,34 +529,43 @@ partially update the specified Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Lease result = apiInstance.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#patchNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Lease result = apiInstance.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#patchNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -457,7 +575,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -476,6 +594,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedLease** > V1Lease readNamespacedLease(name, namespace, pretty, exact, export) @@ -487,32 +611,41 @@ read the specified Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Lease result = apiInstance.readNamespacedLease(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#readNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Lease result = apiInstance.readNamespacedLease(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#readNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,9 +669,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedLease** > V1Lease replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager) @@ -550,33 +689,42 @@ replace the specified Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1Api apiInstance = new CoordinationV1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Lease body = new V1Lease(); // V1Lease | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Lease result = apiInstance.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1Api#replaceNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1Api apiInstance = new CoordinationV1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Lease body = new V1Lease(); // V1Lease | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Lease result = apiInstance.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1Api#replaceNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -601,6 +749,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoordinationV1beta1Api.md b/kubernetes/docs/CoordinationV1beta1Api.md index f216e2085b..6477bad917 100644 --- a/kubernetes/docs/CoordinationV1beta1Api.md +++ b/kubernetes/docs/CoordinationV1beta1Api.md @@ -1,6 +1,6 @@ # CoordinationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,32 +26,41 @@ create a Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Lease body = new V1beta1Lease(); // V1beta1Lease | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1Lease result = apiInstance.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#createNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Lease body = new V1beta1Lease(); // V1beta1Lease | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1Lease result = apiInstance.createNamespacedLease(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#createNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedLease** -> V1Status deleteCollectionNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -89,36 +106,51 @@ delete collection of Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#deleteCollectionNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#deleteCollectionNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,13 +160,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -146,12 +184,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedLease** -> V1Status deleteNamespacedLease(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -160,35 +204,44 @@ delete a Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedLease(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#deleteNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#deleteNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,11 +252,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -215,9 +268,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -229,27 +289,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -266,12 +335,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listLeaseForAllNamespaces** -> V1beta1LeaseList listLeaseForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1LeaseList listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -280,35 +355,45 @@ list or watch objects of kind Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1LeaseList result = apiInstance.listLeaseForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#listLeaseForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1LeaseList result = apiInstance.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#listLeaseForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -316,6 +401,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -335,12 +421,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedLease** -> V1beta1LeaseList listNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1LeaseList listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -349,36 +441,46 @@ list or watch objects of kind Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1LeaseList result = apiInstance.listNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#listNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1LeaseList result = apiInstance.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#listNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -388,6 +490,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -406,9 +509,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedLease** > V1beta1Lease patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -420,34 +529,43 @@ partially update the specified Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1Lease result = apiInstance.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#patchNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1Lease result = apiInstance.patchNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#patchNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -457,7 +575,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Lease | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -476,6 +594,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedLease** > V1beta1Lease readNamespacedLease(name, namespace, pretty, exact, export) @@ -487,32 +611,41 @@ read the specified Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1Lease result = apiInstance.readNamespacedLease(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#readNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1Lease result = apiInstance.readNamespacedLease(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#readNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,9 +669,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedLease** > V1beta1Lease replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager) @@ -550,33 +689,42 @@ replace the specified Lease ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoordinationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(); -String name = "name_example"; // String | name of the Lease -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Lease body = new V1beta1Lease(); // V1beta1Lease | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1Lease result = apiInstance.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoordinationV1beta1Api#replaceNamespacedLease"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoordinationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoordinationV1beta1Api apiInstance = new CoordinationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Lease + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Lease body = new V1beta1Lease(); // V1beta1Lease | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1Lease result = apiInstance.replaceNamespacedLease(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoordinationV1beta1Api#replaceNamespacedLease"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -601,6 +749,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoreApi.md b/kubernetes/docs/CoreApi.md index 0f3697b8d7..a869bb512c 100644 --- a/kubernetes/docs/CoreApi.md +++ b/kubernetes/docs/CoreApi.md @@ -1,6 +1,6 @@ # CoreApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get available API versions ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreApi apiInstance = new CoreApi(); -try { - V1APIVersions result = apiInstance.getAPIVersions(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreApi#getAPIVersions"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CoreApi apiInstance = new CoreApi(defaultClient); + try { + V1APIVersions result = apiInstance.getAPIVersions(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreApi#getAPIVersions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CoreV1Api.md b/kubernetes/docs/CoreV1Api.md index 55f8c011b8..4d69a56544 100644 --- a/kubernetes/docs/CoreV1Api.md +++ b/kubernetes/docs/CoreV1Api.md @@ -1,6 +1,6 @@ # CoreV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -215,30 +215,39 @@ connect DELETE requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectDeleteNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectDeleteNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -260,9 +269,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectDeleteNamespacedPodProxyWithPath** > String connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -274,31 +289,40 @@ connect DELETE requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectDeleteNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -321,9 +345,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectDeleteNamespacedServiceProxy** > String connectDeleteNamespacedServiceProxy(name, namespace, path) @@ -335,30 +365,39 @@ connect DELETE requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectDeleteNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectDeleteNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -380,9 +419,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectDeleteNamespacedServiceProxyWithPath** > String connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -394,31 +439,40 @@ connect DELETE requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectDeleteNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectDeleteNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -441,9 +495,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectDeleteNodeProxy** > String connectDeleteNodeProxy(name, path) @@ -455,29 +515,38 @@ connect DELETE requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectDeleteNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectDeleteNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectDeleteNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectDeleteNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -498,9 +567,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectDeleteNodeProxyWithPath** > String connectDeleteNodeProxyWithPath(name, path, path2) @@ -512,30 +587,39 @@ connect DELETE requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectDeleteNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectDeleteNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectDeleteNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectDeleteNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -557,9 +641,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedPodAttach** > String connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty) @@ -571,34 +661,43 @@ connect GET requests to attach of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodAttachOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String container = "container_example"; // String | The container in which to execute the command. Defaults to only container if there is only one container in the pod. -Boolean stderr = true; // Boolean | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. -Boolean stdin = true; // Boolean | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. -Boolean stdout = true; // Boolean | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. -Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. -try { - String result = apiInstance.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodAttach"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodAttachOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String container = "container_example"; // String | The container in which to execute the command. Defaults to only container if there is only one container in the pod. + Boolean stderr = true; // Boolean | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + Boolean stdin = true; // Boolean | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + Boolean stdout = true; // Boolean | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + try { + String result = apiInstance.connectGetNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodAttach"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -624,9 +723,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedPodExec** > String connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty) @@ -638,35 +743,44 @@ connect GET requests to exec of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodExecOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String command = "command_example"; // String | Command is the remote command to execute. argv array. Not executed within a shell. -String container = "container_example"; // String | Container in which to execute the command. Defaults to only container if there is only one container in the pod. -Boolean stderr = true; // Boolean | Redirect the standard error stream of the pod for this call. Defaults to true. -Boolean stdin = true; // Boolean | Redirect the standard input stream of the pod for this call. Defaults to false. -Boolean stdout = true; // Boolean | Redirect the standard output stream of the pod for this call. Defaults to true. -Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. -try { - String result = apiInstance.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodExec"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodExecOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String command = "command_example"; // String | Command is the remote command to execute. argv array. Not executed within a shell. + String container = "container_example"; // String | Container in which to execute the command. Defaults to only container if there is only one container in the pod. + Boolean stderr = true; // Boolean | Redirect the standard error stream of the pod for this call. Defaults to true. + Boolean stdin = true; // Boolean | Redirect the standard input stream of the pod for this call. Defaults to false. + Boolean stdout = true; // Boolean | Redirect the standard output stream of the pod for this call. Defaults to true. + Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + try { + String result = apiInstance.connectGetNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodExec"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -693,9 +807,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedPodPortforward** > String connectGetNamespacedPodPortforward(name, namespace, ports) @@ -707,30 +827,39 @@ connect GET requests to portforward of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodPortForwardOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -Integer ports = 56; // Integer | List of ports to forward Required when using WebSockets -try { - String result = apiInstance.connectGetNamespacedPodPortforward(name, namespace, ports); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodPortforward"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodPortForwardOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Integer ports = 56; // Integer | List of ports to forward Required when using WebSockets + try { + String result = apiInstance.connectGetNamespacedPodPortforward(name, namespace, ports); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodPortforward"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -752,9 +881,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedPodProxy** > String connectGetNamespacedPodProxy(name, namespace, path) @@ -766,30 +901,39 @@ connect GET requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectGetNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectGetNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -811,9 +955,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedPodProxyWithPath** > String connectGetNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -825,31 +975,40 @@ connect GET requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectGetNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -872,9 +1031,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedServiceProxy** > String connectGetNamespacedServiceProxy(name, namespace, path) @@ -886,30 +1051,39 @@ connect GET requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectGetNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectGetNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -931,9 +1105,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNamespacedServiceProxyWithPath** > String connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -945,31 +1125,40 @@ connect GET requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectGetNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -992,9 +1181,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNodeProxy** > String connectGetNodeProxy(name, path) @@ -1006,29 +1201,38 @@ connect GET requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectGetNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectGetNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1049,9 +1253,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectGetNodeProxyWithPath** > String connectGetNodeProxyWithPath(name, path, path2) @@ -1063,30 +1273,39 @@ connect GET requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectGetNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectGetNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectGetNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectGetNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1108,9 +1327,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectHeadNamespacedPodProxy** > String connectHeadNamespacedPodProxy(name, namespace, path) @@ -1122,30 +1347,39 @@ connect HEAD requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectHeadNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectHeadNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1167,9 +1401,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectHeadNamespacedPodProxyWithPath** > String connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -1181,31 +1421,40 @@ connect HEAD requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectHeadNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1228,9 +1477,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectHeadNamespacedServiceProxy** > String connectHeadNamespacedServiceProxy(name, namespace, path) @@ -1242,30 +1497,39 @@ connect HEAD requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectHeadNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectHeadNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1287,9 +1551,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectHeadNamespacedServiceProxyWithPath** > String connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -1301,31 +1571,40 @@ connect HEAD requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectHeadNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectHeadNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1348,9 +1627,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectHeadNodeProxy** > String connectHeadNodeProxy(name, path) @@ -1362,29 +1647,38 @@ connect HEAD requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectHeadNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectHeadNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectHeadNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectHeadNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1405,9 +1699,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectHeadNodeProxyWithPath** > String connectHeadNodeProxyWithPath(name, path, path2) @@ -1419,30 +1719,39 @@ connect HEAD requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectHeadNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectHeadNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectHeadNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectHeadNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1464,9 +1773,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectOptionsNamespacedPodProxy** > String connectOptionsNamespacedPodProxy(name, namespace, path) @@ -1478,30 +1793,39 @@ connect OPTIONS requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectOptionsNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectOptionsNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1523,9 +1847,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectOptionsNamespacedPodProxyWithPath** > String connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -1537,31 +1867,40 @@ connect OPTIONS requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectOptionsNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1584,9 +1923,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectOptionsNamespacedServiceProxy** > String connectOptionsNamespacedServiceProxy(name, namespace, path) @@ -1598,30 +1943,39 @@ connect OPTIONS requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectOptionsNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectOptionsNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1643,9 +1997,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectOptionsNamespacedServiceProxyWithPath** > String connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -1657,31 +2017,40 @@ connect OPTIONS requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectOptionsNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectOptionsNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1704,9 +2073,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectOptionsNodeProxy** > String connectOptionsNodeProxy(name, path) @@ -1718,29 +2093,38 @@ connect OPTIONS requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectOptionsNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectOptionsNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectOptionsNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectOptionsNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1761,9 +2145,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectOptionsNodeProxyWithPath** > String connectOptionsNodeProxyWithPath(name, path, path2) @@ -1775,30 +2165,39 @@ connect OPTIONS requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectOptionsNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectOptionsNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectOptionsNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectOptionsNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1820,9 +2219,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPatchNamespacedPodProxy** > String connectPatchNamespacedPodProxy(name, namespace, path) @@ -1834,30 +2239,39 @@ connect PATCH requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectPatchNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectPatchNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1879,9 +2293,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPatchNamespacedPodProxyWithPath** > String connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -1893,31 +2313,40 @@ connect PATCH requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectPatchNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1940,9 +2369,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPatchNamespacedServiceProxy** > String connectPatchNamespacedServiceProxy(name, namespace, path) @@ -1954,30 +2389,39 @@ connect PATCH requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectPatchNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectPatchNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1999,9 +2443,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPatchNamespacedServiceProxyWithPath** > String connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -2013,31 +2463,40 @@ connect PATCH requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectPatchNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPatchNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2060,9 +2519,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPatchNodeProxy** > String connectPatchNodeProxy(name, path) @@ -2074,29 +2539,38 @@ connect PATCH requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectPatchNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPatchNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectPatchNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPatchNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2117,9 +2591,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPatchNodeProxyWithPath** > String connectPatchNodeProxyWithPath(name, path, path2) @@ -2131,30 +2611,39 @@ connect PATCH requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectPatchNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPatchNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectPatchNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPatchNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2176,9 +2665,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedPodAttach** > String connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty) @@ -2190,34 +2685,43 @@ connect POST requests to attach of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodAttachOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String container = "container_example"; // String | The container in which to execute the command. Defaults to only container if there is only one container in the pod. -Boolean stderr = true; // Boolean | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. -Boolean stdin = true; // Boolean | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. -Boolean stdout = true; // Boolean | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. -Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. -try { - String result = apiInstance.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodAttach"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodAttachOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String container = "container_example"; // String | The container in which to execute the command. Defaults to only container if there is only one container in the pod. + Boolean stderr = true; // Boolean | Stderr if true indicates that stderr is to be redirected for the attach call. Defaults to true. + Boolean stdin = true; // Boolean | Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. + Boolean stdout = true; // Boolean | Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. + Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. + try { + String result = apiInstance.connectPostNamespacedPodAttach(name, namespace, container, stderr, stdin, stdout, tty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodAttach"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2243,9 +2747,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedPodExec** > String connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty) @@ -2257,35 +2767,44 @@ connect POST requests to exec of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodExecOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String command = "command_example"; // String | Command is the remote command to execute. argv array. Not executed within a shell. -String container = "container_example"; // String | Container in which to execute the command. Defaults to only container if there is only one container in the pod. -Boolean stderr = true; // Boolean | Redirect the standard error stream of the pod for this call. Defaults to true. -Boolean stdin = true; // Boolean | Redirect the standard input stream of the pod for this call. Defaults to false. -Boolean stdout = true; // Boolean | Redirect the standard output stream of the pod for this call. Defaults to true. -Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. -try { - String result = apiInstance.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodExec"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodExecOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String command = "command_example"; // String | Command is the remote command to execute. argv array. Not executed within a shell. + String container = "container_example"; // String | Container in which to execute the command. Defaults to only container if there is only one container in the pod. + Boolean stderr = true; // Boolean | Redirect the standard error stream of the pod for this call. Defaults to true. + Boolean stdin = true; // Boolean | Redirect the standard input stream of the pod for this call. Defaults to false. + Boolean stdout = true; // Boolean | Redirect the standard output stream of the pod for this call. Defaults to true. + Boolean tty = true; // Boolean | TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. + try { + String result = apiInstance.connectPostNamespacedPodExec(name, namespace, command, container, stderr, stdin, stdout, tty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodExec"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2312,9 +2831,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedPodPortforward** > String connectPostNamespacedPodPortforward(name, namespace, ports) @@ -2326,30 +2851,39 @@ connect POST requests to portforward of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodPortForwardOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -Integer ports = 56; // Integer | List of ports to forward Required when using WebSockets -try { - String result = apiInstance.connectPostNamespacedPodPortforward(name, namespace, ports); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodPortforward"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodPortForwardOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Integer ports = 56; // Integer | List of ports to forward Required when using WebSockets + try { + String result = apiInstance.connectPostNamespacedPodPortforward(name, namespace, ports); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodPortforward"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2371,9 +2905,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedPodProxy** > String connectPostNamespacedPodProxy(name, namespace, path) @@ -2385,30 +2925,39 @@ connect POST requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectPostNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectPostNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2430,9 +2979,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedPodProxyWithPath** > String connectPostNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -2444,31 +2999,40 @@ connect POST requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectPostNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2491,9 +3055,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedServiceProxy** > String connectPostNamespacedServiceProxy(name, namespace, path) @@ -2505,30 +3075,39 @@ connect POST requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectPostNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectPostNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2550,9 +3129,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNamespacedServiceProxyWithPath** > String connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -2564,31 +3149,40 @@ connect POST requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectPostNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2611,9 +3205,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNodeProxy** > String connectPostNodeProxy(name, path) @@ -2625,29 +3225,38 @@ connect POST requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectPostNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectPostNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2668,9 +3277,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPostNodeProxyWithPath** > String connectPostNodeProxyWithPath(name, path, path2) @@ -2682,30 +3297,39 @@ connect POST requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectPostNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPostNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectPostNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPostNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2727,9 +3351,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPutNamespacedPodProxy** > String connectPutNamespacedPodProxy(name, namespace, path) @@ -2741,30 +3371,39 @@ connect PUT requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectPutNamespacedPodProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPutNamespacedPodProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectPutNamespacedPodProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPutNamespacedPodProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2786,9 +3425,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPutNamespacedPodProxyWithPath** > String connectPutNamespacedPodProxyWithPath(name, namespace, path, path2) @@ -2800,31 +3445,40 @@ connect PUT requests to proxy of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. -try { - String result = apiInstance.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPutNamespacedPodProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to pod. + try { + String result = apiInstance.connectPutNamespacedPodProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPutNamespacedPodProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2847,9 +3501,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPutNamespacedServiceProxy** > String connectPutNamespacedServiceProxy(name, namespace, path) @@ -2861,30 +3521,39 @@ connect PUT requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectPutNamespacedServiceProxy(name, namespace, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPutNamespacedServiceProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectPutNamespacedServiceProxy(name, namespace, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPutNamespacedServiceProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2906,9 +3575,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPutNamespacedServiceProxyWithPath** > String connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2) @@ -2920,31 +3595,40 @@ connect PUT requests to proxy of Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceProxyOptions -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. -try { - String result = apiInstance.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPutNamespacedServiceProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceProxyOptions + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. + try { + String result = apiInstance.connectPutNamespacedServiceProxyWithPath(name, namespace, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPutNamespacedServiceProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2967,9 +3651,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPutNodeProxy** > String connectPutNodeProxy(name, path) @@ -2981,29 +3671,38 @@ connect PUT requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectPutNodeProxy(name, path); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPutNodeProxy"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectPutNodeProxy(name, path); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPutNodeProxy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3024,9 +3723,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **connectPutNodeProxyWithPath** > String connectPutNodeProxyWithPath(name, path, path2) @@ -3038,30 +3743,39 @@ connect PUT requests to proxy of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the NodeProxyOptions -String path = "path_example"; // String | path to the resource -String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. -try { - String result = apiInstance.connectPutNodeProxyWithPath(name, path, path2); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#connectPutNodeProxyWithPath"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the NodeProxyOptions + String path = "path_example"; // String | path to the resource + String path2 = "path_example"; // String | Path is the URL path to use for the current proxy request to node. + try { + String result = apiInstance.connectPutNodeProxyWithPath(name, path, path2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#connectPutNodeProxyWithPath"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3083,9 +3797,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: */* +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **createNamespace** > V1Namespace createNamespace(body, pretty, dryRun, fieldManager) @@ -3097,31 +3817,40 @@ create a Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -V1Namespace body = new V1Namespace(); // V1Namespace | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Namespace result = apiInstance.createNamespace(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespace"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + V1Namespace body = new V1Namespace(); // V1Namespace | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Namespace result = apiInstance.createNamespace(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3144,9 +3873,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedBinding** > V1Binding createNamespacedBinding(namespace, body, dryRun, fieldManager, pretty) @@ -3158,32 +3895,41 @@ create a Binding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Binding body = new V1Binding(); // V1Binding | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Binding result = apiInstance.createNamespacedBinding(namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedBinding"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Binding body = new V1Binding(); // V1Binding | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Binding result = apiInstance.createNamespacedBinding(namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3207,9 +3953,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedConfigMap** > V1ConfigMap createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager) @@ -3221,32 +3975,41 @@ create a ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ConfigMap body = new V1ConfigMap(); // V1ConfigMap | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ConfigMap result = apiInstance.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ConfigMap body = new V1ConfigMap(); // V1ConfigMap | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ConfigMap result = apiInstance.createNamespacedConfigMap(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3270,9 +4033,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedEndpoints** > V1Endpoints createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager) @@ -3284,32 +4055,41 @@ create Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Endpoints body = new V1Endpoints(); // V1Endpoints | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Endpoints result = apiInstance.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Endpoints body = new V1Endpoints(); // V1Endpoints | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Endpoints result = apiInstance.createNamespacedEndpoints(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3333,9 +4113,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedEvent** > V1Event createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager) @@ -3347,32 +4135,41 @@ create an Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Event body = new V1Event(); // V1Event | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Event result = apiInstance.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Event body = new V1Event(); // V1Event | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Event result = apiInstance.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3396,9 +4193,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedLimitRange** > V1LimitRange createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager) @@ -3410,32 +4215,41 @@ create a LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1LimitRange body = new V1LimitRange(); // V1LimitRange | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1LimitRange result = apiInstance.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1LimitRange body = new V1LimitRange(); // V1LimitRange | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1LimitRange result = apiInstance.createNamespacedLimitRange(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3459,9 +4273,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager) @@ -3473,32 +4295,41 @@ create a PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PersistentVolumeClaim result = apiInstance.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PersistentVolumeClaim result = apiInstance.createNamespacedPersistentVolumeClaim(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3522,9 +4353,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedPod** > V1Pod createNamespacedPod(namespace, body, pretty, dryRun, fieldManager) @@ -3536,32 +4375,41 @@ create a Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Pod body = new V1Pod(); // V1Pod | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Pod result = apiInstance.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Pod body = new V1Pod(); // V1Pod | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Pod result = apiInstance.createNamespacedPod(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3585,9 +4433,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedPodBinding** > V1Binding createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, pretty) @@ -3599,33 +4455,42 @@ create binding of a Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Binding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Binding body = new V1Binding(); // V1Binding | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Binding result = apiInstance.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedPodBinding"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Binding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Binding body = new V1Binding(); // V1Binding | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Binding result = apiInstance.createNamespacedPodBinding(name, namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedPodBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3650,9 +4515,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedPodEviction** > V1beta1Eviction createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, pretty) @@ -3664,33 +4537,42 @@ create eviction of a Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Eviction -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Eviction body = new V1beta1Eviction(); // V1beta1Eviction | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1Eviction result = apiInstance.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedPodEviction"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Eviction + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Eviction body = new V1beta1Eviction(); // V1beta1Eviction | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1Eviction result = apiInstance.createNamespacedPodEviction(name, namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedPodEviction"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3715,9 +4597,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedPodTemplate** > V1PodTemplate createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager) @@ -3729,32 +4619,41 @@ create a PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1PodTemplate body = new V1PodTemplate(); // V1PodTemplate | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PodTemplate result = apiInstance.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PodTemplate body = new V1PodTemplate(); // V1PodTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PodTemplate result = apiInstance.createNamespacedPodTemplate(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3778,9 +4677,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedReplicationController** > V1ReplicationController createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager) @@ -3792,32 +4699,41 @@ create a ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ReplicationController result = apiInstance.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ReplicationController result = apiInstance.createNamespacedReplicationController(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3841,9 +4757,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedResourceQuota** > V1ResourceQuota createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager) @@ -3855,32 +4779,41 @@ create a ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ResourceQuota result = apiInstance.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ResourceQuota result = apiInstance.createNamespacedResourceQuota(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3904,9 +4837,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedSecret** > V1Secret createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager) @@ -3918,32 +4859,41 @@ create a Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Secret body = new V1Secret(); // V1Secret | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Secret result = apiInstance.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Secret body = new V1Secret(); // V1Secret | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Secret result = apiInstance.createNamespacedSecret(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3967,9 +4917,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedService** > V1Service createNamespacedService(namespace, body, pretty, dryRun, fieldManager) @@ -3981,32 +4939,41 @@ create a Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Service body = new V1Service(); // V1Service | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Service result = apiInstance.createNamespacedService(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedService"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Service body = new V1Service(); // V1Service | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Service result = apiInstance.createNamespacedService(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4030,9 +4997,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedServiceAccount** > V1ServiceAccount createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager) @@ -4044,32 +5019,41 @@ create a ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ServiceAccount body = new V1ServiceAccount(); // V1ServiceAccount | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ServiceAccount result = apiInstance.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ServiceAccount body = new V1ServiceAccount(); // V1ServiceAccount | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ServiceAccount result = apiInstance.createNamespacedServiceAccount(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4093,9 +5077,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNode** > V1Node createNode(body, pretty, dryRun, fieldManager) @@ -4107,31 +5099,40 @@ create a Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -V1Node body = new V1Node(); // V1Node | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Node result = apiInstance.createNode(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + V1Node body = new V1Node(); // V1Node | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Node result = apiInstance.createNode(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4154,9 +5155,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createPersistentVolume** > V1PersistentVolume createPersistentVolume(body, pretty, dryRun, fieldManager) @@ -4168,31 +5177,40 @@ create a PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PersistentVolume result = apiInstance.createPersistentVolume(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#createPersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PersistentVolume result = apiInstance.createPersistentVolume(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#createPersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4215,12 +5233,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedConfigMap** -> V1Status deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4229,36 +5255,51 @@ delete collection of ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4268,13 +5309,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4286,12 +5333,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedEndpoints** -> V1Status deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4300,36 +5353,51 @@ delete collection of Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4339,13 +5407,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4357,12 +5431,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4371,36 +5451,51 @@ delete collection of Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4410,13 +5505,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4428,12 +5529,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedLimitRange** -> V1Status deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4442,36 +5549,51 @@ delete collection of LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4481,13 +5603,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4499,12 +5627,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedPersistentVolumeClaim** -> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4513,36 +5647,51 @@ delete collection of PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4552,13 +5701,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4570,12 +5725,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedPod** -> V1Status deleteCollectionNamespacedPod(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4584,36 +5745,51 @@ delete collection of Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedPod(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4623,13 +5799,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4641,12 +5823,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedPodTemplate** -> V1Status deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4655,36 +5843,51 @@ delete collection of PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4694,13 +5897,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4712,12 +5921,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedReplicationController** -> V1Status deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4726,36 +5941,51 @@ delete collection of ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4765,13 +5995,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4783,12 +6019,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedResourceQuota** -> V1Status deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4797,36 +6039,51 @@ delete collection of ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4836,13 +6093,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4854,12 +6117,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedSecret** -> V1Status deleteCollectionNamespacedSecret(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4868,36 +6137,51 @@ delete collection of Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedSecret(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4907,13 +6191,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4925,12 +6215,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedServiceAccount** -> V1Status deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -4939,36 +6235,51 @@ delete collection of ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4978,13 +6289,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -4996,12 +6313,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNode** -> V1Status deleteCollectionNode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNode(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -5010,35 +6333,50 @@ delete collection of Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNode(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5047,13 +6385,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5065,12 +6409,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionPersistentVolume** -> V1Status deleteCollectionPersistentVolume(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionPersistentVolume(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -5079,35 +6429,50 @@ delete collection of PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionPersistentVolume(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteCollectionPersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPersistentVolume(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteCollectionPersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5116,13 +6481,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5134,12 +6505,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespace** -> V1Status deleteNamespace(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5148,34 +6525,43 @@ delete a Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespace(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespace"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5185,11 +6571,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5201,12 +6587,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedConfigMap** -> V1Status deleteNamespacedConfigMap(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5215,35 +6608,44 @@ delete a ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ConfigMap -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedConfigMap(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ConfigMap + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5254,11 +6656,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ConfigMap | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5270,12 +6672,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedEndpoints** -> V1Status deleteNamespacedEndpoints(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5284,35 +6693,44 @@ delete Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Endpoints -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedEndpoints(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Endpoints + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5323,11 +6741,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Endpoints | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5339,12 +6757,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5353,35 +6778,44 @@ delete an Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5392,11 +6826,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5408,12 +6842,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedLimitRange** -> V1Status deleteNamespacedLimitRange(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5422,35 +6863,44 @@ delete a LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the LimitRange -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedLimitRange(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the LimitRange + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5461,11 +6911,11 @@ Name | Type | Description | Notes **name** | **String**| name of the LimitRange | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5477,12 +6927,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedPersistentVolumeClaim** -> V1Status deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5491,35 +6948,44 @@ delete a PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5530,11 +6996,11 @@ Name | Type | Description | Notes **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5546,12 +7012,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedPod** -> V1Status deleteNamespacedPod(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5560,35 +7033,44 @@ delete a Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedPod(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5599,11 +7081,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5615,12 +7097,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedPodTemplate** -> V1Status deleteNamespacedPodTemplate(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5629,35 +7118,44 @@ delete a PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodTemplate -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedPodTemplate(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5668,11 +7166,11 @@ Name | Type | Description | Notes **name** | **String**| name of the PodTemplate | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5684,12 +7182,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedReplicationController** -> V1Status deleteNamespacedReplicationController(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5698,35 +7203,44 @@ delete a ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedReplicationController(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5737,11 +7251,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5753,12 +7267,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedResourceQuota** -> V1Status deleteNamespacedResourceQuota(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5767,35 +7288,44 @@ delete a ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedResourceQuota(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5806,11 +7336,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5822,12 +7352,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedSecret** -> V1Status deleteNamespacedSecret(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5836,35 +7373,44 @@ delete a Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Secret -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedSecret(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Secret + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5875,11 +7421,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Secret | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5891,12 +7437,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedService** -> V1Status deleteNamespacedService(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5905,35 +7458,44 @@ delete a Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedService(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedService"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -5944,11 +7506,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -5960,12 +7522,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedServiceAccount** -> V1Status deleteNamespacedServiceAccount(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -5974,35 +7543,44 @@ delete a ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceAccount -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedServiceAccount(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceAccount + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6013,11 +7591,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ServiceAccount | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -6029,12 +7607,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNode** -> V1Status deleteNode(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -6043,34 +7628,43 @@ delete a Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNode(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deleteNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deleteNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6080,11 +7674,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -6096,12 +7690,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deletePersistentVolume** -> V1Status deletePersistentVolume(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -6110,34 +7711,43 @@ delete a PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deletePersistentVolume(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#deletePersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#deletePersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6147,11 +7757,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -6163,9 +7773,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -6177,27 +7794,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#getAPIResources"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6214,12 +7840,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listComponentStatus** -> V1ComponentStatusList listComponentStatus(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ComponentStatusList listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -6228,35 +7860,45 @@ list objects of kind ComponentStatus ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ComponentStatusList result = apiInstance.listComponentStatus(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listComponentStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ComponentStatusList result = apiInstance.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listComponentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6264,6 +7906,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6283,12 +7926,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listConfigMapForAllNamespaces** -> V1ConfigMapList listConfigMapForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ConfigMapList listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -6297,35 +7946,45 @@ list or watch objects of kind ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ConfigMapList result = apiInstance.listConfigMapForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listConfigMapForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ConfigMapList result = apiInstance.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listConfigMapForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6333,6 +7992,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6352,12 +8012,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listEndpointsForAllNamespaces** -> V1EndpointsList listEndpointsForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1EndpointsList listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -6366,35 +8032,45 @@ list or watch objects of kind Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1EndpointsList result = apiInstance.listEndpointsForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listEndpointsForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1EndpointsList result = apiInstance.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listEndpointsForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6402,6 +8078,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6421,12 +8098,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listEventForAllNamespaces** -> V1EventList listEventForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1EventList listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -6435,35 +8118,45 @@ list or watch objects of kind Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1EventList result = apiInstance.listEventForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listEventForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1EventList result = apiInstance.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listEventForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6471,6 +8164,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6490,12 +8184,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listLimitRangeForAllNamespaces** -> V1LimitRangeList listLimitRangeForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1LimitRangeList listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -6504,35 +8204,45 @@ list or watch objects of kind LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1LimitRangeList result = apiInstance.listLimitRangeForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listLimitRangeForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1LimitRangeList result = apiInstance.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listLimitRangeForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6540,6 +8250,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6559,12 +8270,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespace** -> V1NamespaceList listNamespace(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1NamespaceList listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6573,35 +8290,45 @@ list or watch objects of kind Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1NamespaceList result = apiInstance.listNamespace(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespace"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1NamespaceList result = apiInstance.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6610,6 +8337,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6628,12 +8356,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedConfigMap** -> V1ConfigMapList listNamespacedConfigMap(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ConfigMapList listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6642,36 +8376,46 @@ list or watch objects of kind ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ConfigMapList result = apiInstance.listNamespacedConfigMap(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ConfigMapList result = apiInstance.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6681,6 +8425,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6699,12 +8444,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedEndpoints** -> V1EndpointsList listNamespacedEndpoints(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1EndpointsList listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6713,36 +8464,46 @@ list or watch objects of kind Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1EndpointsList result = apiInstance.listNamespacedEndpoints(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1EndpointsList result = apiInstance.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6752,6 +8513,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6770,12 +8532,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedEvent** -> V1EventList listNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1EventList listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6784,36 +8552,46 @@ list or watch objects of kind Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1EventList result = apiInstance.listNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1EventList result = apiInstance.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6823,6 +8601,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6841,12 +8620,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedLimitRange** -> V1LimitRangeList listNamespacedLimitRange(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1LimitRangeList listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6855,36 +8640,46 @@ list or watch objects of kind LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1LimitRangeList result = apiInstance.listNamespacedLimitRange(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1LimitRangeList result = apiInstance.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6894,6 +8689,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6912,12 +8708,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedPersistentVolumeClaim** -> V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6926,36 +8728,46 @@ list or watch objects of kind PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PersistentVolumeClaimList result = apiInstance.listNamespacedPersistentVolumeClaim(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PersistentVolumeClaimList result = apiInstance.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -6965,6 +8777,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -6983,12 +8796,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedPod** -> V1PodList listNamespacedPod(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1PodList listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -6997,36 +8816,46 @@ list or watch objects of kind Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PodList result = apiInstance.listNamespacedPod(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PodList result = apiInstance.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7036,6 +8865,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7054,12 +8884,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedPodTemplate** -> V1PodTemplateList listNamespacedPodTemplate(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1PodTemplateList listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7068,36 +8904,46 @@ list or watch objects of kind PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PodTemplateList result = apiInstance.listNamespacedPodTemplate(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PodTemplateList result = apiInstance.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7107,6 +8953,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7125,12 +8972,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedReplicationController** -> V1ReplicationControllerList listNamespacedReplicationController(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ReplicationControllerList listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7139,36 +8992,46 @@ list or watch objects of kind ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ReplicationControllerList result = apiInstance.listNamespacedReplicationController(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ReplicationControllerList result = apiInstance.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7178,6 +9041,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7196,12 +9060,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedResourceQuota** -> V1ResourceQuotaList listNamespacedResourceQuota(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ResourceQuotaList listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7210,36 +9080,46 @@ list or watch objects of kind ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ResourceQuotaList result = apiInstance.listNamespacedResourceQuota(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ResourceQuotaList result = apiInstance.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7249,6 +9129,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7267,12 +9148,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedSecret** -> V1SecretList listNamespacedSecret(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1SecretList listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7281,36 +9168,46 @@ list or watch objects of kind Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1SecretList result = apiInstance.listNamespacedSecret(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1SecretList result = apiInstance.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7320,6 +9217,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7338,12 +9236,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedService** -> V1ServiceList listNamespacedService(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ServiceList listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7352,36 +9256,46 @@ list or watch objects of kind Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ServiceList result = apiInstance.listNamespacedService(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedService"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ServiceList result = apiInstance.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7391,6 +9305,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7409,12 +9324,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedServiceAccount** -> V1ServiceAccountList listNamespacedServiceAccount(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ServiceAccountList listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7423,36 +9344,46 @@ list or watch objects of kind ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ServiceAccountList result = apiInstance.listNamespacedServiceAccount(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ServiceAccountList result = apiInstance.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7462,6 +9393,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7480,12 +9412,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNode** -> V1NodeList listNode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1NodeList listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7494,35 +9432,45 @@ list or watch objects of kind Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1NodeList result = apiInstance.listNode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1NodeList result = apiInstance.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7531,6 +9479,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7549,12 +9498,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPersistentVolume** -> V1PersistentVolumeList listPersistentVolume(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1PersistentVolumeList listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -7563,35 +9518,45 @@ list or watch objects of kind PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PersistentVolumeList result = apiInstance.listPersistentVolume(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listPersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PersistentVolumeList result = apiInstance.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listPersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7600,6 +9565,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7618,12 +9584,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPersistentVolumeClaimForAllNamespaces** -> V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -7632,35 +9604,45 @@ list or watch objects of kind PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PersistentVolumeClaimList result = apiInstance.listPersistentVolumeClaimForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listPersistentVolumeClaimForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PersistentVolumeClaimList result = apiInstance.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listPersistentVolumeClaimForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7668,6 +9650,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7687,12 +9670,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPodForAllNamespaces** -> V1PodList listPodForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1PodList listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -7701,35 +9690,45 @@ list or watch objects of kind Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PodList result = apiInstance.listPodForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listPodForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PodList result = apiInstance.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listPodForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7737,6 +9736,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7756,12 +9756,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPodTemplateForAllNamespaces** -> V1PodTemplateList listPodTemplateForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1PodTemplateList listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -7770,35 +9776,45 @@ list or watch objects of kind PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PodTemplateList result = apiInstance.listPodTemplateForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listPodTemplateForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PodTemplateList result = apiInstance.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listPodTemplateForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7806,6 +9822,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7825,12 +9842,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listReplicationControllerForAllNamespaces** -> V1ReplicationControllerList listReplicationControllerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ReplicationControllerList listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -7839,35 +9862,45 @@ list or watch objects of kind ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ReplicationControllerList result = apiInstance.listReplicationControllerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listReplicationControllerForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ReplicationControllerList result = apiInstance.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listReplicationControllerForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7875,6 +9908,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7894,12 +9928,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listResourceQuotaForAllNamespaces** -> V1ResourceQuotaList listResourceQuotaForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ResourceQuotaList listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -7908,35 +9948,45 @@ list or watch objects of kind ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ResourceQuotaList result = apiInstance.listResourceQuotaForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listResourceQuotaForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ResourceQuotaList result = apiInstance.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listResourceQuotaForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -7944,6 +9994,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -7963,12 +10014,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listSecretForAllNamespaces** -> V1SecretList listSecretForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1SecretList listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -7977,35 +10034,45 @@ list or watch objects of kind Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1SecretList result = apiInstance.listSecretForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listSecretForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1SecretList result = apiInstance.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listSecretForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8013,6 +10080,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -8032,12 +10100,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listServiceAccountForAllNamespaces** -> V1ServiceAccountList listServiceAccountForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ServiceAccountList listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -8046,35 +10120,45 @@ list or watch objects of kind ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ServiceAccountList result = apiInstance.listServiceAccountForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listServiceAccountForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ServiceAccountList result = apiInstance.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listServiceAccountForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8082,6 +10166,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -8101,12 +10186,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listServiceForAllNamespaces** -> V1ServiceList listServiceForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1ServiceList listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -8115,35 +10206,45 @@ list or watch objects of kind Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ServiceList result = apiInstance.listServiceForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#listServiceForAllNamespaces"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ServiceList result = apiInstance.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#listServiceForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8151,6 +10252,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -8170,9 +10272,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespace** > V1Namespace patchNamespace(name, body, pretty, dryRun, fieldManager, force) @@ -8184,33 +10292,42 @@ partially update the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Namespace result = apiInstance.patchNamespace(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespace"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Namespace result = apiInstance.patchNamespace(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8219,7 +10336,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8238,6 +10355,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespaceStatus** > V1Namespace patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force) @@ -8249,33 +10372,42 @@ partially update status of the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Namespace result = apiInstance.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespaceStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Namespace result = apiInstance.patchNamespaceStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespaceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8284,7 +10416,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Namespace | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8303,6 +10435,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedConfigMap** > V1ConfigMap patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8314,34 +10452,43 @@ partially update the specified ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ConfigMap -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ConfigMap result = apiInstance.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ConfigMap + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ConfigMap result = apiInstance.patchNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8351,7 +10498,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ConfigMap | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8370,6 +10517,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedEndpoints** > V1Endpoints patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8381,34 +10534,43 @@ partially update the specified Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Endpoints -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Endpoints result = apiInstance.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Endpoints + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Endpoints result = apiInstance.patchNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8418,7 +10580,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Endpoints | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8437,6 +10599,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedEvent** > V1Event patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8448,34 +10616,43 @@ partially update the specified Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Event result = apiInstance.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Event result = apiInstance.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8485,7 +10662,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8504,6 +10681,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedLimitRange** > V1LimitRange patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8515,34 +10698,43 @@ partially update the specified LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the LimitRange -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1LimitRange result = apiInstance.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the LimitRange + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1LimitRange result = apiInstance.patchNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8552,7 +10744,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the LimitRange | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8571,6 +10763,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8582,34 +10780,43 @@ partially update the specified PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1PersistentVolumeClaim result = apiInstance.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PersistentVolumeClaim result = apiInstance.patchNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8619,7 +10826,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8638,6 +10845,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPersistentVolumeClaimStatus** > V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8649,34 +10862,43 @@ partially update status of the specified PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1PersistentVolumeClaim result = apiInstance.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedPersistentVolumeClaimStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PersistentVolumeClaim result = apiInstance.patchNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedPersistentVolumeClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8686,7 +10908,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolumeClaim | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8705,6 +10927,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPod** > V1Pod patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8716,34 +10944,43 @@ partially update the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Pod result = apiInstance.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Pod result = apiInstance.patchNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8753,7 +10990,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8772,6 +11009,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPodStatus** > V1Pod patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8783,34 +11026,43 @@ partially update status of the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Pod result = apiInstance.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedPodStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Pod result = apiInstance.patchNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedPodStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8820,7 +11072,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Pod | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8839,6 +11091,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPodTemplate** > V1PodTemplate patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8850,34 +11108,43 @@ partially update the specified PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodTemplate -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1PodTemplate result = apiInstance.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PodTemplate result = apiInstance.patchNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8887,7 +11154,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodTemplate | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8906,6 +11173,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicationController** > V1ReplicationController patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8917,34 +11190,43 @@ partially update the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ReplicationController result = apiInstance.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ReplicationController result = apiInstance.patchNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -8954,7 +11236,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -8973,6 +11255,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicationControllerScale** > V1Scale patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -8984,34 +11272,43 @@ partially update scale of the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Scale result = apiInstance.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedReplicationControllerScale"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Scale result = apiInstance.patchNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedReplicationControllerScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9021,7 +11318,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9040,6 +11337,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicationControllerStatus** > V1ReplicationController patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9051,34 +11354,43 @@ partially update status of the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ReplicationController result = apiInstance.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedReplicationControllerStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ReplicationController result = apiInstance.patchNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedReplicationControllerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9088,7 +11400,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicationController | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9107,6 +11419,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedResourceQuota** > V1ResourceQuota patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9118,34 +11436,43 @@ partially update the specified ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ResourceQuota result = apiInstance.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ResourceQuota result = apiInstance.patchNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9155,7 +11482,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9174,6 +11501,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedResourceQuotaStatus** > V1ResourceQuota patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9185,34 +11518,43 @@ partially update status of the specified ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ResourceQuota result = apiInstance.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedResourceQuotaStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ResourceQuota result = apiInstance.patchNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedResourceQuotaStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9222,7 +11564,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ResourceQuota | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9241,6 +11583,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedSecret** > V1Secret patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9252,34 +11600,43 @@ partially update the specified Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Secret -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Secret result = apiInstance.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Secret + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Secret result = apiInstance.patchNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9289,7 +11646,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Secret | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9308,6 +11665,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedService** > V1Service patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9319,34 +11682,43 @@ partially update the specified Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Service result = apiInstance.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedService"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Service result = apiInstance.patchNamespacedService(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9356,7 +11728,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9375,6 +11747,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedServiceAccount** > V1ServiceAccount patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9386,34 +11764,43 @@ partially update the specified ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceAccount -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ServiceAccount result = apiInstance.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceAccount + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ServiceAccount result = apiInstance.patchNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9423,7 +11810,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ServiceAccount | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9442,6 +11829,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedServiceStatus** > V1Service patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -9453,34 +11846,43 @@ partially update status of the specified Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Service result = apiInstance.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNamespacedServiceStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Service result = apiInstance.patchNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNamespacedServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9490,7 +11892,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Service | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9509,6 +11911,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNode** > V1Node patchNode(name, body, pretty, dryRun, fieldManager, force) @@ -9520,33 +11928,42 @@ partially update the specified Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Node result = apiInstance.patchNode(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Node result = apiInstance.patchNode(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9555,7 +11972,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9574,6 +11991,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNodeStatus** > V1Node patchNodeStatus(name, body, pretty, dryRun, fieldManager, force) @@ -9585,33 +12008,42 @@ partially update status of the specified Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Node result = apiInstance.patchNodeStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchNodeStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Node result = apiInstance.patchNodeStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchNodeStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9620,7 +12052,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Node | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9639,6 +12071,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPersistentVolume** > V1PersistentVolume patchPersistentVolume(name, body, pretty, dryRun, fieldManager, force) @@ -9650,33 +12088,42 @@ partially update the specified PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1PersistentVolume result = apiInstance.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchPersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PersistentVolume result = apiInstance.patchPersistentVolume(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchPersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9685,7 +12132,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9704,6 +12151,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPersistentVolumeStatus** > V1PersistentVolume patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, force) @@ -9715,33 +12168,42 @@ partially update status of the specified PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1PersistentVolume result = apiInstance.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#patchPersistentVolumeStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PersistentVolume result = apiInstance.patchPersistentVolumeStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#patchPersistentVolumeStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9750,7 +12212,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PersistentVolume | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -9769,6 +12231,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readComponentStatus** > V1ComponentStatus readComponentStatus(name, pretty) @@ -9780,29 +12248,38 @@ read the specified ComponentStatus ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ComponentStatus -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1ComponentStatus result = apiInstance.readComponentStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readComponentStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ComponentStatus + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1ComponentStatus result = apiInstance.readComponentStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readComponentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9823,9 +12300,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespace** > V1Namespace readNamespace(name, pretty, exact, export) @@ -9837,31 +12320,40 @@ read the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Namespace result = apiInstance.readNamespace(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespace"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Namespace result = apiInstance.readNamespace(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9884,9 +12376,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespaceStatus** > V1Namespace readNamespaceStatus(name, pretty) @@ -9898,29 +12396,38 @@ read status of the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Namespace result = apiInstance.readNamespaceStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespaceStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Namespace result = apiInstance.readNamespaceStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespaceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -9941,9 +12448,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedConfigMap** > V1ConfigMap readNamespacedConfigMap(name, namespace, pretty, exact, export) @@ -9955,32 +12468,41 @@ read the specified ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ConfigMap -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1ConfigMap result = apiInstance.readNamespacedConfigMap(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ConfigMap + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1ConfigMap result = apiInstance.readNamespacedConfigMap(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10004,9 +12526,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedEndpoints** > V1Endpoints readNamespacedEndpoints(name, namespace, pretty, exact, export) @@ -10018,32 +12546,41 @@ read the specified Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Endpoints -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Endpoints result = apiInstance.readNamespacedEndpoints(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Endpoints + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Endpoints result = apiInstance.readNamespacedEndpoints(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10067,9 +12604,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedEvent** > V1Event readNamespacedEvent(name, namespace, pretty, exact, export) @@ -10081,32 +12624,41 @@ read the specified Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10130,9 +12682,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedLimitRange** > V1LimitRange readNamespacedLimitRange(name, namespace, pretty, exact, export) @@ -10144,32 +12702,41 @@ read the specified LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the LimitRange -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1LimitRange result = apiInstance.readNamespacedLimitRange(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the LimitRange + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1LimitRange result = apiInstance.readNamespacedLimitRange(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10193,9 +12760,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim readNamespacedPersistentVolumeClaim(name, namespace, pretty, exact, export) @@ -10207,32 +12780,41 @@ read the specified PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1PersistentVolumeClaim result = apiInstance.readNamespacedPersistentVolumeClaim(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1PersistentVolumeClaim result = apiInstance.readNamespacedPersistentVolumeClaim(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10256,9 +12838,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPersistentVolumeClaimStatus** > V1PersistentVolumeClaim readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty) @@ -10270,30 +12858,39 @@ read status of the specified PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1PersistentVolumeClaim result = apiInstance.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedPersistentVolumeClaimStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1PersistentVolumeClaim result = apiInstance.readNamespacedPersistentVolumeClaimStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPersistentVolumeClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10315,9 +12912,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPod** > V1Pod readNamespacedPod(name, namespace, pretty, exact, export) @@ -10329,32 +12932,41 @@ read the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Pod result = apiInstance.readNamespacedPod(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Pod result = apiInstance.readNamespacedPod(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10378,9 +12990,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPodLog** > String readNamespacedPodLog(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps) @@ -10392,37 +13010,46 @@ read log of the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String container = "container_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. -Boolean follow = true; // Boolean | Follow the log stream of the pod. Defaults to false. -Integer limitBytes = 56; // Integer | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean previous = true; // Boolean | Return previous terminated container logs. Defaults to false. -Integer sinceSeconds = 56; // Integer | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. -Integer tailLines = 56; // Integer | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime -Boolean timestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. -try { - String result = apiInstance.readNamespacedPodLog(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedPodLog"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String container = "container_example"; // String | The container for which to stream logs. Defaults to only container if there is one container in the pod. + Boolean follow = true; // Boolean | Follow the log stream of the pod. Defaults to false. + Integer limitBytes = 56; // Integer | If set, the number of bytes to read from the server before terminating the log output. This may not display a complete final line of logging, and may return slightly more or slightly less than the specified limit. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean previous = true; // Boolean | Return previous terminated container logs. Defaults to false. + Integer sinceSeconds = 56; // Integer | A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. + Integer tailLines = 56; // Integer | If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime + Boolean timestamps = true; // Boolean | If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. + try { + String result = apiInstance.readNamespacedPodLog(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPodLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10451,9 +13078,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: text/plain, application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPodStatus** > V1Pod readNamespacedPodStatus(name, namespace, pretty) @@ -10465,30 +13098,39 @@ read status of the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Pod result = apiInstance.readNamespacedPodStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedPodStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Pod result = apiInstance.readNamespacedPodStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPodStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10510,9 +13152,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPodTemplate** > V1PodTemplate readNamespacedPodTemplate(name, namespace, pretty, exact, export) @@ -10524,32 +13172,41 @@ read the specified PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodTemplate -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1PodTemplate result = apiInstance.readNamespacedPodTemplate(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1PodTemplate result = apiInstance.readNamespacedPodTemplate(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10573,9 +13230,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicationController** > V1ReplicationController readNamespacedReplicationController(name, namespace, pretty, exact, export) @@ -10587,32 +13250,41 @@ read the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1ReplicationController result = apiInstance.readNamespacedReplicationController(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1ReplicationController result = apiInstance.readNamespacedReplicationController(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10636,9 +13308,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicationControllerScale** > V1Scale readNamespacedReplicationControllerScale(name, namespace, pretty) @@ -10650,30 +13328,39 @@ read scale of the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Scale result = apiInstance.readNamespacedReplicationControllerScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedReplicationControllerScale"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Scale result = apiInstance.readNamespacedReplicationControllerScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedReplicationControllerScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10695,9 +13382,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicationControllerStatus** > V1ReplicationController readNamespacedReplicationControllerStatus(name, namespace, pretty) @@ -10709,30 +13402,39 @@ read status of the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1ReplicationController result = apiInstance.readNamespacedReplicationControllerStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedReplicationControllerStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1ReplicationController result = apiInstance.readNamespacedReplicationControllerStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedReplicationControllerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10754,9 +13456,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedResourceQuota** > V1ResourceQuota readNamespacedResourceQuota(name, namespace, pretty, exact, export) @@ -10768,32 +13476,41 @@ read the specified ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1ResourceQuota result = apiInstance.readNamespacedResourceQuota(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1ResourceQuota result = apiInstance.readNamespacedResourceQuota(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10817,9 +13534,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedResourceQuotaStatus** > V1ResourceQuota readNamespacedResourceQuotaStatus(name, namespace, pretty) @@ -10831,30 +13554,39 @@ read status of the specified ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1ResourceQuota result = apiInstance.readNamespacedResourceQuotaStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedResourceQuotaStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1ResourceQuota result = apiInstance.readNamespacedResourceQuotaStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedResourceQuotaStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10876,9 +13608,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedSecret** > V1Secret readNamespacedSecret(name, namespace, pretty, exact, export) @@ -10890,32 +13628,41 @@ read the specified Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Secret -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Secret result = apiInstance.readNamespacedSecret(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Secret + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Secret result = apiInstance.readNamespacedSecret(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -10939,9 +13686,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedService** > V1Service readNamespacedService(name, namespace, pretty, exact, export) @@ -10953,32 +13706,41 @@ read the specified Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Service result = apiInstance.readNamespacedService(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedService"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Service result = apiInstance.readNamespacedService(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11002,9 +13764,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedServiceAccount** > V1ServiceAccount readNamespacedServiceAccount(name, namespace, pretty, exact, export) @@ -11016,32 +13784,41 @@ read the specified ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceAccount -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1ServiceAccount result = apiInstance.readNamespacedServiceAccount(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceAccount + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1ServiceAccount result = apiInstance.readNamespacedServiceAccount(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11065,9 +13842,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedServiceStatus** > V1Service readNamespacedServiceStatus(name, namespace, pretty) @@ -11079,30 +13862,39 @@ read status of the specified Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Service result = apiInstance.readNamespacedServiceStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNamespacedServiceStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Service result = apiInstance.readNamespacedServiceStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNamespacedServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11124,9 +13916,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNode** > V1Node readNode(name, pretty, exact, export) @@ -11138,31 +13936,40 @@ read the specified Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1Node result = apiInstance.readNode(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1Node result = apiInstance.readNode(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11185,9 +13992,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNodeStatus** > V1Node readNodeStatus(name, pretty) @@ -11199,29 +14012,38 @@ read status of the specified Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Node result = apiInstance.readNodeStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readNodeStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Node result = apiInstance.readNodeStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readNodeStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11242,9 +14064,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPersistentVolume** > V1PersistentVolume readPersistentVolume(name, pretty, exact, export) @@ -11256,31 +14084,40 @@ read the specified PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1PersistentVolume result = apiInstance.readPersistentVolume(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readPersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1PersistentVolume result = apiInstance.readPersistentVolume(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readPersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11303,9 +14140,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPersistentVolumeStatus** > V1PersistentVolume readPersistentVolumeStatus(name, pretty) @@ -11317,29 +14160,38 @@ read status of the specified PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1PersistentVolume result = apiInstance.readPersistentVolumeStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#readPersistentVolumeStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1PersistentVolume result = apiInstance.readPersistentVolumeStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#readPersistentVolumeStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11360,9 +14212,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespace** > V1Namespace replaceNamespace(name, body, pretty, dryRun, fieldManager) @@ -11374,32 +14232,41 @@ replace the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -V1Namespace body = new V1Namespace(); // V1Namespace | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Namespace result = apiInstance.replaceNamespace(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespace"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + V1Namespace body = new V1Namespace(); // V1Namespace | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Namespace result = apiInstance.replaceNamespace(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11423,9 +14290,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespaceFinalize** > V1Namespace replaceNamespaceFinalize(name, body, dryRun, fieldManager, pretty) @@ -11437,32 +14311,41 @@ replace finalize of the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -V1Namespace body = new V1Namespace(); // V1Namespace | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Namespace result = apiInstance.replaceNamespaceFinalize(name, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespaceFinalize"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + V1Namespace body = new V1Namespace(); // V1Namespace | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Namespace result = apiInstance.replaceNamespaceFinalize(name, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespaceFinalize"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11486,9 +14369,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespaceStatus** > V1Namespace replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager) @@ -11500,32 +14390,41 @@ replace status of the specified Namespace ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Namespace -V1Namespace body = new V1Namespace(); // V1Namespace | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Namespace result = apiInstance.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespaceStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Namespace + V1Namespace body = new V1Namespace(); // V1Namespace | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Namespace result = apiInstance.replaceNamespaceStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespaceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11549,9 +14448,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedConfigMap** > V1ConfigMap replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager) @@ -11563,33 +14469,42 @@ replace the specified ConfigMap ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ConfigMap -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ConfigMap body = new V1ConfigMap(); // V1ConfigMap | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ConfigMap result = apiInstance.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedConfigMap"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ConfigMap + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ConfigMap body = new V1ConfigMap(); // V1ConfigMap | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ConfigMap result = apiInstance.replaceNamespacedConfigMap(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedConfigMap"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11614,9 +14529,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedEndpoints** > V1Endpoints replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager) @@ -11628,33 +14550,42 @@ replace the specified Endpoints ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Endpoints -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Endpoints body = new V1Endpoints(); // V1Endpoints | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Endpoints result = apiInstance.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedEndpoints"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Endpoints + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Endpoints body = new V1Endpoints(); // V1Endpoints | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Endpoints result = apiInstance.replaceNamespacedEndpoints(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedEndpoints"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11679,9 +14610,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedEvent** > V1Event replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager) @@ -11693,33 +14631,42 @@ replace the specified Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Event body = new V1Event(); // V1Event | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Event result = apiInstance.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedEvent"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Event body = new V1Event(); // V1Event | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Event result = apiInstance.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11744,9 +14691,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedLimitRange** > V1LimitRange replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager) @@ -11758,33 +14712,42 @@ replace the specified LimitRange ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the LimitRange -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1LimitRange body = new V1LimitRange(); // V1LimitRange | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1LimitRange result = apiInstance.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedLimitRange"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the LimitRange + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1LimitRange body = new V1LimitRange(); // V1LimitRange | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1LimitRange result = apiInstance.replaceNamespacedLimitRange(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedLimitRange"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11809,9 +14772,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedPersistentVolumeClaim** > V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager) @@ -11823,33 +14793,42 @@ replace the specified PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PersistentVolumeClaim result = apiInstance.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedPersistentVolumeClaim"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PersistentVolumeClaim result = apiInstance.replaceNamespacedPersistentVolumeClaim(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedPersistentVolumeClaim"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11874,9 +14853,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedPersistentVolumeClaimStatus** > V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -11888,33 +14874,42 @@ replace status of the specified PersistentVolumeClaim ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolumeClaim -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PersistentVolumeClaim result = apiInstance.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedPersistentVolumeClaimStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolumeClaim + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PersistentVolumeClaim body = new V1PersistentVolumeClaim(); // V1PersistentVolumeClaim | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PersistentVolumeClaim result = apiInstance.replaceNamespacedPersistentVolumeClaimStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedPersistentVolumeClaimStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -11939,9 +14934,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedPod** > V1Pod replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager) @@ -11953,33 +14955,42 @@ replace the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Pod body = new V1Pod(); // V1Pod | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Pod result = apiInstance.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedPod"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Pod body = new V1Pod(); // V1Pod | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Pod result = apiInstance.replaceNamespacedPod(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedPod"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12004,9 +15015,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedPodStatus** > V1Pod replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -12018,33 +15036,42 @@ replace status of the specified Pod ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Pod -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Pod body = new V1Pod(); // V1Pod | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Pod result = apiInstance.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedPodStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Pod + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Pod body = new V1Pod(); // V1Pod | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Pod result = apiInstance.replaceNamespacedPodStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedPodStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12069,9 +15096,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedPodTemplate** > V1PodTemplate replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager) @@ -12083,33 +15117,42 @@ replace the specified PodTemplate ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PodTemplate -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1PodTemplate body = new V1PodTemplate(); // V1PodTemplate | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PodTemplate result = apiInstance.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedPodTemplate"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PodTemplate + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1PodTemplate body = new V1PodTemplate(); // V1PodTemplate | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PodTemplate result = apiInstance.replaceNamespacedPodTemplate(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedPodTemplate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12134,9 +15177,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicationController** > V1ReplicationController replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager) @@ -12148,33 +15198,42 @@ replace the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ReplicationController result = apiInstance.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedReplicationController"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ReplicationController result = apiInstance.replaceNamespacedReplicationController(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedReplicationController"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12199,9 +15258,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicationControllerScale** > V1Scale replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -12213,33 +15279,42 @@ replace scale of the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Scale body = new V1Scale(); // V1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Scale result = apiInstance.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedReplicationControllerScale"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Scale body = new V1Scale(); // V1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Scale result = apiInstance.replaceNamespacedReplicationControllerScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedReplicationControllerScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12264,9 +15339,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicationControllerStatus** > V1ReplicationController replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -12278,33 +15360,42 @@ replace status of the specified ReplicationController ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ReplicationController -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ReplicationController result = apiInstance.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedReplicationControllerStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicationController + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ReplicationController body = new V1ReplicationController(); // V1ReplicationController | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ReplicationController result = apiInstance.replaceNamespacedReplicationControllerStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedReplicationControllerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12329,9 +15420,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedResourceQuota** > V1ResourceQuota replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager) @@ -12343,33 +15441,42 @@ replace the specified ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ResourceQuota result = apiInstance.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedResourceQuota"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ResourceQuota result = apiInstance.replaceNamespacedResourceQuota(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedResourceQuota"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12394,9 +15501,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedResourceQuotaStatus** > V1ResourceQuota replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -12408,33 +15522,42 @@ replace status of the specified ResourceQuota ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -ApiClient defaultClient = Configuration.getDefaultApiClient(); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ResourceQuota -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ResourceQuota result = apiInstance.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedResourceQuotaStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ResourceQuota + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ResourceQuota body = new V1ResourceQuota(); // V1ResourceQuota | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ResourceQuota result = apiInstance.replaceNamespacedResourceQuotaStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedResourceQuotaStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12459,9 +15582,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedSecret** > V1Secret replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager) @@ -12473,33 +15603,42 @@ replace the specified Secret ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Secret -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Secret body = new V1Secret(); // V1Secret | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Secret result = apiInstance.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedSecret"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Secret + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Secret body = new V1Secret(); // V1Secret | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Secret result = apiInstance.replaceNamespacedSecret(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedSecret"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12524,9 +15663,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedService** > V1Service replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager) @@ -12538,33 +15684,42 @@ replace the specified Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Service body = new V1Service(); // V1Service | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Service result = apiInstance.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedService"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Service body = new V1Service(); // V1Service | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Service result = apiInstance.replaceNamespacedService(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedService"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12589,9 +15744,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedServiceAccount** > V1ServiceAccount replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager) @@ -12603,33 +15765,42 @@ replace the specified ServiceAccount ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the ServiceAccount -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1ServiceAccount body = new V1ServiceAccount(); // V1ServiceAccount | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ServiceAccount result = apiInstance.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedServiceAccount"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the ServiceAccount + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1ServiceAccount body = new V1ServiceAccount(); // V1ServiceAccount | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ServiceAccount result = apiInstance.replaceNamespacedServiceAccount(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedServiceAccount"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12654,9 +15825,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedServiceStatus** > V1Service replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -12668,33 +15846,42 @@ replace status of the specified Service ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Service -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Service body = new V1Service(); // V1Service | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Service result = apiInstance.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNamespacedServiceStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Service + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Service body = new V1Service(); // V1Service | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Service result = apiInstance.replaceNamespacedServiceStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNamespacedServiceStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12719,9 +15906,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNode** > V1Node replaceNode(name, body, pretty, dryRun, fieldManager) @@ -12733,32 +15927,41 @@ replace the specified Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -V1Node body = new V1Node(); // V1Node | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Node result = apiInstance.replaceNode(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNode"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + V1Node body = new V1Node(); // V1Node | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Node result = apiInstance.replaceNode(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12782,9 +15985,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNodeStatus** > V1Node replaceNodeStatus(name, body, pretty, dryRun, fieldManager) @@ -12796,32 +16006,41 @@ replace status of the specified Node ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the Node -V1Node body = new V1Node(); // V1Node | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Node result = apiInstance.replaceNodeStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replaceNodeStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the Node + V1Node body = new V1Node(); // V1Node | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Node result = apiInstance.replaceNodeStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replaceNodeStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12845,9 +16064,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replacePersistentVolume** > V1PersistentVolume replacePersistentVolume(name, body, pretty, dryRun, fieldManager) @@ -12859,32 +16085,41 @@ replace the specified PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PersistentVolume result = apiInstance.replacePersistentVolume(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replacePersistentVolume"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PersistentVolume result = apiInstance.replacePersistentVolume(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replacePersistentVolume"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12908,9 +16143,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replacePersistentVolumeStatus** > V1PersistentVolume replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager) @@ -12922,32 +16164,41 @@ replace status of the specified PersistentVolume ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CoreV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CoreV1Api; -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); -CoreV1Api apiInstance = new CoreV1Api(); -String name = "name_example"; // String | name of the PersistentVolume -V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PersistentVolume result = apiInstance.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CoreV1Api#replacePersistentVolumeStatus"); - e.printStackTrace(); + CoreV1Api apiInstance = new CoreV1Api(defaultClient); + String name = "name_example"; // String | name of the PersistentVolume + V1PersistentVolume body = new V1PersistentVolume(); // V1PersistentVolume | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PersistentVolume result = apiInstance.replacePersistentVolumeStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CoreV1Api#replacePersistentVolumeStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -12971,6 +16222,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/CustomObjectsApi.md b/kubernetes/docs/CustomObjectsApi.md index c15b331a04..bf0ea3e28d 100644 --- a/kubernetes/docs/CustomObjectsApi.md +++ b/kubernetes/docs/CustomObjectsApi.md @@ -1,6 +1,6 @@ # CustomObjectsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -41,32 +41,41 @@ Creates a cluster scoped Custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | The custom resource's group name -String version = "version_example"; // String | The custom resource's version -String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. -Object body = null; // Object | The JSON schema of the Resource to create. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - Object result = apiInstance.createClusterCustomObject(group, version, plural, body, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#createClusterCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | The custom resource's group name + String version = "version_example"; // String | The custom resource's version + String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. + Object body = null; // Object | The JSON schema of the Resource to create. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + Object result = apiInstance.createClusterCustomObject(group, version, plural, body, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#createClusterCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -93,6 +102,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**401** | Unauthorized | - | + # **createNamespacedCustomObject** > Object createNamespacedCustomObject(group, version, namespace, plural, body, pretty) @@ -104,33 +119,42 @@ Creates a namespace scoped Custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | The custom resource's group name -String version = "version_example"; // String | The custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. -Object body = null; // Object | The JSON schema of the Resource to create. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - Object result = apiInstance.createNamespacedCustomObject(group, version, namespace, plural, body, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#createNamespacedCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | The custom resource's group name + String version = "version_example"; // String | The custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. + Object body = null; // Object | The JSON schema of the Resource to create. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + Object result = apiInstance.createNamespacedCustomObject(group, version, namespace, plural, body, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#createNamespacedCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -158,6 +182,12 @@ Name | Type | Description | Notes - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**401** | Unauthorized | - | + # **deleteClusterCustomObject** > Object deleteClusterCustomObject(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy) @@ -169,35 +199,44 @@ Deletes the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -try { - Object result = apiInstance.deleteClusterCustomObject(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#deleteClusterCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + try { + Object result = apiInstance.deleteClusterCustomObject(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#deleteClusterCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -224,9 +263,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedCustomObject** > Object deleteNamespacedCustomObject(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy) @@ -238,36 +283,45 @@ Deletes the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. -try { - Object result = apiInstance.deleteNamespacedCustomObject(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#deleteNamespacedCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. + try { + Object result = apiInstance.deleteNamespacedCustomObject(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#deleteNamespacedCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -295,9 +349,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getClusterCustomObject** > Object getClusterCustomObject(group, version, plural, name) @@ -309,31 +369,40 @@ Returns a cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -try { - Object result = apiInstance.getClusterCustomObject(group, version, plural, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#getClusterCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + try { + Object result = apiInstance.getClusterCustomObject(group, version, plural, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getClusterCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -356,9 +425,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A single Resource | - | +**401** | Unauthorized | - | + # **getClusterCustomObjectScale** > Object getClusterCustomObjectScale(group, version, plural, name) @@ -370,31 +445,40 @@ read scale of the specified custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -try { - Object result = apiInstance.getClusterCustomObjectScale(group, version, plural, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#getClusterCustomObjectScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + try { + Object result = apiInstance.getClusterCustomObjectScale(group, version, plural, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getClusterCustomObjectScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -417,9 +501,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getClusterCustomObjectStatus** > Object getClusterCustomObjectStatus(group, version, plural, name) @@ -431,31 +521,40 @@ read status of the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -try { - Object result = apiInstance.getClusterCustomObjectStatus(group, version, plural, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#getClusterCustomObjectStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + try { + Object result = apiInstance.getClusterCustomObjectStatus(group, version, plural, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getClusterCustomObjectStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -478,9 +577,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getNamespacedCustomObject** > Object getNamespacedCustomObject(group, version, namespace, plural, name) @@ -492,32 +597,41 @@ Returns a namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -try { - Object result = apiInstance.getNamespacedCustomObject(group, version, namespace, plural, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#getNamespacedCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + try { + Object result = apiInstance.getNamespacedCustomObject(group, version, namespace, plural, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getNamespacedCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -541,9 +655,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | A single Resource | - | +**401** | Unauthorized | - | + # **getNamespacedCustomObjectScale** > Object getNamespacedCustomObjectScale(group, version, namespace, plural, name) @@ -555,32 +675,41 @@ read scale of the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -try { - Object result = apiInstance.getNamespacedCustomObjectScale(group, version, namespace, plural, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#getNamespacedCustomObjectScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + try { + Object result = apiInstance.getNamespacedCustomObjectScale(group, version, namespace, plural, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getNamespacedCustomObjectScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -604,9 +733,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **getNamespacedCustomObjectStatus** > Object getNamespacedCustomObjectStatus(group, version, namespace, plural, name) @@ -618,32 +753,41 @@ read status of the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -try { - Object result = apiInstance.getNamespacedCustomObjectStatus(group, version, namespace, plural, name); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#getNamespacedCustomObjectStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + try { + Object result = apiInstance.getNamespacedCustomObjectStatus(group, version, namespace, plural, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#getNamespacedCustomObjectStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -667,9 +811,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterCustomObject** > Object listClusterCustomObject(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch) @@ -681,36 +831,45 @@ list or watch cluster scoped custom objects ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | The custom resource's group name -String version = "version_example"; // String | The custom resource's version -String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. -try { - Object result = apiInstance.listClusterCustomObject(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#listClusterCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | The custom resource's group name + String version = "version_example"; // String | The custom resource's version + String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + try { + Object result = apiInstance.listClusterCustomObject(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#listClusterCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -738,9 +897,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/json;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedCustomObject** > Object listNamespacedCustomObject(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch) @@ -752,37 +917,46 @@ list or watch namespace scoped custom objects ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | The custom resource's group name -String version = "version_example"; // String | The custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. -try { - Object result = apiInstance.listNamespacedCustomObject(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#listNamespacedCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | The custom resource's group name + String version = "version_example"; // String | The custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | The custom resource's plural name. For TPRs this would be lowercase plural kind. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. + try { + Object result = apiInstance.listNamespacedCustomObject(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#listNamespacedCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -811,9 +985,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/json;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterCustomObject** > Object patchClusterCustomObject(group, version, plural, name, body) @@ -825,32 +1005,41 @@ patch the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | The JSON schema of the Resource to patch. -try { - Object result = apiInstance.patchClusterCustomObject(group, version, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | The JSON schema of the Resource to patch. + try { + Object result = apiInstance.patchClusterCustomObject(group, version, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -877,6 +1066,12 @@ Name | Type | Description | Notes - **Content-Type**: application/merge-patch+json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterCustomObjectScale** > Object patchClusterCustomObjectScale(group, version, plural, name, body) @@ -888,32 +1083,41 @@ partially update scale of the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.patchClusterCustomObjectScale(group, version, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObjectScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.patchClusterCustomObjectScale(group, version, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObjectScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -940,6 +1144,12 @@ Name | Type | Description | Notes - **Content-Type**: application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterCustomObjectStatus** > Object patchClusterCustomObjectStatus(group, version, plural, name, body) @@ -951,32 +1161,41 @@ partially update status of the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.patchClusterCustomObjectStatus(group, version, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObjectStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.patchClusterCustomObjectStatus(group, version, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#patchClusterCustomObjectStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1003,6 +1222,12 @@ Name | Type | Description | Notes - **Content-Type**: application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCustomObject** > Object patchNamespacedCustomObject(group, version, namespace, plural, name, body) @@ -1014,33 +1239,42 @@ patch the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | The JSON schema of the Resource to patch. -try { - Object result = apiInstance.patchNamespacedCustomObject(group, version, namespace, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | The JSON schema of the Resource to patch. + try { + Object result = apiInstance.patchNamespacedCustomObject(group, version, namespace, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1068,6 +1302,12 @@ Name | Type | Description | Notes - **Content-Type**: application/merge-patch+json - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCustomObjectScale** > Object patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body) @@ -1079,33 +1319,42 @@ partially update scale of the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObjectScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.patchNamespacedCustomObjectScale(group, version, namespace, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObjectScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1133,6 +1382,12 @@ Name | Type | Description | Notes - **Content-Type**: application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedCustomObjectStatus** > Object patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body) @@ -1144,33 +1399,42 @@ partially update status of the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObjectStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.patchNamespacedCustomObjectStatus(group, version, namespace, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#patchNamespacedCustomObjectStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1198,6 +1462,12 @@ Name | Type | Description | Notes - **Content-Type**: application/merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceClusterCustomObject** > Object replaceClusterCustomObject(group, version, plural, name, body) @@ -1209,32 +1479,41 @@ replace the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | The JSON schema of the Resource to replace. -try { - Object result = apiInstance.replaceClusterCustomObject(group, version, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom object's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | The JSON schema of the Resource to replace. + try { + Object result = apiInstance.replaceClusterCustomObject(group, version, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1258,9 +1537,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceClusterCustomObjectScale** > Object replaceClusterCustomObjectScale(group, version, plural, name, body) @@ -1272,32 +1557,41 @@ replace scale of the specified cluster scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.replaceClusterCustomObjectScale(group, version, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObjectScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.replaceClusterCustomObjectScale(group, version, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObjectScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1321,9 +1615,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceClusterCustomObjectStatus** > Object replaceClusterCustomObjectStatus(group, version, plural, name, body) @@ -1335,32 +1636,41 @@ replace status of the cluster scoped specified custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.replaceClusterCustomObjectStatus(group, version, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObjectStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.replaceClusterCustomObjectStatus(group, version, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#replaceClusterCustomObjectStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1384,9 +1694,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedCustomObject** > Object replaceNamespacedCustomObject(group, version, namespace, plural, name, body) @@ -1398,33 +1715,42 @@ replace the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | The JSON schema of the Resource to replace. -try { - Object result = apiInstance.replaceNamespacedCustomObject(group, version, namespace, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObject"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | The JSON schema of the Resource to replace. + try { + Object result = apiInstance.replaceNamespacedCustomObject(group, version, namespace, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObject"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1449,9 +1775,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedCustomObjectScale** > Object replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body) @@ -1463,33 +1795,42 @@ replace scale of the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObjectScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.replaceNamespacedCustomObjectScale(group, version, namespace, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObjectScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1514,9 +1855,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedCustomObjectStatus** > Object replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body) @@ -1528,33 +1876,42 @@ replace status of the specified namespace scoped custom object ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.CustomObjectsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -CustomObjectsApi apiInstance = new CustomObjectsApi(); -String group = "group_example"; // String | the custom resource's group -String version = "version_example"; // String | the custom resource's version -String namespace = "namespace_example"; // String | The custom resource's namespace -String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. -String name = "name_example"; // String | the custom object's name -Object body = null; // Object | -try { - Object result = apiInstance.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObjectStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.CustomObjectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + CustomObjectsApi apiInstance = new CustomObjectsApi(defaultClient); + String group = "group_example"; // String | the custom resource's group + String version = "version_example"; // String | the custom resource's version + String namespace = "namespace_example"; // String | The custom resource's namespace + String plural = "plural_example"; // String | the custom resource's plural name. For TPRs this would be lowercase plural kind. + String name = "name_example"; // String | the custom object's name + Object body = null; // Object | + try { + Object result = apiInstance.replaceNamespacedCustomObjectStatus(group, version, namespace, plural, name, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomObjectsApi#replaceNamespacedCustomObjectStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1579,6 +1936,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/EventsApi.md b/kubernetes/docs/EventsApi.md index 6dde9dcc91..2ca4311c51 100644 --- a/kubernetes/docs/EventsApi.md +++ b/kubernetes/docs/EventsApi.md @@ -1,6 +1,6 @@ # EventsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsApi apiInstance = new EventsApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsApi apiInstance = new EventsApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/EventsV1beta1Api.md b/kubernetes/docs/EventsV1beta1Api.md index 63fd19ee61..52c1615874 100644 --- a/kubernetes/docs/EventsV1beta1Api.md +++ b/kubernetes/docs/EventsV1beta1Api.md @@ -1,6 +1,6 @@ # EventsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,32 +26,41 @@ create an Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Event body = new V1beta1Event(); // V1beta1Event | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1Event result = apiInstance.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#createNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Event body = new V1beta1Event(); // V1beta1Event | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1Event result = apiInstance.createNamespacedEvent(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#createNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedEvent** -> V1Status deleteCollectionNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -89,36 +106,51 @@ delete collection of Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#deleteCollectionNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#deleteCollectionNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,13 +160,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -146,12 +184,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedEvent** -> V1Status deleteNamespacedEvent(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -160,35 +204,44 @@ delete an Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#deleteNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#deleteNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,11 +252,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -215,9 +268,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -229,27 +289,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -266,12 +335,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listEventForAllNamespaces** -> V1beta1EventList listEventForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1EventList listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -280,35 +355,45 @@ list or watch objects of kind Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1EventList result = apiInstance.listEventForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#listEventForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1EventList result = apiInstance.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#listEventForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -316,6 +401,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -335,12 +421,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedEvent** -> V1beta1EventList listNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1EventList listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -349,36 +441,46 @@ list or watch objects of kind Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1EventList result = apiInstance.listNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#listNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1EventList result = apiInstance.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#listNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -388,6 +490,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -406,9 +509,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedEvent** > V1beta1Event patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -420,34 +529,43 @@ partially update the specified Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1Event result = apiInstance.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#patchNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1Event result = apiInstance.patchNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#patchNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -457,7 +575,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Event | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -476,6 +594,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedEvent** > V1beta1Event readNamespacedEvent(name, namespace, pretty, exact, export) @@ -487,32 +611,41 @@ read the specified Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#readNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1Event result = apiInstance.readNamespacedEvent(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#readNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,9 +669,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedEvent** > V1beta1Event replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager) @@ -550,33 +689,42 @@ replace the specified Event ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.EventsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -EventsV1beta1Api apiInstance = new EventsV1beta1Api(); -String name = "name_example"; // String | name of the Event -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Event body = new V1beta1Event(); // V1beta1Event | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1Event result = apiInstance.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling EventsV1beta1Api#replaceNamespacedEvent"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.EventsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + EventsV1beta1Api apiInstance = new EventsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Event + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Event body = new V1beta1Event(); // V1beta1Event | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1Event result = apiInstance.replaceNamespacedEvent(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling EventsV1beta1Api#replaceNamespacedEvent"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -601,6 +749,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ExtensionsApi.md b/kubernetes/docs/ExtensionsApi.md index 23325c2cf4..4a81602840 100644 --- a/kubernetes/docs/ExtensionsApi.md +++ b/kubernetes/docs/ExtensionsApi.md @@ -1,6 +1,6 @@ # ExtensionsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsApi apiInstance = new ExtensionsApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsApi apiInstance = new ExtensionsApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md b/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md index 449d8aa30a..e021150073 100644 --- a/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md +++ b/kubernetes/docs/ExtensionsV1beta1AllowedCSIDriver.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1AllowedCSIDriver ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name is the registered name of the CSI driver | diff --git a/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md b/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md index f3c9a30fb0..067d879f3e 100644 --- a/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md +++ b/kubernetes/docs/ExtensionsV1beta1AllowedFlexVolume.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1AllowedFlexVolume ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **driver** | **String** | driver is the name of the Flexvolume driver. | diff --git a/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md b/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md index 86c9e73bdc..892fc1fd16 100644 --- a/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md +++ b/kubernetes/docs/ExtensionsV1beta1AllowedHostPath.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1AllowedHostPath ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pathPrefix** | **String** | pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1Api.md b/kubernetes/docs/ExtensionsV1beta1Api.md index f19b99fcd8..b783510062 100644 --- a/kubernetes/docs/ExtensionsV1beta1Api.md +++ b/kubernetes/docs/ExtensionsV1beta1Api.md @@ -1,6 +1,6 @@ # ExtensionsV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -87,32 +87,41 @@ create a DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1DaemonSet body = new V1beta1DaemonSet(); // V1beta1DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1DaemonSet result = apiInstance.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1DaemonSet body = new V1beta1DaemonSet(); // V1beta1DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1DaemonSet result = apiInstance.createNamespacedDaemonSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -136,9 +145,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDeployment** > ExtensionsV1beta1Deployment createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager) @@ -150,32 +167,41 @@ create a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Deployment body = new ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Deployment body = new ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Deployment result = apiInstance.createNamespacedDeployment(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,9 +225,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedDeploymentRollback** > V1Status createNamespacedDeploymentRollback(name, namespace, body, dryRun, fieldManager, pretty) @@ -213,33 +247,42 @@ create rollback of a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DeploymentRollback -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1DeploymentRollback body = new ExtensionsV1beta1DeploymentRollback(); // ExtensionsV1beta1DeploymentRollback | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Status result = apiInstance.createNamespacedDeploymentRollback(name, namespace, body, dryRun, fieldManager, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedDeploymentRollback"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DeploymentRollback + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1DeploymentRollback body = new ExtensionsV1beta1DeploymentRollback(); // ExtensionsV1beta1DeploymentRollback | + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Status result = apiInstance.createNamespacedDeploymentRollback(name, namespace, body, dryRun, fieldManager, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedDeploymentRollback"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -264,9 +307,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedIngress** > ExtensionsV1beta1Ingress createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager) @@ -278,32 +329,41 @@ create an Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Ingress body = new ExtensionsV1beta1Ingress(); // ExtensionsV1beta1Ingress | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Ingress result = apiInstance.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Ingress body = new ExtensionsV1beta1Ingress(); // ExtensionsV1beta1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Ingress result = apiInstance.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -327,9 +387,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedNetworkPolicy** > V1beta1NetworkPolicy createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager) @@ -341,32 +409,41 @@ create a NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1NetworkPolicy body = new V1beta1NetworkPolicy(); // V1beta1NetworkPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1NetworkPolicy result = apiInstance.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1NetworkPolicy body = new V1beta1NetworkPolicy(); // V1beta1NetworkPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1NetworkPolicy result = apiInstance.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -390,9 +467,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedReplicaSet** > V1beta1ReplicaSet createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager) @@ -404,32 +489,41 @@ create a ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1ReplicaSet body = new V1beta1ReplicaSet(); // V1beta1ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ReplicaSet result = apiInstance.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ReplicaSet body = new V1beta1ReplicaSet(); // V1beta1ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ReplicaSet result = apiInstance.createNamespacedReplicaSet(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -453,9 +547,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createPodSecurityPolicy** > ExtensionsV1beta1PodSecurityPolicy createPodSecurityPolicy(body, pretty, dryRun, fieldManager) @@ -467,31 +569,40 @@ create a PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -ExtensionsV1beta1PodSecurityPolicy body = new ExtensionsV1beta1PodSecurityPolicy(); // ExtensionsV1beta1PodSecurityPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1PodSecurityPolicy result = apiInstance.createPodSecurityPolicy(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#createPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + ExtensionsV1beta1PodSecurityPolicy body = new ExtensionsV1beta1PodSecurityPolicy(); // ExtensionsV1beta1PodSecurityPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1PodSecurityPolicy result = apiInstance.createPodSecurityPolicy(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#createPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -514,12 +625,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDaemonSet** -> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -528,36 +647,51 @@ delete collection of DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -567,13 +701,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -585,12 +725,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedDeployment** -> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -599,36 +745,51 @@ delete collection of Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -638,13 +799,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -656,12 +823,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -670,36 +843,51 @@ delete collection of Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -709,13 +897,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -727,12 +921,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -741,36 +941,51 @@ delete collection of NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -780,13 +995,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -798,12 +1019,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedReplicaSet** -> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -812,36 +1039,51 @@ delete collection of ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -851,13 +1093,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -869,12 +1117,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionPodSecurityPolicy** -> V1Status deleteCollectionPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -883,35 +1137,50 @@ delete collection of PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteCollectionPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -920,13 +1189,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -938,12 +1213,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedDaemonSet** -> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -952,35 +1233,44 @@ delete a DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -991,11 +1281,11 @@ Name | Type | Description | Notes **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1007,12 +1297,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedDeployment** -> V1Status deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1021,35 +1318,44 @@ delete a Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1060,11 +1366,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1076,12 +1382,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedIngress** -> V1Status deleteNamespacedIngress(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1090,35 +1403,44 @@ delete an Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedIngress(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1129,11 +1451,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1145,12 +1467,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedNetworkPolicy** -> V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1159,35 +1488,44 @@ delete a NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1198,11 +1536,11 @@ Name | Type | Description | Notes **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1214,12 +1552,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedReplicaSet** -> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1228,35 +1573,44 @@ delete a ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deleteNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1267,11 +1621,11 @@ Name | Type | Description | Notes **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1283,12 +1637,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deletePodSecurityPolicy** -> V1Status deletePodSecurityPolicy(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -1297,34 +1658,43 @@ delete a PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deletePodSecurityPolicy(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#deletePodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#deletePodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1334,11 +1704,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodSecurityPolicy | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -1350,9 +1720,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -1364,27 +1741,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1401,12 +1787,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDaemonSetForAllNamespaces** -> V1beta1DaemonSetList listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1DaemonSetList listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1415,35 +1807,45 @@ list or watch objects of kind DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1DaemonSetList result = apiInstance.listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listDaemonSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1DaemonSetList result = apiInstance.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listDaemonSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1451,6 +1853,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1470,12 +1873,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listDeploymentForAllNamespaces** -> ExtensionsV1beta1DeploymentList listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> ExtensionsV1beta1DeploymentList listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1484,35 +1893,45 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - ExtensionsV1beta1DeploymentList result = apiInstance.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listDeploymentForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + ExtensionsV1beta1DeploymentList result = apiInstance.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listDeploymentForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1520,6 +1939,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1539,12 +1959,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listIngressForAllNamespaces** -> ExtensionsV1beta1IngressList listIngressForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> ExtensionsV1beta1IngressList listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1553,35 +1979,45 @@ list or watch objects of kind Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - ExtensionsV1beta1IngressList result = apiInstance.listIngressForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listIngressForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + ExtensionsV1beta1IngressList result = apiInstance.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listIngressForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1589,6 +2025,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1608,12 +2045,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDaemonSet** -> V1beta1DaemonSetList listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1DaemonSetList listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1622,36 +2065,46 @@ list or watch objects of kind DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1DaemonSetList result = apiInstance.listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1DaemonSetList result = apiInstance.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1661,6 +2114,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1679,12 +2133,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedDeployment** -> ExtensionsV1beta1DeploymentList listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> ExtensionsV1beta1DeploymentList listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1693,36 +2153,46 @@ list or watch objects of kind Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - ExtensionsV1beta1DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + ExtensionsV1beta1DeploymentList result = apiInstance.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1732,6 +2202,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1750,12 +2221,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedIngress** -> ExtensionsV1beta1IngressList listNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> ExtensionsV1beta1IngressList listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1764,36 +2241,46 @@ list or watch objects of kind Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - ExtensionsV1beta1IngressList result = apiInstance.listNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + ExtensionsV1beta1IngressList result = apiInstance.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1803,6 +2290,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1821,12 +2309,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedNetworkPolicy** -> V1beta1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1835,36 +2329,46 @@ list or watch objects of kind NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1874,6 +2378,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1892,12 +2397,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedReplicaSet** -> V1beta1ReplicaSetList listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1ReplicaSetList listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1906,36 +2417,46 @@ list or watch objects of kind ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ReplicaSetList result = apiInstance.listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ReplicaSetList result = apiInstance.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1945,6 +2466,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1963,12 +2485,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNetworkPolicyForAllNamespaces** -> V1beta1NetworkPolicyList listNetworkPolicyForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1NetworkPolicyList listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1977,35 +2505,45 @@ list or watch objects of kind NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listNetworkPolicyForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listNetworkPolicyForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2013,6 +2551,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -2032,12 +2571,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPodSecurityPolicy** -> ExtensionsV1beta1PodSecurityPolicyList listPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> ExtensionsV1beta1PodSecurityPolicyList listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -2046,35 +2591,45 @@ list or watch objects of kind PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - ExtensionsV1beta1PodSecurityPolicyList result = apiInstance.listPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + ExtensionsV1beta1PodSecurityPolicyList result = apiInstance.listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2083,6 +2638,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -2101,12 +2657,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listReplicaSetForAllNamespaces** -> V1beta1ReplicaSetList listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1ReplicaSetList listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -2115,35 +2677,45 @@ list or watch objects of kind ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ReplicaSetList result = apiInstance.listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#listReplicaSetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ReplicaSetList result = apiInstance.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#listReplicaSetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2151,6 +2723,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -2170,9 +2743,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDaemonSet** > V1beta1DaemonSet patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2184,34 +2763,43 @@ partially update the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1DaemonSet result = apiInstance.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1DaemonSet result = apiInstance.patchNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2221,7 +2809,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2240,6 +2828,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDaemonSetStatus** > V1beta1DaemonSet patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2251,34 +2845,43 @@ partially update status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1DaemonSet result = apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1DaemonSet result = apiInstance.patchNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2288,7 +2891,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the DaemonSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2307,6 +2910,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeployment** > ExtensionsV1beta1Deployment patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2318,34 +2927,43 @@ partially update the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Deployment result = apiInstance.patchNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2355,7 +2973,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2374,6 +2992,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentScale** > ExtensionsV1beta1Scale patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2385,34 +3009,43 @@ partially update scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Scale result = apiInstance.patchNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2422,7 +3055,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2441,6 +3074,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedDeploymentStatus** > ExtensionsV1beta1Deployment patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2452,34 +3091,43 @@ partially update status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Deployment result = apiInstance.patchNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2489,7 +3137,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Deployment | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2508,6 +3156,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedIngress** > ExtensionsV1beta1Ingress patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2519,34 +3173,43 @@ partially update the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2556,7 +3219,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2575,6 +3238,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedIngressStatus** > ExtensionsV1beta1Ingress patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2586,34 +3255,43 @@ partially update status of the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedIngressStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2623,7 +3301,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2642,6 +3320,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedNetworkPolicy** > V1beta1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2653,34 +3337,43 @@ partially update the specified NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2690,7 +3383,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2709,6 +3402,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSet** > V1beta1ReplicaSet patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2720,34 +3419,43 @@ partially update the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1ReplicaSet result = apiInstance.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ReplicaSet result = apiInstance.patchNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2757,7 +3465,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2776,6 +3484,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSetScale** > ExtensionsV1beta1Scale patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2787,34 +3501,43 @@ partially update scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Scale result = apiInstance.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Scale result = apiInstance.patchNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2824,7 +3547,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2843,6 +3566,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicaSetStatus** > V1beta1ReplicaSet patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2854,34 +3583,43 @@ partially update status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1ReplicaSet result = apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ReplicaSet result = apiInstance.patchNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2891,7 +3629,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ReplicaSet | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2910,6 +3648,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedReplicationControllerDummyScale** > ExtensionsV1beta1Scale patchNamespacedReplicationControllerDummyScale(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -2921,34 +3665,43 @@ partially update scale of the specified ReplicationControllerDummy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1Scale result = apiInstance.patchNamespacedReplicationControllerDummyScale(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicationControllerDummyScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1Scale result = apiInstance.patchNamespacedReplicationControllerDummyScale(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchNamespacedReplicationControllerDummyScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2958,7 +3711,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Scale | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -2977,6 +3730,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPodSecurityPolicy** > ExtensionsV1beta1PodSecurityPolicy patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force) @@ -2988,33 +3747,42 @@ partially update the specified PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - ExtensionsV1beta1PodSecurityPolicy result = apiInstance.patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#patchPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + ExtensionsV1beta1PodSecurityPolicy result = apiInstance.patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#patchPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3023,7 +3791,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodSecurityPolicy | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -3042,6 +3810,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDaemonSet** > V1beta1DaemonSet readNamespacedDaemonSet(name, namespace, pretty, exact, export) @@ -3053,32 +3827,41 @@ read the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1DaemonSet result = apiInstance.readNamespacedDaemonSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3102,9 +3885,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDaemonSetStatus** > V1beta1DaemonSet readNamespacedDaemonSetStatus(name, namespace, pretty) @@ -3116,30 +3905,39 @@ read status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1DaemonSet result = apiInstance.readNamespacedDaemonSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3161,9 +3959,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeployment** > ExtensionsV1beta1Deployment readNamespacedDeployment(name, namespace, pretty, exact, export) @@ -3175,32 +3979,41 @@ read the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - ExtensionsV1beta1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + ExtensionsV1beta1Deployment result = apiInstance.readNamespacedDeployment(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3224,9 +4037,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentScale** > ExtensionsV1beta1Scale readNamespacedDeploymentScale(name, namespace, pretty) @@ -3238,30 +4057,39 @@ read scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - ExtensionsV1beta1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + ExtensionsV1beta1Scale result = apiInstance.readNamespacedDeploymentScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3283,9 +4111,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedDeploymentStatus** > ExtensionsV1beta1Deployment readNamespacedDeploymentStatus(name, namespace, pretty) @@ -3297,30 +4131,39 @@ read status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - ExtensionsV1beta1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + ExtensionsV1beta1Deployment result = apiInstance.readNamespacedDeploymentStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3342,9 +4185,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedIngress** > ExtensionsV1beta1Ingress readNamespacedIngress(name, namespace, pretty, exact, export) @@ -3356,32 +4205,41 @@ read the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - ExtensionsV1beta1Ingress result = apiInstance.readNamespacedIngress(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + ExtensionsV1beta1Ingress result = apiInstance.readNamespacedIngress(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3405,9 +4263,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedIngressStatus** > ExtensionsV1beta1Ingress readNamespacedIngressStatus(name, namespace, pretty) @@ -3419,30 +4283,39 @@ read status of the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - ExtensionsV1beta1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedIngressStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + ExtensionsV1beta1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3464,9 +4337,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedNetworkPolicy** > V1beta1NetworkPolicy readNamespacedNetworkPolicy(name, namespace, pretty, exact, export) @@ -3478,32 +4357,41 @@ read the specified NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3527,9 +4415,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSet** > V1beta1ReplicaSet readNamespacedReplicaSet(name, namespace, pretty, exact, export) @@ -3541,32 +4435,41 @@ read the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1ReplicaSet result = apiInstance.readNamespacedReplicaSet(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3590,9 +4493,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSetScale** > ExtensionsV1beta1Scale readNamespacedReplicaSetScale(name, namespace, pretty) @@ -3604,30 +4513,39 @@ read scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - ExtensionsV1beta1Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + ExtensionsV1beta1Scale result = apiInstance.readNamespacedReplicaSetScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3649,9 +4567,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicaSetStatus** > V1beta1ReplicaSet readNamespacedReplicaSetStatus(name, namespace, pretty) @@ -3663,30 +4587,39 @@ read status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1ReplicaSet result = apiInstance.readNamespacedReplicaSetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3708,9 +4641,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedReplicationControllerDummyScale** > ExtensionsV1beta1Scale readNamespacedReplicationControllerDummyScale(name, namespace, pretty) @@ -3722,30 +4661,39 @@ read scale of the specified ReplicationControllerDummy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - ExtensionsV1beta1Scale result = apiInstance.readNamespacedReplicationControllerDummyScale(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicationControllerDummyScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + ExtensionsV1beta1Scale result = apiInstance.readNamespacedReplicationControllerDummyScale(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readNamespacedReplicationControllerDummyScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3767,9 +4715,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPodSecurityPolicy** > ExtensionsV1beta1PodSecurityPolicy readPodSecurityPolicy(name, pretty, exact, export) @@ -3781,31 +4735,40 @@ read the specified PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - ExtensionsV1beta1PodSecurityPolicy result = apiInstance.readPodSecurityPolicy(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#readPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + ExtensionsV1beta1PodSecurityPolicy result = apiInstance.readPodSecurityPolicy(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#readPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3828,9 +4791,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedDaemonSet** > V1beta1DaemonSet replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -3842,33 +4811,42 @@ replace the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1DaemonSet body = new V1beta1DaemonSet(); // V1beta1DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1DaemonSet result = apiInstance.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDaemonSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1DaemonSet body = new V1beta1DaemonSet(); // V1beta1DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1DaemonSet result = apiInstance.replaceNamespacedDaemonSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDaemonSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3893,9 +4871,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDaemonSetStatus** > V1beta1DaemonSet replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -3907,33 +4892,42 @@ replace status of the specified DaemonSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the DaemonSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1DaemonSet body = new V1beta1DaemonSet(); // V1beta1DaemonSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1DaemonSet result = apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDaemonSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the DaemonSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1DaemonSet body = new V1beta1DaemonSet(); // V1beta1DaemonSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1DaemonSet result = apiInstance.replaceNamespacedDaemonSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDaemonSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -3958,9 +4952,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeployment** > ExtensionsV1beta1Deployment replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager) @@ -3972,33 +4973,42 @@ replace the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Deployment body = new ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDeployment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Deployment body = new ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Deployment result = apiInstance.replaceNamespacedDeployment(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDeployment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4023,9 +5033,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentScale** > ExtensionsV1beta1Scale replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -4037,33 +5054,42 @@ replace scale of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Scale body = new ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDeploymentScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Scale body = new ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Scale result = apiInstance.replaceNamespacedDeploymentScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDeploymentScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4088,9 +5114,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedDeploymentStatus** > ExtensionsV1beta1Deployment replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -4102,33 +5135,42 @@ replace status of the specified Deployment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Deployment -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Deployment body = new ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDeploymentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Deployment + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Deployment body = new ExtensionsV1beta1Deployment(); // ExtensionsV1beta1Deployment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Deployment result = apiInstance.replaceNamespacedDeploymentStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedDeploymentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4153,9 +5195,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedIngress** > ExtensionsV1beta1Ingress replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager) @@ -4167,33 +5216,42 @@ replace the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Ingress body = new ExtensionsV1beta1Ingress(); // ExtensionsV1beta1Ingress | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Ingress body = new ExtensionsV1beta1Ingress(); // ExtensionsV1beta1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4218,9 +5276,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedIngressStatus** > ExtensionsV1beta1Ingress replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -4232,33 +5297,42 @@ replace status of the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Ingress body = new ExtensionsV1beta1Ingress(); // ExtensionsV1beta1Ingress | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedIngressStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Ingress body = new ExtensionsV1beta1Ingress(); // ExtensionsV1beta1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4283,9 +5357,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedNetworkPolicy** > V1beta1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager) @@ -4297,33 +5378,42 @@ replace the specified NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1NetworkPolicy body = new V1beta1NetworkPolicy(); // V1beta1NetworkPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1NetworkPolicy body = new V1beta1NetworkPolicy(); // V1beta1NetworkPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4348,9 +5438,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSet** > V1beta1ReplicaSet replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager) @@ -4362,33 +5459,42 @@ replace the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1ReplicaSet body = new V1beta1ReplicaSet(); // V1beta1ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ReplicaSet result = apiInstance.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicaSet"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ReplicaSet body = new V1beta1ReplicaSet(); // V1beta1ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ReplicaSet result = apiInstance.replaceNamespacedReplicaSet(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicaSet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4413,9 +5519,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSetScale** > ExtensionsV1beta1Scale replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -4427,33 +5540,42 @@ replace scale of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Scale body = new ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Scale result = apiInstance.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicaSetScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Scale body = new ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Scale result = apiInstance.replaceNamespacedReplicaSetScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicaSetScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4478,9 +5600,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicaSetStatus** > V1beta1ReplicaSet replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -4492,33 +5621,42 @@ replace status of the specified ReplicaSet ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the ReplicaSet -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1ReplicaSet body = new V1beta1ReplicaSet(); // V1beta1ReplicaSet | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ReplicaSet result = apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicaSetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ReplicaSet + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1ReplicaSet body = new V1beta1ReplicaSet(); // V1beta1ReplicaSet | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ReplicaSet result = apiInstance.replaceNamespacedReplicaSetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicaSetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4543,9 +5681,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedReplicationControllerDummyScale** > ExtensionsV1beta1Scale replaceNamespacedReplicationControllerDummyScale(name, namespace, body, pretty, dryRun, fieldManager) @@ -4557,33 +5702,42 @@ replace scale of the specified ReplicationControllerDummy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the Scale -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -ExtensionsV1beta1Scale body = new ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1Scale result = apiInstance.replaceNamespacedReplicationControllerDummyScale(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicationControllerDummyScale"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Scale + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + ExtensionsV1beta1Scale body = new ExtensionsV1beta1Scale(); // ExtensionsV1beta1Scale | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1Scale result = apiInstance.replaceNamespacedReplicationControllerDummyScale(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replaceNamespacedReplicationControllerDummyScale"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4608,9 +5762,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replacePodSecurityPolicy** > ExtensionsV1beta1PodSecurityPolicy replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager) @@ -4622,32 +5783,41 @@ replace the specified PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.ExtensionsV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -ExtensionsV1beta1PodSecurityPolicy body = new ExtensionsV1beta1PodSecurityPolicy(); // ExtensionsV1beta1PodSecurityPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - ExtensionsV1beta1PodSecurityPolicy result = apiInstance.replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling ExtensionsV1beta1Api#replacePodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.ExtensionsV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + ExtensionsV1beta1Api apiInstance = new ExtensionsV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + ExtensionsV1beta1PodSecurityPolicy body = new ExtensionsV1beta1PodSecurityPolicy(); // ExtensionsV1beta1PodSecurityPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + ExtensionsV1beta1PodSecurityPolicy result = apiInstance.replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ExtensionsV1beta1Api#replacePodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -4671,6 +5841,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/ExtensionsV1beta1Deployment.md b/kubernetes/docs/ExtensionsV1beta1Deployment.md index 2902cf25e8..947f252f8a 100644 --- a/kubernetes/docs/ExtensionsV1beta1Deployment.md +++ b/kubernetes/docs/ExtensionsV1beta1Deployment.md @@ -1,14 +1,16 @@ + # ExtensionsV1beta1Deployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1DeploymentSpec**](ExtensionsV1beta1DeploymentSpec.md) | | [optional] +**status** | [**ExtensionsV1beta1DeploymentStatus**](ExtensionsV1beta1DeploymentStatus.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md index 2d10dbb951..4eae037602 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentCondition.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1DeploymentCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md index 2185202064..0f07ba7964 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentList.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentList.md @@ -1,13 +1,15 @@ + # ExtensionsV1beta1DeploymentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<ExtensionsV1beta1Deployment>**](ExtensionsV1beta1Deployment.md) | Items is the list of Deployments. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md index 07052cedcc..2705b2cbf1 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentRollback.md @@ -1,13 +1,15 @@ + # ExtensionsV1beta1DeploymentRollback ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **String** | Required: This must match the Name of a deployment. | -**rollbackTo** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | The config of this deployment rollback. | +**rollbackTo** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | | **updatedAnnotations** | **Map<String, String>** | The annotations to be updated to a deployment | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md index 530c4d5587..817beae603 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentSpec.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1DeploymentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] @@ -9,10 +11,10 @@ Name | Type | Description | Notes **progressDeadlineSeconds** | **Integer** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". | [optional] **replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". | [optional] -**rollbackTo** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | [optional] -**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**rollbackTo** | [**ExtensionsV1beta1RollbackConfig**](ExtensionsV1beta1RollbackConfig.md) | | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**strategy** | [**ExtensionsV1beta1DeploymentStrategy**](ExtensionsV1beta1DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md index 50ddaefc79..25cc2a095c 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStatus.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1DeploymentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md index 7c802f2713..c0e2e278df 100644 --- a/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md +++ b/kubernetes/docs/ExtensionsV1beta1DeploymentStrategy.md @@ -1,10 +1,12 @@ + # ExtensionsV1beta1DeploymentStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rollingUpdate** | [**ExtensionsV1beta1RollingUpdateDeployment**](ExtensionsV1beta1RollingUpdateDeployment.md) | | [optional] **type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md index df11ade5cc..5caf312f2a 100644 --- a/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1FSGroupStrategyOptions.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1FSGroupStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<ExtensionsV1beta1IDRange>**](ExtensionsV1beta1IDRange.md) | ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md b/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md index 339f859320..8e2def0f72 100644 --- a/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md +++ b/kubernetes/docs/ExtensionsV1beta1HTTPIngressPath.md @@ -1,10 +1,12 @@ + # ExtensionsV1beta1HTTPIngressPath ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | Backend defines the referenced service endpoint to which the traffic will be forwarded to. | +**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | | **path** | **String** | Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md b/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md index 037df9aabe..1f1fcacac2 100644 --- a/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md +++ b/kubernetes/docs/ExtensionsV1beta1HTTPIngressRuleValue.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1HTTPIngressRuleValue ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **paths** | [**List<ExtensionsV1beta1HTTPIngressPath>**](ExtensionsV1beta1HTTPIngressPath.md) | A collection of paths that map requests to backends. | diff --git a/kubernetes/docs/ExtensionsV1beta1HostPortRange.md b/kubernetes/docs/ExtensionsV1beta1HostPortRange.md index 0a24de6290..025f1214cc 100644 --- a/kubernetes/docs/ExtensionsV1beta1HostPortRange.md +++ b/kubernetes/docs/ExtensionsV1beta1HostPortRange.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1HostPortRange ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max** | **Integer** | max is the end of the range, inclusive. | diff --git a/kubernetes/docs/ExtensionsV1beta1IDRange.md b/kubernetes/docs/ExtensionsV1beta1IDRange.md index de2a3db3c1..7069495af3 100644 --- a/kubernetes/docs/ExtensionsV1beta1IDRange.md +++ b/kubernetes/docs/ExtensionsV1beta1IDRange.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1IDRange ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max** | **Long** | max is the end of the range, inclusive. | diff --git a/kubernetes/docs/ExtensionsV1beta1Ingress.md b/kubernetes/docs/ExtensionsV1beta1Ingress.md index d3075cb948..d926deea5d 100644 --- a/kubernetes/docs/ExtensionsV1beta1Ingress.md +++ b/kubernetes/docs/ExtensionsV1beta1Ingress.md @@ -1,14 +1,16 @@ + # ExtensionsV1beta1Ingress ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**ExtensionsV1beta1IngressSpec**](ExtensionsV1beta1IngressSpec.md) | Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**ExtensionsV1beta1IngressStatus**](ExtensionsV1beta1IngressStatus.md) | Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1IngressSpec**](ExtensionsV1beta1IngressSpec.md) | | [optional] +**status** | [**ExtensionsV1beta1IngressStatus**](ExtensionsV1beta1IngressStatus.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1IngressBackend.md b/kubernetes/docs/ExtensionsV1beta1IngressBackend.md index c3d3dbe3c8..7dd4289be9 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressBackend.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressBackend.md @@ -1,11 +1,13 @@ + # ExtensionsV1beta1IngressBackend ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **serviceName** | **String** | Specifies the name of the referenced service. | -**servicePort** | [**IntOrString**](IntOrString.md) | Specifies the port of the referenced service. | +**servicePort** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | diff --git a/kubernetes/docs/ExtensionsV1beta1IngressList.md b/kubernetes/docs/ExtensionsV1beta1IngressList.md index 8a84d785eb..5dc5f9f0ac 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressList.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressList.md @@ -1,13 +1,15 @@ + # ExtensionsV1beta1IngressList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<ExtensionsV1beta1Ingress>**](ExtensionsV1beta1Ingress.md) | Items is the list of Ingress. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1IngressRule.md b/kubernetes/docs/ExtensionsV1beta1IngressRule.md index 77887d34b5..039f5d30d1 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressRule.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressRule.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1IngressRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host** | **String** | Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1IngressSpec.md b/kubernetes/docs/ExtensionsV1beta1IngressSpec.md index 4888addad5..dfd61805a5 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressSpec.md @@ -1,10 +1,12 @@ + # ExtensionsV1beta1IngressSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. | [optional] +**backend** | [**ExtensionsV1beta1IngressBackend**](ExtensionsV1beta1IngressBackend.md) | | [optional] **rules** | [**List<ExtensionsV1beta1IngressRule>**](ExtensionsV1beta1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] **tls** | [**List<ExtensionsV1beta1IngressTLS>**](ExtensionsV1beta1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1IngressStatus.md b/kubernetes/docs/ExtensionsV1beta1IngressStatus.md index 87d3021892..b1c6867704 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressStatus.md @@ -1,10 +1,12 @@ + # ExtensionsV1beta1IngressStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer. | [optional] +**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1IngressTLS.md b/kubernetes/docs/ExtensionsV1beta1IngressTLS.md index a12ede3730..8b7d51e2dd 100644 --- a/kubernetes/docs/ExtensionsV1beta1IngressTLS.md +++ b/kubernetes/docs/ExtensionsV1beta1IngressTLS.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1IngressTLS ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hosts** | **List<String>** | Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md index 73c649171b..dbe7d83435 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicy.md @@ -1,13 +1,15 @@ + # ExtensionsV1beta1PodSecurityPolicy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**ExtensionsV1beta1PodSecurityPolicySpec**](ExtensionsV1beta1PodSecurityPolicySpec.md) | spec defines the policy enforced. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1PodSecurityPolicySpec**](ExtensionsV1beta1PodSecurityPolicySpec.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md index d744f0a541..699bcca5c0 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicyList.md @@ -1,13 +1,15 @@ + # ExtensionsV1beta1PodSecurityPolicyList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<ExtensionsV1beta1PodSecurityPolicy>**](ExtensionsV1beta1PodSecurityPolicy.md) | items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md index 590639bae6..394b22ca4e 100644 --- a/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md +++ b/kubernetes/docs/ExtensionsV1beta1PodSecurityPolicySpec.md @@ -1,11 +1,13 @@ + # ExtensionsV1beta1PodSecurityPolicySpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowPrivilegeEscalation** | **Boolean** | allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. | [optional] -**allowedCSIDrivers** | [**List<ExtensionsV1beta1AllowedCSIDriver>**](ExtensionsV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. | [optional] +**allowedCSIDrivers** | [**List<ExtensionsV1beta1AllowedCSIDriver>**](ExtensionsV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. | [optional] **allowedCapabilities** | **List<String>** | allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. | [optional] **allowedFlexVolumes** | [**List<ExtensionsV1beta1AllowedFlexVolume>**](ExtensionsV1beta1AllowedFlexVolume.md) | allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. | [optional] **allowedHostPaths** | [**List<ExtensionsV1beta1AllowedHostPath>**](ExtensionsV1beta1AllowedHostPath.md) | allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. | [optional] @@ -14,7 +16,7 @@ Name | Type | Description | Notes **defaultAddCapabilities** | **List<String>** | defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. | [optional] **defaultAllowPrivilegeEscalation** | **Boolean** | defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. | [optional] **forbiddenSysctls** | **List<String>** | forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. | [optional] -**fsGroup** | [**ExtensionsV1beta1FSGroupStrategyOptions**](ExtensionsV1beta1FSGroupStrategyOptions.md) | fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. | +**fsGroup** | [**ExtensionsV1beta1FSGroupStrategyOptions**](ExtensionsV1beta1FSGroupStrategyOptions.md) | | **hostIPC** | **Boolean** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] **hostNetwork** | **Boolean** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] **hostPID** | **Boolean** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] @@ -22,10 +24,11 @@ Name | Type | Description | Notes **privileged** | **Boolean** | privileged determines if a pod can request to be run as privileged. | [optional] **readOnlyRootFilesystem** | **Boolean** | readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] **requiredDropCapabilities** | **List<String>** | requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] -**runAsGroup** | [**ExtensionsV1beta1RunAsGroupStrategyOptions**](ExtensionsV1beta1RunAsGroupStrategyOptions.md) | RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. | [optional] -**runAsUser** | [**ExtensionsV1beta1RunAsUserStrategyOptions**](ExtensionsV1beta1RunAsUserStrategyOptions.md) | runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. | -**seLinux** | [**ExtensionsV1beta1SELinuxStrategyOptions**](ExtensionsV1beta1SELinuxStrategyOptions.md) | seLinux is the strategy that will dictate the allowable labels that may be set. | -**supplementalGroups** | [**ExtensionsV1beta1SupplementalGroupsStrategyOptions**](ExtensionsV1beta1SupplementalGroupsStrategyOptions.md) | supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | +**runAsGroup** | [**ExtensionsV1beta1RunAsGroupStrategyOptions**](ExtensionsV1beta1RunAsGroupStrategyOptions.md) | | [optional] +**runAsUser** | [**ExtensionsV1beta1RunAsUserStrategyOptions**](ExtensionsV1beta1RunAsUserStrategyOptions.md) | | +**runtimeClass** | [**ExtensionsV1beta1RuntimeClassStrategyOptions**](ExtensionsV1beta1RuntimeClassStrategyOptions.md) | | [optional] +**seLinux** | [**ExtensionsV1beta1SELinuxStrategyOptions**](ExtensionsV1beta1SELinuxStrategyOptions.md) | | +**supplementalGroups** | [**ExtensionsV1beta1SupplementalGroupsStrategyOptions**](ExtensionsV1beta1SupplementalGroupsStrategyOptions.md) | | **volumes** | **List<String>** | volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md index a3137dba92..e12f436f7d 100644 --- a/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md +++ b/kubernetes/docs/ExtensionsV1beta1RollbackConfig.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1RollbackConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **revision** | **Long** | The revision to rollback to. If set to 0, rollback to the last revision. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md index 38b7e8833c..73b8993ba3 100644 --- a/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md +++ b/kubernetes/docs/ExtensionsV1beta1RollingUpdateDeployment.md @@ -1,11 +1,13 @@ + # ExtensionsV1beta1RollingUpdateDeployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxSurge** | **String** | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**maxUnavailable** | **String** | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**maxSurge** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md index 58b0bf9f2e..11cfef5970 100644 --- a/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1RunAsGroupStrategyOptions.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1RunAsGroupStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<ExtensionsV1beta1IDRange>**](ExtensionsV1beta1IDRange.md) | ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md index 3417b2895c..13530097ba 100644 --- a/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1RunAsUserStrategyOptions.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1RunAsUserStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<ExtensionsV1beta1IDRange>**](ExtensionsV1beta1IDRange.md) | ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md new file mode 100644 index 0000000000..39931c2bf1 --- /dev/null +++ b/kubernetes/docs/ExtensionsV1beta1RuntimeClassStrategyOptions.md @@ -0,0 +1,13 @@ + + +# ExtensionsV1beta1RuntimeClassStrategyOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedRuntimeClassNames** | **List<String>** | allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. | +**defaultRuntimeClassName** | **String** | defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. | [optional] + + + diff --git a/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md index ece18bcdcd..e27ea3d062 100644 --- a/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1SELinuxStrategyOptions.md @@ -1,11 +1,13 @@ + # ExtensionsV1beta1SELinuxStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rule** | **String** | rule is the strategy that will dictate the allowable labels that may be set. | -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | [optional] +**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1Scale.md b/kubernetes/docs/ExtensionsV1beta1Scale.md index 11e2a319e9..1f4dd81f47 100644 --- a/kubernetes/docs/ExtensionsV1beta1Scale.md +++ b/kubernetes/docs/ExtensionsV1beta1Scale.md @@ -1,14 +1,16 @@ + # ExtensionsV1beta1Scale ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. | [optional] -**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. | [optional] -**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**ExtensionsV1beta1ScaleSpec**](ExtensionsV1beta1ScaleSpec.md) | | [optional] +**status** | [**ExtensionsV1beta1ScaleStatus**](ExtensionsV1beta1ScaleStatus.md) | | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md index de273f475f..32c83f62f1 100644 --- a/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md +++ b/kubernetes/docs/ExtensionsV1beta1ScaleSpec.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1ScaleSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | desired number of instances for the scaled object. | [optional] diff --git a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md index e953b9aeb7..c87a891b77 100644 --- a/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md +++ b/kubernetes/docs/ExtensionsV1beta1ScaleStatus.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1ScaleStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | actual number of observed instances of the scaled object. | diff --git a/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md index afd181a331..2f827a7ba3 100644 --- a/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md +++ b/kubernetes/docs/ExtensionsV1beta1SupplementalGroupsStrategyOptions.md @@ -1,7 +1,9 @@ + # ExtensionsV1beta1SupplementalGroupsStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<ExtensionsV1beta1IDRange>**](ExtensionsV1beta1IDRange.md) | ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/LogsApi.md b/kubernetes/docs/LogsApi.md index 9a3952abba..8414bf46c4 100644 --- a/kubernetes/docs/LogsApi.md +++ b/kubernetes/docs/LogsApi.md @@ -1,6 +1,6 @@ # LogsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -17,27 +17,36 @@ Method | HTTP request | Description ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.LogsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -LogsApi apiInstance = new LogsApi(); -String logpath = "logpath_example"; // String | path to the log -try { - apiInstance.logFileHandler(logpath); -} catch (ApiException e) { - System.err.println("Exception when calling LogsApi#logFileHandler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.LogsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + LogsApi apiInstance = new LogsApi(defaultClient); + String logpath = "logpath_example"; // String | path to the log + try { + apiInstance.logFileHandler(logpath); + } catch (ApiException e) { + System.err.println("Exception when calling LogsApi#logFileHandler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -60,6 +69,11 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: Not defined +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**401** | Unauthorized | - | + # **logFileListHandler** > logFileListHandler() @@ -69,26 +83,35 @@ null (empty response body) ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.LogsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -LogsApi apiInstance = new LogsApi(); -try { - apiInstance.logFileListHandler(); -} catch (ApiException e) { - System.err.println("Exception when calling LogsApi#logFileListHandler"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.LogsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + LogsApi apiInstance = new LogsApi(defaultClient); + try { + apiInstance.logFileListHandler(); + } catch (ApiException e) { + System.err.println("Exception when calling LogsApi#logFileListHandler"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -108,3 +131,8 @@ null (empty response body) - **Content-Type**: Not defined - **Accept**: Not defined +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NetworkingApi.md b/kubernetes/docs/NetworkingApi.md index a5c17e3cab..0108314f8a 100644 --- a/kubernetes/docs/NetworkingApi.md +++ b/kubernetes/docs/NetworkingApi.md @@ -1,6 +1,6 @@ # NetworkingApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingApi apiInstance = new NetworkingApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingApi apiInstance = new NetworkingApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NetworkingV1Api.md b/kubernetes/docs/NetworkingV1Api.md index 630f896aee..1ef4caae44 100644 --- a/kubernetes/docs/NetworkingV1Api.md +++ b/kubernetes/docs/NetworkingV1Api.md @@ -1,6 +1,6 @@ # NetworkingV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,32 +26,41 @@ create a NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1NetworkPolicy result = apiInstance.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#createNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1NetworkPolicy result = apiInstance.createNamespacedNetworkPolicy(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#createNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedNetworkPolicy** -> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -89,36 +106,51 @@ delete collection of NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#deleteCollectionNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,13 +160,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -146,12 +184,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedNetworkPolicy** -> V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -160,35 +204,44 @@ delete a NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#deleteNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,11 +252,11 @@ Name | Type | Description | Notes **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -215,9 +268,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -229,27 +289,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -266,12 +335,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedNetworkPolicy** -> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1NetworkPolicyList listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -280,36 +355,46 @@ list or watch objects of kind NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1NetworkPolicyList result = apiInstance.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -337,12 +423,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNetworkPolicyForAllNamespaces** -> V1NetworkPolicyList listNetworkPolicyForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1NetworkPolicyList listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -351,35 +443,45 @@ list or watch objects of kind NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1NetworkPolicyList result = apiInstance.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#listNetworkPolicyForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -387,6 +489,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -406,9 +509,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedNetworkPolicy** > V1NetworkPolicy patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -420,34 +529,43 @@ partially update the specified NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#patchNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1NetworkPolicy result = apiInstance.patchNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#patchNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -457,7 +575,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the NetworkPolicy | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -476,6 +594,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedNetworkPolicy** > V1NetworkPolicy readNamespacedNetworkPolicy(name, namespace, pretty, exact, export) @@ -487,32 +611,41 @@ read the specified NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#readNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1NetworkPolicy result = apiInstance.readNamespacedNetworkPolicy(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#readNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,9 +669,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedNetworkPolicy** > V1NetworkPolicy replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager) @@ -550,33 +689,42 @@ replace the specified NetworkPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1Api apiInstance = new NetworkingV1Api(); -String name = "name_example"; // String | name of the NetworkPolicy -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedNetworkPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1Api apiInstance = new NetworkingV1Api(defaultClient); + String name = "name_example"; // String | name of the NetworkPolicy + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1NetworkPolicy body = new V1NetworkPolicy(); // V1NetworkPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1NetworkPolicy result = apiInstance.replaceNamespacedNetworkPolicy(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1Api#replaceNamespacedNetworkPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -601,6 +749,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NetworkingV1beta1Api.md b/kubernetes/docs/NetworkingV1beta1Api.md index 6967eb97d2..db75d0c519 100644 --- a/kubernetes/docs/NetworkingV1beta1Api.md +++ b/kubernetes/docs/NetworkingV1beta1Api.md @@ -1,6 +1,6 @@ # NetworkingV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -29,32 +29,41 @@ create an Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -NetworkingV1beta1Ingress body = new NetworkingV1beta1Ingress(); // NetworkingV1beta1Ingress | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - NetworkingV1beta1Ingress result = apiInstance.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#createNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + NetworkingV1beta1Ingress body = new NetworkingV1beta1Ingress(); // NetworkingV1beta1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + NetworkingV1beta1Ingress result = apiInstance.createNamespacedIngress(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#createNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -78,12 +87,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedIngress** -> V1Status deleteCollectionNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -92,36 +109,51 @@ delete collection of Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#deleteCollectionNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#deleteCollectionNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -131,13 +163,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -149,12 +187,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedIngress** -> V1Status deleteNamespacedIngress(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -163,35 +207,44 @@ delete an Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedIngress(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#deleteNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#deleteNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -202,11 +255,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -218,9 +271,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -232,27 +292,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -269,12 +338,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listIngressForAllNamespaces** -> NetworkingV1beta1IngressList listIngressForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> NetworkingV1beta1IngressList listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -283,35 +358,45 @@ list or watch objects of kind Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - NetworkingV1beta1IngressList result = apiInstance.listIngressForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#listIngressForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + NetworkingV1beta1IngressList result = apiInstance.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#listIngressForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -338,12 +424,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedIngress** -> NetworkingV1beta1IngressList listNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> NetworkingV1beta1IngressList listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -352,36 +444,46 @@ list or watch objects of kind Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - NetworkingV1beta1IngressList result = apiInstance.listNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#listNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + NetworkingV1beta1IngressList result = apiInstance.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#listNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -391,6 +493,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -409,9 +512,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedIngress** > NetworkingV1beta1Ingress patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -423,34 +532,43 @@ partially update the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - NetworkingV1beta1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#patchNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + NetworkingV1beta1Ingress result = apiInstance.patchNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#patchNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -460,7 +578,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -479,6 +597,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedIngressStatus** > NetworkingV1beta1Ingress patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -490,34 +614,43 @@ partially update status of the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - NetworkingV1beta1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#patchNamespacedIngressStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + NetworkingV1beta1Ingress result = apiInstance.patchNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#patchNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -527,7 +660,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Ingress | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -546,6 +679,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedIngress** > NetworkingV1beta1Ingress readNamespacedIngress(name, namespace, pretty, exact, export) @@ -557,32 +696,41 @@ read the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - NetworkingV1beta1Ingress result = apiInstance.readNamespacedIngress(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#readNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + NetworkingV1beta1Ingress result = apiInstance.readNamespacedIngress(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#readNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -606,9 +754,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedIngressStatus** > NetworkingV1beta1Ingress readNamespacedIngressStatus(name, namespace, pretty) @@ -620,30 +774,39 @@ read status of the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - NetworkingV1beta1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#readNamespacedIngressStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + NetworkingV1beta1Ingress result = apiInstance.readNamespacedIngressStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#readNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -665,9 +828,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedIngress** > NetworkingV1beta1Ingress replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager) @@ -679,33 +848,42 @@ replace the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -NetworkingV1beta1Ingress body = new NetworkingV1beta1Ingress(); // NetworkingV1beta1Ingress | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - NetworkingV1beta1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#replaceNamespacedIngress"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + NetworkingV1beta1Ingress body = new NetworkingV1beta1Ingress(); // NetworkingV1beta1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + NetworkingV1beta1Ingress result = apiInstance.replaceNamespacedIngress(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#replaceNamespacedIngress"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -730,9 +908,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedIngressStatus** > NetworkingV1beta1Ingress replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -744,33 +929,42 @@ replace status of the specified Ingress ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NetworkingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(); -String name = "name_example"; // String | name of the Ingress -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -NetworkingV1beta1Ingress body = new NetworkingV1beta1Ingress(); // NetworkingV1beta1Ingress | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - NetworkingV1beta1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NetworkingV1beta1Api#replaceNamespacedIngressStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NetworkingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NetworkingV1beta1Api apiInstance = new NetworkingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Ingress + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + NetworkingV1beta1Ingress body = new NetworkingV1beta1Ingress(); // NetworkingV1beta1Ingress | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + NetworkingV1beta1Ingress result = apiInstance.replaceNamespacedIngressStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworkingV1beta1Api#replaceNamespacedIngressStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -795,6 +989,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md b/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md index a61b27efc6..9c8379dc29 100644 --- a/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md +++ b/kubernetes/docs/NetworkingV1beta1HTTPIngressPath.md @@ -1,10 +1,12 @@ + # NetworkingV1beta1HTTPIngressPath ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | Backend defines the referenced service endpoint to which the traffic will be forwarded to. | +**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | | **path** | **String** | Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md b/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md index a790be71ba..1764eda057 100644 --- a/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md +++ b/kubernetes/docs/NetworkingV1beta1HTTPIngressRuleValue.md @@ -1,7 +1,9 @@ + # NetworkingV1beta1HTTPIngressRuleValue ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **paths** | [**List<NetworkingV1beta1HTTPIngressPath>**](NetworkingV1beta1HTTPIngressPath.md) | A collection of paths that map requests to backends. | diff --git a/kubernetes/docs/NetworkingV1beta1Ingress.md b/kubernetes/docs/NetworkingV1beta1Ingress.md index 27db3e4d8d..085ca84c88 100644 --- a/kubernetes/docs/NetworkingV1beta1Ingress.md +++ b/kubernetes/docs/NetworkingV1beta1Ingress.md @@ -1,14 +1,16 @@ + # NetworkingV1beta1Ingress ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**NetworkingV1beta1IngressSpec**](NetworkingV1beta1IngressSpec.md) | Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**NetworkingV1beta1IngressStatus**](NetworkingV1beta1IngressStatus.md) | Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**NetworkingV1beta1IngressSpec**](NetworkingV1beta1IngressSpec.md) | | [optional] +**status** | [**NetworkingV1beta1IngressStatus**](NetworkingV1beta1IngressStatus.md) | | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1IngressBackend.md b/kubernetes/docs/NetworkingV1beta1IngressBackend.md index b5f03d62e8..6c21646827 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressBackend.md +++ b/kubernetes/docs/NetworkingV1beta1IngressBackend.md @@ -1,11 +1,13 @@ + # NetworkingV1beta1IngressBackend ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **serviceName** | **String** | Specifies the name of the referenced service. | -**servicePort** | [**IntOrString**](IntOrString.md) | Specifies the port of the referenced service. | +**servicePort** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | diff --git a/kubernetes/docs/NetworkingV1beta1IngressList.md b/kubernetes/docs/NetworkingV1beta1IngressList.md index 084828473e..12730b2bb5 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressList.md +++ b/kubernetes/docs/NetworkingV1beta1IngressList.md @@ -1,13 +1,15 @@ + # NetworkingV1beta1IngressList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<NetworkingV1beta1Ingress>**](NetworkingV1beta1Ingress.md) | Items is the list of Ingress. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1IngressRule.md b/kubernetes/docs/NetworkingV1beta1IngressRule.md index f3be80f842..428f2a78d5 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressRule.md +++ b/kubernetes/docs/NetworkingV1beta1IngressRule.md @@ -1,7 +1,9 @@ + # NetworkingV1beta1IngressRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host** | **String** | Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1IngressSpec.md b/kubernetes/docs/NetworkingV1beta1IngressSpec.md index a8fb58a0a3..a29838a563 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressSpec.md +++ b/kubernetes/docs/NetworkingV1beta1IngressSpec.md @@ -1,10 +1,12 @@ + # NetworkingV1beta1IngressSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. | [optional] +**backend** | [**NetworkingV1beta1IngressBackend**](NetworkingV1beta1IngressBackend.md) | | [optional] **rules** | [**List<NetworkingV1beta1IngressRule>**](NetworkingV1beta1IngressRule.md) | A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. | [optional] **tls** | [**List<NetworkingV1beta1IngressTLS>**](NetworkingV1beta1IngressTLS.md) | TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1IngressStatus.md b/kubernetes/docs/NetworkingV1beta1IngressStatus.md index b93e661674..252f94afa3 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressStatus.md +++ b/kubernetes/docs/NetworkingV1beta1IngressStatus.md @@ -1,10 +1,12 @@ + # NetworkingV1beta1IngressStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer. | [optional] +**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] diff --git a/kubernetes/docs/NetworkingV1beta1IngressTLS.md b/kubernetes/docs/NetworkingV1beta1IngressTLS.md index a6534559d6..836cac9d41 100644 --- a/kubernetes/docs/NetworkingV1beta1IngressTLS.md +++ b/kubernetes/docs/NetworkingV1beta1IngressTLS.md @@ -1,7 +1,9 @@ + # NetworkingV1beta1IngressTLS ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hosts** | **List<String>** | Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. | [optional] diff --git a/kubernetes/docs/NodeApi.md b/kubernetes/docs/NodeApi.md index 417e1752ea..b551825fe9 100644 --- a/kubernetes/docs/NodeApi.md +++ b/kubernetes/docs/NodeApi.md @@ -1,6 +1,6 @@ # NodeApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeApi apiInstance = new NodeApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeApi apiInstance = new NodeApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NodeV1alpha1Api.md b/kubernetes/docs/NodeV1alpha1Api.md index 3f2aee409c..83f74275a4 100644 --- a/kubernetes/docs/NodeV1alpha1Api.md +++ b/kubernetes/docs/NodeV1alpha1Api.md @@ -1,6 +1,6 @@ # NodeV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create a RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -V1alpha1RuntimeClass body = new V1alpha1RuntimeClass(); // V1alpha1RuntimeClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1RuntimeClass result = apiInstance.createRuntimeClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#createRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + V1alpha1RuntimeClass body = new V1alpha1RuntimeClass(); // V1alpha1RuntimeClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1RuntimeClass result = apiInstance.createRuntimeClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#createRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionRuntimeClass** -> V1Status deleteCollectionRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionRuntimeClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -86,35 +103,50 @@ delete collection of RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#deleteCollectionRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionRuntimeClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#deleteCollectionRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,13 +155,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -141,12 +179,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteRuntimeClass** -> V1Status deleteRuntimeClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -155,34 +199,43 @@ delete a RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -String name = "name_example"; // String | name of the RuntimeClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteRuntimeClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#deleteRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#deleteRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -192,11 +245,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +261,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRuntimeClass** -> V1alpha1RuntimeClassList listRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1RuntimeClassList listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1RuntimeClassList result = apiInstance.listRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#listRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1RuntimeClassList result = apiInstance.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#listRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchRuntimeClass** > V1alpha1RuntimeClass patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -String name = "name_example"; // String | name of the RuntimeClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1RuntimeClass result = apiInstance.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#patchRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1RuntimeClass result = apiInstance.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#patchRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readRuntimeClass** > V1alpha1RuntimeClass readRuntimeClass(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -String name = "name_example"; // String | name of the RuntimeClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1alpha1RuntimeClass result = apiInstance.readRuntimeClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#readRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1alpha1RuntimeClass result = apiInstance.readRuntimeClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#readRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceRuntimeClass** > V1alpha1RuntimeClass replaceRuntimeClass(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(); -String name = "name_example"; // String | name of the RuntimeClass -V1alpha1RuntimeClass body = new V1alpha1RuntimeClass(); // V1alpha1RuntimeClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1RuntimeClass result = apiInstance.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1alpha1Api#replaceRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1alpha1Api apiInstance = new NodeV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + V1alpha1RuntimeClass body = new V1alpha1RuntimeClass(); // V1alpha1RuntimeClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1RuntimeClass result = apiInstance.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1alpha1Api#replaceRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/NodeV1beta1Api.md b/kubernetes/docs/NodeV1beta1Api.md index 0b0ad28509..c2863a70e4 100644 --- a/kubernetes/docs/NodeV1beta1Api.md +++ b/kubernetes/docs/NodeV1beta1Api.md @@ -1,6 +1,6 @@ # NodeV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create a RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -V1beta1RuntimeClass body = new V1beta1RuntimeClass(); // V1beta1RuntimeClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1RuntimeClass result = apiInstance.createRuntimeClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#createRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + V1beta1RuntimeClass body = new V1beta1RuntimeClass(); // V1beta1RuntimeClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1RuntimeClass result = apiInstance.createRuntimeClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#createRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionRuntimeClass** -> V1Status deleteCollectionRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionRuntimeClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -86,35 +103,50 @@ delete collection of RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#deleteCollectionRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionRuntimeClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#deleteCollectionRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,13 +155,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -141,12 +179,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteRuntimeClass** -> V1Status deleteRuntimeClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -155,34 +199,43 @@ delete a RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -String name = "name_example"; // String | name of the RuntimeClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteRuntimeClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#deleteRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#deleteRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -192,11 +245,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +261,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRuntimeClass** -> V1beta1RuntimeClassList listRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1RuntimeClassList listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1RuntimeClassList result = apiInstance.listRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#listRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1RuntimeClassList result = apiInstance.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#listRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchRuntimeClass** > V1beta1RuntimeClass patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -String name = "name_example"; // String | name of the RuntimeClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1RuntimeClass result = apiInstance.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#patchRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1RuntimeClass result = apiInstance.patchRuntimeClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#patchRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RuntimeClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readRuntimeClass** > V1beta1RuntimeClass readRuntimeClass(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -String name = "name_example"; // String | name of the RuntimeClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1RuntimeClass result = apiInstance.readRuntimeClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#readRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1RuntimeClass result = apiInstance.readRuntimeClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#readRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceRuntimeClass** > V1beta1RuntimeClass replaceRuntimeClass(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified RuntimeClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.NodeV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -NodeV1beta1Api apiInstance = new NodeV1beta1Api(); -String name = "name_example"; // String | name of the RuntimeClass -V1beta1RuntimeClass body = new V1beta1RuntimeClass(); // V1beta1RuntimeClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1RuntimeClass result = apiInstance.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling NodeV1beta1Api#replaceRuntimeClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.NodeV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + NodeV1beta1Api apiInstance = new NodeV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RuntimeClass + V1beta1RuntimeClass body = new V1beta1RuntimeClass(); // V1beta1RuntimeClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1RuntimeClass result = apiInstance.replaceRuntimeClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NodeV1beta1Api#replaceRuntimeClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/PolicyApi.md b/kubernetes/docs/PolicyApi.md index 26c82f41d3..7504ea9cf9 100644 --- a/kubernetes/docs/PolicyApi.md +++ b/kubernetes/docs/PolicyApi.md @@ -1,6 +1,6 @@ # PolicyApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyApi apiInstance = new PolicyApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyApi apiInstance = new PolicyApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md b/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md index 18b92a66b4..65eb89be98 100644 --- a/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md +++ b/kubernetes/docs/PolicyV1beta1AllowedCSIDriver.md @@ -1,7 +1,9 @@ + # PolicyV1beta1AllowedCSIDriver ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name is the registered name of the CSI driver | diff --git a/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md b/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md index 72fb1cf8ca..deb1061e41 100644 --- a/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md +++ b/kubernetes/docs/PolicyV1beta1AllowedFlexVolume.md @@ -1,7 +1,9 @@ + # PolicyV1beta1AllowedFlexVolume ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **driver** | **String** | driver is the name of the Flexvolume driver. | diff --git a/kubernetes/docs/PolicyV1beta1AllowedHostPath.md b/kubernetes/docs/PolicyV1beta1AllowedHostPath.md index d4ee35a2f3..123807622a 100644 --- a/kubernetes/docs/PolicyV1beta1AllowedHostPath.md +++ b/kubernetes/docs/PolicyV1beta1AllowedHostPath.md @@ -1,7 +1,9 @@ + # PolicyV1beta1AllowedHostPath ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pathPrefix** | **String** | pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` | [optional] diff --git a/kubernetes/docs/PolicyV1beta1Api.md b/kubernetes/docs/PolicyV1beta1Api.md index a7e8d9134e..c03b5bd9cc 100644 --- a/kubernetes/docs/PolicyV1beta1Api.md +++ b/kubernetes/docs/PolicyV1beta1Api.md @@ -1,6 +1,6 @@ # PolicyV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -36,32 +36,41 @@ create a PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1PodDisruptionBudget result = apiInstance.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#createNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1PodDisruptionBudget result = apiInstance.createNamespacedPodDisruptionBudget(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#createNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -85,9 +94,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createPodSecurityPolicy** > PolicyV1beta1PodSecurityPolicy createPodSecurityPolicy(body, pretty, dryRun, fieldManager) @@ -99,31 +116,40 @@ create a PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -PolicyV1beta1PodSecurityPolicy body = new PolicyV1beta1PodSecurityPolicy(); // PolicyV1beta1PodSecurityPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - PolicyV1beta1PodSecurityPolicy result = apiInstance.createPodSecurityPolicy(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#createPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + PolicyV1beta1PodSecurityPolicy body = new PolicyV1beta1PodSecurityPolicy(); // PolicyV1beta1PodSecurityPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + PolicyV1beta1PodSecurityPolicy result = apiInstance.createPodSecurityPolicy(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#createPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -146,12 +172,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedPodDisruptionBudget** -> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -160,36 +194,51 @@ delete collection of PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deleteCollectionNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#deleteCollectionNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,13 +248,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -217,12 +272,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionPodSecurityPolicy** -> V1Status deleteCollectionPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -231,35 +292,50 @@ delete collection of PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deleteCollectionPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#deleteCollectionPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -268,13 +344,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -286,12 +368,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedPodDisruptionBudget** -> V1Status deleteNamespacedPodDisruptionBudget(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -300,35 +388,44 @@ delete a PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deleteNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#deleteNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -339,11 +436,11 @@ Name | Type | Description | Notes **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -355,12 +452,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deletePodSecurityPolicy** -> V1Status deletePodSecurityPolicy(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -369,34 +473,43 @@ delete a PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deletePodSecurityPolicy(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#deletePodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#deletePodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -406,11 +519,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodSecurityPolicy | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -422,9 +535,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -436,27 +556,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -473,12 +602,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedPodDisruptionBudget** -> V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -487,36 +622,46 @@ list or watch objects of kind PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1PodDisruptionBudgetList result = apiInstance.listNamespacedPodDisruptionBudget(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#listNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1PodDisruptionBudgetList result = apiInstance.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#listNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -526,6 +671,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -544,12 +690,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPodDisruptionBudgetForAllNamespaces** -> V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -558,35 +710,45 @@ list or watch objects of kind PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1PodDisruptionBudgetList result = apiInstance.listPodDisruptionBudgetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#listPodDisruptionBudgetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1PodDisruptionBudgetList result = apiInstance.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#listPodDisruptionBudgetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -594,6 +756,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -613,12 +776,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPodSecurityPolicy** -> PolicyV1beta1PodSecurityPolicyList listPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> PolicyV1beta1PodSecurityPolicyList listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -627,35 +796,45 @@ list or watch objects of kind PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - PolicyV1beta1PodSecurityPolicyList result = apiInstance.listPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#listPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + PolicyV1beta1PodSecurityPolicyList result = apiInstance.listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#listPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -664,6 +843,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -682,9 +862,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPodDisruptionBudget** > V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -696,34 +882,43 @@ partially update the specified PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1PodDisruptionBudget result = apiInstance.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#patchNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1PodDisruptionBudget result = apiInstance.patchNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#patchNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -733,7 +928,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -752,6 +947,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPodDisruptionBudgetStatus** > V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -763,34 +964,43 @@ partially update status of the specified PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1PodDisruptionBudget result = apiInstance.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#patchNamespacedPodDisruptionBudgetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1PodDisruptionBudget result = apiInstance.patchNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#patchNamespacedPodDisruptionBudgetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -800,7 +1010,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodDisruptionBudget | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -819,6 +1029,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPodSecurityPolicy** > PolicyV1beta1PodSecurityPolicy patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force) @@ -830,33 +1046,42 @@ partially update the specified PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - PolicyV1beta1PodSecurityPolicy result = apiInstance.patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#patchPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + PolicyV1beta1PodSecurityPolicy result = apiInstance.patchPodSecurityPolicy(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#patchPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -865,7 +1090,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodSecurityPolicy | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -884,6 +1109,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPodDisruptionBudget** > V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudget(name, namespace, pretty, exact, export) @@ -895,32 +1126,41 @@ read the specified PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudget(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#readNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudget(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#readNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -944,9 +1184,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPodDisruptionBudgetStatus** > V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty) @@ -958,30 +1204,39 @@ read status of the specified PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#readNamespacedPodDisruptionBudgetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1PodDisruptionBudget result = apiInstance.readNamespacedPodDisruptionBudgetStatus(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#readNamespacedPodDisruptionBudgetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1003,9 +1258,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPodSecurityPolicy** > PolicyV1beta1PodSecurityPolicy readPodSecurityPolicy(name, pretty, exact, export) @@ -1017,31 +1278,40 @@ read the specified PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - PolicyV1beta1PodSecurityPolicy result = apiInstance.readPodSecurityPolicy(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#readPodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + PolicyV1beta1PodSecurityPolicy result = apiInstance.readPodSecurityPolicy(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#readPodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1064,9 +1334,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedPodDisruptionBudget** > V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager) @@ -1078,33 +1354,42 @@ replace the specified PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1PodDisruptionBudget result = apiInstance.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#replaceNamespacedPodDisruptionBudget"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1PodDisruptionBudget result = apiInstance.replaceNamespacedPodDisruptionBudget(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#replaceNamespacedPodDisruptionBudget"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1129,9 +1414,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedPodDisruptionBudgetStatus** > V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager) @@ -1143,33 +1435,42 @@ replace status of the specified PodDisruptionBudget ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodDisruptionBudget -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1PodDisruptionBudget result = apiInstance.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#replaceNamespacedPodDisruptionBudgetStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodDisruptionBudget + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1PodDisruptionBudget body = new V1beta1PodDisruptionBudget(); // V1beta1PodDisruptionBudget | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1PodDisruptionBudget result = apiInstance.replaceNamespacedPodDisruptionBudgetStatus(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#replaceNamespacedPodDisruptionBudgetStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1194,9 +1495,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replacePodSecurityPolicy** > PolicyV1beta1PodSecurityPolicy replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager) @@ -1208,32 +1516,41 @@ replace the specified PodSecurityPolicy ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.PolicyV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(); -String name = "name_example"; // String | name of the PodSecurityPolicy -PolicyV1beta1PodSecurityPolicy body = new PolicyV1beta1PodSecurityPolicy(); // PolicyV1beta1PodSecurityPolicy | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - PolicyV1beta1PodSecurityPolicy result = apiInstance.replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling PolicyV1beta1Api#replacePodSecurityPolicy"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.PolicyV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + PolicyV1beta1Api apiInstance = new PolicyV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PodSecurityPolicy + PolicyV1beta1PodSecurityPolicy body = new PolicyV1beta1PodSecurityPolicy(); // PolicyV1beta1PodSecurityPolicy | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + PolicyV1beta1PodSecurityPolicy result = apiInstance.replacePodSecurityPolicy(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PolicyV1beta1Api#replacePodSecurityPolicy"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1257,6 +1574,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md b/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md index dd6558da31..4e015aa650 100644 --- a/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1FSGroupStrategyOptions.md @@ -1,7 +1,9 @@ + # PolicyV1beta1FSGroupStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<PolicyV1beta1IDRange>**](PolicyV1beta1IDRange.md) | ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/PolicyV1beta1HostPortRange.md b/kubernetes/docs/PolicyV1beta1HostPortRange.md index d1a3fe8b05..52c561e3d7 100644 --- a/kubernetes/docs/PolicyV1beta1HostPortRange.md +++ b/kubernetes/docs/PolicyV1beta1HostPortRange.md @@ -1,7 +1,9 @@ + # PolicyV1beta1HostPortRange ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max** | **Integer** | max is the end of the range, inclusive. | diff --git a/kubernetes/docs/PolicyV1beta1IDRange.md b/kubernetes/docs/PolicyV1beta1IDRange.md index 519d47c523..ea7967b1c1 100644 --- a/kubernetes/docs/PolicyV1beta1IDRange.md +++ b/kubernetes/docs/PolicyV1beta1IDRange.md @@ -1,7 +1,9 @@ + # PolicyV1beta1IDRange ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max** | **Long** | max is the end of the range, inclusive. | diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md index acf1709954..cdbd6be6cc 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicy.md @@ -1,13 +1,15 @@ + # PolicyV1beta1PodSecurityPolicy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**PolicyV1beta1PodSecurityPolicySpec**](PolicyV1beta1PodSecurityPolicySpec.md) | spec defines the policy enforced. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**PolicyV1beta1PodSecurityPolicySpec**](PolicyV1beta1PodSecurityPolicySpec.md) | | [optional] diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md index b96ff1152d..e28f83a283 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicyList.md @@ -1,13 +1,15 @@ + # PolicyV1beta1PodSecurityPolicyList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<PolicyV1beta1PodSecurityPolicy>**](PolicyV1beta1PodSecurityPolicy.md) | items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md b/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md index c2ed3841a8..5b34fd9463 100644 --- a/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md +++ b/kubernetes/docs/PolicyV1beta1PodSecurityPolicySpec.md @@ -1,11 +1,13 @@ + # PolicyV1beta1PodSecurityPolicySpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowPrivilegeEscalation** | **Boolean** | allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. | [optional] -**allowedCSIDrivers** | [**List<PolicyV1beta1AllowedCSIDriver>**](PolicyV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. | [optional] +**allowedCSIDrivers** | [**List<PolicyV1beta1AllowedCSIDriver>**](PolicyV1beta1AllowedCSIDriver.md) | AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. | [optional] **allowedCapabilities** | **List<String>** | allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. | [optional] **allowedFlexVolumes** | [**List<PolicyV1beta1AllowedFlexVolume>**](PolicyV1beta1AllowedFlexVolume.md) | allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. | [optional] **allowedHostPaths** | [**List<PolicyV1beta1AllowedHostPath>**](PolicyV1beta1AllowedHostPath.md) | allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. | [optional] @@ -14,7 +16,7 @@ Name | Type | Description | Notes **defaultAddCapabilities** | **List<String>** | defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. | [optional] **defaultAllowPrivilegeEscalation** | **Boolean** | defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. | [optional] **forbiddenSysctls** | **List<String>** | forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. | [optional] -**fsGroup** | [**PolicyV1beta1FSGroupStrategyOptions**](PolicyV1beta1FSGroupStrategyOptions.md) | fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. | +**fsGroup** | [**PolicyV1beta1FSGroupStrategyOptions**](PolicyV1beta1FSGroupStrategyOptions.md) | | **hostIPC** | **Boolean** | hostIPC determines if the policy allows the use of HostIPC in the pod spec. | [optional] **hostNetwork** | **Boolean** | hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. | [optional] **hostPID** | **Boolean** | hostPID determines if the policy allows the use of HostPID in the pod spec. | [optional] @@ -22,10 +24,11 @@ Name | Type | Description | Notes **privileged** | **Boolean** | privileged determines if a pod can request to be run as privileged. | [optional] **readOnlyRootFilesystem** | **Boolean** | readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. | [optional] **requiredDropCapabilities** | **List<String>** | requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. | [optional] -**runAsGroup** | [**PolicyV1beta1RunAsGroupStrategyOptions**](PolicyV1beta1RunAsGroupStrategyOptions.md) | RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. | [optional] -**runAsUser** | [**PolicyV1beta1RunAsUserStrategyOptions**](PolicyV1beta1RunAsUserStrategyOptions.md) | runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. | -**seLinux** | [**PolicyV1beta1SELinuxStrategyOptions**](PolicyV1beta1SELinuxStrategyOptions.md) | seLinux is the strategy that will dictate the allowable labels that may be set. | -**supplementalGroups** | [**PolicyV1beta1SupplementalGroupsStrategyOptions**](PolicyV1beta1SupplementalGroupsStrategyOptions.md) | supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. | +**runAsGroup** | [**PolicyV1beta1RunAsGroupStrategyOptions**](PolicyV1beta1RunAsGroupStrategyOptions.md) | | [optional] +**runAsUser** | [**PolicyV1beta1RunAsUserStrategyOptions**](PolicyV1beta1RunAsUserStrategyOptions.md) | | +**runtimeClass** | [**PolicyV1beta1RuntimeClassStrategyOptions**](PolicyV1beta1RuntimeClassStrategyOptions.md) | | [optional] +**seLinux** | [**PolicyV1beta1SELinuxStrategyOptions**](PolicyV1beta1SELinuxStrategyOptions.md) | | +**supplementalGroups** | [**PolicyV1beta1SupplementalGroupsStrategyOptions**](PolicyV1beta1SupplementalGroupsStrategyOptions.md) | | **volumes** | **List<String>** | volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. | [optional] diff --git a/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md index 1e9cc57a3b..1c682bf77b 100644 --- a/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1RunAsGroupStrategyOptions.md @@ -1,7 +1,9 @@ + # PolicyV1beta1RunAsGroupStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<PolicyV1beta1IDRange>**](PolicyV1beta1IDRange.md) | ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md index ebe550e502..0d189f4be4 100644 --- a/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1RunAsUserStrategyOptions.md @@ -1,7 +1,9 @@ + # PolicyV1beta1RunAsUserStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<PolicyV1beta1IDRange>**](PolicyV1beta1IDRange.md) | ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md b/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md new file mode 100644 index 0000000000..e4cd9eb856 --- /dev/null +++ b/kubernetes/docs/PolicyV1beta1RuntimeClassStrategyOptions.md @@ -0,0 +1,13 @@ + + +# PolicyV1beta1RuntimeClassStrategyOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedRuntimeClassNames** | **List<String>** | allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. | +**defaultRuntimeClassName** | **String** | defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. | [optional] + + + diff --git a/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md b/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md index 6884c83d8a..ac6f94e448 100644 --- a/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1SELinuxStrategyOptions.md @@ -1,11 +1,13 @@ + # PolicyV1beta1SELinuxStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **rule** | **String** | rule is the strategy that will dictate the allowable labels that may be set. | -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | [optional] +**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] diff --git a/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md b/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md index 5fa66f5696..95776802a7 100644 --- a/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md +++ b/kubernetes/docs/PolicyV1beta1SupplementalGroupsStrategyOptions.md @@ -1,7 +1,9 @@ + # PolicyV1beta1SupplementalGroupsStrategyOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ranges** | [**List<PolicyV1beta1IDRange>**](PolicyV1beta1IDRange.md) | ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. | [optional] diff --git a/kubernetes/docs/RbacAuthorizationApi.md b/kubernetes/docs/RbacAuthorizationApi.md index 42c5b870ad..31baa46469 100644 --- a/kubernetes/docs/RbacAuthorizationApi.md +++ b/kubernetes/docs/RbacAuthorizationApi.md @@ -1,6 +1,6 @@ # RbacAuthorizationApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationApi apiInstance = new RbacAuthorizationApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationApi apiInstance = new RbacAuthorizationApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/RbacAuthorizationV1Api.md b/kubernetes/docs/RbacAuthorizationV1Api.md index 071fd7532e..bf9a6a8e56 100644 --- a/kubernetes/docs/RbacAuthorizationV1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1Api.md @@ -1,6 +1,6 @@ # RbacAuthorizationV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -48,31 +48,40 @@ create a ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -V1ClusterRole body = new V1ClusterRole(); // V1ClusterRole | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ClusterRole result = apiInstance.createClusterRole(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#createClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + V1ClusterRole body = new V1ClusterRole(); // V1ClusterRole | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ClusterRole result = apiInstance.createClusterRole(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#createClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -95,9 +104,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createClusterRoleBinding** > V1ClusterRoleBinding createClusterRoleBinding(body, pretty, dryRun, fieldManager) @@ -109,31 +126,40 @@ create a ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -V1ClusterRoleBinding body = new V1ClusterRoleBinding(); // V1ClusterRoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ClusterRoleBinding result = apiInstance.createClusterRoleBinding(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#createClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + V1ClusterRoleBinding body = new V1ClusterRoleBinding(); // V1ClusterRoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ClusterRoleBinding result = apiInstance.createClusterRoleBinding(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#createClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -156,9 +182,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedRole** > V1Role createNamespacedRole(namespace, body, pretty, dryRun, fieldManager) @@ -170,32 +204,41 @@ create a Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Role body = new V1Role(); // V1Role | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Role result = apiInstance.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#createNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Role body = new V1Role(); // V1Role | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Role result = apiInstance.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#createNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -219,9 +262,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedRoleBinding** > V1RoleBinding createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager) @@ -233,32 +284,41 @@ create a RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1RoleBinding body = new V1RoleBinding(); // V1RoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1RoleBinding result = apiInstance.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#createNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1RoleBinding body = new V1RoleBinding(); // V1RoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1RoleBinding result = apiInstance.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#createNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -282,12 +342,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteClusterRole** -> V1Status deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -296,34 +364,43 @@ delete a ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRole -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -333,11 +410,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -349,12 +426,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -363,34 +447,43 @@ delete a ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -400,11 +493,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -416,12 +509,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -430,35 +530,50 @@ delete collection of ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -467,13 +582,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -485,12 +606,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -499,35 +626,50 @@ delete collection of ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,13 +678,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -554,12 +702,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -568,36 +722,51 @@ delete collection of Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -607,13 +776,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -625,12 +800,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -639,36 +820,51 @@ delete collection of RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteCollectionNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -678,13 +874,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -696,12 +898,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -710,35 +918,44 @@ delete a Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -749,11 +966,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -765,12 +982,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -779,35 +1003,44 @@ delete a RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#deleteNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#deleteNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -818,11 +1051,11 @@ Name | Type | Description | Notes **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -834,9 +1067,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -848,27 +1088,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -885,12 +1134,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterRole** -> V1ClusterRoleList listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ClusterRoleList listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -899,35 +1154,45 @@ list or watch objects of kind ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ClusterRoleList result = apiInstance.listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#listClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ClusterRoleList result = apiInstance.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#listClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -936,6 +1201,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -954,12 +1220,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterRoleBinding** -> V1ClusterRoleBindingList listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1ClusterRoleBindingList listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -968,35 +1240,45 @@ list or watch objects of kind ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1ClusterRoleBindingList result = apiInstance.listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#listClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1ClusterRoleBindingList result = apiInstance.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#listClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1005,6 +1287,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1023,12 +1306,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedRole** -> V1RoleList listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1RoleList listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1037,36 +1326,46 @@ list or watch objects of kind Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1RoleList result = apiInstance.listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#listNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1RoleList result = apiInstance.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#listNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1076,6 +1375,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1094,12 +1394,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedRoleBinding** -> V1RoleBindingList listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1RoleBindingList listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1108,36 +1414,46 @@ list or watch objects of kind RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1RoleBindingList result = apiInstance.listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#listNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1RoleBindingList result = apiInstance.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#listNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1147,6 +1463,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1165,12 +1482,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRoleBindingForAllNamespaces** -> V1RoleBindingList listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1RoleBindingList listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1179,35 +1502,45 @@ list or watch objects of kind RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1RoleBindingList result = apiInstance.listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#listRoleBindingForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1RoleBindingList result = apiInstance.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#listRoleBindingForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1215,6 +1548,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1234,12 +1568,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRoleForAllNamespaces** -> V1RoleList listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1RoleList listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1248,35 +1588,45 @@ list or watch objects of kind Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1RoleList result = apiInstance.listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#listRoleForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1RoleList result = apiInstance.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#listRoleForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1284,6 +1634,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1303,9 +1654,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterRole** > V1ClusterRole patchClusterRole(name, body, pretty, dryRun, fieldManager, force) @@ -1317,33 +1674,42 @@ partially update the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRole -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ClusterRole result = apiInstance.patchClusterRole(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#patchClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ClusterRole result = apiInstance.patchClusterRole(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#patchClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1352,7 +1718,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1371,6 +1737,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterRoleBinding** > V1ClusterRoleBinding patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force) @@ -1382,33 +1754,42 @@ partially update the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1ClusterRoleBinding result = apiInstance.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#patchClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1ClusterRoleBinding result = apiInstance.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#patchClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1417,7 +1798,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1436,6 +1817,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedRole** > V1Role patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1447,34 +1834,43 @@ partially update the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1Role result = apiInstance.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#patchNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1Role result = apiInstance.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#patchNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1484,7 +1880,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1503,6 +1899,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedRoleBinding** > V1RoleBinding patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1514,34 +1916,43 @@ partially update the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1RoleBinding result = apiInstance.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#patchNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1RoleBinding result = apiInstance.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#patchNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1551,7 +1962,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1570,6 +1981,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readClusterRole** > V1ClusterRole readClusterRole(name, pretty) @@ -1581,29 +1998,38 @@ read the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRole -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1ClusterRole result = apiInstance.readClusterRole(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#readClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1ClusterRole result = apiInstance.readClusterRole(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#readClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1624,9 +2050,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readClusterRoleBinding** > V1ClusterRoleBinding readClusterRoleBinding(name, pretty) @@ -1638,29 +2070,38 @@ read the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#readClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#readClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1681,9 +2122,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedRole** > V1Role readNamespacedRole(name, namespace, pretty) @@ -1695,30 +2142,39 @@ read the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#readNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#readNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1740,9 +2196,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedRoleBinding** > V1RoleBinding readNamespacedRoleBinding(name, namespace, pretty) @@ -1754,30 +2216,39 @@ read the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#readNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#readNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1799,9 +2270,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceClusterRole** > V1ClusterRole replaceClusterRole(name, body, pretty, dryRun, fieldManager) @@ -1813,32 +2290,41 @@ replace the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRole -V1ClusterRole body = new V1ClusterRole(); // V1ClusterRole | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ClusterRole result = apiInstance.replaceClusterRole(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#replaceClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + V1ClusterRole body = new V1ClusterRole(); // V1ClusterRole | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ClusterRole result = apiInstance.replaceClusterRole(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#replaceClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1862,9 +2348,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceClusterRoleBinding** > V1ClusterRoleBinding replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager) @@ -1876,32 +2369,41 @@ replace the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -V1ClusterRoleBinding body = new V1ClusterRoleBinding(); // V1ClusterRoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1ClusterRoleBinding result = apiInstance.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#replaceClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + V1ClusterRoleBinding body = new V1ClusterRoleBinding(); // V1ClusterRoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1ClusterRoleBinding result = apiInstance.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#replaceClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1925,9 +2427,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedRole** > V1Role replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager) @@ -1939,33 +2448,42 @@ replace the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Role body = new V1Role(); // V1Role | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1Role result = apiInstance.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#replaceNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1Role body = new V1Role(); // V1Role | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1Role result = apiInstance.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#replaceNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1990,9 +2508,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedRoleBinding** > V1RoleBinding replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager) @@ -2004,33 +2529,42 @@ replace the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1RoleBinding body = new V1RoleBinding(); // V1RoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1RoleBinding result = apiInstance.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1Api#replaceNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1Api apiInstance = new RbacAuthorizationV1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1RoleBinding body = new V1RoleBinding(); // V1RoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1RoleBinding result = apiInstance.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1Api#replaceNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2055,6 +2589,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md index a299700800..f06f7389fa 100644 --- a/kubernetes/docs/RbacAuthorizationV1alpha1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1alpha1Api.md @@ -1,6 +1,6 @@ # RbacAuthorizationV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -48,31 +48,40 @@ create a ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -V1alpha1ClusterRole body = new V1alpha1ClusterRole(); // V1alpha1ClusterRole | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1ClusterRole result = apiInstance.createClusterRole(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + V1alpha1ClusterRole body = new V1alpha1ClusterRole(); // V1alpha1ClusterRole | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1ClusterRole result = apiInstance.createClusterRole(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -95,9 +104,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createClusterRoleBinding** > V1alpha1ClusterRoleBinding createClusterRoleBinding(body, pretty, dryRun, fieldManager) @@ -109,31 +126,40 @@ create a ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -V1alpha1ClusterRoleBinding body = new V1alpha1ClusterRoleBinding(); // V1alpha1ClusterRoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1ClusterRoleBinding result = apiInstance.createClusterRoleBinding(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + V1alpha1ClusterRoleBinding body = new V1alpha1ClusterRoleBinding(); // V1alpha1ClusterRoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1ClusterRoleBinding result = apiInstance.createClusterRoleBinding(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -156,9 +182,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedRole** > V1alpha1Role createNamespacedRole(namespace, body, pretty, dryRun, fieldManager) @@ -170,32 +204,41 @@ create a Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1alpha1Role body = new V1alpha1Role(); // V1alpha1Role | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1Role result = apiInstance.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Role body = new V1alpha1Role(); // V1alpha1Role | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1Role result = apiInstance.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -219,9 +262,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedRoleBinding** > V1alpha1RoleBinding createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager) @@ -233,32 +284,41 @@ create a RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1alpha1RoleBinding body = new V1alpha1RoleBinding(); // V1alpha1RoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1RoleBinding result = apiInstance.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1RoleBinding body = new V1alpha1RoleBinding(); // V1alpha1RoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1RoleBinding result = apiInstance.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#createNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -282,12 +342,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteClusterRole** -> V1Status deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -296,34 +364,43 @@ delete a ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRole -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -333,11 +410,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -349,12 +426,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -363,34 +447,43 @@ delete a ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -400,11 +493,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -416,12 +509,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -430,35 +530,50 @@ delete collection of ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -467,13 +582,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -485,12 +606,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -499,35 +626,50 @@ delete collection of ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,13 +678,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -554,12 +702,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -568,36 +722,51 @@ delete collection of Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -607,13 +776,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -625,12 +800,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -639,36 +820,51 @@ delete collection of RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteCollectionNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -678,13 +874,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -696,12 +898,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -710,35 +918,44 @@ delete a Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -749,11 +966,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -765,12 +982,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -779,35 +1003,44 @@ delete a RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#deleteNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -818,11 +1051,11 @@ Name | Type | Description | Notes **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -834,9 +1067,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -848,27 +1088,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -885,12 +1134,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterRole** -> V1alpha1ClusterRoleList listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1ClusterRoleList listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -899,35 +1154,45 @@ list or watch objects of kind ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1ClusterRoleList result = apiInstance.listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1ClusterRoleList result = apiInstance.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -936,6 +1201,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -954,12 +1220,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterRoleBinding** -> V1alpha1ClusterRoleBindingList listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1ClusterRoleBindingList listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -968,35 +1240,45 @@ list or watch objects of kind ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1ClusterRoleBindingList result = apiInstance.listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1ClusterRoleBindingList result = apiInstance.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1005,6 +1287,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1023,12 +1306,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedRole** -> V1alpha1RoleList listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1RoleList listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1037,36 +1326,46 @@ list or watch objects of kind Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1RoleList result = apiInstance.listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1RoleList result = apiInstance.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1076,6 +1375,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1094,12 +1394,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedRoleBinding** -> V1alpha1RoleBindingList listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1RoleBindingList listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1108,36 +1414,46 @@ list or watch objects of kind RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1RoleBindingList result = apiInstance.listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1RoleBindingList result = apiInstance.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1147,6 +1463,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1165,12 +1482,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRoleBindingForAllNamespaces** -> V1alpha1RoleBindingList listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1alpha1RoleBindingList listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1179,35 +1502,45 @@ list or watch objects of kind RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1RoleBindingList result = apiInstance.listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listRoleBindingForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1RoleBindingList result = apiInstance.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listRoleBindingForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1215,6 +1548,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1234,12 +1568,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRoleForAllNamespaces** -> V1alpha1RoleList listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1alpha1RoleList listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1248,35 +1588,45 @@ list or watch objects of kind Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1RoleList result = apiInstance.listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listRoleForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1RoleList result = apiInstance.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#listRoleForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1284,6 +1634,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1303,9 +1654,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterRole** > V1alpha1ClusterRole patchClusterRole(name, body, pretty, dryRun, fieldManager, force) @@ -1317,33 +1674,42 @@ partially update the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRole -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1ClusterRole result = apiInstance.patchClusterRole(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1ClusterRole result = apiInstance.patchClusterRole(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1352,7 +1718,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1371,6 +1737,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterRoleBinding** > V1alpha1ClusterRoleBinding patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force) @@ -1382,33 +1754,42 @@ partially update the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1ClusterRoleBinding result = apiInstance.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1ClusterRoleBinding result = apiInstance.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1417,7 +1798,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1436,6 +1817,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedRole** > V1alpha1Role patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1447,34 +1834,43 @@ partially update the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1Role result = apiInstance.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1Role result = apiInstance.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1484,7 +1880,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1503,6 +1899,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedRoleBinding** > V1alpha1RoleBinding patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1514,34 +1916,43 @@ partially update the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1RoleBinding result = apiInstance.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1RoleBinding result = apiInstance.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#patchNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1551,7 +1962,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1570,6 +1981,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readClusterRole** > V1alpha1ClusterRole readClusterRole(name, pretty) @@ -1581,29 +1998,38 @@ read the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRole -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1alpha1ClusterRole result = apiInstance.readClusterRole(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1alpha1ClusterRole result = apiInstance.readClusterRole(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1624,9 +2050,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readClusterRoleBinding** > V1alpha1ClusterRoleBinding readClusterRoleBinding(name, pretty) @@ -1638,29 +2070,38 @@ read the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1alpha1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1alpha1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1681,9 +2122,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedRole** > V1alpha1Role readNamespacedRole(name, namespace, pretty) @@ -1695,30 +2142,39 @@ read the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1alpha1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1alpha1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1740,9 +2196,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedRoleBinding** > V1alpha1RoleBinding readNamespacedRoleBinding(name, namespace, pretty) @@ -1754,30 +2216,39 @@ read the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1alpha1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1alpha1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#readNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1799,9 +2270,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceClusterRole** > V1alpha1ClusterRole replaceClusterRole(name, body, pretty, dryRun, fieldManager) @@ -1813,32 +2290,41 @@ replace the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRole -V1alpha1ClusterRole body = new V1alpha1ClusterRole(); // V1alpha1ClusterRole | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1ClusterRole result = apiInstance.replaceClusterRole(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + V1alpha1ClusterRole body = new V1alpha1ClusterRole(); // V1alpha1ClusterRole | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1ClusterRole result = apiInstance.replaceClusterRole(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1862,9 +2348,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceClusterRoleBinding** > V1alpha1ClusterRoleBinding replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager) @@ -1876,32 +2369,41 @@ replace the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -V1alpha1ClusterRoleBinding body = new V1alpha1ClusterRoleBinding(); // V1alpha1ClusterRoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1ClusterRoleBinding result = apiInstance.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + V1alpha1ClusterRoleBinding body = new V1alpha1ClusterRoleBinding(); // V1alpha1ClusterRoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1ClusterRoleBinding result = apiInstance.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1925,9 +2427,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedRole** > V1alpha1Role replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager) @@ -1939,33 +2448,42 @@ replace the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1alpha1Role body = new V1alpha1Role(); // V1alpha1Role | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1Role result = apiInstance.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1Role body = new V1alpha1Role(); // V1alpha1Role | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1Role result = apiInstance.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1990,9 +2508,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedRoleBinding** > V1alpha1RoleBinding replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager) @@ -2004,33 +2529,42 @@ replace the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1alpha1RoleBinding body = new V1alpha1RoleBinding(); // V1alpha1RoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1RoleBinding result = apiInstance.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1alpha1Api apiInstance = new RbacAuthorizationV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1RoleBinding body = new V1alpha1RoleBinding(); // V1alpha1RoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1RoleBinding result = apiInstance.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1alpha1Api#replaceNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2055,6 +2589,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/RbacAuthorizationV1beta1Api.md b/kubernetes/docs/RbacAuthorizationV1beta1Api.md index 7520a0291f..cae66d0514 100644 --- a/kubernetes/docs/RbacAuthorizationV1beta1Api.md +++ b/kubernetes/docs/RbacAuthorizationV1beta1Api.md @@ -1,6 +1,6 @@ # RbacAuthorizationV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -48,31 +48,40 @@ create a ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -V1beta1ClusterRole body = new V1beta1ClusterRole(); // V1beta1ClusterRole | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ClusterRole result = apiInstance.createClusterRole(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + V1beta1ClusterRole body = new V1beta1ClusterRole(); // V1beta1ClusterRole | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ClusterRole result = apiInstance.createClusterRole(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -95,9 +104,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createClusterRoleBinding** > V1beta1ClusterRoleBinding createClusterRoleBinding(body, pretty, dryRun, fieldManager) @@ -109,31 +126,40 @@ create a ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -V1beta1ClusterRoleBinding body = new V1beta1ClusterRoleBinding(); // V1beta1ClusterRoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ClusterRoleBinding result = apiInstance.createClusterRoleBinding(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + V1beta1ClusterRoleBinding body = new V1beta1ClusterRoleBinding(); // V1beta1ClusterRoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ClusterRoleBinding result = apiInstance.createClusterRoleBinding(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -156,9 +182,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedRole** > V1beta1Role createNamespacedRole(namespace, body, pretty, dryRun, fieldManager) @@ -170,32 +204,41 @@ create a Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Role body = new V1beta1Role(); // V1beta1Role | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1Role result = apiInstance.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Role body = new V1beta1Role(); // V1beta1Role | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1Role result = apiInstance.createNamespacedRole(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -219,9 +262,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createNamespacedRoleBinding** > V1beta1RoleBinding createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager) @@ -233,32 +284,41 @@ create a RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1RoleBinding body = new V1beta1RoleBinding(); // V1beta1RoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1RoleBinding result = apiInstance.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1RoleBinding body = new V1beta1RoleBinding(); // V1beta1RoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1RoleBinding result = apiInstance.createNamespacedRoleBinding(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#createNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -282,12 +342,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteClusterRole** -> V1Status deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -296,34 +364,43 @@ delete a ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRole -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -333,11 +410,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -349,12 +426,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteClusterRoleBinding** -> V1Status deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -363,34 +447,43 @@ delete a ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -400,11 +493,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -416,12 +509,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionClusterRole** -> V1Status deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -430,35 +530,50 @@ delete collection of ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -467,13 +582,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -485,12 +606,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionClusterRoleBinding** -> V1Status deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -499,35 +626,50 @@ delete collection of ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,13 +678,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -554,12 +702,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedRole** -> V1Status deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -568,36 +722,51 @@ delete collection of Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -607,13 +776,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -625,12 +800,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedRoleBinding** -> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -639,36 +820,51 @@ delete collection of RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteCollectionNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -678,13 +874,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -696,12 +898,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedRole** -> V1Status deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -710,35 +918,44 @@ delete a Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -749,11 +966,11 @@ Name | Type | Description | Notes **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -765,12 +982,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteNamespacedRoleBinding** -> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -779,35 +1003,44 @@ delete a RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#deleteNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -818,11 +1051,11 @@ Name | Type | Description | Notes **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -834,9 +1067,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -848,27 +1088,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -885,12 +1134,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterRole** -> V1beta1ClusterRoleList listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1ClusterRoleList listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -899,35 +1154,45 @@ list or watch objects of kind ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ClusterRoleList result = apiInstance.listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ClusterRoleList result = apiInstance.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -936,6 +1201,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -954,12 +1220,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listClusterRoleBinding** -> V1beta1ClusterRoleBindingList listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1ClusterRoleBindingList listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -968,35 +1240,45 @@ list or watch objects of kind ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1ClusterRoleBindingList result = apiInstance.listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1ClusterRoleBindingList result = apiInstance.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1005,6 +1287,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1023,12 +1306,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedRole** -> V1beta1RoleList listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1RoleList listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1037,36 +1326,46 @@ list or watch objects of kind Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1RoleList result = apiInstance.listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1RoleList result = apiInstance.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1076,6 +1375,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1094,12 +1394,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedRoleBinding** -> V1beta1RoleBindingList listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1RoleBindingList listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1108,36 +1414,46 @@ list or watch objects of kind RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1RoleBindingList result = apiInstance.listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1RoleBindingList result = apiInstance.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1147,6 +1463,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1165,12 +1482,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRoleBindingForAllNamespaces** -> V1beta1RoleBindingList listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1RoleBindingList listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1179,35 +1502,45 @@ list or watch objects of kind RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1RoleBindingList result = apiInstance.listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listRoleBindingForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1RoleBindingList result = apiInstance.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listRoleBindingForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1215,6 +1548,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1234,12 +1568,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listRoleForAllNamespaces** -> V1beta1RoleList listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1beta1RoleList listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -1248,35 +1588,45 @@ list or watch objects of kind Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1RoleList result = apiInstance.listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listRoleForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1RoleList result = apiInstance.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#listRoleForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1284,6 +1634,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1303,9 +1654,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterRole** > V1beta1ClusterRole patchClusterRole(name, body, pretty, dryRun, fieldManager, force) @@ -1317,33 +1674,42 @@ partially update the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRole -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1ClusterRole result = apiInstance.patchClusterRole(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ClusterRole result = apiInstance.patchClusterRole(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1352,7 +1718,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRole | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1371,6 +1737,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchClusterRoleBinding** > V1beta1ClusterRoleBinding patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force) @@ -1382,33 +1754,42 @@ partially update the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1ClusterRoleBinding result = apiInstance.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1ClusterRoleBinding result = apiInstance.patchClusterRoleBinding(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1417,7 +1798,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the ClusterRoleBinding | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1436,6 +1817,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedRole** > V1beta1Role patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1447,34 +1834,43 @@ partially update the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1Role result = apiInstance.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1Role result = apiInstance.patchNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1484,7 +1880,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the Role | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1503,6 +1899,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedRoleBinding** > V1beta1RoleBinding patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -1514,34 +1916,43 @@ partially update the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1RoleBinding result = apiInstance.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1RoleBinding result = apiInstance.patchNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#patchNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1551,7 +1962,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the RoleBinding | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1570,6 +1981,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readClusterRole** > V1beta1ClusterRole readClusterRole(name, pretty) @@ -1581,29 +1998,38 @@ read the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRole -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1ClusterRole result = apiInstance.readClusterRole(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1ClusterRole result = apiInstance.readClusterRole(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1624,9 +2050,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readClusterRoleBinding** > V1beta1ClusterRoleBinding readClusterRoleBinding(name, pretty) @@ -1638,29 +2070,38 @@ read the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1ClusterRoleBinding result = apiInstance.readClusterRoleBinding(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1681,9 +2122,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedRole** > V1beta1Role readNamespacedRole(name, namespace, pretty) @@ -1695,30 +2142,39 @@ read the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1Role result = apiInstance.readNamespacedRole(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1740,9 +2196,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedRoleBinding** > V1beta1RoleBinding readNamespacedRoleBinding(name, namespace, pretty) @@ -1754,30 +2216,39 @@ read the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1beta1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1beta1RoleBinding result = apiInstance.readNamespacedRoleBinding(name, namespace, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#readNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1799,9 +2270,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceClusterRole** > V1beta1ClusterRole replaceClusterRole(name, body, pretty, dryRun, fieldManager) @@ -1813,32 +2290,41 @@ replace the specified ClusterRole ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRole -V1beta1ClusterRole body = new V1beta1ClusterRole(); // V1beta1ClusterRole | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ClusterRole result = apiInstance.replaceClusterRole(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceClusterRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRole + V1beta1ClusterRole body = new V1beta1ClusterRole(); // V1beta1ClusterRole | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ClusterRole result = apiInstance.replaceClusterRole(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceClusterRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1862,9 +2348,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceClusterRoleBinding** > V1beta1ClusterRoleBinding replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager) @@ -1876,32 +2369,41 @@ replace the specified ClusterRoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the ClusterRoleBinding -V1beta1ClusterRoleBinding body = new V1beta1ClusterRoleBinding(); // V1beta1ClusterRoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1ClusterRoleBinding result = apiInstance.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceClusterRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the ClusterRoleBinding + V1beta1ClusterRoleBinding body = new V1beta1ClusterRoleBinding(); // V1beta1ClusterRoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1ClusterRoleBinding result = apiInstance.replaceClusterRoleBinding(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceClusterRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1925,9 +2427,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedRole** > V1beta1Role replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager) @@ -1939,33 +2448,42 @@ replace the specified Role ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the Role -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1Role body = new V1beta1Role(); // V1beta1Role | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1Role result = apiInstance.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceNamespacedRole"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the Role + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1Role body = new V1beta1Role(); // V1beta1Role | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1Role result = apiInstance.replaceNamespacedRole(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceNamespacedRole"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1990,9 +2508,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceNamespacedRoleBinding** > V1beta1RoleBinding replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager) @@ -2004,33 +2529,42 @@ replace the specified RoleBinding ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(); -String name = "name_example"; // String | name of the RoleBinding -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1beta1RoleBinding body = new V1beta1RoleBinding(); // V1beta1RoleBinding | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1RoleBinding result = apiInstance.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceNamespacedRoleBinding"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.RbacAuthorizationV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + RbacAuthorizationV1beta1Api apiInstance = new RbacAuthorizationV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the RoleBinding + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1beta1RoleBinding body = new V1beta1RoleBinding(); // V1beta1RoleBinding | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1RoleBinding result = apiInstance.replaceNamespacedRoleBinding(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RbacAuthorizationV1beta1Api#replaceNamespacedRoleBinding"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -2055,6 +2589,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/RuntimeRawExtension.md b/kubernetes/docs/RuntimeRawExtension.md index 699f4f530e..5afe9d7828 100644 --- a/kubernetes/docs/RuntimeRawExtension.md +++ b/kubernetes/docs/RuntimeRawExtension.md @@ -1,7 +1,9 @@ + # RuntimeRawExtension ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **raw** | **byte[]** | Raw is the underlying serialization of this object. | diff --git a/kubernetes/docs/SchedulingApi.md b/kubernetes/docs/SchedulingApi.md index c9bf30402a..e16b99dd18 100644 --- a/kubernetes/docs/SchedulingApi.md +++ b/kubernetes/docs/SchedulingApi.md @@ -1,6 +1,6 @@ # SchedulingApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingApi apiInstance = new SchedulingApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingApi apiInstance = new SchedulingApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/SchedulingV1Api.md b/kubernetes/docs/SchedulingV1Api.md index 468eeeab22..b398393b59 100644 --- a/kubernetes/docs/SchedulingV1Api.md +++ b/kubernetes/docs/SchedulingV1Api.md @@ -1,6 +1,6 @@ # SchedulingV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create a PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -V1PriorityClass body = new V1PriorityClass(); // V1PriorityClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PriorityClass result = apiInstance.createPriorityClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#createPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + V1PriorityClass body = new V1PriorityClass(); // V1PriorityClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PriorityClass result = apiInstance.createPriorityClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#createPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionPriorityClass** -> V1Status deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -86,35 +103,50 @@ delete collection of PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#deleteCollectionPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#deleteCollectionPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,13 +155,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -141,12 +179,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deletePriorityClass** -> V1Status deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -155,34 +199,43 @@ delete a PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -String name = "name_example"; // String | name of the PriorityClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#deletePriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#deletePriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -192,11 +245,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +261,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPriorityClass** -> V1PriorityClassList listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1PriorityClassList listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1PriorityClassList result = apiInstance.listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#listPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1PriorityClassList result = apiInstance.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#listPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPriorityClass** > V1PriorityClass patchPriorityClass(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -String name = "name_example"; // String | name of the PriorityClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1PriorityClass result = apiInstance.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#patchPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1PriorityClass result = apiInstance.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#patchPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPriorityClass** > V1PriorityClass readPriorityClass(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -String name = "name_example"; // String | name of the PriorityClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1PriorityClass result = apiInstance.readPriorityClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#readPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1PriorityClass result = apiInstance.readPriorityClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#readPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replacePriorityClass** > V1PriorityClass replacePriorityClass(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1Api apiInstance = new SchedulingV1Api(); -String name = "name_example"; // String | name of the PriorityClass -V1PriorityClass body = new V1PriorityClass(); // V1PriorityClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1PriorityClass result = apiInstance.replacePriorityClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1Api#replacePriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1Api apiInstance = new SchedulingV1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + V1PriorityClass body = new V1PriorityClass(); // V1PriorityClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1PriorityClass result = apiInstance.replacePriorityClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1Api#replacePriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/SchedulingV1alpha1Api.md b/kubernetes/docs/SchedulingV1alpha1Api.md index d8455d83be..edd5fc7d7e 100644 --- a/kubernetes/docs/SchedulingV1alpha1Api.md +++ b/kubernetes/docs/SchedulingV1alpha1Api.md @@ -1,6 +1,6 @@ # SchedulingV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create a PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -V1alpha1PriorityClass body = new V1alpha1PriorityClass(); // V1alpha1PriorityClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1PriorityClass result = apiInstance.createPriorityClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#createPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + V1alpha1PriorityClass body = new V1alpha1PriorityClass(); // V1alpha1PriorityClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1PriorityClass result = apiInstance.createPriorityClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#createPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionPriorityClass** -> V1Status deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -86,35 +103,50 @@ delete collection of PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#deleteCollectionPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#deleteCollectionPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,13 +155,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -141,12 +179,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deletePriorityClass** -> V1Status deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -155,34 +199,43 @@ delete a PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -String name = "name_example"; // String | name of the PriorityClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#deletePriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#deletePriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -192,11 +245,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +261,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPriorityClass** -> V1alpha1PriorityClassList listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1PriorityClassList listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1PriorityClassList result = apiInstance.listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#listPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1PriorityClassList result = apiInstance.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#listPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPriorityClass** > V1alpha1PriorityClass patchPriorityClass(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -String name = "name_example"; // String | name of the PriorityClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1PriorityClass result = apiInstance.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#patchPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1PriorityClass result = apiInstance.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#patchPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPriorityClass** > V1alpha1PriorityClass readPriorityClass(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -String name = "name_example"; // String | name of the PriorityClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1alpha1PriorityClass result = apiInstance.readPriorityClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#readPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1alpha1PriorityClass result = apiInstance.readPriorityClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#readPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replacePriorityClass** > V1alpha1PriorityClass replacePriorityClass(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(); -String name = "name_example"; // String | name of the PriorityClass -V1alpha1PriorityClass body = new V1alpha1PriorityClass(); // V1alpha1PriorityClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1PriorityClass result = apiInstance.replacePriorityClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1alpha1Api#replacePriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1alpha1Api apiInstance = new SchedulingV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + V1alpha1PriorityClass body = new V1alpha1PriorityClass(); // V1alpha1PriorityClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1PriorityClass result = apiInstance.replacePriorityClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1alpha1Api#replacePriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/SchedulingV1beta1Api.md b/kubernetes/docs/SchedulingV1beta1Api.md index 681c8084ff..51e61a8e59 100644 --- a/kubernetes/docs/SchedulingV1beta1Api.md +++ b/kubernetes/docs/SchedulingV1beta1Api.md @@ -1,6 +1,6 @@ # SchedulingV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create a PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -V1beta1PriorityClass body = new V1beta1PriorityClass(); // V1beta1PriorityClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1PriorityClass result = apiInstance.createPriorityClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#createPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + V1beta1PriorityClass body = new V1beta1PriorityClass(); // V1beta1PriorityClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1PriorityClass result = apiInstance.createPriorityClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#createPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionPriorityClass** -> V1Status deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -86,35 +103,50 @@ delete collection of PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#deleteCollectionPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#deleteCollectionPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,13 +155,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -141,12 +179,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deletePriorityClass** -> V1Status deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -155,34 +199,43 @@ delete a PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -String name = "name_example"; // String | name of the PriorityClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#deletePriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#deletePriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -192,11 +245,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +261,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPriorityClass** -> V1beta1PriorityClassList listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1PriorityClassList listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1PriorityClassList result = apiInstance.listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#listPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1PriorityClassList result = apiInstance.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#listPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchPriorityClass** > V1beta1PriorityClass patchPriorityClass(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -String name = "name_example"; // String | name of the PriorityClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1PriorityClass result = apiInstance.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#patchPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1PriorityClass result = apiInstance.patchPriorityClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#patchPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PriorityClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readPriorityClass** > V1beta1PriorityClass readPriorityClass(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -String name = "name_example"; // String | name of the PriorityClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1PriorityClass result = apiInstance.readPriorityClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#readPriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1PriorityClass result = apiInstance.readPriorityClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#readPriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replacePriorityClass** > V1beta1PriorityClass replacePriorityClass(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified PriorityClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SchedulingV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(); -String name = "name_example"; // String | name of the PriorityClass -V1beta1PriorityClass body = new V1beta1PriorityClass(); // V1beta1PriorityClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1PriorityClass result = apiInstance.replacePriorityClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SchedulingV1beta1Api#replacePriorityClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SchedulingV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SchedulingV1beta1Api apiInstance = new SchedulingV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the PriorityClass + V1beta1PriorityClass body = new V1beta1PriorityClass(); // V1beta1PriorityClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1PriorityClass result = apiInstance.replacePriorityClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SchedulingV1beta1Api#replacePriorityClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/SettingsApi.md b/kubernetes/docs/SettingsApi.md index 2f6c50025f..351661898c 100644 --- a/kubernetes/docs/SettingsApi.md +++ b/kubernetes/docs/SettingsApi.md @@ -1,6 +1,6 @@ # SettingsApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsApi apiInstance = new SettingsApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsApi apiInstance = new SettingsApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/SettingsV1alpha1Api.md b/kubernetes/docs/SettingsV1alpha1Api.md index 72305f726a..90b918071d 100644 --- a/kubernetes/docs/SettingsV1alpha1Api.md +++ b/kubernetes/docs/SettingsV1alpha1Api.md @@ -1,6 +1,6 @@ # SettingsV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -26,32 +26,41 @@ create a PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1alpha1PodPreset body = new V1alpha1PodPreset(); // V1alpha1PodPreset | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1PodPreset result = apiInstance.createNamespacedPodPreset(namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#createNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1PodPreset body = new V1alpha1PodPreset(); // V1alpha1PodPreset | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1PodPreset result = apiInstance.createNamespacedPodPreset(namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#createNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -75,12 +84,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionNamespacedPodPreset** -> V1Status deleteCollectionNamespacedPodPreset(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionNamespacedPodPreset(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -89,36 +106,51 @@ delete collection of PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionNamespacedPodPreset(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#deleteCollectionNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionNamespacedPodPreset(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#deleteCollectionNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -128,13 +160,19 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -146,12 +184,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteNamespacedPodPreset** -> V1Status deleteNamespacedPodPreset(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteNamespacedPodPreset(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -160,35 +204,44 @@ delete a PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String name = "name_example"; // String | name of the PodPreset -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteNamespacedPodPreset(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#deleteNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PodPreset + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteNamespacedPodPreset(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#deleteNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -199,11 +252,11 @@ Name | Type | Description | Notes **name** | **String**| name of the PodPreset | **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -215,9 +268,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -229,27 +289,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -266,12 +335,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listNamespacedPodPreset** -> V1alpha1PodPresetList listNamespacedPodPreset(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1PodPresetList listNamespacedPodPreset(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -280,36 +355,46 @@ list or watch objects of kind PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1PodPresetList result = apiInstance.listNamespacedPodPreset(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#listNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1PodPresetList result = apiInstance.listNamespacedPodPreset(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#listNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -319,6 +404,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **namespace** | **String**| object name and auth scope, such as for teams and projects | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -337,12 +423,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listPodPresetForAllNamespaces** -> V1alpha1PodPresetList listPodPresetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) +> V1alpha1PodPresetList listPodPresetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch) @@ -351,35 +443,45 @@ list or watch objects of kind PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1PodPresetList result = apiInstance.listPodPresetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#listPodPresetForAllNamespaces"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1PodPresetList result = apiInstance.listPodPresetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#listPodPresetForAllNamespaces"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -387,6 +489,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -406,9 +509,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchNamespacedPodPreset** > V1alpha1PodPreset patchNamespacedPodPreset(name, namespace, body, pretty, dryRun, fieldManager, force) @@ -420,34 +529,43 @@ partially update the specified PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String name = "name_example"; // String | name of the PodPreset -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1PodPreset result = apiInstance.patchNamespacedPodPreset(name, namespace, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#patchNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PodPreset + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1PodPreset result = apiInstance.patchNamespacedPodPreset(name, namespace, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#patchNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -457,7 +575,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the PodPreset | **namespace** | **String**| object name and auth scope, such as for teams and projects | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -476,6 +594,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readNamespacedPodPreset** > V1alpha1PodPreset readNamespacedPodPreset(name, namespace, pretty, exact, export) @@ -487,32 +611,41 @@ read the specified PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String name = "name_example"; // String | name of the PodPreset -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1alpha1PodPreset result = apiInstance.readNamespacedPodPreset(name, namespace, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#readNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PodPreset + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1alpha1PodPreset result = apiInstance.readNamespacedPodPreset(name, namespace, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#readNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -536,9 +669,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceNamespacedPodPreset** > V1alpha1PodPreset replaceNamespacedPodPreset(name, namespace, body, pretty, dryRun, fieldManager) @@ -550,33 +689,42 @@ replace the specified PodPreset ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.SettingsV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(); -String name = "name_example"; // String | name of the PodPreset -String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects -V1alpha1PodPreset body = new V1alpha1PodPreset(); // V1alpha1PodPreset | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1PodPreset result = apiInstance.replaceNamespacedPodPreset(name, namespace, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling SettingsV1alpha1Api#replaceNamespacedPodPreset"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.SettingsV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + SettingsV1alpha1Api apiInstance = new SettingsV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the PodPreset + String namespace = "namespace_example"; // String | object name and auth scope, such as for teams and projects + V1alpha1PodPreset body = new V1alpha1PodPreset(); // V1alpha1PodPreset | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1PodPreset result = apiInstance.replaceNamespacedPodPreset(name, namespace, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SettingsV1alpha1Api#replaceNamespacedPodPreset"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -601,6 +749,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StorageApi.md b/kubernetes/docs/StorageApi.md index 714771f113..7baa623eac 100644 --- a/kubernetes/docs/StorageApi.md +++ b/kubernetes/docs/StorageApi.md @@ -1,6 +1,6 @@ # StorageApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get information of a group ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageApi apiInstance = new StorageApi(); -try { - V1APIGroup result = apiInstance.getAPIGroup(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageApi#getAPIGroup"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageApi apiInstance = new StorageApi(defaultClient); + try { + V1APIGroup result = apiInstance.getAPIGroup(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageApi#getAPIGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StorageV1Api.md b/kubernetes/docs/StorageV1Api.md index d535885e55..4c110eb997 100644 --- a/kubernetes/docs/StorageV1Api.md +++ b/kubernetes/docs/StorageV1Api.md @@ -1,6 +1,6 @@ # StorageV1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -35,31 +35,40 @@ create a StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -V1StorageClass body = new V1StorageClass(); // V1StorageClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1StorageClass result = apiInstance.createStorageClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#createStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + V1StorageClass body = new V1StorageClass(); // V1StorageClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1StorageClass result = apiInstance.createStorageClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#createStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -82,9 +91,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createVolumeAttachment** > V1VolumeAttachment createVolumeAttachment(body, pretty, dryRun, fieldManager) @@ -96,31 +113,40 @@ create a VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1VolumeAttachment result = apiInstance.createVolumeAttachment(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#createVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1VolumeAttachment result = apiInstance.createVolumeAttachment(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#createVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -143,12 +169,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionStorageClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -157,35 +191,50 @@ delete collection of StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#deleteCollectionStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionStorageClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#deleteCollectionStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -194,13 +243,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -212,12 +267,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionVolumeAttachment** -> V1Status deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -226,35 +287,50 @@ delete collection of VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#deleteCollectionVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#deleteCollectionVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -263,13 +339,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -281,12 +363,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteStorageClass** -> V1Status deleteStorageClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -295,34 +383,43 @@ delete a StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the StorageClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteStorageClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#deleteStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#deleteStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -332,11 +429,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -348,12 +445,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteVolumeAttachment** -> V1Status deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -362,34 +466,43 @@ delete a VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#deleteVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#deleteVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -399,11 +512,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -415,9 +528,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -429,27 +549,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -466,12 +595,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listStorageClass** -> V1StorageClassList listStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1StorageClassList listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -480,35 +615,45 @@ list or watch objects of kind StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1StorageClassList result = apiInstance.listStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1StorageClassList result = apiInstance.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#listStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +662,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -535,12 +681,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listVolumeAttachment** -> V1VolumeAttachmentList listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1VolumeAttachmentList listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -549,35 +701,45 @@ list or watch objects of kind VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#listVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#listVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -586,6 +748,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -604,9 +767,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchStorageClass** > V1StorageClass patchStorageClass(name, body, pretty, dryRun, fieldManager, force) @@ -618,33 +787,42 @@ partially update the specified StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the StorageClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1StorageClass result = apiInstance.patchStorageClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#patchStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1StorageClass result = apiInstance.patchStorageClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#patchStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -653,7 +831,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -672,6 +850,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchVolumeAttachment** > V1VolumeAttachment patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force) @@ -683,33 +867,42 @@ partially update the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1VolumeAttachment result = apiInstance.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#patchVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1VolumeAttachment result = apiInstance.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#patchVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -718,7 +911,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -737,6 +930,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchVolumeAttachmentStatus** > V1VolumeAttachment patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, force) @@ -748,33 +947,42 @@ partially update status of the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1VolumeAttachment result = apiInstance.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#patchVolumeAttachmentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1VolumeAttachment result = apiInstance.patchVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#patchVolumeAttachmentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -783,7 +991,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -802,6 +1010,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readStorageClass** > V1StorageClass readStorageClass(name, pretty, exact, export) @@ -813,31 +1027,40 @@ read the specified StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the StorageClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1StorageClass result = apiInstance.readStorageClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#readStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1StorageClass result = apiInstance.readStorageClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#readStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -860,9 +1083,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readVolumeAttachment** > V1VolumeAttachment readVolumeAttachment(name, pretty, exact, export) @@ -874,31 +1103,40 @@ read the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#readVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#readVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -921,9 +1159,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readVolumeAttachmentStatus** > V1VolumeAttachment readVolumeAttachmentStatus(name, pretty) @@ -935,29 +1179,38 @@ read status of the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -try { - V1VolumeAttachment result = apiInstance.readVolumeAttachmentStatus(name, pretty); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#readVolumeAttachmentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + try { + V1VolumeAttachment result = apiInstance.readVolumeAttachmentStatus(name, pretty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#readVolumeAttachmentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -978,9 +1231,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceStorageClass** > V1StorageClass replaceStorageClass(name, body, pretty, dryRun, fieldManager) @@ -992,32 +1251,41 @@ replace the specified StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the StorageClass -V1StorageClass body = new V1StorageClass(); // V1StorageClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1StorageClass result = apiInstance.replaceStorageClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#replaceStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + V1StorageClass body = new V1StorageClass(); // V1StorageClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1StorageClass result = apiInstance.replaceStorageClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#replaceStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1041,9 +1309,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceVolumeAttachment** > V1VolumeAttachment replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager) @@ -1055,32 +1330,41 @@ replace the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1VolumeAttachment result = apiInstance.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#replaceVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1VolumeAttachment result = apiInstance.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#replaceVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1104,9 +1388,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceVolumeAttachmentStatus** > V1VolumeAttachment replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager) @@ -1118,32 +1409,41 @@ replace status of the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1Api apiInstance = new StorageV1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1VolumeAttachment result = apiInstance.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1Api#replaceVolumeAttachmentStatus"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1Api apiInstance = new StorageV1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + V1VolumeAttachment body = new V1VolumeAttachment(); // V1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1VolumeAttachment result = apiInstance.replaceVolumeAttachmentStatus(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1Api#replaceVolumeAttachmentStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1167,6 +1467,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StorageV1alpha1Api.md b/kubernetes/docs/StorageV1alpha1Api.md index 2bf47c272f..7bda336182 100644 --- a/kubernetes/docs/StorageV1alpha1Api.md +++ b/kubernetes/docs/StorageV1alpha1Api.md @@ -1,6 +1,6 @@ # StorageV1alpha1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -25,31 +25,40 @@ create a VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -V1alpha1VolumeAttachment body = new V1alpha1VolumeAttachment(); // V1alpha1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1VolumeAttachment result = apiInstance.createVolumeAttachment(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#createVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + V1alpha1VolumeAttachment body = new V1alpha1VolumeAttachment(); // V1alpha1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1VolumeAttachment result = apiInstance.createVolumeAttachment(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#createVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -72,12 +81,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionVolumeAttachment** -> V1Status deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -86,35 +103,50 @@ delete collection of VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#deleteCollectionVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#deleteCollectionVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -123,13 +155,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -141,12 +179,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteVolumeAttachment** -> V1Status deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -155,34 +199,43 @@ delete a VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#deleteVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#deleteVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -192,11 +245,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -208,9 +261,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -222,27 +282,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -259,12 +328,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listVolumeAttachment** -> V1alpha1VolumeAttachmentList listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1alpha1VolumeAttachmentList listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -273,35 +348,45 @@ list or watch objects of kind VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1alpha1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#listVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1alpha1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#listVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -310,6 +395,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -328,9 +414,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchVolumeAttachment** > V1alpha1VolumeAttachment patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force) @@ -342,33 +434,42 @@ partially update the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1alpha1VolumeAttachment result = apiInstance.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#patchVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1alpha1VolumeAttachment result = apiInstance.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#patchVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -377,7 +478,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -396,6 +497,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readVolumeAttachment** > V1alpha1VolumeAttachment readVolumeAttachment(name, pretty, exact, export) @@ -407,31 +514,40 @@ read the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1alpha1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#readVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1alpha1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#readVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -454,9 +570,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceVolumeAttachment** > V1alpha1VolumeAttachment replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager) @@ -468,32 +590,41 @@ replace the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1alpha1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1alpha1VolumeAttachment body = new V1alpha1VolumeAttachment(); // V1alpha1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1alpha1VolumeAttachment result = apiInstance.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1alpha1Api#replaceVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1alpha1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1alpha1Api apiInstance = new StorageV1alpha1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + V1alpha1VolumeAttachment body = new V1alpha1VolumeAttachment(); // V1alpha1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1alpha1VolumeAttachment result = apiInstance.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1alpha1Api#replaceVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -517,6 +648,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/StorageV1beta1Api.md b/kubernetes/docs/StorageV1beta1Api.md index d5ae1f16e8..add7cd9f03 100644 --- a/kubernetes/docs/StorageV1beta1Api.md +++ b/kubernetes/docs/StorageV1beta1Api.md @@ -1,6 +1,6 @@ # StorageV1beta1Api -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -46,31 +46,40 @@ create a CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -V1beta1CSIDriver body = new V1beta1CSIDriver(); // V1beta1CSIDriver | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CSIDriver result = apiInstance.createCSIDriver(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#createCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + V1beta1CSIDriver body = new V1beta1CSIDriver(); // V1beta1CSIDriver | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CSIDriver result = apiInstance.createCSIDriver(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#createCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -93,9 +102,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createCSINode** > V1beta1CSINode createCSINode(body, pretty, dryRun, fieldManager) @@ -107,31 +124,40 @@ create a CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -V1beta1CSINode body = new V1beta1CSINode(); // V1beta1CSINode | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CSINode result = apiInstance.createCSINode(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#createCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + V1beta1CSINode body = new V1beta1CSINode(); // V1beta1CSINode | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CSINode result = apiInstance.createCSINode(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#createCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -154,9 +180,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createStorageClass** > V1beta1StorageClass createStorageClass(body, pretty, dryRun, fieldManager) @@ -168,31 +202,40 @@ create a StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -V1beta1StorageClass body = new V1beta1StorageClass(); // V1beta1StorageClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1StorageClass result = apiInstance.createStorageClass(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#createStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + V1beta1StorageClass body = new V1beta1StorageClass(); // V1beta1StorageClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1StorageClass result = apiInstance.createStorageClass(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#createStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -215,9 +258,17 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **createVolumeAttachment** > V1beta1VolumeAttachment createVolumeAttachment(body, pretty, dryRun, fieldManager) @@ -229,31 +280,40 @@ create a VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -V1beta1VolumeAttachment body = new V1beta1VolumeAttachment(); // V1beta1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1VolumeAttachment result = apiInstance.createVolumeAttachment(body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#createVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + V1beta1VolumeAttachment body = new V1beta1VolumeAttachment(); // V1beta1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1VolumeAttachment result = apiInstance.createVolumeAttachment(body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#createVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -276,12 +336,20 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCSIDriver** -> V1Status deleteCSIDriver(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -290,34 +358,43 @@ delete a CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSIDriver -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteCSIDriver(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSIDriver + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -327,11 +404,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIDriver | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -343,12 +420,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCSINode** -> V1Status deleteCSINode(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -357,34 +441,43 @@ delete a CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSINode -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteCSINode(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -394,11 +487,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSINode | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -410,12 +503,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteCollectionCSIDriver** -> V1Status deleteCollectionCSIDriver(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionCSIDriver(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -424,35 +524,50 @@ delete collection of CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionCSIDriver(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionCSIDriver(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -461,13 +576,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -479,12 +600,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionCSINode** -> V1Status deleteCollectionCSINode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionCSINode(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -493,35 +620,50 @@ delete collection of CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionCSINode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionCSINode(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -530,13 +672,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -548,12 +696,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionStorageClass** -> V1Status deleteCollectionStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionStorageClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -562,35 +716,50 @@ delete collection of StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionStorageClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -599,13 +768,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -617,12 +792,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteCollectionVolumeAttachment** -> V1Status deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1Status deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body) @@ -631,35 +812,50 @@ delete collection of VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteCollectionVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -668,13 +864,19 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] **limit** | **Integer**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] **resourceVersion** | **String**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. | [optional] **timeoutSeconds** | **Integer**| Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. | [optional] **watch** | **Boolean**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -686,12 +888,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **deleteStorageClass** -> V1Status deleteStorageClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -700,34 +908,43 @@ delete a StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the StorageClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteStorageClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -737,11 +954,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -753,12 +970,19 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **deleteVolumeAttachment** -> V1Status deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy) +> V1Status deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body) @@ -767,34 +991,43 @@ delete a VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. -Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. -String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. -try { - V1Status result = apiInstance.deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#deleteVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + Integer gracePeriodSeconds = 56; // Integer | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + Boolean orphanDependents = true; // Boolean | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + String propagationPolicy = "propagationPolicy_example"; // String | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + V1DeleteOptions body = new V1DeleteOptions(); // V1DeleteOptions | + try { + V1Status result = apiInstance.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#deleteVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -804,11 +1037,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **gracePeriodSeconds** | **Integer**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **orphanDependents** | **Boolean**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] **propagationPolicy** | **String**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | [optional] ### Return type @@ -820,9 +1053,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**202** | Accepted | - | +**401** | Unauthorized | - | + # **getAPIResources** > V1APIResourceList getAPIResources() @@ -834,27 +1074,36 @@ get available resources ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -try { - V1APIResourceList result = apiInstance.getAPIResources(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#getAPIResources"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + try { + V1APIResourceList result = apiInstance.getAPIResources(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#getAPIResources"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -871,12 +1120,18 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json, application/yaml, application/vnd.kubernetes.protobuf + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listCSIDriver** -> V1beta1CSIDriverList listCSIDriver(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1CSIDriverList listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -885,35 +1140,45 @@ list or watch objects of kind CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1CSIDriverList result = apiInstance.listCSIDriver(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#listCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1CSIDriverList result = apiInstance.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#listCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -922,6 +1187,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -940,12 +1206,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listCSINode** -> V1beta1CSINodeList listCSINode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1CSINodeList listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -954,35 +1226,45 @@ list or watch objects of kind CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1CSINodeList result = apiInstance.listCSINode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#listCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1CSINodeList result = apiInstance.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#listCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -991,6 +1273,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1009,12 +1292,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listStorageClass** -> V1beta1StorageClassList listStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1StorageClassList listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1023,35 +1312,45 @@ list or watch objects of kind StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1StorageClassList result = apiInstance.listStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#listStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1StorageClassList result = apiInstance.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#listStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1060,6 +1359,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1078,12 +1378,18 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **listVolumeAttachment** -> V1beta1VolumeAttachmentList listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) +> V1beta1VolumeAttachmentList listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch) @@ -1092,35 +1398,45 @@ list or watch objects of kind VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. -String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. -String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. -Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. -String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. -Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. -Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. -try { - V1beta1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#listVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean allowWatchBookmarks = true; // Boolean | allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. + String _continue = "_continue_example"; // String | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + String fieldSelector = "fieldSelector_example"; // String | A selector to restrict the list of returned objects by their fields. Defaults to everything. + String labelSelector = "labelSelector_example"; // String | A selector to restrict the list of returned objects by their labels. Defaults to everything. + Integer limit = 56; // Integer | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + String resourceVersion = "resourceVersion_example"; // String | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. + Integer timeoutSeconds = 56; // Integer | Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. + Boolean watch = true; // Boolean | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + try { + V1beta1VolumeAttachmentList result = apiInstance.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#listVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1129,6 +1445,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] + **allowWatchBookmarks** | **Boolean**| allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. | [optional] **_continue** | **String**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] **fieldSelector** | **String**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] **labelSelector** | **String**| A selector to restrict the list of returned objects by their labels. Defaults to everything. | [optional] @@ -1147,9 +1464,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf, application/json;stream=watch, application/vnd.kubernetes.protobuf;stream=watch +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchCSIDriver** > V1beta1CSIDriver patchCSIDriver(name, body, pretty, dryRun, fieldManager, force) @@ -1161,33 +1484,42 @@ partially update the specified CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSIDriver -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CSIDriver result = apiInstance.patchCSIDriver(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#patchCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSIDriver + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CSIDriver result = apiInstance.patchCSIDriver(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#patchCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1196,7 +1528,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSIDriver | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1215,6 +1547,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchCSINode** > V1beta1CSINode patchCSINode(name, body, pretty, dryRun, fieldManager, force) @@ -1226,33 +1564,42 @@ partially update the specified CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSINode -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1CSINode result = apiInstance.patchCSINode(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#patchCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1CSINode result = apiInstance.patchCSINode(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#patchCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1261,7 +1608,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the CSINode | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1280,6 +1627,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchStorageClass** > V1beta1StorageClass patchStorageClass(name, body, pretty, dryRun, fieldManager, force) @@ -1291,33 +1644,42 @@ partially update the specified StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the StorageClass -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1StorageClass result = apiInstance.patchStorageClass(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#patchStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1StorageClass result = apiInstance.patchStorageClass(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#patchStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1326,7 +1688,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the StorageClass | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1345,6 +1707,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **patchVolumeAttachment** > V1beta1VolumeAttachment patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force) @@ -1356,33 +1724,42 @@ partially update the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1Patch body = new V1Patch(); // V1Patch | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). -Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. -try { - V1beta1VolumeAttachment result = apiInstance.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#patchVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + Object body = null; // Object | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). + Boolean force = true; // Boolean | Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. + try { + V1beta1VolumeAttachment result = apiInstance.patchVolumeAttachment(name, body, pretty, dryRun, fieldManager, force); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#patchVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1391,7 +1768,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **String**| name of the VolumeAttachment | - **body** | [**V1Patch**](V1Patch.md)| | + **body** | **Object**| | **pretty** | **String**| If 'true', then the output is pretty printed. | [optional] **dryRun** | **String**| When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] **fieldManager** | **String**| fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). | [optional] @@ -1410,6 +1787,12 @@ Name | Type | Description | Notes - **Content-Type**: application/json-patch+json, application/merge-patch+json, application/strategic-merge-patch+json - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readCSIDriver** > V1beta1CSIDriver readCSIDriver(name, pretty, exact, export) @@ -1421,31 +1804,40 @@ read the specified CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSIDriver -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1CSIDriver result = apiInstance.readCSIDriver(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#readCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSIDriver + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1CSIDriver result = apiInstance.readCSIDriver(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#readCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1468,9 +1860,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readCSINode** > V1beta1CSINode readCSINode(name, pretty, exact, export) @@ -1482,31 +1880,40 @@ read the specified CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSINode -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1CSINode result = apiInstance.readCSINode(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#readCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1CSINode result = apiInstance.readCSINode(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#readCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1529,9 +1936,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readStorageClass** > V1beta1StorageClass readStorageClass(name, pretty, exact, export) @@ -1543,31 +1956,40 @@ read the specified StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the StorageClass -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1StorageClass result = apiInstance.readStorageClass(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#readStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1StorageClass result = apiInstance.readStorageClass(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#readStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1590,9 +2012,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **readVolumeAttachment** > V1beta1VolumeAttachment readVolumeAttachment(name, pretty, exact, export) @@ -1604,31 +2032,40 @@ read the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. -Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. -try { - V1beta1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty, exact, export); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#readVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + Boolean exact = true; // Boolean | Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. + Boolean export = true; // Boolean | Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. + try { + V1beta1VolumeAttachment result = apiInstance.readVolumeAttachment(name, pretty, exact, export); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#readVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1651,9 +2088,15 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + # **replaceCSIDriver** > V1beta1CSIDriver replaceCSIDriver(name, body, pretty, dryRun, fieldManager) @@ -1665,32 +2108,41 @@ replace the specified CSIDriver ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSIDriver -V1beta1CSIDriver body = new V1beta1CSIDriver(); // V1beta1CSIDriver | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CSIDriver result = apiInstance.replaceCSIDriver(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#replaceCSIDriver"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSIDriver + V1beta1CSIDriver body = new V1beta1CSIDriver(); // V1beta1CSIDriver | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CSIDriver result = apiInstance.replaceCSIDriver(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#replaceCSIDriver"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1714,9 +2166,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceCSINode** > V1beta1CSINode replaceCSINode(name, body, pretty, dryRun, fieldManager) @@ -1728,32 +2187,41 @@ replace the specified CSINode ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the CSINode -V1beta1CSINode body = new V1beta1CSINode(); // V1beta1CSINode | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1CSINode result = apiInstance.replaceCSINode(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#replaceCSINode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the CSINode + V1beta1CSINode body = new V1beta1CSINode(); // V1beta1CSINode | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1CSINode result = apiInstance.replaceCSINode(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#replaceCSINode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1777,9 +2245,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceStorageClass** > V1beta1StorageClass replaceStorageClass(name, body, pretty, dryRun, fieldManager) @@ -1791,32 +2266,41 @@ replace the specified StorageClass ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the StorageClass -V1beta1StorageClass body = new V1beta1StorageClass(); // V1beta1StorageClass | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1StorageClass result = apiInstance.replaceStorageClass(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#replaceStorageClass"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the StorageClass + V1beta1StorageClass body = new V1beta1StorageClass(); // V1beta1StorageClass | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1StorageClass result = apiInstance.replaceStorageClass(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#replaceStorageClass"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1840,9 +2324,16 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + # **replaceVolumeAttachment** > V1beta1VolumeAttachment replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager) @@ -1854,32 +2345,41 @@ replace the specified VolumeAttachment ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.StorageV1beta1Api; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -StorageV1beta1Api apiInstance = new StorageV1beta1Api(); -String name = "name_example"; // String | name of the VolumeAttachment -V1beta1VolumeAttachment body = new V1beta1VolumeAttachment(); // V1beta1VolumeAttachment | -String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. -String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed -String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. -try { - V1beta1VolumeAttachment result = apiInstance.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling StorageV1beta1Api#replaceVolumeAttachment"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.StorageV1beta1Api; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + StorageV1beta1Api apiInstance = new StorageV1beta1Api(defaultClient); + String name = "name_example"; // String | name of the VolumeAttachment + V1beta1VolumeAttachment body = new V1beta1VolumeAttachment(); // V1beta1VolumeAttachment | + String pretty = "pretty_example"; // String | If 'true', then the output is pretty printed. + String dryRun = "dryRun_example"; // String | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed + String fieldManager = "fieldManager_example"; // String | fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. + try { + V1beta1VolumeAttachment result = apiInstance.replaceVolumeAttachment(name, body, pretty, dryRun, fieldManager); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StorageV1beta1Api#replaceVolumeAttachment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -1903,6 +2403,13 @@ Name | Type | Description | Notes ### HTTP request headers - - **Content-Type**: */* + - **Content-Type**: Not defined - **Accept**: application/json, application/yaml, application/vnd.kubernetes.protobuf +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**201** | Created | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/V1APIGroup.md b/kubernetes/docs/V1APIGroup.md index cd7f405e9b..9240825031 100644 --- a/kubernetes/docs/V1APIGroup.md +++ b/kubernetes/docs/V1APIGroup.md @@ -1,13 +1,15 @@ + # V1APIGroup ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **name** | **String** | name is the name of the group. | -**preferredVersion** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | preferredVersion is the version preferred by the API server, which probably is the storage version. | [optional] +**preferredVersion** | [**V1GroupVersionForDiscovery**](V1GroupVersionForDiscovery.md) | | [optional] **serverAddressByClientCIDRs** | [**List<V1ServerAddressByClientCIDR>**](V1ServerAddressByClientCIDR.md) | a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. | [optional] **versions** | [**List<V1GroupVersionForDiscovery>**](V1GroupVersionForDiscovery.md) | versions are the versions supported in this group. | diff --git a/kubernetes/docs/V1APIGroupList.md b/kubernetes/docs/V1APIGroupList.md index de2a05eacb..893f10788e 100644 --- a/kubernetes/docs/V1APIGroupList.md +++ b/kubernetes/docs/V1APIGroupList.md @@ -1,7 +1,9 @@ + # V1APIGroupList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1APIResource.md b/kubernetes/docs/V1APIResource.md index f03c9e85dc..c7b96692dc 100644 --- a/kubernetes/docs/V1APIResource.md +++ b/kubernetes/docs/V1APIResource.md @@ -1,7 +1,9 @@ + # V1APIResource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **categories** | **List<String>** | categories is a list of the grouped resources this resource belongs to (e.g. 'all') | [optional] diff --git a/kubernetes/docs/V1APIResourceList.md b/kubernetes/docs/V1APIResourceList.md index ebedeaff47..4c2c4480f9 100644 --- a/kubernetes/docs/V1APIResourceList.md +++ b/kubernetes/docs/V1APIResourceList.md @@ -1,7 +1,9 @@ + # V1APIResourceList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1APIService.md b/kubernetes/docs/V1APIService.md index 95251bd1b4..3268eadfde 100644 --- a/kubernetes/docs/V1APIService.md +++ b/kubernetes/docs/V1APIService.md @@ -1,14 +1,16 @@ + # V1APIService ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1APIServiceSpec**](V1APIServiceSpec.md) | Spec contains information for locating and communicating with a server | [optional] -**status** | [**V1APIServiceStatus**](V1APIServiceStatus.md) | Status contains derived information about an API server | [optional] +**spec** | [**V1APIServiceSpec**](V1APIServiceSpec.md) | | [optional] +**status** | [**V1APIServiceStatus**](V1APIServiceStatus.md) | | [optional] diff --git a/kubernetes/docs/V1APIServiceCondition.md b/kubernetes/docs/V1APIServiceCondition.md index 237f6cb080..8a30423e22 100644 --- a/kubernetes/docs/V1APIServiceCondition.md +++ b/kubernetes/docs/V1APIServiceCondition.md @@ -1,7 +1,9 @@ + # V1APIServiceCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1APIServiceList.md b/kubernetes/docs/V1APIServiceList.md index ab440487bb..434e62e2b6 100644 --- a/kubernetes/docs/V1APIServiceList.md +++ b/kubernetes/docs/V1APIServiceList.md @@ -1,7 +1,9 @@ + # V1APIServiceList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1APIServiceSpec.md b/kubernetes/docs/V1APIServiceSpec.md index f5c1482428..b9ba2ab40e 100644 --- a/kubernetes/docs/V1APIServiceSpec.md +++ b/kubernetes/docs/V1APIServiceSpec.md @@ -1,14 +1,16 @@ + # V1APIServiceSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caBundle** | **byte[]** | CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. | [optional] **group** | **String** | Group is the API group name this server hosts | [optional] **groupPriorityMinimum** | **Integer** | GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s | **insecureSkipTLSVerify** | **Boolean** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] -**service** | [**V1ServiceReference**](V1ServiceReference.md) | Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. | +**service** | [**V1ServiceReference**](V1ServiceReference.md) | | **version** | **String** | Version is the API version this server hosts. For example, \"v1\" | [optional] **versionPriority** | **Integer** | VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | diff --git a/kubernetes/docs/V1APIServiceStatus.md b/kubernetes/docs/V1APIServiceStatus.md index ab7d94d892..b9f32d3f06 100644 --- a/kubernetes/docs/V1APIServiceStatus.md +++ b/kubernetes/docs/V1APIServiceStatus.md @@ -1,7 +1,9 @@ + # V1APIServiceStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**List<V1APIServiceCondition>**](V1APIServiceCondition.md) | Current service state of apiService. | [optional] diff --git a/kubernetes/docs/V1APIVersions.md b/kubernetes/docs/V1APIVersions.md index 2b4ff1c451..79561f8888 100644 --- a/kubernetes/docs/V1APIVersions.md +++ b/kubernetes/docs/V1APIVersions.md @@ -1,7 +1,9 @@ + # V1APIVersions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md index ac72c5ee5b..622767e57a 100644 --- a/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md +++ b/kubernetes/docs/V1AWSElasticBlockStoreVolumeSource.md @@ -1,7 +1,9 @@ + # V1AWSElasticBlockStoreVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] diff --git a/kubernetes/docs/V1Affinity.md b/kubernetes/docs/V1Affinity.md index 36193e9ef3..674ee1cb2f 100644 --- a/kubernetes/docs/V1Affinity.md +++ b/kubernetes/docs/V1Affinity.md @@ -1,12 +1,14 @@ + # V1Affinity ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nodeAffinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | Describes node affinity scheduling rules for the pod. | [optional] -**podAffinity** | [**V1PodAffinity**](V1PodAffinity.md) | Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). | [optional] -**podAntiAffinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). | [optional] +**nodeAffinity** | [**V1NodeAffinity**](V1NodeAffinity.md) | | [optional] +**podAffinity** | [**V1PodAffinity**](V1PodAffinity.md) | | [optional] +**podAntiAffinity** | [**V1PodAntiAffinity**](V1PodAntiAffinity.md) | | [optional] diff --git a/kubernetes/docs/V1AggregationRule.md b/kubernetes/docs/V1AggregationRule.md index ad7d580f90..77cc52b768 100644 --- a/kubernetes/docs/V1AggregationRule.md +++ b/kubernetes/docs/V1AggregationRule.md @@ -1,7 +1,9 @@ + # V1AggregationRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] diff --git a/kubernetes/docs/V1AttachedVolume.md b/kubernetes/docs/V1AttachedVolume.md index 538d82ed69..be08623d51 100644 --- a/kubernetes/docs/V1AttachedVolume.md +++ b/kubernetes/docs/V1AttachedVolume.md @@ -1,7 +1,9 @@ + # V1AttachedVolume ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **devicePath** | **String** | DevicePath represents the device path where the volume should be available | diff --git a/kubernetes/docs/V1AzureDiskVolumeSource.md b/kubernetes/docs/V1AzureDiskVolumeSource.md index 6e4d5ca36c..d1bc78e650 100644 --- a/kubernetes/docs/V1AzureDiskVolumeSource.md +++ b/kubernetes/docs/V1AzureDiskVolumeSource.md @@ -1,7 +1,9 @@ + # V1AzureDiskVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cachingMode** | **String** | Host Caching mode: None, Read Only, Read Write. | [optional] diff --git a/kubernetes/docs/V1AzureFilePersistentVolumeSource.md b/kubernetes/docs/V1AzureFilePersistentVolumeSource.md index adbed18a5d..fe4586a4eb 100644 --- a/kubernetes/docs/V1AzureFilePersistentVolumeSource.md +++ b/kubernetes/docs/V1AzureFilePersistentVolumeSource.md @@ -1,7 +1,9 @@ + # V1AzureFilePersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] diff --git a/kubernetes/docs/V1AzureFileVolumeSource.md b/kubernetes/docs/V1AzureFileVolumeSource.md index 6a58b208c4..464523896c 100644 --- a/kubernetes/docs/V1AzureFileVolumeSource.md +++ b/kubernetes/docs/V1AzureFileVolumeSource.md @@ -1,7 +1,9 @@ + # V1AzureFileVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] diff --git a/kubernetes/docs/V1Binding.md b/kubernetes/docs/V1Binding.md index 6b25944573..857dbf671d 100644 --- a/kubernetes/docs/V1Binding.md +++ b/kubernetes/docs/V1Binding.md @@ -1,13 +1,15 @@ + # V1Binding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**target** | [**V1ObjectReference**](V1ObjectReference.md) | The target object that you want to bind to the standard object. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**target** | [**V1ObjectReference**](V1ObjectReference.md) | | diff --git a/kubernetes/docs/V1CSIPersistentVolumeSource.md b/kubernetes/docs/V1CSIPersistentVolumeSource.md index 77be8cca0f..7a2b034df8 100644 --- a/kubernetes/docs/V1CSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1CSIPersistentVolumeSource.md @@ -1,14 +1,17 @@ + # V1CSIPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**controllerPublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. | [optional] +**controllerExpandSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] +**controllerPublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **driver** | **String** | Driver is the name of the driver to use for this volume. Required. | **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". | [optional] -**nodePublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. | [optional] -**nodeStageSecretRef** | [**V1SecretReference**](V1SecretReference.md) | NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. | [optional] +**nodePublishSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] +**nodeStageSecretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **readOnly** | **Boolean** | Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). | [optional] **volumeAttributes** | **Map<String, String>** | Attributes of the volume to publish. | [optional] **volumeHandle** | **String** | VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required. | diff --git a/kubernetes/docs/V1CSIVolumeSource.md b/kubernetes/docs/V1CSIVolumeSource.md index 8e042f9b48..3db9a4f00f 100644 --- a/kubernetes/docs/V1CSIVolumeSource.md +++ b/kubernetes/docs/V1CSIVolumeSource.md @@ -1,12 +1,14 @@ + # V1CSIVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **driver** | **String** | Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. | **fsType** | **String** | Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. | [optional] -**nodePublishSecretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. | [optional] +**nodePublishSecretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **readOnly** | **Boolean** | Specifies a read-only configuration for the volume. Defaults to false (read/write). | [optional] **volumeAttributes** | **Map<String, String>** | VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. | [optional] diff --git a/kubernetes/docs/V1Capabilities.md b/kubernetes/docs/V1Capabilities.md index b88213f6e5..4151656dbb 100644 --- a/kubernetes/docs/V1Capabilities.md +++ b/kubernetes/docs/V1Capabilities.md @@ -1,7 +1,9 @@ + # V1Capabilities ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **add** | **List<String>** | Added capabilities | [optional] diff --git a/kubernetes/docs/V1CephFSPersistentVolumeSource.md b/kubernetes/docs/V1CephFSPersistentVolumeSource.md index 99567af464..3ef01dac85 100644 --- a/kubernetes/docs/V1CephFSPersistentVolumeSource.md +++ b/kubernetes/docs/V1CephFSPersistentVolumeSource.md @@ -1,14 +1,16 @@ + # V1CephFSPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **monitors** | **List<String>** | Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | **path** | **String** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] **readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] **secretFile** | **String** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] +**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **user** | **String** | Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] diff --git a/kubernetes/docs/V1CephFSVolumeSource.md b/kubernetes/docs/V1CephFSVolumeSource.md index fc51a45ba2..6511010ebf 100644 --- a/kubernetes/docs/V1CephFSVolumeSource.md +++ b/kubernetes/docs/V1CephFSVolumeSource.md @@ -1,14 +1,16 @@ + # V1CephFSVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **monitors** | **List<String>** | Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | **path** | **String** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / | [optional] **readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] **secretFile** | **String** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **user** | **String** | Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it | [optional] diff --git a/kubernetes/docs/V1CinderPersistentVolumeSource.md b/kubernetes/docs/V1CinderPersistentVolumeSource.md index df3ab8c7ca..94d1977a1b 100644 --- a/kubernetes/docs/V1CinderPersistentVolumeSource.md +++ b/kubernetes/docs/V1CinderPersistentVolumeSource.md @@ -1,12 +1,14 @@ + # V1CinderPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] **readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | Optional: points to a secret object containing parameters used to connect to OpenStack. | [optional] +**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **volumeID** | **String** | volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | diff --git a/kubernetes/docs/V1CinderVolumeSource.md b/kubernetes/docs/V1CinderVolumeSource.md index 7a077ec056..5205a3322f 100644 --- a/kubernetes/docs/V1CinderVolumeSource.md +++ b/kubernetes/docs/V1CinderVolumeSource.md @@ -1,12 +1,14 @@ + # V1CinderVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] **readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: points to a secret object containing parameters used to connect to OpenStack. | [optional] +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **volumeID** | **String** | volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | diff --git a/kubernetes/docs/V1ClientIPConfig.md b/kubernetes/docs/V1ClientIPConfig.md index 287fd492d4..e15ad9f7f8 100644 --- a/kubernetes/docs/V1ClientIPConfig.md +++ b/kubernetes/docs/V1ClientIPConfig.md @@ -1,7 +1,9 @@ + # V1ClientIPConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **timeoutSeconds** | **Integer** | timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). | [optional] diff --git a/kubernetes/docs/V1ClusterRole.md b/kubernetes/docs/V1ClusterRole.md index 709997d068..d56291f188 100644 --- a/kubernetes/docs/V1ClusterRole.md +++ b/kubernetes/docs/V1ClusterRole.md @@ -1,13 +1,15 @@ + # V1ClusterRole ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregationRule** | [**V1AggregationRule**](V1AggregationRule.md) | AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. | [optional] +**aggregationRule** | [**V1AggregationRule**](V1AggregationRule.md) | | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] diff --git a/kubernetes/docs/V1ClusterRoleBinding.md b/kubernetes/docs/V1ClusterRoleBinding.md index 00cea0fff2..34eac97742 100644 --- a/kubernetes/docs/V1ClusterRoleBinding.md +++ b/kubernetes/docs/V1ClusterRoleBinding.md @@ -1,13 +1,15 @@ + # V1ClusterRoleBinding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1RoleRef**](V1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | **subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] diff --git a/kubernetes/docs/V1ClusterRoleBindingList.md b/kubernetes/docs/V1ClusterRoleBindingList.md index 05b2107662..1e57ffcab1 100644 --- a/kubernetes/docs/V1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1ClusterRoleBindingList.md @@ -1,13 +1,15 @@ + # V1ClusterRoleBindingList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ClusterRoleBinding>**](V1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ClusterRoleList.md b/kubernetes/docs/V1ClusterRoleList.md index ea55b65162..cac7d10685 100644 --- a/kubernetes/docs/V1ClusterRoleList.md +++ b/kubernetes/docs/V1ClusterRoleList.md @@ -1,13 +1,15 @@ + # V1ClusterRoleList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ClusterRole>**](V1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ComponentCondition.md b/kubernetes/docs/V1ComponentCondition.md index 31b80fc4aa..df1d2e408a 100644 --- a/kubernetes/docs/V1ComponentCondition.md +++ b/kubernetes/docs/V1ComponentCondition.md @@ -1,7 +1,9 @@ + # V1ComponentCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **error** | **String** | Condition error code for a component. For example, a health check error code. | [optional] diff --git a/kubernetes/docs/V1ComponentStatus.md b/kubernetes/docs/V1ComponentStatus.md index 872d5a2eaa..31537aaab3 100644 --- a/kubernetes/docs/V1ComponentStatus.md +++ b/kubernetes/docs/V1ComponentStatus.md @@ -1,13 +1,15 @@ + # V1ComponentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **conditions** | [**List<V1ComponentCondition>**](V1ComponentCondition.md) | List of component conditions observed | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ComponentStatusList.md b/kubernetes/docs/V1ComponentStatusList.md index 7409cc157c..a8ae3f771d 100644 --- a/kubernetes/docs/V1ComponentStatusList.md +++ b/kubernetes/docs/V1ComponentStatusList.md @@ -1,13 +1,15 @@ + # V1ComponentStatusList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ComponentStatus>**](V1ComponentStatus.md) | List of ComponentStatus objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ConfigMap.md b/kubernetes/docs/V1ConfigMap.md index 69ea6db732..1befb3787f 100644 --- a/kubernetes/docs/V1ConfigMap.md +++ b/kubernetes/docs/V1ConfigMap.md @@ -1,14 +1,16 @@ + # V1ConfigMap ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **binaryData** | **Map<String, byte[]>** | BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. | [optional] **data** | **Map<String, String>** | Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ConfigMapEnvSource.md b/kubernetes/docs/V1ConfigMapEnvSource.md index 44b3fb0f1f..1f3cf3ff6c 100644 --- a/kubernetes/docs/V1ConfigMapEnvSource.md +++ b/kubernetes/docs/V1ConfigMapEnvSource.md @@ -1,7 +1,9 @@ + # V1ConfigMapEnvSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] diff --git a/kubernetes/docs/V1ConfigMapKeySelector.md b/kubernetes/docs/V1ConfigMapKeySelector.md index d5de95f63a..ccf2fdea61 100644 --- a/kubernetes/docs/V1ConfigMapKeySelector.md +++ b/kubernetes/docs/V1ConfigMapKeySelector.md @@ -1,12 +1,14 @@ + # V1ConfigMapKeySelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The key to select. | **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or it's key must be defined | [optional] +**optional** | **Boolean** | Specify whether the ConfigMap or its key must be defined | [optional] diff --git a/kubernetes/docs/V1ConfigMapList.md b/kubernetes/docs/V1ConfigMapList.md index 099692418d..77334314fd 100644 --- a/kubernetes/docs/V1ConfigMapList.md +++ b/kubernetes/docs/V1ConfigMapList.md @@ -1,13 +1,15 @@ + # V1ConfigMapList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ConfigMap>**](V1ConfigMap.md) | Items is the list of ConfigMaps. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ConfigMapNodeConfigSource.md b/kubernetes/docs/V1ConfigMapNodeConfigSource.md index 58a693c166..0cc8d28791 100644 --- a/kubernetes/docs/V1ConfigMapNodeConfigSource.md +++ b/kubernetes/docs/V1ConfigMapNodeConfigSource.md @@ -1,7 +1,9 @@ + # V1ConfigMapNodeConfigSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **kubeletConfigKey** | **String** | KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases. | diff --git a/kubernetes/docs/V1ConfigMapProjection.md b/kubernetes/docs/V1ConfigMapProjection.md index fdd53ad737..3af5d8a631 100644 --- a/kubernetes/docs/V1ConfigMapProjection.md +++ b/kubernetes/docs/V1ConfigMapProjection.md @@ -1,12 +1,14 @@ + # V1ConfigMapProjection ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or it's keys must be defined | [optional] +**optional** | **Boolean** | Specify whether the ConfigMap or its keys must be defined | [optional] diff --git a/kubernetes/docs/V1ConfigMapVolumeSource.md b/kubernetes/docs/V1ConfigMapVolumeSource.md index cd1a34a6b1..bcb1df6cbf 100644 --- a/kubernetes/docs/V1ConfigMapVolumeSource.md +++ b/kubernetes/docs/V1ConfigMapVolumeSource.md @@ -1,13 +1,15 @@ + # V1ConfigMapVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultMode** | **Integer** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the ConfigMap or it's keys must be defined | [optional] +**optional** | **Boolean** | Specify whether the ConfigMap or its keys must be defined | [optional] diff --git a/kubernetes/docs/V1Container.md b/kubernetes/docs/V1Container.md index 27a9bfca9d..545f77fd2f 100644 --- a/kubernetes/docs/V1Container.md +++ b/kubernetes/docs/V1Container.md @@ -1,7 +1,9 @@ + # V1Container ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **args** | **List<String>** | Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell | [optional] @@ -10,13 +12,13 @@ Name | Type | Description | Notes **envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. | [optional] **image** | **String** | Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. | [optional] **imagePullPolicy** | **String** | Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images | [optional] -**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | Actions that the management system should take in response to container lifecycle events. Cannot be updated. | [optional] -**livenessProbe** | [**V1Probe**](V1Probe.md) | Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] +**lifecycle** | [**V1Lifecycle**](V1Lifecycle.md) | | [optional] +**livenessProbe** | [**V1Probe**](V1Probe.md) | | [optional] **name** | **String** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | **ports** | [**List<V1ContainerPort>**](V1ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. | [optional] -**readinessProbe** | [**V1Probe**](V1Probe.md) | Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] -**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ | [optional] +**readinessProbe** | [**V1Probe**](V1Probe.md) | | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] +**securityContext** | [**V1SecurityContext**](V1SecurityContext.md) | | [optional] **stdin** | **Boolean** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. | [optional] **stdinOnce** | **Boolean** | Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false | [optional] **terminationMessagePath** | **String** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. | [optional] diff --git a/kubernetes/docs/V1ContainerImage.md b/kubernetes/docs/V1ContainerImage.md index 451c4d3a0a..a21d67d0e4 100644 --- a/kubernetes/docs/V1ContainerImage.md +++ b/kubernetes/docs/V1ContainerImage.md @@ -1,7 +1,9 @@ + # V1ContainerImage ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **names** | **List<String>** | Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"] | diff --git a/kubernetes/docs/V1ContainerPort.md b/kubernetes/docs/V1ContainerPort.md index 503693eee5..f52ce48d2e 100644 --- a/kubernetes/docs/V1ContainerPort.md +++ b/kubernetes/docs/V1ContainerPort.md @@ -1,7 +1,9 @@ + # V1ContainerPort ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containerPort** | **Integer** | Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. | diff --git a/kubernetes/docs/V1ContainerState.md b/kubernetes/docs/V1ContainerState.md index 8f12a125f3..a08fbe378b 100644 --- a/kubernetes/docs/V1ContainerState.md +++ b/kubernetes/docs/V1ContainerState.md @@ -1,12 +1,14 @@ + # V1ContainerState ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | Details about a running container | [optional] -**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | Details about a terminated container | [optional] -**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | Details about a waiting container | [optional] +**running** | [**V1ContainerStateRunning**](V1ContainerStateRunning.md) | | [optional] +**terminated** | [**V1ContainerStateTerminated**](V1ContainerStateTerminated.md) | | [optional] +**waiting** | [**V1ContainerStateWaiting**](V1ContainerStateWaiting.md) | | [optional] diff --git a/kubernetes/docs/V1ContainerStateRunning.md b/kubernetes/docs/V1ContainerStateRunning.md index 1bbf0d82b8..6646d6ba6c 100644 --- a/kubernetes/docs/V1ContainerStateRunning.md +++ b/kubernetes/docs/V1ContainerStateRunning.md @@ -1,7 +1,9 @@ + # V1ContainerStateRunning ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **startedAt** | [**DateTime**](DateTime.md) | Time at which the container was last (re-)started | [optional] diff --git a/kubernetes/docs/V1ContainerStateTerminated.md b/kubernetes/docs/V1ContainerStateTerminated.md index 9c79150cd0..d7c884cfc8 100644 --- a/kubernetes/docs/V1ContainerStateTerminated.md +++ b/kubernetes/docs/V1ContainerStateTerminated.md @@ -1,7 +1,9 @@ + # V1ContainerStateTerminated ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containerID** | **String** | Container's ID in the format 'docker://<container_id>' | [optional] diff --git a/kubernetes/docs/V1ContainerStateWaiting.md b/kubernetes/docs/V1ContainerStateWaiting.md index ff7f422613..18d157ceed 100644 --- a/kubernetes/docs/V1ContainerStateWaiting.md +++ b/kubernetes/docs/V1ContainerStateWaiting.md @@ -1,7 +1,9 @@ + # V1ContainerStateWaiting ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | Message regarding why the container is not yet running. | [optional] diff --git a/kubernetes/docs/V1ContainerStatus.md b/kubernetes/docs/V1ContainerStatus.md index b0c2dd5f01..62ea7458f1 100644 --- a/kubernetes/docs/V1ContainerStatus.md +++ b/kubernetes/docs/V1ContainerStatus.md @@ -1,17 +1,19 @@ + # V1ContainerStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containerID** | **String** | Container's ID in the format 'docker://<container_id>'. | [optional] **image** | **String** | The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images | **imageID** | **String** | ImageID of the container's image. | -**lastState** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's last termination condition. | [optional] +**lastState** | [**V1ContainerState**](V1ContainerState.md) | | [optional] **name** | **String** | This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. | **ready** | **Boolean** | Specifies whether the container has passed its readiness probe. | **restartCount** | **Integer** | The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. | -**state** | [**V1ContainerState**](V1ContainerState.md) | Details about the container's current condition. | [optional] +**state** | [**V1ContainerState**](V1ContainerState.md) | | [optional] diff --git a/kubernetes/docs/V1ControllerRevision.md b/kubernetes/docs/V1ControllerRevision.md index 11e296c92f..211da66509 100644 --- a/kubernetes/docs/V1ControllerRevision.md +++ b/kubernetes/docs/V1ControllerRevision.md @@ -1,13 +1,15 @@ + # V1ControllerRevision ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Data is the serialized representation of the state. | [optional] +**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **revision** | **Long** | Revision indicates the revision of the state represented by Data. | diff --git a/kubernetes/docs/V1ControllerRevisionList.md b/kubernetes/docs/V1ControllerRevisionList.md index 23a1a89201..b208b5101e 100644 --- a/kubernetes/docs/V1ControllerRevisionList.md +++ b/kubernetes/docs/V1ControllerRevisionList.md @@ -1,13 +1,15 @@ + # V1ControllerRevisionList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ControllerRevision>**](V1ControllerRevision.md) | Items is the list of ControllerRevisions | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1CrossVersionObjectReference.md b/kubernetes/docs/V1CrossVersionObjectReference.md index 09f5ef04a0..ef60f3a0b9 100644 --- a/kubernetes/docs/V1CrossVersionObjectReference.md +++ b/kubernetes/docs/V1CrossVersionObjectReference.md @@ -1,7 +1,9 @@ + # V1CrossVersionObjectReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent | [optional] diff --git a/kubernetes/docs/V1DaemonEndpoint.md b/kubernetes/docs/V1DaemonEndpoint.md index 7b02645784..b2c081e6b0 100644 --- a/kubernetes/docs/V1DaemonEndpoint.md +++ b/kubernetes/docs/V1DaemonEndpoint.md @@ -1,7 +1,9 @@ + # V1DaemonEndpoint ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **port** | **Integer** | Port number of the given endpoint. | diff --git a/kubernetes/docs/V1DaemonSet.md b/kubernetes/docs/V1DaemonSet.md index 67f44c5121..d449013f24 100644 --- a/kubernetes/docs/V1DaemonSet.md +++ b/kubernetes/docs/V1DaemonSet.md @@ -1,14 +1,16 @@ + # V1DaemonSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1DaemonSetSpec**](V1DaemonSetSpec.md) | | [optional] +**status** | [**V1DaemonSetStatus**](V1DaemonSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1DaemonSetCondition.md b/kubernetes/docs/V1DaemonSetCondition.md index 69eee9a3bb..eb11adb6cc 100644 --- a/kubernetes/docs/V1DaemonSetCondition.md +++ b/kubernetes/docs/V1DaemonSetCondition.md @@ -1,7 +1,9 @@ + # V1DaemonSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1DaemonSetList.md b/kubernetes/docs/V1DaemonSetList.md index 7252fe6008..ad5e277434 100644 --- a/kubernetes/docs/V1DaemonSetList.md +++ b/kubernetes/docs/V1DaemonSetList.md @@ -1,13 +1,15 @@ + # V1DaemonSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1DaemonSet>**](V1DaemonSet.md) | A list of daemon sets. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1DaemonSetSpec.md b/kubernetes/docs/V1DaemonSetSpec.md index 5142150844..f3f65d6da8 100644 --- a/kubernetes/docs/V1DaemonSetSpec.md +++ b/kubernetes/docs/V1DaemonSetSpec.md @@ -1,14 +1,16 @@ + # V1DaemonSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] **revisionHistoryLimit** | **Integer** | The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | -**updateStrategy** | [**V1DaemonSetUpdateStrategy**](V1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**updateStrategy** | [**V1DaemonSetUpdateStrategy**](V1DaemonSetUpdateStrategy.md) | | [optional] diff --git a/kubernetes/docs/V1DaemonSetStatus.md b/kubernetes/docs/V1DaemonSetStatus.md index 968b413d20..78c212338d 100644 --- a/kubernetes/docs/V1DaemonSetStatus.md +++ b/kubernetes/docs/V1DaemonSetStatus.md @@ -1,7 +1,9 @@ + # V1DaemonSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collisionCount** | **Integer** | Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] diff --git a/kubernetes/docs/V1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1DaemonSetUpdateStrategy.md index f38822f9aa..afd9913f6a 100644 --- a/kubernetes/docs/V1DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1DaemonSetUpdateStrategy.md @@ -1,10 +1,12 @@ + # V1DaemonSetUpdateStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1RollingUpdateDaemonSet**](V1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**rollingUpdate** | [**V1RollingUpdateDaemonSet**](V1RollingUpdateDaemonSet.md) | | [optional] **type** | **String** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/V1DeleteOptions.md b/kubernetes/docs/V1DeleteOptions.md index 5a30cf4dd4..0c23c97433 100644 --- a/kubernetes/docs/V1DeleteOptions.md +++ b/kubernetes/docs/V1DeleteOptions.md @@ -1,7 +1,9 @@ + # V1DeleteOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] @@ -9,7 +11,7 @@ Name | Type | Description | Notes **gracePeriodSeconds** | **Long** | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **orphanDependents** | **Boolean** | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] -**preconditions** | [**V1Preconditions**](V1Preconditions.md) | Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. | [optional] +**preconditions** | [**V1Preconditions**](V1Preconditions.md) | | [optional] **propagationPolicy** | **String** | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] diff --git a/kubernetes/docs/V1Deployment.md b/kubernetes/docs/V1Deployment.md index 22ab90c50d..b4b8c50bea 100644 --- a/kubernetes/docs/V1Deployment.md +++ b/kubernetes/docs/V1Deployment.md @@ -1,14 +1,16 @@ + # V1Deployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1DeploymentSpec**](V1DeploymentSpec.md) | | [optional] +**status** | [**V1DeploymentStatus**](V1DeploymentStatus.md) | | [optional] diff --git a/kubernetes/docs/V1DeploymentCondition.md b/kubernetes/docs/V1DeploymentCondition.md index 2b519566a8..2840f52018 100644 --- a/kubernetes/docs/V1DeploymentCondition.md +++ b/kubernetes/docs/V1DeploymentCondition.md @@ -1,7 +1,9 @@ + # V1DeploymentCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1DeploymentList.md b/kubernetes/docs/V1DeploymentList.md index 5c18e87bc5..aa17f5da80 100644 --- a/kubernetes/docs/V1DeploymentList.md +++ b/kubernetes/docs/V1DeploymentList.md @@ -1,13 +1,15 @@ + # V1DeploymentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Deployment>**](V1Deployment.md) | Items is the list of Deployments. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1DeploymentSpec.md b/kubernetes/docs/V1DeploymentSpec.md index 5ca740edca..7df4692577 100644 --- a/kubernetes/docs/V1DeploymentSpec.md +++ b/kubernetes/docs/V1DeploymentSpec.md @@ -1,7 +1,9 @@ + # V1DeploymentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] @@ -9,9 +11,9 @@ Name | Type | Description | Notes **progressDeadlineSeconds** | **Integer** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] **replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. | -**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**strategy** | [**V1DeploymentStrategy**](V1DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | diff --git a/kubernetes/docs/V1DeploymentStatus.md b/kubernetes/docs/V1DeploymentStatus.md index a22e956f9f..d0226eb7c1 100644 --- a/kubernetes/docs/V1DeploymentStatus.md +++ b/kubernetes/docs/V1DeploymentStatus.md @@ -1,7 +1,9 @@ + # V1DeploymentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] diff --git a/kubernetes/docs/V1DeploymentStrategy.md b/kubernetes/docs/V1DeploymentStrategy.md index 31acafe9f3..7067ea6ac2 100644 --- a/kubernetes/docs/V1DeploymentStrategy.md +++ b/kubernetes/docs/V1DeploymentStrategy.md @@ -1,10 +1,12 @@ + # V1DeploymentStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1RollingUpdateDeployment**](V1RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rollingUpdate** | [**V1RollingUpdateDeployment**](V1RollingUpdateDeployment.md) | | [optional] **type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/V1DownwardAPIProjection.md b/kubernetes/docs/V1DownwardAPIProjection.md index ae6cb386f1..8b5e599157 100644 --- a/kubernetes/docs/V1DownwardAPIProjection.md +++ b/kubernetes/docs/V1DownwardAPIProjection.md @@ -1,7 +1,9 @@ + # V1DownwardAPIProjection ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**List<V1DownwardAPIVolumeFile>**](V1DownwardAPIVolumeFile.md) | Items is a list of DownwardAPIVolume file | [optional] diff --git a/kubernetes/docs/V1DownwardAPIVolumeFile.md b/kubernetes/docs/V1DownwardAPIVolumeFile.md index 6bac07bb2e..2f2db7bb6b 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeFile.md +++ b/kubernetes/docs/V1DownwardAPIVolumeFile.md @@ -1,13 +1,15 @@ + # V1DownwardAPIVolumeFile ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. | [optional] +**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] **mode** | **Integer** | Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **path** | **String** | Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..' | -**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. | [optional] +**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] diff --git a/kubernetes/docs/V1DownwardAPIVolumeSource.md b/kubernetes/docs/V1DownwardAPIVolumeSource.md index 31933b2f9f..789ff2ed29 100644 --- a/kubernetes/docs/V1DownwardAPIVolumeSource.md +++ b/kubernetes/docs/V1DownwardAPIVolumeSource.md @@ -1,7 +1,9 @@ + # V1DownwardAPIVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultMode** | **Integer** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] diff --git a/kubernetes/docs/V1EmptyDirVolumeSource.md b/kubernetes/docs/V1EmptyDirVolumeSource.md index def763d9e6..8452295e7e 100644 --- a/kubernetes/docs/V1EmptyDirVolumeSource.md +++ b/kubernetes/docs/V1EmptyDirVolumeSource.md @@ -1,11 +1,13 @@ + # V1EmptyDirVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **medium** | **String** | What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] -**sizeLimit** | **String** | Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir | [optional] +**sizeLimit** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] diff --git a/kubernetes/docs/V1EndpointAddress.md b/kubernetes/docs/V1EndpointAddress.md index fe45c0f7a8..04a6e530ac 100644 --- a/kubernetes/docs/V1EndpointAddress.md +++ b/kubernetes/docs/V1EndpointAddress.md @@ -1,13 +1,15 @@ + # V1EndpointAddress ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hostname** | **String** | The Hostname of this endpoint | [optional] **ip** | **String** | The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready. | **nodeName** | **String** | Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. | [optional] -**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | Reference to object providing the endpoint. | [optional] +**targetRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] diff --git a/kubernetes/docs/V1EndpointPort.md b/kubernetes/docs/V1EndpointPort.md index bd2772daa4..06e3e1003c 100644 --- a/kubernetes/docs/V1EndpointPort.md +++ b/kubernetes/docs/V1EndpointPort.md @@ -1,7 +1,9 @@ + # V1EndpointPort ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. | [optional] diff --git a/kubernetes/docs/V1EndpointSubset.md b/kubernetes/docs/V1EndpointSubset.md index 294aa9045c..be34d1ecac 100644 --- a/kubernetes/docs/V1EndpointSubset.md +++ b/kubernetes/docs/V1EndpointSubset.md @@ -1,7 +1,9 @@ + # V1EndpointSubset ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **addresses** | [**List<V1EndpointAddress>**](V1EndpointAddress.md) | IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. | [optional] diff --git a/kubernetes/docs/V1Endpoints.md b/kubernetes/docs/V1Endpoints.md index ae690935c9..836024cf44 100644 --- a/kubernetes/docs/V1Endpoints.md +++ b/kubernetes/docs/V1Endpoints.md @@ -1,12 +1,14 @@ + # V1Endpoints ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **subsets** | [**List<V1EndpointSubset>**](V1EndpointSubset.md) | The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. | [optional] diff --git a/kubernetes/docs/V1EndpointsList.md b/kubernetes/docs/V1EndpointsList.md index e506c749fa..8c754cd72a 100644 --- a/kubernetes/docs/V1EndpointsList.md +++ b/kubernetes/docs/V1EndpointsList.md @@ -1,13 +1,15 @@ + # V1EndpointsList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Endpoints>**](V1Endpoints.md) | List of endpoints. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1EnvFromSource.md b/kubernetes/docs/V1EnvFromSource.md index 7f53d17470..1a88219ff3 100644 --- a/kubernetes/docs/V1EnvFromSource.md +++ b/kubernetes/docs/V1EnvFromSource.md @@ -1,12 +1,14 @@ + # V1EnvFromSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | The ConfigMap to select from | [optional] +**configMapRef** | [**V1ConfigMapEnvSource**](V1ConfigMapEnvSource.md) | | [optional] **prefix** | **String** | An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. | [optional] -**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | The Secret to select from | [optional] +**secretRef** | [**V1SecretEnvSource**](V1SecretEnvSource.md) | | [optional] diff --git a/kubernetes/docs/V1EnvVar.md b/kubernetes/docs/V1EnvVar.md index 2738bd115d..b92974c0ba 100644 --- a/kubernetes/docs/V1EnvVar.md +++ b/kubernetes/docs/V1EnvVar.md @@ -1,12 +1,14 @@ + # V1EnvVar ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the environment variable. Must be a C_IDENTIFIER. | **value** | **String** | Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". | [optional] -**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | Source for the environment variable's value. Cannot be used if value is not empty. | [optional] +**valueFrom** | [**V1EnvVarSource**](V1EnvVarSource.md) | | [optional] diff --git a/kubernetes/docs/V1EnvVarSource.md b/kubernetes/docs/V1EnvVarSource.md index 9617888754..1b14be4518 100644 --- a/kubernetes/docs/V1EnvVarSource.md +++ b/kubernetes/docs/V1EnvVarSource.md @@ -1,13 +1,15 @@ + # V1EnvVarSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | Selects a key of a ConfigMap. | [optional] -**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. | [optional] -**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. | [optional] -**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | Selects a key of a secret in the pod's namespace | [optional] +**configMapKeyRef** | [**V1ConfigMapKeySelector**](V1ConfigMapKeySelector.md) | | [optional] +**fieldRef** | [**V1ObjectFieldSelector**](V1ObjectFieldSelector.md) | | [optional] +**resourceFieldRef** | [**V1ResourceFieldSelector**](V1ResourceFieldSelector.md) | | [optional] +**secretKeyRef** | [**V1SecretKeySelector**](V1SecretKeySelector.md) | | [optional] diff --git a/kubernetes/docs/V1Event.md b/kubernetes/docs/V1Event.md index f727b117a4..cb0547cc05 100644 --- a/kubernetes/docs/V1Event.md +++ b/kubernetes/docs/V1Event.md @@ -1,7 +1,9 @@ + # V1Event ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | What action was taken/failed regarding to the Regarding object. | [optional] @@ -9,17 +11,17 @@ Name | Type | Description | Notes **count** | **Integer** | The number of times this event has occurred. | [optional] **eventTime** | [**DateTime**](DateTime.md) | Time when this Event was first observed. | [optional] **firstTimestamp** | [**DateTime**](DateTime.md) | The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) | [optional] -**involvedObject** | [**V1ObjectReference**](V1ObjectReference.md) | The object that this event is about. | +**involvedObject** | [**V1ObjectReference**](V1ObjectReference.md) | | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **lastTimestamp** | [**DateTime**](DateTime.md) | The time at which the most recent occurrence of this event was recorded. | [optional] **message** | **String** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | **reason** | **String** | This should be a short, machine understandable string that gives the reason for the transition into the object's current status. | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | Optional secondary object for more complex actions. | [optional] +**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **reportingComponent** | **String** | Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. | [optional] **reportingInstance** | **String** | ID of the controller instance, e.g. `kubelet-xyzf`. | [optional] -**series** | [**V1EventSeries**](V1EventSeries.md) | Data about the Event series this event represents or nil if it's a singleton Event. | [optional] -**source** | [**V1EventSource**](V1EventSource.md) | The component reporting this event. Should be a short machine understandable string. | [optional] +**series** | [**V1EventSeries**](V1EventSeries.md) | | [optional] +**source** | [**V1EventSource**](V1EventSource.md) | | [optional] **type** | **String** | Type of this event (Normal, Warning), new types could be added in the future | [optional] diff --git a/kubernetes/docs/V1EventList.md b/kubernetes/docs/V1EventList.md index 13153a1074..7a58611c2e 100644 --- a/kubernetes/docs/V1EventList.md +++ b/kubernetes/docs/V1EventList.md @@ -1,13 +1,15 @@ + # V1EventList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Event>**](V1Event.md) | List of events | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1EventSeries.md b/kubernetes/docs/V1EventSeries.md index 80ed85f743..0611337304 100644 --- a/kubernetes/docs/V1EventSeries.md +++ b/kubernetes/docs/V1EventSeries.md @@ -1,12 +1,14 @@ + # V1EventSeries ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **Integer** | Number of occurrences in this series up to the last heartbeat time | [optional] **lastObservedTime** | [**DateTime**](DateTime.md) | Time of the last occurrence observed | [optional] -**state** | **String** | State of this Series: Ongoing or Finished | [optional] +**state** | **String** | State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 | [optional] diff --git a/kubernetes/docs/V1EventSource.md b/kubernetes/docs/V1EventSource.md index 6d2d0f7a5b..5a3ff7c7eb 100644 --- a/kubernetes/docs/V1EventSource.md +++ b/kubernetes/docs/V1EventSource.md @@ -1,7 +1,9 @@ + # V1EventSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **component** | **String** | Component from which the event is generated. | [optional] diff --git a/kubernetes/docs/V1ExecAction.md b/kubernetes/docs/V1ExecAction.md index 11b3fcfbdd..708935efed 100644 --- a/kubernetes/docs/V1ExecAction.md +++ b/kubernetes/docs/V1ExecAction.md @@ -1,7 +1,9 @@ + # V1ExecAction ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **command** | **List<String>** | Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. | [optional] diff --git a/kubernetes/docs/V1FCVolumeSource.md b/kubernetes/docs/V1FCVolumeSource.md index 5b38d57dc3..94f100644e 100644 --- a/kubernetes/docs/V1FCVolumeSource.md +++ b/kubernetes/docs/V1FCVolumeSource.md @@ -1,7 +1,9 @@ + # V1FCVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] diff --git a/kubernetes/docs/V1FlexPersistentVolumeSource.md b/kubernetes/docs/V1FlexPersistentVolumeSource.md index 2fb32495c7..2590b6fdea 100644 --- a/kubernetes/docs/V1FlexPersistentVolumeSource.md +++ b/kubernetes/docs/V1FlexPersistentVolumeSource.md @@ -1,14 +1,16 @@ + # V1FlexPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **driver** | **String** | Driver is the name of the driver to use for this volume. | **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. | [optional] **options** | **Map<String, String>** | Optional: Extra command options if any. | [optional] **readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. | [optional] +**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] diff --git a/kubernetes/docs/V1FlexVolumeSource.md b/kubernetes/docs/V1FlexVolumeSource.md index 65324d274e..d41de6dc79 100644 --- a/kubernetes/docs/V1FlexVolumeSource.md +++ b/kubernetes/docs/V1FlexVolumeSource.md @@ -1,14 +1,16 @@ + # V1FlexVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **driver** | **String** | Driver is the name of the driver to use for this volume. | **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. | [optional] **options** | **Map<String, String>** | Optional: Extra command options if any. | [optional] **readOnly** | **Boolean** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. | [optional] +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] diff --git a/kubernetes/docs/V1FlockerVolumeSource.md b/kubernetes/docs/V1FlockerVolumeSource.md index 08072107d9..7f8a7cb8de 100644 --- a/kubernetes/docs/V1FlockerVolumeSource.md +++ b/kubernetes/docs/V1FlockerVolumeSource.md @@ -1,7 +1,9 @@ + # V1FlockerVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **datasetName** | **String** | Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated | [optional] diff --git a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md index 8b173a4b10..5df817cc5a 100644 --- a/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md +++ b/kubernetes/docs/V1GCEPersistentDiskVolumeSource.md @@ -1,7 +1,9 @@ + # V1GCEPersistentDiskVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] diff --git a/kubernetes/docs/V1GitRepoVolumeSource.md b/kubernetes/docs/V1GitRepoVolumeSource.md index 16cb29150b..6c171a4df4 100644 --- a/kubernetes/docs/V1GitRepoVolumeSource.md +++ b/kubernetes/docs/V1GitRepoVolumeSource.md @@ -1,7 +1,9 @@ + # V1GitRepoVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **directory** | **String** | Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. | [optional] diff --git a/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md b/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md index 7bf6b6fec5..fefa4f337c 100644 --- a/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsPersistentVolumeSource.md @@ -1,7 +1,9 @@ + # V1GlusterfsPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **endpoints** | **String** | EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod | diff --git a/kubernetes/docs/V1GlusterfsVolumeSource.md b/kubernetes/docs/V1GlusterfsVolumeSource.md index c7d228457d..acfc51d1d9 100644 --- a/kubernetes/docs/V1GlusterfsVolumeSource.md +++ b/kubernetes/docs/V1GlusterfsVolumeSource.md @@ -1,7 +1,9 @@ + # V1GlusterfsVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **endpoints** | **String** | EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod | diff --git a/kubernetes/docs/V1GroupVersionForDiscovery.md b/kubernetes/docs/V1GroupVersionForDiscovery.md index 8995fb0405..998b90fe56 100644 --- a/kubernetes/docs/V1GroupVersionForDiscovery.md +++ b/kubernetes/docs/V1GroupVersionForDiscovery.md @@ -1,7 +1,9 @@ + # V1GroupVersionForDiscovery ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **groupVersion** | **String** | groupVersion specifies the API group and version in the form \"group/version\" | diff --git a/kubernetes/docs/V1HTTPGetAction.md b/kubernetes/docs/V1HTTPGetAction.md index 11eefab653..6e5c8c0a31 100644 --- a/kubernetes/docs/V1HTTPGetAction.md +++ b/kubernetes/docs/V1HTTPGetAction.md @@ -1,13 +1,15 @@ + # V1HTTPGetAction ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host** | **String** | Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. | [optional] **httpHeaders** | [**List<V1HTTPHeader>**](V1HTTPHeader.md) | Custom headers to set in the request. HTTP allows repeated headers. | [optional] **path** | **String** | Path to access on the HTTP server. | [optional] -**port** | [**IntOrString**](IntOrString.md) | Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**port** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | **scheme** | **String** | Scheme to use for connecting to the host. Defaults to HTTP. | [optional] diff --git a/kubernetes/docs/V1HTTPHeader.md b/kubernetes/docs/V1HTTPHeader.md index 3351522adb..51405c3be7 100644 --- a/kubernetes/docs/V1HTTPHeader.md +++ b/kubernetes/docs/V1HTTPHeader.md @@ -1,7 +1,9 @@ + # V1HTTPHeader ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The header field name | diff --git a/kubernetes/docs/V1Handler.md b/kubernetes/docs/V1Handler.md index 9d52fe5651..13070a5c5c 100644 --- a/kubernetes/docs/V1Handler.md +++ b/kubernetes/docs/V1Handler.md @@ -1,12 +1,14 @@ + # V1Handler ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] -**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] -**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] +**exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] +**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] +**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] diff --git a/kubernetes/docs/V1HorizontalPodAutoscaler.md b/kubernetes/docs/V1HorizontalPodAutoscaler.md index fbecf4ad26..ce608f35f5 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V1HorizontalPodAutoscaler.md @@ -1,14 +1,16 @@ + # V1HorizontalPodAutoscaler ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | current information about the autoscaler. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1HorizontalPodAutoscalerSpec**](V1HorizontalPodAutoscalerSpec.md) | | [optional] +**status** | [**V1HorizontalPodAutoscalerStatus**](V1HorizontalPodAutoscalerStatus.md) | | [optional] diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerList.md b/kubernetes/docs/V1HorizontalPodAutoscalerList.md index 434c989072..e8b1e2a3a0 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerList.md @@ -1,13 +1,15 @@ + # V1HorizontalPodAutoscalerList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1HorizontalPodAutoscaler>**](V1HorizontalPodAutoscaler.md) | list of horizontal pod autoscaler objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md index aa25ae1408..f74abad564 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerSpec.md @@ -1,12 +1,14 @@ + # V1HorizontalPodAutoscalerSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **maxReplicas** | **Integer** | upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas. | **minReplicas** | **Integer** | lower limit for the number of pods that can be set by the autoscaler, default 1. | [optional] -**scaleTargetRef** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. | +**scaleTargetRef** | [**V1CrossVersionObjectReference**](V1CrossVersionObjectReference.md) | | **targetCPUUtilizationPercentage** | **Integer** | target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. | [optional] diff --git a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md index c11f46de40..0510a92159 100644 --- a/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V1HorizontalPodAutoscalerStatus.md @@ -1,7 +1,9 @@ + # V1HorizontalPodAutoscalerStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currentCPUUtilizationPercentage** | **Integer** | current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. | [optional] diff --git a/kubernetes/docs/V1HostAlias.md b/kubernetes/docs/V1HostAlias.md index 3ec600f8ba..3e6dc4d684 100644 --- a/kubernetes/docs/V1HostAlias.md +++ b/kubernetes/docs/V1HostAlias.md @@ -1,7 +1,9 @@ + # V1HostAlias ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hostnames** | **List<String>** | Hostnames for the above IP address. | [optional] diff --git a/kubernetes/docs/V1HostPathVolumeSource.md b/kubernetes/docs/V1HostPathVolumeSource.md index 77389245e3..d0110683be 100644 --- a/kubernetes/docs/V1HostPathVolumeSource.md +++ b/kubernetes/docs/V1HostPathVolumeSource.md @@ -1,7 +1,9 @@ + # V1HostPathVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **path** | **String** | Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | diff --git a/kubernetes/docs/V1IPBlock.md b/kubernetes/docs/V1IPBlock.md index a49063a629..f3e319dfd8 100644 --- a/kubernetes/docs/V1IPBlock.md +++ b/kubernetes/docs/V1IPBlock.md @@ -1,7 +1,9 @@ + # V1IPBlock ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cidr** | **String** | CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" | diff --git a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md index 4616f6c153..17e3e60142 100644 --- a/kubernetes/docs/V1ISCSIPersistentVolumeSource.md +++ b/kubernetes/docs/V1ISCSIPersistentVolumeSource.md @@ -1,7 +1,9 @@ + # V1ISCSIPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **chapAuthDiscovery** | **Boolean** | whether support iSCSI Discovery CHAP authentication | [optional] @@ -13,7 +15,7 @@ Name | Type | Description | Notes **lun** | **Integer** | iSCSI Target Lun number. | **portals** | **List<String>** | iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] **readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | CHAP Secret for iSCSI target and initiator authentication | [optional] +**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **targetPortal** | **String** | iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | diff --git a/kubernetes/docs/V1ISCSIVolumeSource.md b/kubernetes/docs/V1ISCSIVolumeSource.md index 605180ab0d..7a38c376f3 100644 --- a/kubernetes/docs/V1ISCSIVolumeSource.md +++ b/kubernetes/docs/V1ISCSIVolumeSource.md @@ -1,7 +1,9 @@ + # V1ISCSIVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **chapAuthDiscovery** | **Boolean** | whether support iSCSI Discovery CHAP authentication | [optional] @@ -13,7 +15,7 @@ Name | Type | Description | Notes **lun** | **Integer** | iSCSI Target Lun number. | **portals** | **List<String>** | iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] **readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | CHAP Secret for iSCSI target and initiator authentication | [optional] +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **targetPortal** | **String** | iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | diff --git a/kubernetes/docs/V1Initializer.md b/kubernetes/docs/V1Initializer.md index ce37b100de..f8589dcca0 100644 --- a/kubernetes/docs/V1Initializer.md +++ b/kubernetes/docs/V1Initializer.md @@ -1,7 +1,9 @@ + # V1Initializer ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | name of the process that is responsible for initializing this object. | diff --git a/kubernetes/docs/V1Initializers.md b/kubernetes/docs/V1Initializers.md index 79ee6554c5..9350e911dd 100644 --- a/kubernetes/docs/V1Initializers.md +++ b/kubernetes/docs/V1Initializers.md @@ -1,11 +1,13 @@ + # V1Initializers ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **pending** | [**List<V1Initializer>**](V1Initializer.md) | Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients. | -**result** | [**V1Status**](V1Status.md) | If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. | [optional] +**result** | [**V1Status**](V1Status.md) | | [optional] diff --git a/kubernetes/docs/V1Job.md b/kubernetes/docs/V1Job.md index d5ef0bdd77..fdf576fb3f 100644 --- a/kubernetes/docs/V1Job.md +++ b/kubernetes/docs/V1Job.md @@ -1,14 +1,16 @@ + # V1Job ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1JobStatus**](V1JobStatus.md) | Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] +**status** | [**V1JobStatus**](V1JobStatus.md) | | [optional] diff --git a/kubernetes/docs/V1JobCondition.md b/kubernetes/docs/V1JobCondition.md index 1ed5fef8ea..d0e938f29c 100644 --- a/kubernetes/docs/V1JobCondition.md +++ b/kubernetes/docs/V1JobCondition.md @@ -1,7 +1,9 @@ + # V1JobCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastProbeTime** | [**DateTime**](DateTime.md) | Last time the condition was checked. | [optional] diff --git a/kubernetes/docs/V1JobList.md b/kubernetes/docs/V1JobList.md index d0d5945030..2e5712f9f4 100644 --- a/kubernetes/docs/V1JobList.md +++ b/kubernetes/docs/V1JobList.md @@ -1,13 +1,15 @@ + # V1JobList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Job>**](V1Job.md) | items is the list of Jobs. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1JobSpec.md b/kubernetes/docs/V1JobSpec.md index 7ec311c03d..0bf8a5e7ce 100644 --- a/kubernetes/docs/V1JobSpec.md +++ b/kubernetes/docs/V1JobSpec.md @@ -1,7 +1,9 @@ + # V1JobSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **activeDeadlineSeconds** | **Long** | Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer | [optional] @@ -9,8 +11,8 @@ Name | Type | Description | Notes **completions** | **Integer** | Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] **manualSelector** | **Boolean** | manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector | [optional] **parallelism** | **Integer** | Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | **ttlSecondsAfterFinished** | **Integer** | ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. | [optional] diff --git a/kubernetes/docs/V1JobStatus.md b/kubernetes/docs/V1JobStatus.md index 5119f2d11c..4968418325 100644 --- a/kubernetes/docs/V1JobStatus.md +++ b/kubernetes/docs/V1JobStatus.md @@ -1,7 +1,9 @@ + # V1JobStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **Integer** | The number of actively running pods. | [optional] diff --git a/kubernetes/docs/V1KeyToPath.md b/kubernetes/docs/V1KeyToPath.md index ed463971a9..6aabc3f68a 100644 --- a/kubernetes/docs/V1KeyToPath.md +++ b/kubernetes/docs/V1KeyToPath.md @@ -1,7 +1,9 @@ + # V1KeyToPath ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The key to project. | diff --git a/kubernetes/docs/V1LabelSelector.md b/kubernetes/docs/V1LabelSelector.md index 390a6e783e..954375ef58 100644 --- a/kubernetes/docs/V1LabelSelector.md +++ b/kubernetes/docs/V1LabelSelector.md @@ -1,7 +1,9 @@ + # V1LabelSelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **matchExpressions** | [**List<V1LabelSelectorRequirement>**](V1LabelSelectorRequirement.md) | matchExpressions is a list of label selector requirements. The requirements are ANDed. | [optional] diff --git a/kubernetes/docs/V1LabelSelectorRequirement.md b/kubernetes/docs/V1LabelSelectorRequirement.md index 4a693b4bc3..eb77e7b261 100644 --- a/kubernetes/docs/V1LabelSelectorRequirement.md +++ b/kubernetes/docs/V1LabelSelectorRequirement.md @@ -1,7 +1,9 @@ + # V1LabelSelectorRequirement ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | key is the label key that the selector applies to. | diff --git a/kubernetes/docs/V1Lease.md b/kubernetes/docs/V1Lease.md index 78a8c2c891..691eb3dffd 100644 --- a/kubernetes/docs/V1Lease.md +++ b/kubernetes/docs/V1Lease.md @@ -1,13 +1,15 @@ + # V1Lease ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1LeaseSpec**](V1LeaseSpec.md) | Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1LeaseSpec**](V1LeaseSpec.md) | | [optional] diff --git a/kubernetes/docs/V1LeaseList.md b/kubernetes/docs/V1LeaseList.md index 3d05120ded..9503925f3c 100644 --- a/kubernetes/docs/V1LeaseList.md +++ b/kubernetes/docs/V1LeaseList.md @@ -1,13 +1,15 @@ + # V1LeaseList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Lease>**](V1Lease.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1LeaseSpec.md b/kubernetes/docs/V1LeaseSpec.md index 705d9bf5c8..34315a8ec2 100644 --- a/kubernetes/docs/V1LeaseSpec.md +++ b/kubernetes/docs/V1LeaseSpec.md @@ -1,7 +1,9 @@ + # V1LeaseSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acquireTime** | [**DateTime**](DateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] diff --git a/kubernetes/docs/V1Lifecycle.md b/kubernetes/docs/V1Lifecycle.md index fab4996541..dd6a1fce9d 100644 --- a/kubernetes/docs/V1Lifecycle.md +++ b/kubernetes/docs/V1Lifecycle.md @@ -1,11 +1,13 @@ + # V1Lifecycle ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**postStart** | [**V1Handler**](V1Handler.md) | PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks | [optional] -**preStop** | [**V1Handler**](V1Handler.md) | PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks | [optional] +**postStart** | [**V1Handler**](V1Handler.md) | | [optional] +**preStop** | [**V1Handler**](V1Handler.md) | | [optional] diff --git a/kubernetes/docs/V1LimitRange.md b/kubernetes/docs/V1LimitRange.md index ce200c08e0..95b6e58ef3 100644 --- a/kubernetes/docs/V1LimitRange.md +++ b/kubernetes/docs/V1LimitRange.md @@ -1,13 +1,15 @@ + # V1LimitRange ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1LimitRangeSpec**](V1LimitRangeSpec.md) | | [optional] diff --git a/kubernetes/docs/V1LimitRangeItem.md b/kubernetes/docs/V1LimitRangeItem.md index 24a376ea38..ac2e55ab4d 100644 --- a/kubernetes/docs/V1LimitRangeItem.md +++ b/kubernetes/docs/V1LimitRangeItem.md @@ -1,7 +1,9 @@ + # V1LimitRangeItem ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_default** | [**Map<String, Quantity>**](Quantity.md) | Default resource requirement limit value by resource name if resource limit is omitted. | [optional] diff --git a/kubernetes/docs/V1LimitRangeList.md b/kubernetes/docs/V1LimitRangeList.md index 79f9e4b150..8dc29fb5d6 100644 --- a/kubernetes/docs/V1LimitRangeList.md +++ b/kubernetes/docs/V1LimitRangeList.md @@ -1,13 +1,15 @@ + # V1LimitRangeList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1LimitRange>**](V1LimitRange.md) | Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1LimitRangeSpec.md b/kubernetes/docs/V1LimitRangeSpec.md index 412ead4067..e053e62a1c 100644 --- a/kubernetes/docs/V1LimitRangeSpec.md +++ b/kubernetes/docs/V1LimitRangeSpec.md @@ -1,7 +1,9 @@ + # V1LimitRangeSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | [**List<V1LimitRangeItem>**](V1LimitRangeItem.md) | Limits is the list of LimitRangeItem objects that are enforced. | diff --git a/kubernetes/docs/V1ListMeta.md b/kubernetes/docs/V1ListMeta.md index d3029c84df..b11b684b06 100644 --- a/kubernetes/docs/V1ListMeta.md +++ b/kubernetes/docs/V1ListMeta.md @@ -1,10 +1,13 @@ + # V1ListMeta ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_continue** | **String** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] +**remainingItemCount** | **Long** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. This field is alpha and can be changed or removed without notice. | [optional] **resourceVersion** | **String** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency | [optional] **selfLink** | **String** | selfLink is a URL representing this object. Populated by the system. Read-only. | [optional] diff --git a/kubernetes/docs/V1LoadBalancerIngress.md b/kubernetes/docs/V1LoadBalancerIngress.md index b5981ee525..21006dda3b 100644 --- a/kubernetes/docs/V1LoadBalancerIngress.md +++ b/kubernetes/docs/V1LoadBalancerIngress.md @@ -1,7 +1,9 @@ + # V1LoadBalancerIngress ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hostname** | **String** | Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) | [optional] diff --git a/kubernetes/docs/V1LoadBalancerStatus.md b/kubernetes/docs/V1LoadBalancerStatus.md index bd4df13b3f..639a355f66 100644 --- a/kubernetes/docs/V1LoadBalancerStatus.md +++ b/kubernetes/docs/V1LoadBalancerStatus.md @@ -1,7 +1,9 @@ + # V1LoadBalancerStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ingress** | [**List<V1LoadBalancerIngress>**](V1LoadBalancerIngress.md) | Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. | [optional] diff --git a/kubernetes/docs/V1LocalObjectReference.md b/kubernetes/docs/V1LocalObjectReference.md index 009cf76c07..ffdaf5b924 100644 --- a/kubernetes/docs/V1LocalObjectReference.md +++ b/kubernetes/docs/V1LocalObjectReference.md @@ -1,7 +1,9 @@ + # V1LocalObjectReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] diff --git a/kubernetes/docs/V1LocalSubjectAccessReview.md b/kubernetes/docs/V1LocalSubjectAccessReview.md index fbc9ba1aa5..dda6cb3685 100644 --- a/kubernetes/docs/V1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1LocalSubjectAccessReview.md @@ -1,14 +1,16 @@ + # V1LocalSubjectAccessReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1LocalVolumeSource.md b/kubernetes/docs/V1LocalVolumeSource.md index dcb16516ef..1930c4ee29 100644 --- a/kubernetes/docs/V1LocalVolumeSource.md +++ b/kubernetes/docs/V1LocalVolumeSource.md @@ -1,7 +1,9 @@ + # V1LocalVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified. | [optional] diff --git a/kubernetes/docs/V1ManagedFieldsEntry.md b/kubernetes/docs/V1ManagedFieldsEntry.md index 83692a3bd4..27027de4bc 100644 --- a/kubernetes/docs/V1ManagedFieldsEntry.md +++ b/kubernetes/docs/V1ManagedFieldsEntry.md @@ -1,11 +1,13 @@ + # V1ManagedFieldsEntry ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. | [optional] -**fields** | **Object** | Fields identifies a set of fields. | [optional] +**fields** | [**Object**](.md) | Fields identifies a set of fields. | [optional] **manager** | **String** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | **String** | Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. | [optional] **time** | [**DateTime**](DateTime.md) | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' | [optional] diff --git a/kubernetes/docs/V1NFSVolumeSource.md b/kubernetes/docs/V1NFSVolumeSource.md index a74b7ab085..1c930c5972 100644 --- a/kubernetes/docs/V1NFSVolumeSource.md +++ b/kubernetes/docs/V1NFSVolumeSource.md @@ -1,7 +1,9 @@ + # V1NFSVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **path** | **String** | Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | diff --git a/kubernetes/docs/V1Namespace.md b/kubernetes/docs/V1Namespace.md index f43a28fc4a..7dad98e7c2 100644 --- a/kubernetes/docs/V1Namespace.md +++ b/kubernetes/docs/V1Namespace.md @@ -1,14 +1,16 @@ + # V1Namespace ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1NamespaceSpec**](V1NamespaceSpec.md) | | [optional] +**status** | [**V1NamespaceStatus**](V1NamespaceStatus.md) | | [optional] diff --git a/kubernetes/docs/V1NamespaceList.md b/kubernetes/docs/V1NamespaceList.md index e1072c937f..225b74f1c4 100644 --- a/kubernetes/docs/V1NamespaceList.md +++ b/kubernetes/docs/V1NamespaceList.md @@ -1,13 +1,15 @@ + # V1NamespaceList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Namespace>**](V1Namespace.md) | Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1NamespaceSpec.md b/kubernetes/docs/V1NamespaceSpec.md index 403cbde71d..187429f01c 100644 --- a/kubernetes/docs/V1NamespaceSpec.md +++ b/kubernetes/docs/V1NamespaceSpec.md @@ -1,7 +1,9 @@ + # V1NamespaceSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **finalizers** | **List<String>** | Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ | [optional] diff --git a/kubernetes/docs/V1NamespaceStatus.md b/kubernetes/docs/V1NamespaceStatus.md index 21941b0fb2..b7b470b16e 100644 --- a/kubernetes/docs/V1NamespaceStatus.md +++ b/kubernetes/docs/V1NamespaceStatus.md @@ -1,7 +1,9 @@ + # V1NamespaceStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **phase** | **String** | Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ | [optional] diff --git a/kubernetes/docs/V1NetworkPolicy.md b/kubernetes/docs/V1NetworkPolicy.md index b30237861d..38e879a475 100644 --- a/kubernetes/docs/V1NetworkPolicy.md +++ b/kubernetes/docs/V1NetworkPolicy.md @@ -1,13 +1,15 @@ + # V1NetworkPolicy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1NetworkPolicySpec**](V1NetworkPolicySpec.md) | Specification of the desired behavior for this NetworkPolicy. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1NetworkPolicySpec**](V1NetworkPolicySpec.md) | | [optional] diff --git a/kubernetes/docs/V1NetworkPolicyEgressRule.md b/kubernetes/docs/V1NetworkPolicyEgressRule.md index ac15167cf0..f28fde6398 100644 --- a/kubernetes/docs/V1NetworkPolicyEgressRule.md +++ b/kubernetes/docs/V1NetworkPolicyEgressRule.md @@ -1,7 +1,9 @@ + # V1NetworkPolicyEgressRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ports** | [**List<V1NetworkPolicyPort>**](V1NetworkPolicyPort.md) | List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. | [optional] diff --git a/kubernetes/docs/V1NetworkPolicyIngressRule.md b/kubernetes/docs/V1NetworkPolicyIngressRule.md index 9793a070c7..5dbbdf9889 100644 --- a/kubernetes/docs/V1NetworkPolicyIngressRule.md +++ b/kubernetes/docs/V1NetworkPolicyIngressRule.md @@ -1,7 +1,9 @@ + # V1NetworkPolicyIngressRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **from** | [**List<V1NetworkPolicyPeer>**](V1NetworkPolicyPeer.md) | List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. | [optional] diff --git a/kubernetes/docs/V1NetworkPolicyList.md b/kubernetes/docs/V1NetworkPolicyList.md index 0178871428..eadc8696ca 100644 --- a/kubernetes/docs/V1NetworkPolicyList.md +++ b/kubernetes/docs/V1NetworkPolicyList.md @@ -1,13 +1,15 @@ + # V1NetworkPolicyList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1NetworkPolicy>**](V1NetworkPolicy.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1NetworkPolicyPeer.md b/kubernetes/docs/V1NetworkPolicyPeer.md index 0163c89022..117acf4013 100644 --- a/kubernetes/docs/V1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1NetworkPolicyPeer.md @@ -1,12 +1,14 @@ + # V1NetworkPolicyPeer ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ipBlock** | [**V1IPBlock**](V1IPBlock.md) | IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. | [optional] -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. | [optional] +**ipBlock** | [**V1IPBlock**](V1IPBlock.md) | | [optional] +**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V1NetworkPolicyPort.md b/kubernetes/docs/V1NetworkPolicyPort.md index eaa51004dc..317d0d5ede 100644 --- a/kubernetes/docs/V1NetworkPolicyPort.md +++ b/kubernetes/docs/V1NetworkPolicyPort.md @@ -1,10 +1,12 @@ + # V1NetworkPolicyPort ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**port** | [**IntOrString**](IntOrString.md) | The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. | [optional] +**port** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **protocol** | **String** | The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] diff --git a/kubernetes/docs/V1NetworkPolicySpec.md b/kubernetes/docs/V1NetworkPolicySpec.md index d08b5a657c..e1dc449606 100644 --- a/kubernetes/docs/V1NetworkPolicySpec.md +++ b/kubernetes/docs/V1NetworkPolicySpec.md @@ -1,12 +1,14 @@ + # V1NetworkPolicySpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **egress** | [**List<V1NetworkPolicyEgressRule>**](V1NetworkPolicyEgressRule.md) | List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 | [optional] **ingress** | [**List<V1NetworkPolicyIngressRule>**](V1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | +**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | **policyTypes** | **List<String>** | List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 | [optional] diff --git a/kubernetes/docs/V1Node.md b/kubernetes/docs/V1Node.md index 3ea6551e80..6ffe030e41 100644 --- a/kubernetes/docs/V1Node.md +++ b/kubernetes/docs/V1Node.md @@ -1,14 +1,16 @@ + # V1Node ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1NodeSpec**](V1NodeSpec.md) | Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1NodeStatus**](V1NodeStatus.md) | Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1NodeSpec**](V1NodeSpec.md) | | [optional] +**status** | [**V1NodeStatus**](V1NodeStatus.md) | | [optional] diff --git a/kubernetes/docs/V1NodeAddress.md b/kubernetes/docs/V1NodeAddress.md index 52dbed942b..55f853683c 100644 --- a/kubernetes/docs/V1NodeAddress.md +++ b/kubernetes/docs/V1NodeAddress.md @@ -1,7 +1,9 @@ + # V1NodeAddress ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **address** | **String** | The node address. | diff --git a/kubernetes/docs/V1NodeAffinity.md b/kubernetes/docs/V1NodeAffinity.md index d087537161..215be839f4 100644 --- a/kubernetes/docs/V1NodeAffinity.md +++ b/kubernetes/docs/V1NodeAffinity.md @@ -1,11 +1,13 @@ + # V1NodeAffinity ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1PreferredSchedulingTerm>**](V1PreferredSchedulingTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. | [optional] -**requiredDuringSchedulingIgnoredDuringExecution** | [**V1NodeSelector**](V1NodeSelector.md) | If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. | [optional] +**requiredDuringSchedulingIgnoredDuringExecution** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] diff --git a/kubernetes/docs/V1NodeCondition.md b/kubernetes/docs/V1NodeCondition.md index b69ade6aa1..9da750f0b2 100644 --- a/kubernetes/docs/V1NodeCondition.md +++ b/kubernetes/docs/V1NodeCondition.md @@ -1,7 +1,9 @@ + # V1NodeCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastHeartbeatTime** | [**DateTime**](DateTime.md) | Last time we got an update on a given condition. | [optional] diff --git a/kubernetes/docs/V1NodeConfigSource.md b/kubernetes/docs/V1NodeConfigSource.md index 330eb5e94b..2a0af62a86 100644 --- a/kubernetes/docs/V1NodeConfigSource.md +++ b/kubernetes/docs/V1NodeConfigSource.md @@ -1,10 +1,12 @@ + # V1NodeConfigSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configMap** | [**V1ConfigMapNodeConfigSource**](V1ConfigMapNodeConfigSource.md) | ConfigMap is a reference to a Node's ConfigMap | [optional] +**configMap** | [**V1ConfigMapNodeConfigSource**](V1ConfigMapNodeConfigSource.md) | | [optional] diff --git a/kubernetes/docs/V1NodeConfigStatus.md b/kubernetes/docs/V1NodeConfigStatus.md index 98defbeebc..afadc1291c 100644 --- a/kubernetes/docs/V1NodeConfigStatus.md +++ b/kubernetes/docs/V1NodeConfigStatus.md @@ -1,13 +1,15 @@ + # V1NodeConfigStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. | [optional] -**assigned** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. | [optional] +**active** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] +**assigned** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] **error** | **String** | Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. | [optional] -**lastKnownGood** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. | [optional] +**lastKnownGood** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] diff --git a/kubernetes/docs/V1NodeDaemonEndpoints.md b/kubernetes/docs/V1NodeDaemonEndpoints.md index a4c026d87d..f5c5e380f4 100644 --- a/kubernetes/docs/V1NodeDaemonEndpoints.md +++ b/kubernetes/docs/V1NodeDaemonEndpoints.md @@ -1,10 +1,12 @@ + # V1NodeDaemonEndpoints ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**kubeletEndpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | Endpoint on which Kubelet is listening. | [optional] +**kubeletEndpoint** | [**V1DaemonEndpoint**](V1DaemonEndpoint.md) | | [optional] diff --git a/kubernetes/docs/V1NodeList.md b/kubernetes/docs/V1NodeList.md index 33c2151c59..0b7d74682d 100644 --- a/kubernetes/docs/V1NodeList.md +++ b/kubernetes/docs/V1NodeList.md @@ -1,13 +1,15 @@ + # V1NodeList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Node>**](V1Node.md) | List of nodes | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1NodeSelector.md b/kubernetes/docs/V1NodeSelector.md index 2c61ff7939..e92c2f4c9d 100644 --- a/kubernetes/docs/V1NodeSelector.md +++ b/kubernetes/docs/V1NodeSelector.md @@ -1,7 +1,9 @@ + # V1NodeSelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nodeSelectorTerms** | [**List<V1NodeSelectorTerm>**](V1NodeSelectorTerm.md) | Required. A list of node selector terms. The terms are ORed. | diff --git a/kubernetes/docs/V1NodeSelectorRequirement.md b/kubernetes/docs/V1NodeSelectorRequirement.md index 731824ef55..bb3e9fd65e 100644 --- a/kubernetes/docs/V1NodeSelectorRequirement.md +++ b/kubernetes/docs/V1NodeSelectorRequirement.md @@ -1,7 +1,9 @@ + # V1NodeSelectorRequirement ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The label key that the selector applies to. | diff --git a/kubernetes/docs/V1NodeSelectorTerm.md b/kubernetes/docs/V1NodeSelectorTerm.md index 1b28febdb6..0d0235477f 100644 --- a/kubernetes/docs/V1NodeSelectorTerm.md +++ b/kubernetes/docs/V1NodeSelectorTerm.md @@ -1,7 +1,9 @@ + # V1NodeSelectorTerm ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **matchExpressions** | [**List<V1NodeSelectorRequirement>**](V1NodeSelectorRequirement.md) | A list of node selector requirements by node's labels. | [optional] diff --git a/kubernetes/docs/V1NodeSpec.md b/kubernetes/docs/V1NodeSpec.md index 58fff3ddd1..8dfc158d63 100644 --- a/kubernetes/docs/V1NodeSpec.md +++ b/kubernetes/docs/V1NodeSpec.md @@ -1,10 +1,12 @@ + # V1NodeSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configSource** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field | [optional] +**configSource** | [**V1NodeConfigSource**](V1NodeConfigSource.md) | | [optional] **externalID** | **String** | Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 | [optional] **podCIDR** | **String** | PodCIDR represents the pod IP range assigned to the node. | [optional] **providerID** | **String** | ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> | [optional] diff --git a/kubernetes/docs/V1NodeStatus.md b/kubernetes/docs/V1NodeStatus.md index bbbc159642..76bb179f6f 100644 --- a/kubernetes/docs/V1NodeStatus.md +++ b/kubernetes/docs/V1NodeStatus.md @@ -1,17 +1,19 @@ + # V1NodeStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **addresses** | [**List<V1NodeAddress>**](V1NodeAddress.md) | List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses | [optional] **allocatable** | [**Map<String, Quantity>**](Quantity.md) | Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. | [optional] **capacity** | [**Map<String, Quantity>**](Quantity.md) | Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] **conditions** | [**List<V1NodeCondition>**](V1NodeCondition.md) | Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition | [optional] -**config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | Status of the config assigned to the node via the dynamic Kubelet config feature. | [optional] -**daemonEndpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | Endpoints of daemons running on the Node. | [optional] +**config** | [**V1NodeConfigStatus**](V1NodeConfigStatus.md) | | [optional] +**daemonEndpoints** | [**V1NodeDaemonEndpoints**](V1NodeDaemonEndpoints.md) | | [optional] **images** | [**List<V1ContainerImage>**](V1ContainerImage.md) | List of container images on this node | [optional] -**nodeInfo** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info | [optional] +**nodeInfo** | [**V1NodeSystemInfo**](V1NodeSystemInfo.md) | | [optional] **phase** | **String** | NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. | [optional] **volumesAttached** | [**List<V1AttachedVolume>**](V1AttachedVolume.md) | List of volumes that are attached to the node. | [optional] **volumesInUse** | **List<String>** | List of attachable volumes in use (mounted) by the node. | [optional] diff --git a/kubernetes/docs/V1NodeSystemInfo.md b/kubernetes/docs/V1NodeSystemInfo.md index c4325309e3..02b669d635 100644 --- a/kubernetes/docs/V1NodeSystemInfo.md +++ b/kubernetes/docs/V1NodeSystemInfo.md @@ -1,7 +1,9 @@ + # V1NodeSystemInfo ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **architecture** | **String** | The Architecture reported by the node | diff --git a/kubernetes/docs/V1NonResourceAttributes.md b/kubernetes/docs/V1NonResourceAttributes.md index 7b0f9bfa77..35fdbe9e4b 100644 --- a/kubernetes/docs/V1NonResourceAttributes.md +++ b/kubernetes/docs/V1NonResourceAttributes.md @@ -1,7 +1,9 @@ + # V1NonResourceAttributes ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **path** | **String** | Path is the URL path of the request | [optional] diff --git a/kubernetes/docs/V1NonResourceRule.md b/kubernetes/docs/V1NonResourceRule.md index 58a262d9d4..e3b59777f8 100644 --- a/kubernetes/docs/V1NonResourceRule.md +++ b/kubernetes/docs/V1NonResourceRule.md @@ -1,7 +1,9 @@ + # V1NonResourceRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1ObjectFieldSelector.md b/kubernetes/docs/V1ObjectFieldSelector.md index b118ec2afb..c0856abd50 100644 --- a/kubernetes/docs/V1ObjectFieldSelector.md +++ b/kubernetes/docs/V1ObjectFieldSelector.md @@ -1,7 +1,9 @@ + # V1ObjectFieldSelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | Version of the schema the FieldPath is written in terms of, defaults to \"v1\". | [optional] diff --git a/kubernetes/docs/V1ObjectMeta.md b/kubernetes/docs/V1ObjectMeta.md index 530cf97b14..8d36c8a3cf 100644 --- a/kubernetes/docs/V1ObjectMeta.md +++ b/kubernetes/docs/V1ObjectMeta.md @@ -1,7 +1,9 @@ + # V1ObjectMeta ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **annotations** | **Map<String, String>** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations | [optional] @@ -12,7 +14,7 @@ Name | Type | Description | Notes **finalizers** | **List<String>** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. | [optional] **generateName** | **String** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency | [optional] **generation** | **Long** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. | [optional] -**initializers** | [**V1Initializers**](V1Initializers.md) | An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. DEPRECATED - initializers are an alpha field and will be removed in v1.15. | [optional] +**initializers** | [**V1Initializers**](V1Initializers.md) | | [optional] **labels** | **Map<String, String>** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels | [optional] **managedFields** | [**List<V1ManagedFieldsEntry>**](V1ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. | [optional] **name** | **String** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] diff --git a/kubernetes/docs/V1ObjectReference.md b/kubernetes/docs/V1ObjectReference.md index a87a1307e8..ae8c864f7e 100644 --- a/kubernetes/docs/V1ObjectReference.md +++ b/kubernetes/docs/V1ObjectReference.md @@ -1,7 +1,9 @@ + # V1ObjectReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent. | [optional] diff --git a/kubernetes/docs/V1OwnerReference.md b/kubernetes/docs/V1OwnerReference.md index 9709ba036e..d09e35551e 100644 --- a/kubernetes/docs/V1OwnerReference.md +++ b/kubernetes/docs/V1OwnerReference.md @@ -1,7 +1,9 @@ + # V1OwnerReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent. | diff --git a/kubernetes/docs/V1Patch.md b/kubernetes/docs/V1Patch.md deleted file mode 100644 index 988ee4e977..0000000000 --- a/kubernetes/docs/V1Patch.md +++ /dev/null @@ -1,9 +0,0 @@ - -# V1Patch - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - - diff --git a/kubernetes/docs/V1PersistentVolume.md b/kubernetes/docs/V1PersistentVolume.md index eeeef54734..8c9d5d18e4 100644 --- a/kubernetes/docs/V1PersistentVolume.md +++ b/kubernetes/docs/V1PersistentVolume.md @@ -1,14 +1,16 @@ + # V1PersistentVolume ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes | [optional] -**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] +**status** | [**V1PersistentVolumeStatus**](V1PersistentVolumeStatus.md) | | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaim.md b/kubernetes/docs/V1PersistentVolumeClaim.md index 155db7a3ed..81f4243cbb 100644 --- a/kubernetes/docs/V1PersistentVolumeClaim.md +++ b/kubernetes/docs/V1PersistentVolumeClaim.md @@ -1,14 +1,16 @@ + # V1PersistentVolumeClaim ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PersistentVolumeClaimSpec**](V1PersistentVolumeClaimSpec.md) | | [optional] +**status** | [**V1PersistentVolumeClaimStatus**](V1PersistentVolumeClaimStatus.md) | | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimCondition.md b/kubernetes/docs/V1PersistentVolumeClaimCondition.md index ac8c2bf23c..bd9f01859f 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimCondition.md +++ b/kubernetes/docs/V1PersistentVolumeClaimCondition.md @@ -1,7 +1,9 @@ + # V1PersistentVolumeClaimCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastProbeTime** | [**DateTime**](DateTime.md) | Last time we probed the condition. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimList.md b/kubernetes/docs/V1PersistentVolumeClaimList.md index 9f36c96121..90dd98e0b9 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimList.md +++ b/kubernetes/docs/V1PersistentVolumeClaimList.md @@ -1,13 +1,15 @@ + # V1PersistentVolumeClaimList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimSpec.md b/kubernetes/docs/V1PersistentVolumeClaimSpec.md index bf14c9e5ed..e0aa1732d3 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimSpec.md +++ b/kubernetes/docs/V1PersistentVolumeClaimSpec.md @@ -1,13 +1,15 @@ + # V1PersistentVolumeClaimSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessModes** | **List<String>** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] -**dataSource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. | [optional] -**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over volumes to consider for binding. | [optional] +**dataSource** | [**V1TypedLocalObjectReference**](V1TypedLocalObjectReference.md) | | [optional] +**resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **storageClassName** | **String** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] **volumeMode** | **String** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. | [optional] **volumeName** | **String** | VolumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimStatus.md b/kubernetes/docs/V1PersistentVolumeClaimStatus.md index 281ebb2d39..e68c3d7415 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimStatus.md +++ b/kubernetes/docs/V1PersistentVolumeClaimStatus.md @@ -1,7 +1,9 @@ + # V1PersistentVolumeClaimStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessModes** | **List<String>** | AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md index d130526815..af75b5472d 100644 --- a/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md +++ b/kubernetes/docs/V1PersistentVolumeClaimVolumeSource.md @@ -1,7 +1,9 @@ + # V1PersistentVolumeClaimVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **claimName** | **String** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | diff --git a/kubernetes/docs/V1PersistentVolumeList.md b/kubernetes/docs/V1PersistentVolumeList.md index c03bea4e04..05c3540e3a 100644 --- a/kubernetes/docs/V1PersistentVolumeList.md +++ b/kubernetes/docs/V1PersistentVolumeList.md @@ -1,13 +1,15 @@ + # V1PersistentVolumeList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1PersistentVolume>**](V1PersistentVolume.md) | List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeSpec.md b/kubernetes/docs/V1PersistentVolumeSpec.md index 9e653d77f1..984dbb16cc 100644 --- a/kubernetes/docs/V1PersistentVolumeSpec.md +++ b/kubernetes/docs/V1PersistentVolumeSpec.md @@ -1,39 +1,41 @@ + # V1PersistentVolumeSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessModes** | **List<String>** | AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes | [optional] -**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] -**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. | [optional] -**azureFile** | [**V1AzureFilePersistentVolumeSource**](V1AzureFilePersistentVolumeSource.md) | AzureFile represents an Azure File Service mount on the host and bind mount to the pod. | [optional] +**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] +**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] +**azureFile** | [**V1AzureFilePersistentVolumeSource**](V1AzureFilePersistentVolumeSource.md) | | [optional] **capacity** | [**Map<String, Quantity>**](Quantity.md) | A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity | [optional] -**cephfs** | [**V1CephFSPersistentVolumeSource**](V1CephFSPersistentVolumeSource.md) | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime | [optional] -**cinder** | [**V1CinderPersistentVolumeSource**](V1CinderPersistentVolumeSource.md) | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**claimRef** | [**V1ObjectReference**](V1ObjectReference.md) | ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding | [optional] -**csi** | [**V1CSIPersistentVolumeSource**](V1CSIPersistentVolumeSource.md) | CSI represents storage that is handled by an external CSI driver (Beta feature). | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. | [optional] -**flexVolume** | [**V1FlexPersistentVolumeSource**](V1FlexPersistentVolumeSource.md) | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running | [optional] -**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] -**glusterfs** | [**V1GlusterfsPersistentVolumeSource**](V1GlusterfsPersistentVolumeSource.md) | Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] -**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] -**iscsi** | [**V1ISCSIPersistentVolumeSource**](V1ISCSIPersistentVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. | [optional] -**local** | [**V1LocalVolumeSource**](V1LocalVolumeSource.md) | Local represents directly-attached storage with node affinity | [optional] +**cephfs** | [**V1CephFSPersistentVolumeSource**](V1CephFSPersistentVolumeSource.md) | | [optional] +**cinder** | [**V1CinderPersistentVolumeSource**](V1CinderPersistentVolumeSource.md) | | [optional] +**claimRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] +**csi** | [**V1CSIPersistentVolumeSource**](V1CSIPersistentVolumeSource.md) | | [optional] +**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] +**flexVolume** | [**V1FlexPersistentVolumeSource**](V1FlexPersistentVolumeSource.md) | | [optional] +**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] +**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] +**glusterfs** | [**V1GlusterfsPersistentVolumeSource**](V1GlusterfsPersistentVolumeSource.md) | | [optional] +**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] +**iscsi** | [**V1ISCSIPersistentVolumeSource**](V1ISCSIPersistentVolumeSource.md) | | [optional] +**local** | [**V1LocalVolumeSource**](V1LocalVolumeSource.md) | | [optional] **mountOptions** | **List<String>** | A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options | [optional] -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] -**nodeAffinity** | [**V1VolumeNodeAffinity**](V1VolumeNodeAffinity.md) | NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. | [optional] +**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] +**nodeAffinity** | [**V1VolumeNodeAffinity**](V1VolumeNodeAffinity.md) | | [optional] **persistentVolumeReclaimPolicy** | **String** | What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming | [optional] -**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] -**rbd** | [**V1RBDPersistentVolumeSource**](V1RBDPersistentVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scaleIO** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] +**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] +**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] +**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] +**rbd** | [**V1RBDPersistentVolumeSource**](V1RBDPersistentVolumeSource.md) | | [optional] +**scaleIO** | [**V1ScaleIOPersistentVolumeSource**](V1ScaleIOPersistentVolumeSource.md) | | [optional] **storageClassName** | **String** | Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. | [optional] -**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md | [optional] +**storageos** | [**V1StorageOSPersistentVolumeSource**](V1StorageOSPersistentVolumeSource.md) | | [optional] **volumeMode** | **String** | volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. | [optional] -**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] +**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] diff --git a/kubernetes/docs/V1PersistentVolumeStatus.md b/kubernetes/docs/V1PersistentVolumeStatus.md index 3e221a372a..833ec05d93 100644 --- a/kubernetes/docs/V1PersistentVolumeStatus.md +++ b/kubernetes/docs/V1PersistentVolumeStatus.md @@ -1,7 +1,9 @@ + # V1PersistentVolumeStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | A human-readable message indicating details about why the volume is in this state. | [optional] diff --git a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md index d52e815f44..c7d0050478 100644 --- a/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md +++ b/kubernetes/docs/V1PhotonPersistentDiskVolumeSource.md @@ -1,7 +1,9 @@ + # V1PhotonPersistentDiskVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] diff --git a/kubernetes/docs/V1Pod.md b/kubernetes/docs/V1Pod.md index 4bf498b370..fe1f501ccb 100644 --- a/kubernetes/docs/V1Pod.md +++ b/kubernetes/docs/V1Pod.md @@ -1,14 +1,16 @@ + # V1Pod ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1PodStatus**](V1PodStatus.md) | Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] +**status** | [**V1PodStatus**](V1PodStatus.md) | | [optional] diff --git a/kubernetes/docs/V1PodAffinity.md b/kubernetes/docs/V1PodAffinity.md index e698cc0519..41531467af 100644 --- a/kubernetes/docs/V1PodAffinity.md +++ b/kubernetes/docs/V1PodAffinity.md @@ -1,7 +1,9 @@ + # V1PodAffinity ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] diff --git a/kubernetes/docs/V1PodAffinityTerm.md b/kubernetes/docs/V1PodAffinityTerm.md index e498f3837e..9756e95d60 100644 --- a/kubernetes/docs/V1PodAffinityTerm.md +++ b/kubernetes/docs/V1PodAffinityTerm.md @@ -1,10 +1,12 @@ + # V1PodAffinityTerm ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over a set of resources, in this case pods. | [optional] +**labelSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **namespaces** | **List<String>** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" | [optional] **topologyKey** | **String** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | diff --git a/kubernetes/docs/V1PodAntiAffinity.md b/kubernetes/docs/V1PodAntiAffinity.md index aea0261a97..65f471be7d 100644 --- a/kubernetes/docs/V1PodAntiAffinity.md +++ b/kubernetes/docs/V1PodAntiAffinity.md @@ -1,7 +1,9 @@ + # V1PodAntiAffinity ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **preferredDuringSchedulingIgnoredDuringExecution** | [**List<V1WeightedPodAffinityTerm>**](V1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] diff --git a/kubernetes/docs/V1PodCondition.md b/kubernetes/docs/V1PodCondition.md index d0cc1ea78b..842916eed8 100644 --- a/kubernetes/docs/V1PodCondition.md +++ b/kubernetes/docs/V1PodCondition.md @@ -1,7 +1,9 @@ + # V1PodCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastProbeTime** | [**DateTime**](DateTime.md) | Last time we probed the condition. | [optional] diff --git a/kubernetes/docs/V1PodDNSConfig.md b/kubernetes/docs/V1PodDNSConfig.md index 3ab3a7b000..a9aeabc069 100644 --- a/kubernetes/docs/V1PodDNSConfig.md +++ b/kubernetes/docs/V1PodDNSConfig.md @@ -1,7 +1,9 @@ + # V1PodDNSConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nameservers** | **List<String>** | A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. | [optional] diff --git a/kubernetes/docs/V1PodDNSConfigOption.md b/kubernetes/docs/V1PodDNSConfigOption.md index 2622c88f64..5d4722efe0 100644 --- a/kubernetes/docs/V1PodDNSConfigOption.md +++ b/kubernetes/docs/V1PodDNSConfigOption.md @@ -1,7 +1,9 @@ + # V1PodDNSConfigOption ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Required. | [optional] diff --git a/kubernetes/docs/V1PodList.md b/kubernetes/docs/V1PodList.md index 5d735194e7..162da84380 100644 --- a/kubernetes/docs/V1PodList.md +++ b/kubernetes/docs/V1PodList.md @@ -1,13 +1,15 @@ + # V1PodList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Pod>**](V1Pod.md) | List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1PodReadinessGate.md b/kubernetes/docs/V1PodReadinessGate.md index 943b55c202..e0c857a1eb 100644 --- a/kubernetes/docs/V1PodReadinessGate.md +++ b/kubernetes/docs/V1PodReadinessGate.md @@ -1,7 +1,9 @@ + # V1PodReadinessGate ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditionType** | **String** | ConditionType refers to a condition in the pod's condition list with matching type. | diff --git a/kubernetes/docs/V1PodSecurityContext.md b/kubernetes/docs/V1PodSecurityContext.md index 783de2e63d..d580002b6e 100644 --- a/kubernetes/docs/V1PodSecurityContext.md +++ b/kubernetes/docs/V1PodSecurityContext.md @@ -1,16 +1,19 @@ + # V1PodSecurityContext ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsGroup** | **Long** | A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. | [optional] **runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] **runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **runAsUser** | **Long** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. | [optional] +**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] **supplementalGroups** | **List<Long>** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. | [optional] **sysctls** | [**List<V1Sysctl>**](V1Sysctl.md) | Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. | [optional] +**windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] diff --git a/kubernetes/docs/V1PodSpec.md b/kubernetes/docs/V1PodSpec.md index c6281df755..ce3437b35b 100644 --- a/kubernetes/docs/V1PodSpec.md +++ b/kubernetes/docs/V1PodSpec.md @@ -1,14 +1,16 @@ + # V1PodSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **activeDeadlineSeconds** | **Long** | Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. | [optional] -**affinity** | [**V1Affinity**](V1Affinity.md) | If specified, the pod's scheduling constraints | [optional] +**affinity** | [**V1Affinity**](V1Affinity.md) | | [optional] **automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. | [optional] **containers** | [**List<V1Container>**](V1Container.md) | List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated. | -**dnsConfig** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. | [optional] +**dnsConfig** | [**V1PodDNSConfig**](V1PodDNSConfig.md) | | [optional] **dnsPolicy** | **String** | Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. | [optional] **enableServiceLinks** | **Boolean** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. | [optional] **hostAliases** | [**List<V1HostAlias>**](V1HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. | [optional] @@ -20,13 +22,14 @@ Name | Type | Description | Notes **initContainers** | [**List<V1Container>**](V1Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ | [optional] **nodeName** | **String** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. | [optional] **nodeSelector** | **Map<String, String>** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ | [optional] +**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **priority** | **Integer** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. | [optional] **priorityClassName** | **String** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. | [optional] **readinessGates** | [**List<V1PodReadinessGate>**](V1PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md | [optional] **restartPolicy** | **String** | Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy | [optional] -**runtimeClassName** | **String** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future. | [optional] +**runtimeClassName** | **String** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. | [optional] **schedulerName** | **String** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. | [optional] -**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. | [optional] +**securityContext** | [**V1PodSecurityContext**](V1PodSecurityContext.md) | | [optional] **serviceAccount** | **String** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. | [optional] **serviceAccountName** | **String** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | [optional] **shareProcessNamespace** | **Boolean** | Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. | [optional] diff --git a/kubernetes/docs/V1PodStatus.md b/kubernetes/docs/V1PodStatus.md index 3fad5a5f52..8adef6872f 100644 --- a/kubernetes/docs/V1PodStatus.md +++ b/kubernetes/docs/V1PodStatus.md @@ -1,7 +1,9 @@ + # V1PodStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**List<V1PodCondition>**](V1PodCondition.md) | Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions | [optional] diff --git a/kubernetes/docs/V1PodTemplate.md b/kubernetes/docs/V1PodTemplate.md index 762cc300e7..83abd0cdfb 100644 --- a/kubernetes/docs/V1PodTemplate.md +++ b/kubernetes/docs/V1PodTemplate.md @@ -1,13 +1,15 @@ + # V1PodTemplate ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] diff --git a/kubernetes/docs/V1PodTemplateList.md b/kubernetes/docs/V1PodTemplateList.md index 494ea0cd4d..13b23d95e7 100644 --- a/kubernetes/docs/V1PodTemplateList.md +++ b/kubernetes/docs/V1PodTemplateList.md @@ -1,13 +1,15 @@ + # V1PodTemplateList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1PodTemplate>**](V1PodTemplate.md) | List of pod templates | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1PodTemplateSpec.md b/kubernetes/docs/V1PodTemplateSpec.md index 889c2cb38a..c45e8c72fd 100644 --- a/kubernetes/docs/V1PodTemplateSpec.md +++ b/kubernetes/docs/V1PodTemplateSpec.md @@ -1,11 +1,13 @@ + # V1PodTemplateSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1PodSpec**](V1PodSpec.md) | Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1PodSpec**](V1PodSpec.md) | | [optional] diff --git a/kubernetes/docs/V1PolicyRule.md b/kubernetes/docs/V1PolicyRule.md index daf354732c..55e0fd0e70 100644 --- a/kubernetes/docs/V1PolicyRule.md +++ b/kubernetes/docs/V1PolicyRule.md @@ -1,7 +1,9 @@ + # V1PolicyRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] diff --git a/kubernetes/docs/V1PortworxVolumeSource.md b/kubernetes/docs/V1PortworxVolumeSource.md index 630b4acdc6..21b57a44ab 100644 --- a/kubernetes/docs/V1PortworxVolumeSource.md +++ b/kubernetes/docs/V1PortworxVolumeSource.md @@ -1,7 +1,9 @@ + # V1PortworxVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] diff --git a/kubernetes/docs/V1Preconditions.md b/kubernetes/docs/V1Preconditions.md index 4fac3a0aa5..394cf59d6f 100644 --- a/kubernetes/docs/V1Preconditions.md +++ b/kubernetes/docs/V1Preconditions.md @@ -1,7 +1,9 @@ + # V1Preconditions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **resourceVersion** | **String** | Specifies the target ResourceVersion | [optional] diff --git a/kubernetes/docs/V1PreferredSchedulingTerm.md b/kubernetes/docs/V1PreferredSchedulingTerm.md index dfd3e1841f..1f5454b330 100644 --- a/kubernetes/docs/V1PreferredSchedulingTerm.md +++ b/kubernetes/docs/V1PreferredSchedulingTerm.md @@ -1,10 +1,12 @@ + # V1PreferredSchedulingTerm ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | +**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | | **weight** | **Integer** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | diff --git a/kubernetes/docs/V1PriorityClass.md b/kubernetes/docs/V1PriorityClass.md index 88fb53a54a..3db315ae60 100644 --- a/kubernetes/docs/V1PriorityClass.md +++ b/kubernetes/docs/V1PriorityClass.md @@ -1,14 +1,17 @@ + # V1PriorityClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **description** | **String** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] **globalDefault** | **Boolean** | globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **value** | **Integer** | The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | diff --git a/kubernetes/docs/V1PriorityClassList.md b/kubernetes/docs/V1PriorityClassList.md index 21ee44944b..0420d64f40 100644 --- a/kubernetes/docs/V1PriorityClassList.md +++ b/kubernetes/docs/V1PriorityClassList.md @@ -1,13 +1,15 @@ + # V1PriorityClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1PriorityClass>**](V1PriorityClass.md) | items is the list of PriorityClasses | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1Probe.md b/kubernetes/docs/V1Probe.md index da4e01d96e..2a4095331a 100644 --- a/kubernetes/docs/V1Probe.md +++ b/kubernetes/docs/V1Probe.md @@ -1,16 +1,18 @@ + # V1Probe ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**exec** | [**V1ExecAction**](V1ExecAction.md) | One and only one of the following should be specified. Exec specifies the action to take. | [optional] +**exec** | [**V1ExecAction**](V1ExecAction.md) | | [optional] **failureThreshold** | **Integer** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. | [optional] -**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | HTTPGet specifies the http request to perform. | [optional] +**httpGet** | [**V1HTTPGetAction**](V1HTTPGetAction.md) | | [optional] **initialDelaySeconds** | **Integer** | Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] **periodSeconds** | **Integer** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. | [optional] **successThreshold** | **Integer** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. | [optional] -**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported | [optional] +**tcpSocket** | [**V1TCPSocketAction**](V1TCPSocketAction.md) | | [optional] **timeoutSeconds** | **Integer** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes | [optional] diff --git a/kubernetes/docs/V1ProjectedVolumeSource.md b/kubernetes/docs/V1ProjectedVolumeSource.md index 312417cf7c..29d3139474 100644 --- a/kubernetes/docs/V1ProjectedVolumeSource.md +++ b/kubernetes/docs/V1ProjectedVolumeSource.md @@ -1,7 +1,9 @@ + # V1ProjectedVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultMode** | **Integer** | Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] diff --git a/kubernetes/docs/V1QuobyteVolumeSource.md b/kubernetes/docs/V1QuobyteVolumeSource.md index 41e540cde2..2d3e7b277c 100644 --- a/kubernetes/docs/V1QuobyteVolumeSource.md +++ b/kubernetes/docs/V1QuobyteVolumeSource.md @@ -1,7 +1,9 @@ + # V1QuobyteVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **group** | **String** | Group to map volume access to Default is no group | [optional] diff --git a/kubernetes/docs/V1RBDPersistentVolumeSource.md b/kubernetes/docs/V1RBDPersistentVolumeSource.md index 016ffc80f4..57b32e53b9 100644 --- a/kubernetes/docs/V1RBDPersistentVolumeSource.md +++ b/kubernetes/docs/V1RBDPersistentVolumeSource.md @@ -1,7 +1,9 @@ + # V1RBDPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd | [optional] @@ -10,7 +12,7 @@ Name | Type | Description | Notes **monitors** | **List<String>** | A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | **pool** | **String** | The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] **readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] +**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | [optional] **user** | **String** | The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] diff --git a/kubernetes/docs/V1RBDVolumeSource.md b/kubernetes/docs/V1RBDVolumeSource.md index 4730d7d3a3..96058acc44 100644 --- a/kubernetes/docs/V1RBDVolumeSource.md +++ b/kubernetes/docs/V1RBDVolumeSource.md @@ -1,7 +1,9 @@ + # V1RBDVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd | [optional] @@ -10,7 +12,7 @@ Name | Type | Description | Notes **monitors** | **List<String>** | A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | **pool** | **String** | The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] **readOnly** | **Boolean** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **user** | **String** | The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it | [optional] diff --git a/kubernetes/docs/V1ReplicaSet.md b/kubernetes/docs/V1ReplicaSet.md index 245315e68d..953f4b75ce 100644 --- a/kubernetes/docs/V1ReplicaSet.md +++ b/kubernetes/docs/V1ReplicaSet.md @@ -1,14 +1,16 @@ + # V1ReplicaSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ReplicaSetSpec**](V1ReplicaSetSpec.md) | | [optional] +**status** | [**V1ReplicaSetStatus**](V1ReplicaSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicaSetCondition.md b/kubernetes/docs/V1ReplicaSetCondition.md index 0911e67841..bde0488cc1 100644 --- a/kubernetes/docs/V1ReplicaSetCondition.md +++ b/kubernetes/docs/V1ReplicaSetCondition.md @@ -1,7 +1,9 @@ + # V1ReplicaSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | The last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1ReplicaSetList.md b/kubernetes/docs/V1ReplicaSetList.md index fb60966472..c121213af6 100644 --- a/kubernetes/docs/V1ReplicaSetList.md +++ b/kubernetes/docs/V1ReplicaSetList.md @@ -1,13 +1,15 @@ + # V1ReplicaSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ReplicaSet>**](V1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicaSetSpec.md b/kubernetes/docs/V1ReplicaSetSpec.md index 30f37032d3..11c0e92386 100644 --- a/kubernetes/docs/V1ReplicaSetSpec.md +++ b/kubernetes/docs/V1ReplicaSetSpec.md @@ -1,13 +1,15 @@ + # V1ReplicaSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **Integer** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicaSetStatus.md b/kubernetes/docs/V1ReplicaSetStatus.md index 18cedec9ae..2d23400f22 100644 --- a/kubernetes/docs/V1ReplicaSetStatus.md +++ b/kubernetes/docs/V1ReplicaSetStatus.md @@ -1,7 +1,9 @@ + # V1ReplicaSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] diff --git a/kubernetes/docs/V1ReplicationController.md b/kubernetes/docs/V1ReplicationController.md index 51ce4db7f2..22e64d98e6 100644 --- a/kubernetes/docs/V1ReplicationController.md +++ b/kubernetes/docs/V1ReplicationController.md @@ -1,14 +1,16 @@ + # V1ReplicationController ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ReplicationControllerSpec**](V1ReplicationControllerSpec.md) | | [optional] +**status** | [**V1ReplicationControllerStatus**](V1ReplicationControllerStatus.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicationControllerCondition.md b/kubernetes/docs/V1ReplicationControllerCondition.md index b33522c653..f695579c53 100644 --- a/kubernetes/docs/V1ReplicationControllerCondition.md +++ b/kubernetes/docs/V1ReplicationControllerCondition.md @@ -1,7 +1,9 @@ + # V1ReplicationControllerCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | The last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1ReplicationControllerList.md b/kubernetes/docs/V1ReplicationControllerList.md index 2c43ccc994..7f7c6b7c8b 100644 --- a/kubernetes/docs/V1ReplicationControllerList.md +++ b/kubernetes/docs/V1ReplicationControllerList.md @@ -1,13 +1,15 @@ + # V1ReplicationControllerList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ReplicationController>**](V1ReplicationController.md) | List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicationControllerSpec.md b/kubernetes/docs/V1ReplicationControllerSpec.md index 60478b1dc6..f041f108a2 100644 --- a/kubernetes/docs/V1ReplicationControllerSpec.md +++ b/kubernetes/docs/V1ReplicationControllerSpec.md @@ -1,13 +1,15 @@ + # V1ReplicationControllerSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **Integer** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller | [optional] **selector** | **Map<String, String>** | Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] diff --git a/kubernetes/docs/V1ReplicationControllerStatus.md b/kubernetes/docs/V1ReplicationControllerStatus.md index 80aeda041d..36d80a8fa7 100644 --- a/kubernetes/docs/V1ReplicationControllerStatus.md +++ b/kubernetes/docs/V1ReplicationControllerStatus.md @@ -1,7 +1,9 @@ + # V1ReplicationControllerStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replication controller. | [optional] diff --git a/kubernetes/docs/V1ResourceAttributes.md b/kubernetes/docs/V1ResourceAttributes.md index 10baed72b1..c6b395464b 100644 --- a/kubernetes/docs/V1ResourceAttributes.md +++ b/kubernetes/docs/V1ResourceAttributes.md @@ -1,7 +1,9 @@ + # V1ResourceAttributes ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1ResourceFieldSelector.md b/kubernetes/docs/V1ResourceFieldSelector.md index f00e63c40e..dc30f6a7b4 100644 --- a/kubernetes/docs/V1ResourceFieldSelector.md +++ b/kubernetes/docs/V1ResourceFieldSelector.md @@ -1,11 +1,13 @@ + # V1ResourceFieldSelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **containerName** | **String** | Container name: required for volumes, optional for env vars | [optional] -**divisor** | **String** | Specifies the output format of the exposed resources, defaults to \"1\" | [optional] +**divisor** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] **resource** | **String** | Required: resource to select | diff --git a/kubernetes/docs/V1ResourceQuota.md b/kubernetes/docs/V1ResourceQuota.md index 1352983e2b..81e183379c 100644 --- a/kubernetes/docs/V1ResourceQuota.md +++ b/kubernetes/docs/V1ResourceQuota.md @@ -1,14 +1,16 @@ + # V1ResourceQuota ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ResourceQuotaSpec**](V1ResourceQuotaSpec.md) | | [optional] +**status** | [**V1ResourceQuotaStatus**](V1ResourceQuotaStatus.md) | | [optional] diff --git a/kubernetes/docs/V1ResourceQuotaList.md b/kubernetes/docs/V1ResourceQuotaList.md index 9b3bda8d04..52d74b89e1 100644 --- a/kubernetes/docs/V1ResourceQuotaList.md +++ b/kubernetes/docs/V1ResourceQuotaList.md @@ -1,13 +1,15 @@ + # V1ResourceQuotaList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ResourceQuota>**](V1ResourceQuota.md) | Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ResourceQuotaSpec.md b/kubernetes/docs/V1ResourceQuotaSpec.md index 0c894e3b9f..dbd697bc34 100644 --- a/kubernetes/docs/V1ResourceQuotaSpec.md +++ b/kubernetes/docs/V1ResourceQuotaSpec.md @@ -1,11 +1,13 @@ + # V1ResourceQuotaSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hard** | [**Map<String, Quantity>**](Quantity.md) | hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] -**scopeSelector** | [**V1ScopeSelector**](V1ScopeSelector.md) | scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. | [optional] +**scopeSelector** | [**V1ScopeSelector**](V1ScopeSelector.md) | | [optional] **scopes** | **List<String>** | A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. | [optional] diff --git a/kubernetes/docs/V1ResourceQuotaStatus.md b/kubernetes/docs/V1ResourceQuotaStatus.md index 99f04239c9..b92dd09de1 100644 --- a/kubernetes/docs/V1ResourceQuotaStatus.md +++ b/kubernetes/docs/V1ResourceQuotaStatus.md @@ -1,11 +1,13 @@ + # V1ResourceQuotaStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hard** | **Map<String, String>** | Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] -**used** | **Map<String, String>** | Used is the current observed total usage of the resource in the namespace. | [optional] +**hard** | [**Map<String, Quantity>**](Quantity.md) | Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ | [optional] +**used** | [**Map<String, Quantity>**](Quantity.md) | Used is the current observed total usage of the resource in the namespace. | [optional] diff --git a/kubernetes/docs/V1ResourceRequirements.md b/kubernetes/docs/V1ResourceRequirements.md index 71b7e0f0c3..ea46fafd1b 100644 --- a/kubernetes/docs/V1ResourceRequirements.md +++ b/kubernetes/docs/V1ResourceRequirements.md @@ -1,7 +1,9 @@ + # V1ResourceRequirements ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **limits** | [**Map<String, Quantity>**](Quantity.md) | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ | [optional] diff --git a/kubernetes/docs/V1ResourceRule.md b/kubernetes/docs/V1ResourceRule.md index 1e44f77c81..e2bf93e96e 100644 --- a/kubernetes/docs/V1ResourceRule.md +++ b/kubernetes/docs/V1ResourceRule.md @@ -1,7 +1,9 @@ + # V1ResourceRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1Role.md b/kubernetes/docs/V1Role.md index 540c3859d2..02a8d890ab 100644 --- a/kubernetes/docs/V1Role.md +++ b/kubernetes/docs/V1Role.md @@ -1,12 +1,14 @@ + # V1Role ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**List<V1PolicyRule>**](V1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] diff --git a/kubernetes/docs/V1RoleBinding.md b/kubernetes/docs/V1RoleBinding.md index 156884e5dc..994013c3b6 100644 --- a/kubernetes/docs/V1RoleBinding.md +++ b/kubernetes/docs/V1RoleBinding.md @@ -1,13 +1,15 @@ + # V1RoleBinding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1RoleRef**](V1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**roleRef** | [**V1RoleRef**](V1RoleRef.md) | | **subjects** | [**List<V1Subject>**](V1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] diff --git a/kubernetes/docs/V1RoleBindingList.md b/kubernetes/docs/V1RoleBindingList.md index c3f17c1f6b..bb87649187 100644 --- a/kubernetes/docs/V1RoleBindingList.md +++ b/kubernetes/docs/V1RoleBindingList.md @@ -1,13 +1,15 @@ + # V1RoleBindingList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1RoleBinding>**](V1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1RoleList.md b/kubernetes/docs/V1RoleList.md index d1442264bf..9f2810c372 100644 --- a/kubernetes/docs/V1RoleList.md +++ b/kubernetes/docs/V1RoleList.md @@ -1,13 +1,15 @@ + # V1RoleList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Role>**](V1Role.md) | Items is a list of Roles | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1RoleRef.md b/kubernetes/docs/V1RoleRef.md index 7e0e2bfb94..356266f094 100644 --- a/kubernetes/docs/V1RoleRef.md +++ b/kubernetes/docs/V1RoleRef.md @@ -1,7 +1,9 @@ + # V1RoleRef ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroup** | **String** | APIGroup is the group for the resource being referenced | diff --git a/kubernetes/docs/V1RollingUpdateDaemonSet.md b/kubernetes/docs/V1RollingUpdateDaemonSet.md index 0f09779a2e..13a430fe7b 100644 --- a/kubernetes/docs/V1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1RollingUpdateDaemonSet.md @@ -1,10 +1,12 @@ + # V1RollingUpdateDaemonSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxUnavailable** | **String** | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/V1RollingUpdateDeployment.md b/kubernetes/docs/V1RollingUpdateDeployment.md index 930ce58be7..8edb7e1965 100644 --- a/kubernetes/docs/V1RollingUpdateDeployment.md +++ b/kubernetes/docs/V1RollingUpdateDeployment.md @@ -1,11 +1,13 @@ + # V1RollingUpdateDeployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxSurge** | [**IntOrString**](IntOrString.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**maxUnavailable** | [**IntOrString**](IntOrString.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**maxSurge** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md index f877b230c7..5fde7fbfab 100644 --- a/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1RollingUpdateStatefulSetStrategy.md @@ -1,7 +1,9 @@ + # V1RollingUpdateStatefulSetStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **partition** | **Integer** | Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. | [optional] diff --git a/kubernetes/docs/V1SELinuxOptions.md b/kubernetes/docs/V1SELinuxOptions.md index d3fb2310db..83b3a3f7e0 100644 --- a/kubernetes/docs/V1SELinuxOptions.md +++ b/kubernetes/docs/V1SELinuxOptions.md @@ -1,7 +1,9 @@ + # V1SELinuxOptions ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **level** | **String** | Level is SELinux level label that applies to the container. | [optional] diff --git a/kubernetes/docs/V1Scale.md b/kubernetes/docs/V1Scale.md index dcbaea3b1c..d466245bd2 100644 --- a/kubernetes/docs/V1Scale.md +++ b/kubernetes/docs/V1Scale.md @@ -1,14 +1,16 @@ + # V1Scale ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ScaleSpec**](V1ScaleSpec.md) | | [optional] +**status** | [**V1ScaleStatus**](V1ScaleStatus.md) | | [optional] diff --git a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md index e460e3c39a..db1a12a0ce 100644 --- a/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOPersistentVolumeSource.md @@ -1,14 +1,16 @@ + # V1ScaleIOPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" | [optional] **gateway** | **String** | The host address of the ScaleIO API Gateway. | **protectionDomain** | **String** | The name of the ScaleIO Protection Domain for the configured storage. | [optional] **readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1SecretReference**](V1SecretReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | +**secretRef** | [**V1SecretReference**](V1SecretReference.md) | | **sslEnabled** | **Boolean** | Flag to enable/disable SSL communication with Gateway, default false | [optional] **storageMode** | **String** | Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] **storagePool** | **String** | The ScaleIO Storage Pool associated with the protection domain. | [optional] diff --git a/kubernetes/docs/V1ScaleIOVolumeSource.md b/kubernetes/docs/V1ScaleIOVolumeSource.md index d796d11ce2..25f5b37491 100644 --- a/kubernetes/docs/V1ScaleIOVolumeSource.md +++ b/kubernetes/docs/V1ScaleIOVolumeSource.md @@ -1,14 +1,16 @@ + # V1ScaleIOVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". | [optional] **gateway** | **String** | The host address of the ScaleIO API Gateway. | **protectionDomain** | **String** | The name of the ScaleIO Protection Domain for the configured storage. | [optional] **readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. | +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | **sslEnabled** | **Boolean** | Flag to enable/disable SSL communication with Gateway, default false | [optional] **storageMode** | **String** | Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. | [optional] **storagePool** | **String** | The ScaleIO Storage Pool associated with the protection domain. | [optional] diff --git a/kubernetes/docs/V1ScaleSpec.md b/kubernetes/docs/V1ScaleSpec.md index 4608828543..c8573d1b40 100644 --- a/kubernetes/docs/V1ScaleSpec.md +++ b/kubernetes/docs/V1ScaleSpec.md @@ -1,7 +1,9 @@ + # V1ScaleSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | desired number of instances for the scaled object. | [optional] diff --git a/kubernetes/docs/V1ScaleStatus.md b/kubernetes/docs/V1ScaleStatus.md index 28dbe56396..90480d80f8 100644 --- a/kubernetes/docs/V1ScaleStatus.md +++ b/kubernetes/docs/V1ScaleStatus.md @@ -1,7 +1,9 @@ + # V1ScaleStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | actual number of observed instances of the scaled object. | diff --git a/kubernetes/docs/V1ScopeSelector.md b/kubernetes/docs/V1ScopeSelector.md index 36339d1c60..1ed3ad544d 100644 --- a/kubernetes/docs/V1ScopeSelector.md +++ b/kubernetes/docs/V1ScopeSelector.md @@ -1,7 +1,9 @@ + # V1ScopeSelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **matchExpressions** | [**List<V1ScopedResourceSelectorRequirement>**](V1ScopedResourceSelectorRequirement.md) | A list of scope selector requirements by scope of the resources. | [optional] diff --git a/kubernetes/docs/V1ScopedResourceSelectorRequirement.md b/kubernetes/docs/V1ScopedResourceSelectorRequirement.md index 0c3629b3db..fe91659d8c 100644 --- a/kubernetes/docs/V1ScopedResourceSelectorRequirement.md +++ b/kubernetes/docs/V1ScopedResourceSelectorRequirement.md @@ -1,7 +1,9 @@ + # V1ScopedResourceSelectorRequirement ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **operator** | **String** | Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. | diff --git a/kubernetes/docs/V1Secret.md b/kubernetes/docs/V1Secret.md index f5c901fc50..d424845030 100644 --- a/kubernetes/docs/V1Secret.md +++ b/kubernetes/docs/V1Secret.md @@ -1,13 +1,15 @@ + # V1Secret ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **data** | **Map<String, byte[]>** | Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **stringData** | **Map<String, String>** | stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. | [optional] **type** | **String** | Used to facilitate programmatic handling of secret data. | [optional] diff --git a/kubernetes/docs/V1SecretEnvSource.md b/kubernetes/docs/V1SecretEnvSource.md index 3a347890da..db43ad798d 100644 --- a/kubernetes/docs/V1SecretEnvSource.md +++ b/kubernetes/docs/V1SecretEnvSource.md @@ -1,7 +1,9 @@ + # V1SecretEnvSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] diff --git a/kubernetes/docs/V1SecretKeySelector.md b/kubernetes/docs/V1SecretKeySelector.md index ac3ff89357..50802122b6 100644 --- a/kubernetes/docs/V1SecretKeySelector.md +++ b/kubernetes/docs/V1SecretKeySelector.md @@ -1,12 +1,14 @@ + # V1SecretKeySelector ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The key of the secret to select from. Must be a valid secret key. | **name** | **String** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] -**optional** | **Boolean** | Specify whether the Secret or it's key must be defined | [optional] +**optional** | **Boolean** | Specify whether the Secret or its key must be defined | [optional] diff --git a/kubernetes/docs/V1SecretList.md b/kubernetes/docs/V1SecretList.md index d376b3f50a..2fd1f79103 100644 --- a/kubernetes/docs/V1SecretList.md +++ b/kubernetes/docs/V1SecretList.md @@ -1,13 +1,15 @@ + # V1SecretList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Secret>**](V1Secret.md) | Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1SecretProjection.md b/kubernetes/docs/V1SecretProjection.md index 193f288c93..bc1cab84a3 100644 --- a/kubernetes/docs/V1SecretProjection.md +++ b/kubernetes/docs/V1SecretProjection.md @@ -1,7 +1,9 @@ + # V1SecretProjection ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] diff --git a/kubernetes/docs/V1SecretReference.md b/kubernetes/docs/V1SecretReference.md index 4d9a7d56fa..a163b2cef0 100644 --- a/kubernetes/docs/V1SecretReference.md +++ b/kubernetes/docs/V1SecretReference.md @@ -1,7 +1,9 @@ + # V1SecretReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name is unique within a namespace to reference a secret resource. | [optional] diff --git a/kubernetes/docs/V1SecretVolumeSource.md b/kubernetes/docs/V1SecretVolumeSource.md index 6edebfdf24..2e0746ba60 100644 --- a/kubernetes/docs/V1SecretVolumeSource.md +++ b/kubernetes/docs/V1SecretVolumeSource.md @@ -1,12 +1,14 @@ + # V1SecretVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **defaultMode** | **Integer** | Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. | [optional] **items** | [**List<V1KeyToPath>**](V1KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. | [optional] -**optional** | **Boolean** | Specify whether the Secret or it's keys must be defined | [optional] +**optional** | **Boolean** | Specify whether the Secret or its keys must be defined | [optional] **secretName** | **String** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] diff --git a/kubernetes/docs/V1SecurityContext.md b/kubernetes/docs/V1SecurityContext.md index b3c53671f1..3487cf30af 100644 --- a/kubernetes/docs/V1SecurityContext.md +++ b/kubernetes/docs/V1SecurityContext.md @@ -1,18 +1,21 @@ + # V1SecurityContext ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowPrivilegeEscalation** | **Boolean** | AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN | [optional] -**capabilities** | [**V1Capabilities**](V1Capabilities.md) | The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. | [optional] +**capabilities** | [**V1Capabilities**](V1Capabilities.md) | | [optional] **privileged** | **Boolean** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. | [optional] **procMount** | **String** | procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. | [optional] **readOnlyRootFilesystem** | **Boolean** | Whether this container has a read-only root filesystem. Default is false. | [optional] **runAsGroup** | **Long** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **runAsNonRoot** | **Boolean** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] **runAsUser** | **Long** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] -**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. | [optional] +**seLinuxOptions** | [**V1SELinuxOptions**](V1SELinuxOptions.md) | | [optional] +**windowsOptions** | [**V1WindowsSecurityContextOptions**](V1WindowsSecurityContextOptions.md) | | [optional] diff --git a/kubernetes/docs/V1SelfSubjectAccessReview.md b/kubernetes/docs/V1SelfSubjectAccessReview.md index bcda8f8c88..f7be037988 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1SelfSubjectAccessReview.md @@ -1,14 +1,16 @@ + # V1SelfSubjectAccessReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1SelfSubjectAccessReviewSpec**](V1SelfSubjectAccessReviewSpec.md) | | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md index 13430029df..68c8a518f2 100644 --- a/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectAccessReviewSpec.md @@ -1,11 +1,13 @@ + # V1SelfSubjectAccessReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] +**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] diff --git a/kubernetes/docs/V1SelfSubjectRulesReview.md b/kubernetes/docs/V1SelfSubjectRulesReview.md index d637cbd5da..499de45872 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1SelfSubjectRulesReview.md @@ -1,14 +1,16 @@ + # V1SelfSubjectRulesReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | Spec holds information about the request being evaluated. | -**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | Status is filled in by the server and indicates the set of actions a user can perform. | [optional] +**spec** | [**V1SelfSubjectRulesReviewSpec**](V1SelfSubjectRulesReviewSpec.md) | | +**status** | [**V1SubjectRulesReviewStatus**](V1SubjectRulesReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md index 04f1e85bd1..7f45dddd22 100644 --- a/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md +++ b/kubernetes/docs/V1SelfSubjectRulesReviewSpec.md @@ -1,7 +1,9 @@ + # V1SelfSubjectRulesReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **namespace** | **String** | Namespace to evaluate rules for. Required. | [optional] diff --git a/kubernetes/docs/V1ServerAddressByClientCIDR.md b/kubernetes/docs/V1ServerAddressByClientCIDR.md index 7a576d2c87..efb704ab39 100644 --- a/kubernetes/docs/V1ServerAddressByClientCIDR.md +++ b/kubernetes/docs/V1ServerAddressByClientCIDR.md @@ -1,7 +1,9 @@ + # V1ServerAddressByClientCIDR ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clientCIDR** | **String** | The CIDR with which clients can match their IP to figure out the server address that they should use. | diff --git a/kubernetes/docs/V1Service.md b/kubernetes/docs/V1Service.md index 02b1868125..3a211f17f9 100644 --- a/kubernetes/docs/V1Service.md +++ b/kubernetes/docs/V1Service.md @@ -1,14 +1,16 @@ + # V1Service ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1ServiceSpec**](V1ServiceSpec.md) | | [optional] +**status** | [**V1ServiceStatus**](V1ServiceStatus.md) | | [optional] diff --git a/kubernetes/docs/V1ServiceAccount.md b/kubernetes/docs/V1ServiceAccount.md index 498c2acbef..77ebe0d403 100644 --- a/kubernetes/docs/V1ServiceAccount.md +++ b/kubernetes/docs/V1ServiceAccount.md @@ -1,14 +1,16 @@ + # V1ServiceAccount ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **automountServiceAccountToken** | **Boolean** | AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. | [optional] **imagePullSecrets** | [**List<V1LocalObjectReference>**](V1LocalObjectReference.md) | ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **secrets** | [**List<V1ObjectReference>**](V1ObjectReference.md) | Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret | [optional] diff --git a/kubernetes/docs/V1ServiceAccountList.md b/kubernetes/docs/V1ServiceAccountList.md index 8cb8b6ffa8..0cb9c70ba0 100644 --- a/kubernetes/docs/V1ServiceAccountList.md +++ b/kubernetes/docs/V1ServiceAccountList.md @@ -1,13 +1,15 @@ + # V1ServiceAccountList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1ServiceAccount>**](V1ServiceAccount.md) | List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ServiceAccountTokenProjection.md b/kubernetes/docs/V1ServiceAccountTokenProjection.md index 0949d3d3ba..7362a60ea6 100644 --- a/kubernetes/docs/V1ServiceAccountTokenProjection.md +++ b/kubernetes/docs/V1ServiceAccountTokenProjection.md @@ -1,7 +1,9 @@ + # V1ServiceAccountTokenProjection ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audience** | **String** | Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. | [optional] diff --git a/kubernetes/docs/V1ServiceList.md b/kubernetes/docs/V1ServiceList.md index 3d02836226..c9c271412b 100644 --- a/kubernetes/docs/V1ServiceList.md +++ b/kubernetes/docs/V1ServiceList.md @@ -1,13 +1,15 @@ + # V1ServiceList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1Service>**](V1Service.md) | List of services | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1ServicePort.md b/kubernetes/docs/V1ServicePort.md index cb315f4fd1..a320fe5214 100644 --- a/kubernetes/docs/V1ServicePort.md +++ b/kubernetes/docs/V1ServicePort.md @@ -1,14 +1,16 @@ + # V1ServicePort ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. | [optional] **nodePort** | **Integer** | The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport | [optional] **port** | **Integer** | The port that will be exposed by this service. | **protocol** | **String** | The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. | [optional] -**targetPort** | [**IntOrString**](IntOrString.md) | Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service | [optional] +**targetPort** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/V1ServiceReference.md b/kubernetes/docs/V1ServiceReference.md index 40dc0dd4de..92c65b5668 100644 --- a/kubernetes/docs/V1ServiceReference.md +++ b/kubernetes/docs/V1ServiceReference.md @@ -1,11 +1,14 @@ + # V1ServiceReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name is the name of the service | [optional] **namespace** | **String** | Namespace is the namespace of the service | [optional] +**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] diff --git a/kubernetes/docs/V1ServiceSpec.md b/kubernetes/docs/V1ServiceSpec.md index 9cb3f6ff34..c853c8efde 100644 --- a/kubernetes/docs/V1ServiceSpec.md +++ b/kubernetes/docs/V1ServiceSpec.md @@ -1,7 +1,9 @@ + # V1ServiceSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clusterIP** | **String** | clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional] @@ -15,7 +17,7 @@ Name | Type | Description | Notes **publishNotReadyAddresses** | **Boolean** | publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. | [optional] **selector** | **Map<String, String>** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ | [optional] **sessionAffinity** | **String** | Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies | [optional] -**sessionAffinityConfig** | [**V1SessionAffinityConfig**](V1SessionAffinityConfig.md) | sessionAffinityConfig contains the configurations of session affinity. | [optional] +**sessionAffinityConfig** | [**V1SessionAffinityConfig**](V1SessionAffinityConfig.md) | | [optional] **type** | **String** | type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types | [optional] diff --git a/kubernetes/docs/V1ServiceStatus.md b/kubernetes/docs/V1ServiceStatus.md index b83f8ce46d..670116dc02 100644 --- a/kubernetes/docs/V1ServiceStatus.md +++ b/kubernetes/docs/V1ServiceStatus.md @@ -1,10 +1,12 @@ + # V1ServiceStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | LoadBalancer contains the current status of the load-balancer, if one is present. | [optional] +**loadBalancer** | [**V1LoadBalancerStatus**](V1LoadBalancerStatus.md) | | [optional] diff --git a/kubernetes/docs/V1SessionAffinityConfig.md b/kubernetes/docs/V1SessionAffinityConfig.md index 33a67238c2..c18eaa4943 100644 --- a/kubernetes/docs/V1SessionAffinityConfig.md +++ b/kubernetes/docs/V1SessionAffinityConfig.md @@ -1,10 +1,12 @@ + # V1SessionAffinityConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**clientIP** | [**V1ClientIPConfig**](V1ClientIPConfig.md) | clientIP contains the configurations of Client IP based session affinity. | [optional] +**clientIP** | [**V1ClientIPConfig**](V1ClientIPConfig.md) | | [optional] diff --git a/kubernetes/docs/V1StatefulSet.md b/kubernetes/docs/V1StatefulSet.md index d709f33037..2f13dba3d1 100644 --- a/kubernetes/docs/V1StatefulSet.md +++ b/kubernetes/docs/V1StatefulSet.md @@ -1,14 +1,16 @@ + # V1StatefulSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] +**spec** | [**V1StatefulSetSpec**](V1StatefulSetSpec.md) | | [optional] +**status** | [**V1StatefulSetStatus**](V1StatefulSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1StatefulSetCondition.md b/kubernetes/docs/V1StatefulSetCondition.md index 8a36667884..4b2efb643d 100644 --- a/kubernetes/docs/V1StatefulSetCondition.md +++ b/kubernetes/docs/V1StatefulSetCondition.md @@ -1,7 +1,9 @@ + # V1StatefulSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1StatefulSetList.md b/kubernetes/docs/V1StatefulSetList.md index f7ce8e6181..4ceeb6500a 100644 --- a/kubernetes/docs/V1StatefulSetList.md +++ b/kubernetes/docs/V1StatefulSetList.md @@ -1,7 +1,9 @@ + # V1StatefulSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1StatefulSetSpec.md b/kubernetes/docs/V1StatefulSetSpec.md index 0466f8fc88..0f3810fb4a 100644 --- a/kubernetes/docs/V1StatefulSetSpec.md +++ b/kubernetes/docs/V1StatefulSetSpec.md @@ -1,16 +1,18 @@ + # V1StatefulSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **podManagementPolicy** | **String** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **Integer** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **serviceName** | **String** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**updateStrategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**updateStrategy** | [**V1StatefulSetUpdateStrategy**](V1StatefulSetUpdateStrategy.md) | | [optional] **volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] diff --git a/kubernetes/docs/V1StatefulSetStatus.md b/kubernetes/docs/V1StatefulSetStatus.md index fe6171d296..122d17c4e3 100644 --- a/kubernetes/docs/V1StatefulSetStatus.md +++ b/kubernetes/docs/V1StatefulSetStatus.md @@ -1,7 +1,9 @@ + # V1StatefulSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collisionCount** | **Integer** | collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] diff --git a/kubernetes/docs/V1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1StatefulSetUpdateStrategy.md index d80b8c3ef6..cc20be73b7 100644 --- a/kubernetes/docs/V1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1StatefulSetUpdateStrategy.md @@ -1,10 +1,12 @@ + # V1StatefulSetUpdateStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1RollingUpdateStatefulSetStrategy**](V1RollingUpdateStatefulSetStrategy.md) | RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. | [optional] +**rollingUpdate** | [**V1RollingUpdateStatefulSetStrategy**](V1RollingUpdateStatefulSetStrategy.md) | | [optional] **type** | **String** | Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/V1Status.md b/kubernetes/docs/V1Status.md index 8a70abe74a..2bcf82545c 100644 --- a/kubernetes/docs/V1Status.md +++ b/kubernetes/docs/V1Status.md @@ -1,15 +1,17 @@ + # V1Status ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **code** | **Integer** | Suggested HTTP return code for this status, 0 if not set. | [optional] -**details** | [**V1StatusDetails**](V1StatusDetails.md) | Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. | [optional] +**details** | [**V1StatusDetails**](V1StatusDetails.md) | | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **message** | **String** | A human-readable description of the status of this operation. | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] **reason** | **String** | A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. | [optional] **status** | **String** | Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] diff --git a/kubernetes/docs/V1StatusCause.md b/kubernetes/docs/V1StatusCause.md index a20599a2de..d2f10210c6 100644 --- a/kubernetes/docs/V1StatusCause.md +++ b/kubernetes/docs/V1StatusCause.md @@ -1,7 +1,9 @@ + # V1StatusCause ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **field** | **String** | The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" | [optional] diff --git a/kubernetes/docs/V1StatusDetails.md b/kubernetes/docs/V1StatusDetails.md index 2335eac4a9..9b99c23908 100644 --- a/kubernetes/docs/V1StatusDetails.md +++ b/kubernetes/docs/V1StatusDetails.md @@ -1,7 +1,9 @@ + # V1StatusDetails ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **causes** | [**List<V1StatusCause>**](V1StatusCause.md) | The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. | [optional] diff --git a/kubernetes/docs/V1StorageClass.md b/kubernetes/docs/V1StorageClass.md index a2911d082c..4211f522ab 100644 --- a/kubernetes/docs/V1StorageClass.md +++ b/kubernetes/docs/V1StorageClass.md @@ -1,14 +1,16 @@ + # V1StorageClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowVolumeExpansion** | **Boolean** | AllowVolumeExpansion shows whether the storage class allow volume expand | [optional] **allowedTopologies** | [**List<V1TopologySelectorTerm>**](V1TopologySelectorTerm.md) | Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **mountOptions** | **List<String>** | Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. | [optional] **parameters** | **Map<String, String>** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] **provisioner** | **String** | Provisioner indicates the type of the provisioner. | diff --git a/kubernetes/docs/V1StorageClassList.md b/kubernetes/docs/V1StorageClassList.md index a41a7a1f53..ef57e94ca3 100644 --- a/kubernetes/docs/V1StorageClassList.md +++ b/kubernetes/docs/V1StorageClassList.md @@ -1,13 +1,15 @@ + # V1StorageClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1StorageClass>**](V1StorageClass.md) | Items is the list of StorageClasses | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md index ad98e1e14a..b211fdff4b 100644 --- a/kubernetes/docs/V1StorageOSPersistentVolumeSource.md +++ b/kubernetes/docs/V1StorageOSPersistentVolumeSource.md @@ -1,12 +1,14 @@ + # V1StorageOSPersistentVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] **readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1ObjectReference**](V1ObjectReference.md) | SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. | [optional] +**secretRef** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **volumeName** | **String** | VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] **volumeNamespace** | **String** | VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. | [optional] diff --git a/kubernetes/docs/V1StorageOSVolumeSource.md b/kubernetes/docs/V1StorageOSVolumeSource.md index 91e3b1f95b..ec547d2f9f 100644 --- a/kubernetes/docs/V1StorageOSVolumeSource.md +++ b/kubernetes/docs/V1StorageOSVolumeSource.md @@ -1,12 +1,14 @@ + # V1StorageOSVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] **readOnly** | **Boolean** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. | [optional] -**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. | [optional] +**secretRef** | [**V1LocalObjectReference**](V1LocalObjectReference.md) | | [optional] **volumeName** | **String** | VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] **volumeNamespace** | **String** | VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. | [optional] diff --git a/kubernetes/docs/V1Subject.md b/kubernetes/docs/V1Subject.md index 71daa43d09..96c2ca09b9 100644 --- a/kubernetes/docs/V1Subject.md +++ b/kubernetes/docs/V1Subject.md @@ -1,7 +1,9 @@ + # V1Subject ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroup** | **String** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] diff --git a/kubernetes/docs/V1SubjectAccessReview.md b/kubernetes/docs/V1SubjectAccessReview.md index a78a1ae33c..621dcd09c0 100644 --- a/kubernetes/docs/V1SubjectAccessReview.md +++ b/kubernetes/docs/V1SubjectAccessReview.md @@ -1,14 +1,16 @@ + # V1SubjectAccessReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1SubjectAccessReviewSpec**](V1SubjectAccessReviewSpec.md) | | +**status** | [**V1SubjectAccessReviewStatus**](V1SubjectAccessReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1SubjectAccessReviewSpec.md b/kubernetes/docs/V1SubjectAccessReviewSpec.md index 716c245a10..35905079c5 100644 --- a/kubernetes/docs/V1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1SubjectAccessReviewSpec.md @@ -1,13 +1,15 @@ + # V1SubjectAccessReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | [**Map<String, List<String>>**](List.md) | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] **groups** | **List<String>** | Groups is the groups you're testing for. | [optional] -**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**nonResourceAttributes** | [**V1NonResourceAttributes**](V1NonResourceAttributes.md) | | [optional] +**resourceAttributes** | [**V1ResourceAttributes**](V1ResourceAttributes.md) | | [optional] **uid** | **String** | UID information about the requesting user. | [optional] **user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups | [optional] diff --git a/kubernetes/docs/V1SubjectAccessReviewStatus.md b/kubernetes/docs/V1SubjectAccessReviewStatus.md index ebadfd8bcf..3f6d50bfe0 100644 --- a/kubernetes/docs/V1SubjectAccessReviewStatus.md +++ b/kubernetes/docs/V1SubjectAccessReviewStatus.md @@ -1,7 +1,9 @@ + # V1SubjectAccessReviewStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | diff --git a/kubernetes/docs/V1SubjectRulesReviewStatus.md b/kubernetes/docs/V1SubjectRulesReviewStatus.md index c942e5fa70..5d446b5da7 100644 --- a/kubernetes/docs/V1SubjectRulesReviewStatus.md +++ b/kubernetes/docs/V1SubjectRulesReviewStatus.md @@ -1,7 +1,9 @@ + # V1SubjectRulesReviewStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **evaluationError** | **String** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] diff --git a/kubernetes/docs/V1Sysctl.md b/kubernetes/docs/V1Sysctl.md index 3896bc6eea..e44b9f2395 100644 --- a/kubernetes/docs/V1Sysctl.md +++ b/kubernetes/docs/V1Sysctl.md @@ -1,7 +1,9 @@ + # V1Sysctl ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | Name of a property to set | diff --git a/kubernetes/docs/V1TCPSocketAction.md b/kubernetes/docs/V1TCPSocketAction.md index 8df0993a0d..f5a5a58230 100644 --- a/kubernetes/docs/V1TCPSocketAction.md +++ b/kubernetes/docs/V1TCPSocketAction.md @@ -1,11 +1,13 @@ + # V1TCPSocketAction ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **host** | **String** | Optional: Host name to connect to, defaults to the pod IP. | [optional] -**port** | [**IntOrString**](IntOrString.md) | Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. | +**port** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | diff --git a/kubernetes/docs/V1Taint.md b/kubernetes/docs/V1Taint.md index f0495f1238..d5b3b092d1 100644 --- a/kubernetes/docs/V1Taint.md +++ b/kubernetes/docs/V1Taint.md @@ -1,7 +1,9 @@ + # V1Taint ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **effect** | **String** | Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute. | diff --git a/kubernetes/docs/V1TokenReview.md b/kubernetes/docs/V1TokenReview.md index 5e00b89438..849d30d886 100644 --- a/kubernetes/docs/V1TokenReview.md +++ b/kubernetes/docs/V1TokenReview.md @@ -1,14 +1,16 @@ + # V1TokenReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] +**spec** | [**V1TokenReviewSpec**](V1TokenReviewSpec.md) | | +**status** | [**V1TokenReviewStatus**](V1TokenReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1TokenReviewSpec.md b/kubernetes/docs/V1TokenReviewSpec.md index e68631673f..e3a257c1ae 100644 --- a/kubernetes/docs/V1TokenReviewSpec.md +++ b/kubernetes/docs/V1TokenReviewSpec.md @@ -1,7 +1,9 @@ + # V1TokenReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audiences** | **List<String>** | Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. | [optional] diff --git a/kubernetes/docs/V1TokenReviewStatus.md b/kubernetes/docs/V1TokenReviewStatus.md index ecaa30fc89..862d5c0b8c 100644 --- a/kubernetes/docs/V1TokenReviewStatus.md +++ b/kubernetes/docs/V1TokenReviewStatus.md @@ -1,13 +1,15 @@ + # V1TokenReviewStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audiences** | **List<String>** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] **authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] **error** | **String** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1UserInfo**](V1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] +**user** | [**V1UserInfo**](V1UserInfo.md) | | [optional] diff --git a/kubernetes/docs/V1Toleration.md b/kubernetes/docs/V1Toleration.md index 9b553a0e42..5ae2b91b0a 100644 --- a/kubernetes/docs/V1Toleration.md +++ b/kubernetes/docs/V1Toleration.md @@ -1,7 +1,9 @@ + # V1Toleration ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **effect** | **String** | Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. | [optional] diff --git a/kubernetes/docs/V1TopologySelectorLabelRequirement.md b/kubernetes/docs/V1TopologySelectorLabelRequirement.md index 60bedde1d0..8002b2d5e7 100644 --- a/kubernetes/docs/V1TopologySelectorLabelRequirement.md +++ b/kubernetes/docs/V1TopologySelectorLabelRequirement.md @@ -1,7 +1,9 @@ + # V1TopologySelectorLabelRequirement ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **key** | **String** | The label key that the selector applies to. | diff --git a/kubernetes/docs/V1TopologySelectorTerm.md b/kubernetes/docs/V1TopologySelectorTerm.md index d9f5dcb46a..1500b00b0f 100644 --- a/kubernetes/docs/V1TopologySelectorTerm.md +++ b/kubernetes/docs/V1TopologySelectorTerm.md @@ -1,7 +1,9 @@ + # V1TopologySelectorTerm ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **matchLabelExpressions** | [**List<V1TopologySelectorLabelRequirement>**](V1TopologySelectorLabelRequirement.md) | A list of topology selector requirements by labels. | [optional] diff --git a/kubernetes/docs/V1TypedLocalObjectReference.md b/kubernetes/docs/V1TypedLocalObjectReference.md index 11b91064b5..e0725ab3f6 100644 --- a/kubernetes/docs/V1TypedLocalObjectReference.md +++ b/kubernetes/docs/V1TypedLocalObjectReference.md @@ -1,7 +1,9 @@ + # V1TypedLocalObjectReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroup** | **String** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. | [optional] diff --git a/kubernetes/docs/V1UserInfo.md b/kubernetes/docs/V1UserInfo.md index 7dfe4dbd6c..562f61f5d8 100644 --- a/kubernetes/docs/V1UserInfo.md +++ b/kubernetes/docs/V1UserInfo.md @@ -1,7 +1,9 @@ + # V1UserInfo ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | [**Map<String, List<String>>**](List.md) | Any additional information provided by the authenticator. | [optional] diff --git a/kubernetes/docs/V1Volume.md b/kubernetes/docs/V1Volume.md index f3eb094f9c..1ddf5deb12 100644 --- a/kubernetes/docs/V1Volume.md +++ b/kubernetes/docs/V1Volume.md @@ -1,38 +1,40 @@ + # V1Volume ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] -**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. | [optional] -**azureFile** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | AzureFile represents an Azure File Service mount on the host and bind mount to the pod. | [optional] -**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | CephFS represents a Ceph FS mount on the host that shares a pod's lifetime | [optional] -**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md | [optional] -**configMap** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMap represents a configMap that should populate this volume | [optional] -**csi** | [**V1CSIVolumeSource**](V1CSIVolumeSource.md) | CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). | [optional] -**downwardAPI** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] -**emptyDir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir | [optional] -**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. | [optional] -**flexVolume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. | [optional] -**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running | [optional] -**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] -**gitRepo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. | [optional] -**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md | [optional] -**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] -**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md | [optional] +**awsElasticBlockStore** | [**V1AWSElasticBlockStoreVolumeSource**](V1AWSElasticBlockStoreVolumeSource.md) | | [optional] +**azureDisk** | [**V1AzureDiskVolumeSource**](V1AzureDiskVolumeSource.md) | | [optional] +**azureFile** | [**V1AzureFileVolumeSource**](V1AzureFileVolumeSource.md) | | [optional] +**cephfs** | [**V1CephFSVolumeSource**](V1CephFSVolumeSource.md) | | [optional] +**cinder** | [**V1CinderVolumeSource**](V1CinderVolumeSource.md) | | [optional] +**configMap** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | | [optional] +**csi** | [**V1CSIVolumeSource**](V1CSIVolumeSource.md) | | [optional] +**downwardAPI** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | | [optional] +**emptyDir** | [**V1EmptyDirVolumeSource**](V1EmptyDirVolumeSource.md) | | [optional] +**fc** | [**V1FCVolumeSource**](V1FCVolumeSource.md) | | [optional] +**flexVolume** | [**V1FlexVolumeSource**](V1FlexVolumeSource.md) | | [optional] +**flocker** | [**V1FlockerVolumeSource**](V1FlockerVolumeSource.md) | | [optional] +**gcePersistentDisk** | [**V1GCEPersistentDiskVolumeSource**](V1GCEPersistentDiskVolumeSource.md) | | [optional] +**gitRepo** | [**V1GitRepoVolumeSource**](V1GitRepoVolumeSource.md) | | [optional] +**glusterfs** | [**V1GlusterfsVolumeSource**](V1GlusterfsVolumeSource.md) | | [optional] +**hostPath** | [**V1HostPathVolumeSource**](V1HostPathVolumeSource.md) | | [optional] +**iscsi** | [**V1ISCSIVolumeSource**](V1ISCSIVolumeSource.md) | | [optional] **name** | **String** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | -**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] -**persistentVolumeClaim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine | [optional] -**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | PortworxVolume represents a portworx volume attached and mounted on kubelets host machine | [optional] -**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | Items for all in one resources secrets, configmaps, and downward API | [optional] -**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | Quobyte represents a Quobyte mount on the host that shares a pod's lifetime | [optional] -**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md | [optional] -**scaleIO** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. | [optional] -**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret | [optional] -**storageos** | [**V1StorageOSVolumeSource**](V1StorageOSVolumeSource.md) | StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. | [optional] -**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine | [optional] +**nfs** | [**V1NFSVolumeSource**](V1NFSVolumeSource.md) | | [optional] +**persistentVolumeClaim** | [**V1PersistentVolumeClaimVolumeSource**](V1PersistentVolumeClaimVolumeSource.md) | | [optional] +**photonPersistentDisk** | [**V1PhotonPersistentDiskVolumeSource**](V1PhotonPersistentDiskVolumeSource.md) | | [optional] +**portworxVolume** | [**V1PortworxVolumeSource**](V1PortworxVolumeSource.md) | | [optional] +**projected** | [**V1ProjectedVolumeSource**](V1ProjectedVolumeSource.md) | | [optional] +**quobyte** | [**V1QuobyteVolumeSource**](V1QuobyteVolumeSource.md) | | [optional] +**rbd** | [**V1RBDVolumeSource**](V1RBDVolumeSource.md) | | [optional] +**scaleIO** | [**V1ScaleIOVolumeSource**](V1ScaleIOVolumeSource.md) | | [optional] +**secret** | [**V1SecretVolumeSource**](V1SecretVolumeSource.md) | | [optional] +**storageos** | [**V1StorageOSVolumeSource**](V1StorageOSVolumeSource.md) | | [optional] +**vsphereVolume** | [**V1VsphereVirtualDiskVolumeSource**](V1VsphereVirtualDiskVolumeSource.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeAttachment.md b/kubernetes/docs/V1VolumeAttachment.md index 9cc1939d2a..a7288f213d 100644 --- a/kubernetes/docs/V1VolumeAttachment.md +++ b/kubernetes/docs/V1VolumeAttachment.md @@ -1,14 +1,16 @@ + # V1VolumeAttachment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1VolumeAttachmentSpec**](V1VolumeAttachmentSpec.md) | Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. | -**status** | [**V1VolumeAttachmentStatus**](V1VolumeAttachmentStatus.md) | Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1VolumeAttachmentSpec**](V1VolumeAttachmentSpec.md) | | +**status** | [**V1VolumeAttachmentStatus**](V1VolumeAttachmentStatus.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeAttachmentList.md b/kubernetes/docs/V1VolumeAttachmentList.md index 6e38c1db02..7557d08bde 100644 --- a/kubernetes/docs/V1VolumeAttachmentList.md +++ b/kubernetes/docs/V1VolumeAttachmentList.md @@ -1,13 +1,15 @@ + # V1VolumeAttachmentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1VolumeAttachment>**](V1VolumeAttachment.md) | Items is the list of VolumeAttachments | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeAttachmentSource.md b/kubernetes/docs/V1VolumeAttachmentSource.md index 326588bd34..b66be34739 100644 --- a/kubernetes/docs/V1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1VolumeAttachmentSource.md @@ -1,9 +1,12 @@ + # V1VolumeAttachmentSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**inlineVolumeSpec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] **persistentVolumeName** | **String** | Name of the persistent volume to attach. | [optional] diff --git a/kubernetes/docs/V1VolumeAttachmentSpec.md b/kubernetes/docs/V1VolumeAttachmentSpec.md index 88bafbdd09..381d9ccff2 100644 --- a/kubernetes/docs/V1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1VolumeAttachmentSpec.md @@ -1,12 +1,14 @@ + # V1VolumeAttachmentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attacher** | **String** | Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | **nodeName** | **String** | The node that the volume should be attached to. | -**source** | [**V1VolumeAttachmentSource**](V1VolumeAttachmentSource.md) | Source represents the volume that should be attached. | +**source** | [**V1VolumeAttachmentSource**](V1VolumeAttachmentSource.md) | | diff --git a/kubernetes/docs/V1VolumeAttachmentStatus.md b/kubernetes/docs/V1VolumeAttachmentStatus.md index 9be19b04ff..08c448321a 100644 --- a/kubernetes/docs/V1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1VolumeAttachmentStatus.md @@ -1,13 +1,15 @@ + # V1VolumeAttachmentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attachError** | [**V1VolumeError**](V1VolumeError.md) | The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] +**attachError** | [**V1VolumeError**](V1VolumeError.md) | | [optional] **attached** | **Boolean** | Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | **attachmentMetadata** | **Map<String, String>** | Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] -**detachError** | [**V1VolumeError**](V1VolumeError.md) | The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. | [optional] +**detachError** | [**V1VolumeError**](V1VolumeError.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeDevice.md b/kubernetes/docs/V1VolumeDevice.md index 96fab7a02e..564838c030 100644 --- a/kubernetes/docs/V1VolumeDevice.md +++ b/kubernetes/docs/V1VolumeDevice.md @@ -1,7 +1,9 @@ + # V1VolumeDevice ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **devicePath** | **String** | devicePath is the path inside of the container that the device will be mapped to. | diff --git a/kubernetes/docs/V1VolumeError.md b/kubernetes/docs/V1VolumeError.md index b56ca35eac..66e825a647 100644 --- a/kubernetes/docs/V1VolumeError.md +++ b/kubernetes/docs/V1VolumeError.md @@ -1,7 +1,9 @@ + # V1VolumeError ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] diff --git a/kubernetes/docs/V1VolumeMount.md b/kubernetes/docs/V1VolumeMount.md index bf1fa04f3c..3c8bece331 100644 --- a/kubernetes/docs/V1VolumeMount.md +++ b/kubernetes/docs/V1VolumeMount.md @@ -1,7 +1,9 @@ + # V1VolumeMount ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **mountPath** | **String** | Path within the container at which the volume should be mounted. Must not contain ':'. | @@ -9,7 +11,7 @@ Name | Type | Description | Notes **name** | **String** | This must match the Name of a Volume. | **readOnly** | **Boolean** | Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. | [optional] **subPath** | **String** | Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). | [optional] -**subPathExpr** | **String** | Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. | [optional] +**subPathExpr** | **String** | Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15. | [optional] diff --git a/kubernetes/docs/V1VolumeNodeAffinity.md b/kubernetes/docs/V1VolumeNodeAffinity.md index d49131e2e0..1904a752bf 100644 --- a/kubernetes/docs/V1VolumeNodeAffinity.md +++ b/kubernetes/docs/V1VolumeNodeAffinity.md @@ -1,10 +1,12 @@ + # V1VolumeNodeAffinity ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**required** | [**V1NodeSelector**](V1NodeSelector.md) | Required specifies hard node constraints that must be met. | [optional] +**required** | [**V1NodeSelector**](V1NodeSelector.md) | | [optional] diff --git a/kubernetes/docs/V1VolumeProjection.md b/kubernetes/docs/V1VolumeProjection.md index 01a9bbcd7c..81fcf14647 100644 --- a/kubernetes/docs/V1VolumeProjection.md +++ b/kubernetes/docs/V1VolumeProjection.md @@ -1,13 +1,15 @@ + # V1VolumeProjection ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | information about the configMap data to project | [optional] -**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | information about the downwardAPI data to project | [optional] -**secret** | [**V1SecretProjection**](V1SecretProjection.md) | information about the secret data to project | [optional] -**serviceAccountToken** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | information about the serviceAccountToken data to project | [optional] +**configMap** | [**V1ConfigMapProjection**](V1ConfigMapProjection.md) | | [optional] +**downwardAPI** | [**V1DownwardAPIProjection**](V1DownwardAPIProjection.md) | | [optional] +**secret** | [**V1SecretProjection**](V1SecretProjection.md) | | [optional] +**serviceAccountToken** | [**V1ServiceAccountTokenProjection**](V1ServiceAccountTokenProjection.md) | | [optional] diff --git a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md index f370339643..941b974794 100644 --- a/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md +++ b/kubernetes/docs/V1VsphereVirtualDiskVolumeSource.md @@ -1,7 +1,9 @@ + # V1VsphereVirtualDiskVolumeSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **fsType** | **String** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] diff --git a/kubernetes/docs/V1WatchEvent.md b/kubernetes/docs/V1WatchEvent.md index ec32e680fd..d1fe2ebca4 100644 --- a/kubernetes/docs/V1WatchEvent.md +++ b/kubernetes/docs/V1WatchEvent.md @@ -1,10 +1,12 @@ + # V1WatchEvent ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. | +**_object** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | **type** | **String** | | diff --git a/kubernetes/docs/V1WeightedPodAffinityTerm.md b/kubernetes/docs/V1WeightedPodAffinityTerm.md index 681e580dfc..bc450dc608 100644 --- a/kubernetes/docs/V1WeightedPodAffinityTerm.md +++ b/kubernetes/docs/V1WeightedPodAffinityTerm.md @@ -1,10 +1,12 @@ + # V1WeightedPodAffinityTerm ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**podAffinityTerm** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | Required. A pod affinity term, associated with the corresponding weight. | +**podAffinityTerm** | [**V1PodAffinityTerm**](V1PodAffinityTerm.md) | | **weight** | **Integer** | weight associated with matching the corresponding podAffinityTerm, in the range 1-100. | diff --git a/kubernetes/docs/V1WindowsSecurityContextOptions.md b/kubernetes/docs/V1WindowsSecurityContextOptions.md new file mode 100644 index 0000000000..e486d26a68 --- /dev/null +++ b/kubernetes/docs/V1WindowsSecurityContextOptions.md @@ -0,0 +1,13 @@ + + +# V1WindowsSecurityContextOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**gmsaCredentialSpec** | **String** | GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. | [optional] +**gmsaCredentialSpecName** | **String** | GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. | [optional] + + + diff --git a/kubernetes/docs/V1alpha1AggregationRule.md b/kubernetes/docs/V1alpha1AggregationRule.md index f403a54ff8..09eb38c0f1 100644 --- a/kubernetes/docs/V1alpha1AggregationRule.md +++ b/kubernetes/docs/V1alpha1AggregationRule.md @@ -1,7 +1,9 @@ + # V1alpha1AggregationRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] diff --git a/kubernetes/docs/V1alpha1AuditSink.md b/kubernetes/docs/V1alpha1AuditSink.md index 9becae9bf3..5e107e8262 100644 --- a/kubernetes/docs/V1alpha1AuditSink.md +++ b/kubernetes/docs/V1alpha1AuditSink.md @@ -1,13 +1,15 @@ + # V1alpha1AuditSink ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1AuditSinkSpec**](V1alpha1AuditSinkSpec.md) | Spec defines the audit configuration spec | [optional] +**spec** | [**V1alpha1AuditSinkSpec**](V1alpha1AuditSinkSpec.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1AuditSinkList.md b/kubernetes/docs/V1alpha1AuditSinkList.md index 7fcbcbc95a..729b7807fe 100644 --- a/kubernetes/docs/V1alpha1AuditSinkList.md +++ b/kubernetes/docs/V1alpha1AuditSinkList.md @@ -1,7 +1,9 @@ + # V1alpha1AuditSinkList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1alpha1AuditSinkSpec.md b/kubernetes/docs/V1alpha1AuditSinkSpec.md index 898f985b5c..5695b5eb99 100644 --- a/kubernetes/docs/V1alpha1AuditSinkSpec.md +++ b/kubernetes/docs/V1alpha1AuditSinkSpec.md @@ -1,11 +1,13 @@ + # V1alpha1AuditSinkSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**policy** | [**V1alpha1Policy**](V1alpha1Policy.md) | Policy defines the policy for selecting which events should be sent to the webhook required | -**webhook** | [**V1alpha1Webhook**](V1alpha1Webhook.md) | Webhook to send events required | +**policy** | [**V1alpha1Policy**](V1alpha1Policy.md) | | +**webhook** | [**V1alpha1Webhook**](V1alpha1Webhook.md) | | diff --git a/kubernetes/docs/V1alpha1ClusterRole.md b/kubernetes/docs/V1alpha1ClusterRole.md index 712f4a1c9c..29da81da5e 100644 --- a/kubernetes/docs/V1alpha1ClusterRole.md +++ b/kubernetes/docs/V1alpha1ClusterRole.md @@ -1,13 +1,15 @@ + # V1alpha1ClusterRole ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregationRule** | [**V1alpha1AggregationRule**](V1alpha1AggregationRule.md) | AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. | [optional] +**aggregationRule** | [**V1alpha1AggregationRule**](V1alpha1AggregationRule.md) | | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**List<V1alpha1PolicyRule>**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] diff --git a/kubernetes/docs/V1alpha1ClusterRoleBinding.md b/kubernetes/docs/V1alpha1ClusterRoleBinding.md index e1569cf232..e8cd49cd71 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBinding.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBinding.md @@ -1,13 +1,15 @@ + # V1alpha1ClusterRoleBinding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**roleRef** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | | **subjects** | [**List<V1alpha1Subject>**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] diff --git a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md index 27f399d6b6..5b8be80bb7 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleBindingList.md @@ -1,13 +1,15 @@ + # V1alpha1ClusterRoleBindingList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1ClusterRoleBinding>**](V1alpha1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1ClusterRoleList.md b/kubernetes/docs/V1alpha1ClusterRoleList.md index 8a16dc45dd..27cfe2b929 100644 --- a/kubernetes/docs/V1alpha1ClusterRoleList.md +++ b/kubernetes/docs/V1alpha1ClusterRoleList.md @@ -1,13 +1,15 @@ + # V1alpha1ClusterRoleList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1ClusterRole>**](V1alpha1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1PodPreset.md b/kubernetes/docs/V1alpha1PodPreset.md index 5b8f7c57d3..a1979b325f 100644 --- a/kubernetes/docs/V1alpha1PodPreset.md +++ b/kubernetes/docs/V1alpha1PodPreset.md @@ -1,7 +1,9 @@ + # V1alpha1PodPreset ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1alpha1PodPresetList.md b/kubernetes/docs/V1alpha1PodPresetList.md index 56c1e07dc2..c6efbeb4c2 100644 --- a/kubernetes/docs/V1alpha1PodPresetList.md +++ b/kubernetes/docs/V1alpha1PodPresetList.md @@ -1,13 +1,15 @@ + # V1alpha1PodPresetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1PodPreset>**](V1alpha1PodPreset.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1PodPresetSpec.md b/kubernetes/docs/V1alpha1PodPresetSpec.md index 7b291b6b99..cac7af2302 100644 --- a/kubernetes/docs/V1alpha1PodPresetSpec.md +++ b/kubernetes/docs/V1alpha1PodPresetSpec.md @@ -1,12 +1,14 @@ + # V1alpha1PodPresetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **env** | [**List<V1EnvVar>**](V1EnvVar.md) | Env defines the collection of EnvVar to inject into containers. | [optional] **envFrom** | [**List<V1EnvFromSource>**](V1EnvFromSource.md) | EnvFrom defines the collection of EnvFromSource to inject into containers. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over a set of resources, in this case pods. Required. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **volumeMounts** | [**List<V1VolumeMount>**](V1VolumeMount.md) | VolumeMounts defines the collection of VolumeMount to inject into containers. | [optional] **volumes** | [**List<V1Volume>**](V1Volume.md) | Volumes defines the collection of Volume to inject into the pod. | [optional] diff --git a/kubernetes/docs/V1alpha1Policy.md b/kubernetes/docs/V1alpha1Policy.md index 3d2e556a00..2b0f1b04a7 100644 --- a/kubernetes/docs/V1alpha1Policy.md +++ b/kubernetes/docs/V1alpha1Policy.md @@ -1,7 +1,9 @@ + # V1alpha1Policy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **level** | **String** | The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required | diff --git a/kubernetes/docs/V1alpha1PolicyRule.md b/kubernetes/docs/V1alpha1PolicyRule.md index fef3ed50ea..1de59281f1 100644 --- a/kubernetes/docs/V1alpha1PolicyRule.md +++ b/kubernetes/docs/V1alpha1PolicyRule.md @@ -1,7 +1,9 @@ + # V1alpha1PolicyRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] diff --git a/kubernetes/docs/V1alpha1PriorityClass.md b/kubernetes/docs/V1alpha1PriorityClass.md index af4cd26ba3..fe62431cb4 100644 --- a/kubernetes/docs/V1alpha1PriorityClass.md +++ b/kubernetes/docs/V1alpha1PriorityClass.md @@ -1,14 +1,17 @@ + # V1alpha1PriorityClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **description** | **String** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] **globalDefault** | **Boolean** | globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **value** | **Integer** | The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | diff --git a/kubernetes/docs/V1alpha1PriorityClassList.md b/kubernetes/docs/V1alpha1PriorityClassList.md index bb7e15a41c..c6280da784 100644 --- a/kubernetes/docs/V1alpha1PriorityClassList.md +++ b/kubernetes/docs/V1alpha1PriorityClassList.md @@ -1,13 +1,15 @@ + # V1alpha1PriorityClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1PriorityClass>**](V1alpha1PriorityClass.md) | items is the list of PriorityClasses | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1Role.md b/kubernetes/docs/V1alpha1Role.md index 65e5153cf5..e520ddf188 100644 --- a/kubernetes/docs/V1alpha1Role.md +++ b/kubernetes/docs/V1alpha1Role.md @@ -1,12 +1,14 @@ + # V1alpha1Role ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**List<V1alpha1PolicyRule>**](V1alpha1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] diff --git a/kubernetes/docs/V1alpha1RoleBinding.md b/kubernetes/docs/V1alpha1RoleBinding.md index ed1fc8e45e..4f46a6c786 100644 --- a/kubernetes/docs/V1alpha1RoleBinding.md +++ b/kubernetes/docs/V1alpha1RoleBinding.md @@ -1,13 +1,15 @@ + # V1alpha1RoleBinding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**roleRef** | [**V1alpha1RoleRef**](V1alpha1RoleRef.md) | | **subjects** | [**List<V1alpha1Subject>**](V1alpha1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] diff --git a/kubernetes/docs/V1alpha1RoleBindingList.md b/kubernetes/docs/V1alpha1RoleBindingList.md index 91af652a51..22831cae04 100644 --- a/kubernetes/docs/V1alpha1RoleBindingList.md +++ b/kubernetes/docs/V1alpha1RoleBindingList.md @@ -1,13 +1,15 @@ + # V1alpha1RoleBindingList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1RoleBinding>**](V1alpha1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1RoleList.md b/kubernetes/docs/V1alpha1RoleList.md index b97ff49ad1..e2df66d499 100644 --- a/kubernetes/docs/V1alpha1RoleList.md +++ b/kubernetes/docs/V1alpha1RoleList.md @@ -1,13 +1,15 @@ + # V1alpha1RoleList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1Role>**](V1alpha1Role.md) | Items is a list of Roles | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1RoleRef.md b/kubernetes/docs/V1alpha1RoleRef.md index 174b415350..388aa79f26 100644 --- a/kubernetes/docs/V1alpha1RoleRef.md +++ b/kubernetes/docs/V1alpha1RoleRef.md @@ -1,7 +1,9 @@ + # V1alpha1RoleRef ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroup** | **String** | APIGroup is the group for the resource being referenced | diff --git a/kubernetes/docs/V1alpha1RuntimeClass.md b/kubernetes/docs/V1alpha1RuntimeClass.md index 71d704b841..3f0b46d782 100644 --- a/kubernetes/docs/V1alpha1RuntimeClass.md +++ b/kubernetes/docs/V1alpha1RuntimeClass.md @@ -1,13 +1,15 @@ + # V1alpha1RuntimeClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1alpha1RuntimeClassSpec**](V1alpha1RuntimeClassSpec.md) | Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1RuntimeClassSpec**](V1alpha1RuntimeClassSpec.md) | | diff --git a/kubernetes/docs/V1alpha1RuntimeClassList.md b/kubernetes/docs/V1alpha1RuntimeClassList.md index 2e287e60d0..b12d495736 100644 --- a/kubernetes/docs/V1alpha1RuntimeClassList.md +++ b/kubernetes/docs/V1alpha1RuntimeClassList.md @@ -1,13 +1,15 @@ + # V1alpha1RuntimeClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1RuntimeClass>**](V1alpha1RuntimeClass.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1RuntimeClassSpec.md b/kubernetes/docs/V1alpha1RuntimeClassSpec.md index 181e3d4ca6..72d65732f5 100644 --- a/kubernetes/docs/V1alpha1RuntimeClassSpec.md +++ b/kubernetes/docs/V1alpha1RuntimeClassSpec.md @@ -1,7 +1,9 @@ + # V1alpha1RuntimeClassSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **runtimeHandler** | **String** | RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable. | diff --git a/kubernetes/docs/V1alpha1ServiceReference.md b/kubernetes/docs/V1alpha1ServiceReference.md index 57257b12ca..9b02b6f75c 100644 --- a/kubernetes/docs/V1alpha1ServiceReference.md +++ b/kubernetes/docs/V1alpha1ServiceReference.md @@ -1,12 +1,15 @@ + # V1alpha1ServiceReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | `name` is the name of the service. Required | **namespace** | **String** | `namespace` is the namespace of the service. Required | **path** | **String** | `path` is an optional URL path which will be sent in any request to this service. | [optional] +**port** | **Integer** | If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). | [optional] diff --git a/kubernetes/docs/V1alpha1Subject.md b/kubernetes/docs/V1alpha1Subject.md index 85a6e8eecc..3bbdb941c8 100644 --- a/kubernetes/docs/V1alpha1Subject.md +++ b/kubernetes/docs/V1alpha1Subject.md @@ -1,7 +1,9 @@ + # V1alpha1Subject ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. | [optional] diff --git a/kubernetes/docs/V1alpha1VolumeAttachment.md b/kubernetes/docs/V1alpha1VolumeAttachment.md index 04ccf11743..7fcbee391d 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachment.md +++ b/kubernetes/docs/V1alpha1VolumeAttachment.md @@ -1,14 +1,16 @@ + # V1alpha1VolumeAttachment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1alpha1VolumeAttachmentSpec**](V1alpha1VolumeAttachmentSpec.md) | Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. | -**status** | [**V1alpha1VolumeAttachmentStatus**](V1alpha1VolumeAttachmentStatus.md) | Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1alpha1VolumeAttachmentSpec**](V1alpha1VolumeAttachmentSpec.md) | | +**status** | [**V1alpha1VolumeAttachmentStatus**](V1alpha1VolumeAttachmentStatus.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentList.md b/kubernetes/docs/V1alpha1VolumeAttachmentList.md index 60fdf39af0..832fb6e0c1 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentList.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentList.md @@ -1,13 +1,15 @@ + # V1alpha1VolumeAttachmentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1alpha1VolumeAttachment>**](V1alpha1VolumeAttachment.md) | Items is the list of VolumeAttachments | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentSource.md b/kubernetes/docs/V1alpha1VolumeAttachmentSource.md index a19c4f5452..23d44f0828 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentSource.md @@ -1,9 +1,12 @@ + # V1alpha1VolumeAttachmentSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**inlineVolumeSpec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] **persistentVolumeName** | **String** | Name of the persistent volume to attach. | [optional] diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md b/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md index 5037950c59..a0d0253f88 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentSpec.md @@ -1,12 +1,14 @@ + # V1alpha1VolumeAttachmentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attacher** | **String** | Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | **nodeName** | **String** | The node that the volume should be attached to. | -**source** | [**V1alpha1VolumeAttachmentSource**](V1alpha1VolumeAttachmentSource.md) | Source represents the volume that should be attached. | +**source** | [**V1alpha1VolumeAttachmentSource**](V1alpha1VolumeAttachmentSource.md) | | diff --git a/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md b/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md index d03d70cdaf..eadefe5de9 100644 --- a/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1alpha1VolumeAttachmentStatus.md @@ -1,13 +1,15 @@ + # V1alpha1VolumeAttachmentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attachError** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] +**attachError** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | | [optional] **attached** | **Boolean** | Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | **attachmentMetadata** | **Map<String, String>** | Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] -**detachError** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. | [optional] +**detachError** | [**V1alpha1VolumeError**](V1alpha1VolumeError.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1VolumeError.md b/kubernetes/docs/V1alpha1VolumeError.md index b86e2d16b1..00dc95b783 100644 --- a/kubernetes/docs/V1alpha1VolumeError.md +++ b/kubernetes/docs/V1alpha1VolumeError.md @@ -1,7 +1,9 @@ + # V1alpha1VolumeError ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. | [optional] diff --git a/kubernetes/docs/V1alpha1Webhook.md b/kubernetes/docs/V1alpha1Webhook.md index 567ef7d665..3d6eda7e53 100644 --- a/kubernetes/docs/V1alpha1Webhook.md +++ b/kubernetes/docs/V1alpha1Webhook.md @@ -1,11 +1,13 @@ + # V1alpha1Webhook ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**clientConfig** | [**V1alpha1WebhookClientConfig**](V1alpha1WebhookClientConfig.md) | ClientConfig holds the connection parameters for the webhook required | -**throttle** | [**V1alpha1WebhookThrottleConfig**](V1alpha1WebhookThrottleConfig.md) | Throttle holds the options for throttling the webhook | [optional] +**clientConfig** | [**V1alpha1WebhookClientConfig**](V1alpha1WebhookClientConfig.md) | | +**throttle** | [**V1alpha1WebhookThrottleConfig**](V1alpha1WebhookThrottleConfig.md) | | [optional] diff --git a/kubernetes/docs/V1alpha1WebhookClientConfig.md b/kubernetes/docs/V1alpha1WebhookClientConfig.md index dcdec36079..7c9b5cb3eb 100644 --- a/kubernetes/docs/V1alpha1WebhookClientConfig.md +++ b/kubernetes/docs/V1alpha1WebhookClientConfig.md @@ -1,11 +1,13 @@ + # V1alpha1WebhookClientConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caBundle** | **byte[]** | `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. | [optional] -**service** | [**V1alpha1ServiceReference**](V1alpha1ServiceReference.md) | `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. | [optional] +**service** | [**V1alpha1ServiceReference**](V1alpha1ServiceReference.md) | | [optional] **url** | **String** | `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. | [optional] diff --git a/kubernetes/docs/V1alpha1WebhookThrottleConfig.md b/kubernetes/docs/V1alpha1WebhookThrottleConfig.md index cc9c0a5765..d0f78081a1 100644 --- a/kubernetes/docs/V1alpha1WebhookThrottleConfig.md +++ b/kubernetes/docs/V1alpha1WebhookThrottleConfig.md @@ -1,7 +1,9 @@ + # V1alpha1WebhookThrottleConfig ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **burst** | **Long** | ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS | [optional] diff --git a/kubernetes/docs/V1beta1APIService.md b/kubernetes/docs/V1beta1APIService.md index 8d6d04a16a..8e9085d5cd 100644 --- a/kubernetes/docs/V1beta1APIService.md +++ b/kubernetes/docs/V1beta1APIService.md @@ -1,14 +1,16 @@ + # V1beta1APIService ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1APIServiceSpec**](V1beta1APIServiceSpec.md) | Spec contains information for locating and communicating with a server | [optional] -**status** | [**V1beta1APIServiceStatus**](V1beta1APIServiceStatus.md) | Status contains derived information about an API server | [optional] +**spec** | [**V1beta1APIServiceSpec**](V1beta1APIServiceSpec.md) | | [optional] +**status** | [**V1beta1APIServiceStatus**](V1beta1APIServiceStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1APIServiceCondition.md b/kubernetes/docs/V1beta1APIServiceCondition.md index 2110a796d2..854d8a7860 100644 --- a/kubernetes/docs/V1beta1APIServiceCondition.md +++ b/kubernetes/docs/V1beta1APIServiceCondition.md @@ -1,7 +1,9 @@ + # V1beta1APIServiceCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta1APIServiceList.md b/kubernetes/docs/V1beta1APIServiceList.md index c8619405f7..9cc226e2e4 100644 --- a/kubernetes/docs/V1beta1APIServiceList.md +++ b/kubernetes/docs/V1beta1APIServiceList.md @@ -1,7 +1,9 @@ + # V1beta1APIServiceList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1beta1APIServiceSpec.md b/kubernetes/docs/V1beta1APIServiceSpec.md index 1271b05e0a..f78db559eb 100644 --- a/kubernetes/docs/V1beta1APIServiceSpec.md +++ b/kubernetes/docs/V1beta1APIServiceSpec.md @@ -1,14 +1,16 @@ + # V1beta1APIServiceSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caBundle** | **byte[]** | CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. | [optional] **group** | **String** | Group is the API group name this server hosts | [optional] **groupPriorityMinimum** | **Integer** | GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s | **insecureSkipTLSVerify** | **Boolean** | InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. | [optional] -**service** | [**ApiregistrationV1beta1ServiceReference**](ApiregistrationV1beta1ServiceReference.md) | Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. | +**service** | [**ApiregistrationV1beta1ServiceReference**](ApiregistrationV1beta1ServiceReference.md) | | **version** | **String** | Version is the API version this server hosts. For example, \"v1\" | [optional] **versionPriority** | **Integer** | VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | diff --git a/kubernetes/docs/V1beta1APIServiceStatus.md b/kubernetes/docs/V1beta1APIServiceStatus.md index 98c953047b..f85f3a2d2a 100644 --- a/kubernetes/docs/V1beta1APIServiceStatus.md +++ b/kubernetes/docs/V1beta1APIServiceStatus.md @@ -1,7 +1,9 @@ + # V1beta1APIServiceStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**List<V1beta1APIServiceCondition>**](V1beta1APIServiceCondition.md) | Current service state of apiService. | [optional] diff --git a/kubernetes/docs/V1beta1AggregationRule.md b/kubernetes/docs/V1beta1AggregationRule.md index bb2c21ee73..e803b79173 100644 --- a/kubernetes/docs/V1beta1AggregationRule.md +++ b/kubernetes/docs/V1beta1AggregationRule.md @@ -1,7 +1,9 @@ + # V1beta1AggregationRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **clusterRoleSelectors** | [**List<V1LabelSelector>**](V1LabelSelector.md) | ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added | [optional] diff --git a/kubernetes/docs/V1beta1CSIDriver.md b/kubernetes/docs/V1beta1CSIDriver.md index f989e4ec86..31ca10824f 100644 --- a/kubernetes/docs/V1beta1CSIDriver.md +++ b/kubernetes/docs/V1beta1CSIDriver.md @@ -1,13 +1,15 @@ + # V1beta1CSIDriver ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1CSIDriverSpec**](V1beta1CSIDriverSpec.md) | Specification of the CSI Driver. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CSIDriverSpec**](V1beta1CSIDriverSpec.md) | | diff --git a/kubernetes/docs/V1beta1CSIDriverList.md b/kubernetes/docs/V1beta1CSIDriverList.md index c7bb39ade8..3597b87cc5 100644 --- a/kubernetes/docs/V1beta1CSIDriverList.md +++ b/kubernetes/docs/V1beta1CSIDriverList.md @@ -1,13 +1,15 @@ + # V1beta1CSIDriverList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1CSIDriver>**](V1beta1CSIDriver.md) | items is the list of CSIDriver | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CSIDriverSpec.md b/kubernetes/docs/V1beta1CSIDriverSpec.md index 9245f1157c..76fd21c972 100644 --- a/kubernetes/docs/V1beta1CSIDriverSpec.md +++ b/kubernetes/docs/V1beta1CSIDriverSpec.md @@ -1,7 +1,9 @@ + # V1beta1CSIDriverSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attachRequired** | **Boolean** | attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. | [optional] diff --git a/kubernetes/docs/V1beta1CSINode.md b/kubernetes/docs/V1beta1CSINode.md index 5e1f9addd6..05c3c2a48e 100644 --- a/kubernetes/docs/V1beta1CSINode.md +++ b/kubernetes/docs/V1beta1CSINode.md @@ -1,13 +1,15 @@ + # V1beta1CSINode ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata.name must be the Kubernetes node name. | [optional] -**spec** | [**V1beta1CSINodeSpec**](V1beta1CSINodeSpec.md) | spec is the specification of CSINode | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CSINodeSpec**](V1beta1CSINodeSpec.md) | | diff --git a/kubernetes/docs/V1beta1CSINodeDriver.md b/kubernetes/docs/V1beta1CSINodeDriver.md index 7cb68b5aa5..a251097de6 100644 --- a/kubernetes/docs/V1beta1CSINodeDriver.md +++ b/kubernetes/docs/V1beta1CSINodeDriver.md @@ -1,7 +1,9 @@ + # V1beta1CSINodeDriver ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver. | diff --git a/kubernetes/docs/V1beta1CSINodeList.md b/kubernetes/docs/V1beta1CSINodeList.md index 1ba5ee8a79..3220584179 100644 --- a/kubernetes/docs/V1beta1CSINodeList.md +++ b/kubernetes/docs/V1beta1CSINodeList.md @@ -1,13 +1,15 @@ + # V1beta1CSINodeList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1CSINode>**](V1beta1CSINode.md) | items is the list of CSINode | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CSINodeSpec.md b/kubernetes/docs/V1beta1CSINodeSpec.md index c81081cbc9..d4de3408f6 100644 --- a/kubernetes/docs/V1beta1CSINodeSpec.md +++ b/kubernetes/docs/V1beta1CSINodeSpec.md @@ -1,7 +1,9 @@ + # V1beta1CSINodeSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **drivers** | [**List<V1beta1CSINodeDriver>**](V1beta1CSINodeDriver.md) | drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty. | diff --git a/kubernetes/docs/V1beta1CertificateSigningRequest.md b/kubernetes/docs/V1beta1CertificateSigningRequest.md index 78e89d8991..94477def4b 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequest.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequest.md @@ -1,14 +1,16 @@ + # V1beta1CertificateSigningRequest ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | The certificate request itself and any additional information. | [optional] -**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.md) | Derived information about the request. | [optional] +**spec** | [**V1beta1CertificateSigningRequestSpec**](V1beta1CertificateSigningRequestSpec.md) | | [optional] +**status** | [**V1beta1CertificateSigningRequestStatus**](V1beta1CertificateSigningRequestStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md index 9c684bacb8..52ed96f205 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestCondition.md @@ -1,7 +1,9 @@ + # V1beta1CertificateSigningRequestCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastUpdateTime** | [**DateTime**](DateTime.md) | timestamp for the last update to this condition | [optional] diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestList.md b/kubernetes/docs/V1beta1CertificateSigningRequestList.md index e632bcbcbe..c6835a3636 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestList.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestList.md @@ -1,7 +1,9 @@ + # V1beta1CertificateSigningRequestList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md index ef1688c482..a6f8747b8b 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestSpec.md @@ -1,7 +1,9 @@ + # V1beta1CertificateSigningRequestSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | [**Map<String, List<String>>**](List.md) | Extra information about the requesting user. See user.Info interface for details. | [optional] diff --git a/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md b/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md index 185b014568..a16367d3c5 100644 --- a/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md +++ b/kubernetes/docs/V1beta1CertificateSigningRequestStatus.md @@ -1,7 +1,9 @@ + # V1beta1CertificateSigningRequestStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **certificate** | **byte[]** | If request was approved, the controller will place the issued certificate here. | [optional] diff --git a/kubernetes/docs/V1beta1ClusterRole.md b/kubernetes/docs/V1beta1ClusterRole.md index 2d7becfb41..18f5d31a56 100644 --- a/kubernetes/docs/V1beta1ClusterRole.md +++ b/kubernetes/docs/V1beta1ClusterRole.md @@ -1,13 +1,15 @@ + # V1beta1ClusterRole ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**aggregationRule** | [**V1beta1AggregationRule**](V1beta1AggregationRule.md) | AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. | [optional] +**aggregationRule** | [**V1beta1AggregationRule**](V1beta1AggregationRule.md) | | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**List<V1beta1PolicyRule>**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this ClusterRole | [optional] diff --git a/kubernetes/docs/V1beta1ClusterRoleBinding.md b/kubernetes/docs/V1beta1ClusterRoleBinding.md index df9013e52b..e92c3f8f78 100644 --- a/kubernetes/docs/V1beta1ClusterRoleBinding.md +++ b/kubernetes/docs/V1beta1ClusterRoleBinding.md @@ -1,13 +1,15 @@ + # V1beta1ClusterRoleBinding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**roleRef** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | | **subjects** | [**List<V1beta1Subject>**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] diff --git a/kubernetes/docs/V1beta1ClusterRoleBindingList.md b/kubernetes/docs/V1beta1ClusterRoleBindingList.md index 4f90df94cf..22a6e8add3 100644 --- a/kubernetes/docs/V1beta1ClusterRoleBindingList.md +++ b/kubernetes/docs/V1beta1ClusterRoleBindingList.md @@ -1,13 +1,15 @@ + # V1beta1ClusterRoleBindingList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1ClusterRoleBinding>**](V1beta1ClusterRoleBinding.md) | Items is a list of ClusterRoleBindings | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ClusterRoleList.md b/kubernetes/docs/V1beta1ClusterRoleList.md index 569474ece7..983605d1e3 100644 --- a/kubernetes/docs/V1beta1ClusterRoleList.md +++ b/kubernetes/docs/V1beta1ClusterRoleList.md @@ -1,13 +1,15 @@ + # V1beta1ClusterRoleList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1ClusterRole>**](V1beta1ClusterRole.md) | Items is a list of ClusterRoles | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ControllerRevision.md b/kubernetes/docs/V1beta1ControllerRevision.md index cc808647e7..384bad4c49 100644 --- a/kubernetes/docs/V1beta1ControllerRevision.md +++ b/kubernetes/docs/V1beta1ControllerRevision.md @@ -1,13 +1,15 @@ + # V1beta1ControllerRevision ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Data is the serialized representation of the state. | [optional] +**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **revision** | **Long** | Revision indicates the revision of the state represented by Data. | diff --git a/kubernetes/docs/V1beta1ControllerRevisionList.md b/kubernetes/docs/V1beta1ControllerRevisionList.md index 0a1a1c236b..95229b739d 100644 --- a/kubernetes/docs/V1beta1ControllerRevisionList.md +++ b/kubernetes/docs/V1beta1ControllerRevisionList.md @@ -1,13 +1,15 @@ + # V1beta1ControllerRevisionList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1ControllerRevision>**](V1beta1ControllerRevision.md) | Items is the list of ControllerRevisions | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CronJob.md b/kubernetes/docs/V1beta1CronJob.md index c9ddc21550..a9a83f2780 100644 --- a/kubernetes/docs/V1beta1CronJob.md +++ b/kubernetes/docs/V1beta1CronJob.md @@ -1,14 +1,16 @@ + # V1beta1CronJob ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1CronJobSpec**](V1beta1CronJobSpec.md) | Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1CronJobStatus**](V1beta1CronJobStatus.md) | Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1CronJobSpec**](V1beta1CronJobSpec.md) | | [optional] +**status** | [**V1beta1CronJobStatus**](V1beta1CronJobStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CronJobList.md b/kubernetes/docs/V1beta1CronJobList.md index 423881316f..f62878c392 100644 --- a/kubernetes/docs/V1beta1CronJobList.md +++ b/kubernetes/docs/V1beta1CronJobList.md @@ -1,13 +1,15 @@ + # V1beta1CronJobList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1CronJob>**](V1beta1CronJob.md) | items is the list of CronJobs. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CronJobSpec.md b/kubernetes/docs/V1beta1CronJobSpec.md index 07d35d6c71..d3486bffc6 100644 --- a/kubernetes/docs/V1beta1CronJobSpec.md +++ b/kubernetes/docs/V1beta1CronJobSpec.md @@ -1,12 +1,14 @@ + # V1beta1CronJobSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **concurrencyPolicy** | **String** | Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one | [optional] **failedJobsHistoryLimit** | **Integer** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**jobTemplate** | [**V1beta1JobTemplateSpec**](V1beta1JobTemplateSpec.md) | Specifies the job that will be created when executing a CronJob. | +**jobTemplate** | [**V1beta1JobTemplateSpec**](V1beta1JobTemplateSpec.md) | | **schedule** | **String** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | **startingDeadlineSeconds** | **Long** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] **successfulJobsHistoryLimit** | **Integer** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. | [optional] diff --git a/kubernetes/docs/V1beta1CronJobStatus.md b/kubernetes/docs/V1beta1CronJobStatus.md index f29284db9f..167572fed1 100644 --- a/kubernetes/docs/V1beta1CronJobStatus.md +++ b/kubernetes/docs/V1beta1CronJobStatus.md @@ -1,7 +1,9 @@ + # V1beta1CronJobStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md b/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md index dd2c6827bb..7a894f5616 100644 --- a/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md +++ b/kubernetes/docs/V1beta1CustomResourceColumnDefinition.md @@ -1,7 +1,9 @@ + # V1beta1CustomResourceColumnDefinition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **jsONPath** | **String** | JSONPath is a simple JSON path, i.e. with array notation. | diff --git a/kubernetes/docs/V1beta1CustomResourceConversion.md b/kubernetes/docs/V1beta1CustomResourceConversion.md index 9c12abc1cc..4f4192ec4f 100644 --- a/kubernetes/docs/V1beta1CustomResourceConversion.md +++ b/kubernetes/docs/V1beta1CustomResourceConversion.md @@ -1,12 +1,14 @@ + # V1beta1CustomResourceConversion ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conversionReviewVersions** | **List<String>** | ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. | [optional] -**strategy** | **String** | `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. | -**webhookClientConfig** | [**ApiextensionsV1beta1WebhookClientConfig**](ApiextensionsV1beta1WebhookClientConfig.md) | `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. | [optional] +**strategy** | **String** | `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false. | +**webhookClientConfig** | [**ApiextensionsV1beta1WebhookClientConfig**](ApiextensionsV1beta1WebhookClientConfig.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinition.md b/kubernetes/docs/V1beta1CustomResourceDefinition.md index e9369d981a..7ba7349ad4 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinition.md @@ -1,14 +1,16 @@ + # V1beta1CustomResourceDefinition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1CustomResourceDefinitionSpec**](V1beta1CustomResourceDefinitionSpec.md) | Spec describes how the user wants the resources to appear | -**status** | [**V1beta1CustomResourceDefinitionStatus**](V1beta1CustomResourceDefinitionStatus.md) | Status indicates the actual state of the CustomResourceDefinition | [optional] +**spec** | [**V1beta1CustomResourceDefinitionSpec**](V1beta1CustomResourceDefinitionSpec.md) | | +**status** | [**V1beta1CustomResourceDefinitionStatus**](V1beta1CustomResourceDefinitionStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md index a1b8685f8a..5bd1fceb7e 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionCondition.md @@ -1,14 +1,16 @@ + # V1beta1CustomResourceDefinitionCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] **message** | **String** | Human-readable message indicating details about last transition. | [optional] **reason** | **String** | Unique, one-word, CamelCase reason for the condition's last transition. | [optional] **status** | **String** | Status is the status of the condition. Can be True, False, Unknown. | -**type** | **String** | Type is the type of the condition. | +**type** | **String** | Type is the type of the condition. Types include Established, NamesAccepted and Terminating. | diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionList.md b/kubernetes/docs/V1beta1CustomResourceDefinitionList.md index 7cd901f64d..55c924f261 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionList.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionList.md @@ -1,7 +1,9 @@ + # V1beta1CustomResourceDefinitionList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md b/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md index 9482fa7b6e..2caff88b7d 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionNames.md @@ -1,7 +1,9 @@ + # V1beta1CustomResourceDefinitionNames ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **categories** | **List<String>** | Categories is a list of grouped resources custom resources belong to (e.g. 'all') | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md b/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md index e075865955..43451bef4a 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionSpec.md @@ -1,16 +1,19 @@ + # V1beta1CustomResourceDefinitionSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additionalPrinterColumns** | [**List<V1beta1CustomResourceColumnDefinition>**](V1beta1CustomResourceColumnDefinition.md) | AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. | [optional] -**conversion** | [**V1beta1CustomResourceConversion**](V1beta1CustomResourceConversion.md) | `conversion` defines conversion settings for the CRD. | [optional] +**conversion** | [**V1beta1CustomResourceConversion**](V1beta1CustomResourceConversion.md) | | [optional] **group** | **String** | Group is the group this resource belongs in | -**names** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | Names are the names used to describe this custom resource | +**names** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | | +**preserveUnknownFields** | **Boolean** | preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1. | [optional] **scope** | **String** | Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced | -**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive. | [optional] -**validation** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive. | [optional] +**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | | [optional] +**validation** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | | [optional] **version** | **String** | Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. | [optional] **versions** | [**List<V1beta1CustomResourceDefinitionVersion>**](V1beta1CustomResourceDefinitionVersion.md) | Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md b/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md index 72c1e9ddf2..c5986596b9 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionStatus.md @@ -1,10 +1,12 @@ + # V1beta1CustomResourceDefinitionStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**acceptedNames** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec. | +**acceptedNames** | [**V1beta1CustomResourceDefinitionNames**](V1beta1CustomResourceDefinitionNames.md) | | **conditions** | [**List<V1beta1CustomResourceDefinitionCondition>**](V1beta1CustomResourceDefinitionCondition.md) | Conditions indicate state for particular aspects of a CustomResourceDefinition | **storedVersions** | **List<String>** | StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field. | diff --git a/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md b/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md index eb0003556b..a6bb7ab3cd 100644 --- a/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md +++ b/kubernetes/docs/V1beta1CustomResourceDefinitionVersion.md @@ -1,15 +1,17 @@ + # V1beta1CustomResourceDefinitionVersion ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additionalPrinterColumns** | [**List<V1beta1CustomResourceColumnDefinition>**](V1beta1CustomResourceColumnDefinition.md) | AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null | [optional] **name** | **String** | Name is the version name, e.g. “v1”, “v2beta1”, etc. | -**schema** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. | [optional] +**schema** | [**V1beta1CustomResourceValidation**](V1beta1CustomResourceValidation.md) | | [optional] **served** | **Boolean** | Served is a flag enabling/disabling this version from being served via REST APIs | **storage** | **Boolean** | Storage flags the version as storage version. There must be exactly one flagged as storage version. | -**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. | [optional] +**subresources** | [**V1beta1CustomResourceSubresources**](V1beta1CustomResourceSubresources.md) | | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md b/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md index 0095fb7c9e..a1c1f61968 100644 --- a/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md +++ b/kubernetes/docs/V1beta1CustomResourceSubresourceScale.md @@ -1,10 +1,12 @@ + # V1beta1CustomResourceSubresourceScale ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**labelSelectorPath** | **String** | LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. | [optional] +**labelSelectorPath** | **String** | LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. | [optional] **specReplicasPath** | **String** | SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET. | **statusReplicasPath** | **String** | StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0. | diff --git a/kubernetes/docs/V1beta1CustomResourceSubresources.md b/kubernetes/docs/V1beta1CustomResourceSubresources.md index 054b5cd863..8a689a3994 100644 --- a/kubernetes/docs/V1beta1CustomResourceSubresources.md +++ b/kubernetes/docs/V1beta1CustomResourceSubresources.md @@ -1,11 +1,13 @@ + # V1beta1CustomResourceSubresources ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**scale** | [**V1beta1CustomResourceSubresourceScale**](V1beta1CustomResourceSubresourceScale.md) | Scale denotes the scale subresource for CustomResources | [optional] -**status** | **Object** | Status denotes the status subresource for CustomResources | [optional] +**scale** | [**V1beta1CustomResourceSubresourceScale**](V1beta1CustomResourceSubresourceScale.md) | | [optional] +**status** | [**Object**](.md) | Status denotes the status subresource for CustomResources | [optional] diff --git a/kubernetes/docs/V1beta1CustomResourceValidation.md b/kubernetes/docs/V1beta1CustomResourceValidation.md index 7dc90d8587..40b515a92a 100644 --- a/kubernetes/docs/V1beta1CustomResourceValidation.md +++ b/kubernetes/docs/V1beta1CustomResourceValidation.md @@ -1,10 +1,12 @@ + # V1beta1CustomResourceValidation ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**openAPIV3Schema** | [**V1beta1JSONSchemaProps**](V1beta1JSONSchemaProps.md) | OpenAPIV3Schema is the OpenAPI v3 schema to be validated against. | [optional] +**openAPIV3Schema** | [**V1beta1JSONSchemaProps**](V1beta1JSONSchemaProps.md) | | [optional] diff --git a/kubernetes/docs/V1beta1DaemonSet.md b/kubernetes/docs/V1beta1DaemonSet.md index 12da8daffc..0e4bd6e9a5 100644 --- a/kubernetes/docs/V1beta1DaemonSet.md +++ b/kubernetes/docs/V1beta1DaemonSet.md @@ -1,14 +1,16 @@ + # V1beta1DaemonSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1DaemonSetSpec**](V1beta1DaemonSetSpec.md) | | [optional] +**status** | [**V1beta1DaemonSetStatus**](V1beta1DaemonSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1DaemonSetCondition.md b/kubernetes/docs/V1beta1DaemonSetCondition.md index b0a1024725..3e7df51e35 100644 --- a/kubernetes/docs/V1beta1DaemonSetCondition.md +++ b/kubernetes/docs/V1beta1DaemonSetCondition.md @@ -1,7 +1,9 @@ + # V1beta1DaemonSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta1DaemonSetList.md b/kubernetes/docs/V1beta1DaemonSetList.md index 38602417a5..04393afd3e 100644 --- a/kubernetes/docs/V1beta1DaemonSetList.md +++ b/kubernetes/docs/V1beta1DaemonSetList.md @@ -1,13 +1,15 @@ + # V1beta1DaemonSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1DaemonSet>**](V1beta1DaemonSet.md) | A list of daemon sets. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1DaemonSetSpec.md b/kubernetes/docs/V1beta1DaemonSetSpec.md index 16b4a690d6..7a117bff98 100644 --- a/kubernetes/docs/V1beta1DaemonSetSpec.md +++ b/kubernetes/docs/V1beta1DaemonSetSpec.md @@ -1,15 +1,17 @@ + # V1beta1DaemonSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] **revisionHistoryLimit** | **Integer** | The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | **templateGeneration** | **Long** | DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. | [optional] -**updateStrategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**updateStrategy** | [**V1beta1DaemonSetUpdateStrategy**](V1beta1DaemonSetUpdateStrategy.md) | | [optional] diff --git a/kubernetes/docs/V1beta1DaemonSetStatus.md b/kubernetes/docs/V1beta1DaemonSetStatus.md index fbb8fb1a33..d1d9665c5e 100644 --- a/kubernetes/docs/V1beta1DaemonSetStatus.md +++ b/kubernetes/docs/V1beta1DaemonSetStatus.md @@ -1,7 +1,9 @@ + # V1beta1DaemonSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collisionCount** | **Integer** | Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] diff --git a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md index 1cb88b7b49..6d1fba031c 100644 --- a/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta1DaemonSetUpdateStrategy.md @@ -1,10 +1,12 @@ + # V1beta1DaemonSetUpdateStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**rollingUpdate** | [**V1beta1RollingUpdateDaemonSet**](V1beta1RollingUpdateDaemonSet.md) | | [optional] **type** | **String** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. | [optional] diff --git a/kubernetes/docs/V1beta1Event.md b/kubernetes/docs/V1beta1Event.md index 695ef65399..0b113c5c63 100644 --- a/kubernetes/docs/V1beta1Event.md +++ b/kubernetes/docs/V1beta1Event.md @@ -1,7 +1,9 @@ + # V1beta1Event ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **action** | **String** | What action was taken/failed regarding to the regarding object. | [optional] @@ -9,17 +11,17 @@ Name | Type | Description | Notes **deprecatedCount** | **Integer** | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] **deprecatedFirstTimestamp** | [**DateTime**](DateTime.md) | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] **deprecatedLastTimestamp** | [**DateTime**](DateTime.md) | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] -**deprecatedSource** | [**V1EventSource**](V1EventSource.md) | Deprecated field assuring backward compatibility with core.v1 Event type | [optional] +**deprecatedSource** | [**V1EventSource**](V1EventSource.md) | | [optional] **eventTime** | [**DateTime**](DateTime.md) | Required. Time when this Event was first observed. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **note** | **String** | Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. | [optional] **reason** | **String** | Why the action was taken. | [optional] -**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. | [optional] -**related** | [**V1ObjectReference**](V1ObjectReference.md) | Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. | [optional] +**regarding** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] +**related** | [**V1ObjectReference**](V1ObjectReference.md) | | [optional] **reportingController** | **String** | Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. | [optional] **reportingInstance** | **String** | ID of the controller instance, e.g. `kubelet-xyzf`. | [optional] -**series** | [**V1beta1EventSeries**](V1beta1EventSeries.md) | Data about the Event series this event represents or nil if it's a singleton Event. | [optional] +**series** | [**V1beta1EventSeries**](V1beta1EventSeries.md) | | [optional] **type** | **String** | Type of this event (Normal, Warning), new types could be added in the future. | [optional] diff --git a/kubernetes/docs/V1beta1EventList.md b/kubernetes/docs/V1beta1EventList.md index b7a670598d..0ae375b641 100644 --- a/kubernetes/docs/V1beta1EventList.md +++ b/kubernetes/docs/V1beta1EventList.md @@ -1,13 +1,15 @@ + # V1beta1EventList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1Event>**](V1beta1Event.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1EventSeries.md b/kubernetes/docs/V1beta1EventSeries.md index a139bde17a..9e0e187cff 100644 --- a/kubernetes/docs/V1beta1EventSeries.md +++ b/kubernetes/docs/V1beta1EventSeries.md @@ -1,12 +1,14 @@ + # V1beta1EventSeries ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **count** | **Integer** | Number of occurrences in this series up to the last heartbeat time | **lastObservedTime** | [**DateTime**](DateTime.md) | Time when last Event from the series was seen before last heartbeat. | -**state** | **String** | Information whether this series is ongoing or finished. | +**state** | **String** | Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 | diff --git a/kubernetes/docs/V1beta1Eviction.md b/kubernetes/docs/V1beta1Eviction.md index e4e10a8935..87c599f519 100644 --- a/kubernetes/docs/V1beta1Eviction.md +++ b/kubernetes/docs/V1beta1Eviction.md @@ -1,13 +1,15 @@ + # V1beta1Eviction ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**deleteOptions** | [**V1DeleteOptions**](V1DeleteOptions.md) | DeleteOptions may be provided | [optional] +**deleteOptions** | [**V1DeleteOptions**](V1DeleteOptions.md) | | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | ObjectMeta describes the pod that is being evicted. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ExternalDocumentation.md b/kubernetes/docs/V1beta1ExternalDocumentation.md index 735a0fc375..c8bc208fbe 100644 --- a/kubernetes/docs/V1beta1ExternalDocumentation.md +++ b/kubernetes/docs/V1beta1ExternalDocumentation.md @@ -1,7 +1,9 @@ + # V1beta1ExternalDocumentation ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **description** | **String** | | [optional] diff --git a/kubernetes/docs/V1beta1IPBlock.md b/kubernetes/docs/V1beta1IPBlock.md index b2c0dcac48..be4ad1170b 100644 --- a/kubernetes/docs/V1beta1IPBlock.md +++ b/kubernetes/docs/V1beta1IPBlock.md @@ -1,7 +1,9 @@ + # V1beta1IPBlock ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cidr** | **String** | CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\" | diff --git a/kubernetes/docs/V1beta1JSONSchemaProps.md b/kubernetes/docs/V1beta1JSONSchemaProps.md index 9ac1b227a8..76a44e3bfa 100644 --- a/kubernetes/docs/V1beta1JSONSchemaProps.md +++ b/kubernetes/docs/V1beta1JSONSchemaProps.md @@ -1,27 +1,29 @@ + # V1beta1JSONSchemaProps ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ref** | **String** | | [optional] -**schema** | **String** | | [optional] -**additionalItems** | **Object** | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] -**additionalProperties** | **Object** | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] +**$ref** | **String** | | [optional] +**$schema** | **String** | | [optional] +**additionalItems** | [**Object**](.md) | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] +**additionalProperties** | [**Object**](.md) | JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. | [optional] **allOf** | [**List<V1beta1JSONSchemaProps>**](V1beta1JSONSchemaProps.md) | | [optional] **anyOf** | [**List<V1beta1JSONSchemaProps>**](V1beta1JSONSchemaProps.md) | | [optional] -**_default** | **Object** | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] +**_default** | [**Object**](.md) | default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. | [optional] **definitions** | [**Map<String, V1beta1JSONSchemaProps>**](V1beta1JSONSchemaProps.md) | | [optional] **dependencies** | **Map<String, Object>** | | [optional] **description** | **String** | | [optional] **_enum** | **List<Object>** | | [optional] -**example** | **Object** | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] +**example** | [**Object**](.md) | JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. | [optional] **exclusiveMaximum** | **Boolean** | | [optional] **exclusiveMinimum** | **Boolean** | | [optional] **externalDocs** | [**V1beta1ExternalDocumentation**](V1beta1ExternalDocumentation.md) | | [optional] **format** | **String** | | [optional] **id** | **String** | | [optional] -**items** | **Object** | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] +**items** | [**Object**](.md) | JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. | [optional] **maxItems** | **Long** | | [optional] **maxLength** | **Long** | | [optional] **maxProperties** | **Long** | | [optional] @@ -41,6 +43,9 @@ Name | Type | Description | Notes **title** | **String** | | [optional] **type** | **String** | | [optional] **uniqueItems** | **Boolean** | | [optional] +**xKubernetesEmbeddedResource** | **Boolean** | x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). | [optional] +**xKubernetesIntOrString** | **Boolean** | x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more | [optional] +**xKubernetesPreserveUnknownFields** | **Boolean** | x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. | [optional] diff --git a/kubernetes/docs/V1beta1JobTemplateSpec.md b/kubernetes/docs/V1beta1JobTemplateSpec.md index 72d864944c..8705b27969 100644 --- a/kubernetes/docs/V1beta1JobTemplateSpec.md +++ b/kubernetes/docs/V1beta1JobTemplateSpec.md @@ -1,11 +1,13 @@ + # V1beta1JobTemplateSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] diff --git a/kubernetes/docs/V1beta1Lease.md b/kubernetes/docs/V1beta1Lease.md index a16cdc78f8..2e4800b31c 100644 --- a/kubernetes/docs/V1beta1Lease.md +++ b/kubernetes/docs/V1beta1Lease.md @@ -1,13 +1,15 @@ + # V1beta1Lease ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1LeaseSpec**](V1beta1LeaseSpec.md) | Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1LeaseSpec**](V1beta1LeaseSpec.md) | | [optional] diff --git a/kubernetes/docs/V1beta1LeaseList.md b/kubernetes/docs/V1beta1LeaseList.md index cd28597f2c..45933beec8 100644 --- a/kubernetes/docs/V1beta1LeaseList.md +++ b/kubernetes/docs/V1beta1LeaseList.md @@ -1,13 +1,15 @@ + # V1beta1LeaseList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1Lease>**](V1beta1Lease.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1LeaseSpec.md b/kubernetes/docs/V1beta1LeaseSpec.md index 8ac9d855fc..1c0c7260f0 100644 --- a/kubernetes/docs/V1beta1LeaseSpec.md +++ b/kubernetes/docs/V1beta1LeaseSpec.md @@ -1,7 +1,9 @@ + # V1beta1LeaseSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **acquireTime** | [**DateTime**](DateTime.md) | acquireTime is a time when the current lease was acquired. | [optional] diff --git a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md index 1bcfe547c4..593e9e65ca 100644 --- a/kubernetes/docs/V1beta1LocalSubjectAccessReview.md +++ b/kubernetes/docs/V1beta1LocalSubjectAccessReview.md @@ -1,14 +1,16 @@ + # V1beta1LocalSubjectAccessReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1MutatingWebhook.md b/kubernetes/docs/V1beta1MutatingWebhook.md new file mode 100644 index 0000000000..288f2d2516 --- /dev/null +++ b/kubernetes/docs/V1beta1MutatingWebhook.md @@ -0,0 +1,22 @@ + + +# V1beta1MutatingWebhook + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**admissionReviewVersions** | **List<String>** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. | [optional] +**clientConfig** | [**AdmissionregistrationV1beta1WebhookClientConfig**](AdmissionregistrationV1beta1WebhookClientConfig.md) | | +**failurePolicy** | **String** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. | [optional] +**matchPolicy** | **String** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" | [optional] +**name** | **String** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | +**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**reinvocationPolicy** | **String** | reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". | [optional] +**rules** | [**List<V1beta1RuleWithOperations>**](V1beta1RuleWithOperations.md) | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] +**sideEffects** | **String** | SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. | [optional] +**timeoutSeconds** | **Integer** | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. | [optional] + + + diff --git a/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md b/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md index bab551d564..bc0db6a54e 100644 --- a/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md +++ b/kubernetes/docs/V1beta1MutatingWebhookConfiguration.md @@ -1,13 +1,15 @@ + # V1beta1MutatingWebhookConfiguration ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**webhooks** | [**List<V1beta1Webhook>**](V1beta1Webhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**webhooks** | [**List<V1beta1MutatingWebhook>**](V1beta1MutatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] diff --git a/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md b/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md index 42cbbecb27..ccad07a021 100644 --- a/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1beta1MutatingWebhookConfigurationList.md @@ -1,13 +1,15 @@ + # V1beta1MutatingWebhookConfigurationList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1MutatingWebhookConfiguration>**](V1beta1MutatingWebhookConfiguration.md) | List of MutatingWebhookConfiguration. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicy.md b/kubernetes/docs/V1beta1NetworkPolicy.md index d6667a0d71..751d190a4f 100644 --- a/kubernetes/docs/V1beta1NetworkPolicy.md +++ b/kubernetes/docs/V1beta1NetworkPolicy.md @@ -1,13 +1,15 @@ + # V1beta1NetworkPolicy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1NetworkPolicySpec**](V1beta1NetworkPolicySpec.md) | Specification of the desired behavior for this NetworkPolicy. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1NetworkPolicySpec**](V1beta1NetworkPolicySpec.md) | | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md b/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md index 2e3ec52b41..9d6ace78e3 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md +++ b/kubernetes/docs/V1beta1NetworkPolicyEgressRule.md @@ -1,7 +1,9 @@ + # V1beta1NetworkPolicyEgressRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ports** | [**List<V1beta1NetworkPolicyPort>**](V1beta1NetworkPolicyPort.md) | List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md b/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md index 878f15a15c..8652ccfcc4 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md +++ b/kubernetes/docs/V1beta1NetworkPolicyIngressRule.md @@ -1,7 +1,9 @@ + # V1beta1NetworkPolicyIngressRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **from** | [**List<V1beta1NetworkPolicyPeer>**](V1beta1NetworkPolicyPeer.md) | List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicyList.md b/kubernetes/docs/V1beta1NetworkPolicyList.md index a7c0e1bd18..f37c3e7b73 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyList.md +++ b/kubernetes/docs/V1beta1NetworkPolicyList.md @@ -1,13 +1,15 @@ + # V1beta1NetworkPolicyList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1NetworkPolicy>**](V1beta1NetworkPolicy.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicyPeer.md b/kubernetes/docs/V1beta1NetworkPolicyPeer.md index 23721087f1..915dd09e28 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPeer.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPeer.md @@ -1,12 +1,14 @@ + # V1beta1NetworkPolicyPeer ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ipBlock** | [**V1beta1IPBlock**](V1beta1IPBlock.md) | IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. | [optional] -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. | [optional] +**ipBlock** | [**V1beta1IPBlock**](V1beta1IPBlock.md) | | [optional] +**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicyPort.md b/kubernetes/docs/V1beta1NetworkPolicyPort.md index 808a43ff7a..236bc9f272 100644 --- a/kubernetes/docs/V1beta1NetworkPolicyPort.md +++ b/kubernetes/docs/V1beta1NetworkPolicyPort.md @@ -1,10 +1,12 @@ + # V1beta1NetworkPolicyPort ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**port** | [**IntOrString**](IntOrString.md) | If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. | [optional] +**port** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] **protocol** | **String** | Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. | [optional] diff --git a/kubernetes/docs/V1beta1NetworkPolicySpec.md b/kubernetes/docs/V1beta1NetworkPolicySpec.md index 93729f9544..b043f6a017 100644 --- a/kubernetes/docs/V1beta1NetworkPolicySpec.md +++ b/kubernetes/docs/V1beta1NetworkPolicySpec.md @@ -1,12 +1,14 @@ + # V1beta1NetworkPolicySpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **egress** | [**List<V1beta1NetworkPolicyEgressRule>**](V1beta1NetworkPolicyEgressRule.md) | List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 | [optional] **ingress** | [**List<V1beta1NetworkPolicyIngressRule>**](V1beta1NetworkPolicyIngressRule.md) | List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). | [optional] -**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. | +**podSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | **policyTypes** | **List<String>** | List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 | [optional] diff --git a/kubernetes/docs/V1beta1NonResourceAttributes.md b/kubernetes/docs/V1beta1NonResourceAttributes.md index b92497808d..bc3aa54cb4 100644 --- a/kubernetes/docs/V1beta1NonResourceAttributes.md +++ b/kubernetes/docs/V1beta1NonResourceAttributes.md @@ -1,7 +1,9 @@ + # V1beta1NonResourceAttributes ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **path** | **String** | Path is the URL path of the request | [optional] diff --git a/kubernetes/docs/V1beta1NonResourceRule.md b/kubernetes/docs/V1beta1NonResourceRule.md index 5abcf9443d..d4a54f1c61 100644 --- a/kubernetes/docs/V1beta1NonResourceRule.md +++ b/kubernetes/docs/V1beta1NonResourceRule.md @@ -1,7 +1,9 @@ + # V1beta1NonResourceRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **nonResourceURLs** | **List<String>** | NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1beta1PodDisruptionBudget.md b/kubernetes/docs/V1beta1PodDisruptionBudget.md index acb6b348c0..a967d31de3 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudget.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudget.md @@ -1,14 +1,16 @@ + # V1beta1PodDisruptionBudget ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | Specification of the desired behavior of the PodDisruptionBudget. | [optional] -**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | Most recently observed status of the PodDisruptionBudget. | [optional] +**spec** | [**V1beta1PodDisruptionBudgetSpec**](V1beta1PodDisruptionBudgetSpec.md) | | [optional] +**status** | [**V1beta1PodDisruptionBudgetStatus**](V1beta1PodDisruptionBudgetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md index 759ac6fb2e..e8368f39b9 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetList.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetList.md @@ -1,7 +1,9 @@ + # V1beta1PodDisruptionBudgetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md index 66ba30e954..e8340ddedd 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetSpec.md @@ -1,12 +1,14 @@ + # V1beta1PodDisruptionBudgetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxUnavailable** | [**IntOrString**](IntOrString.md) | An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". | [optional] -**minAvailable** | [**IntOrString**](IntOrString.md) | An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label query over pods whose evictions are managed by the disruption budget. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] +**minAvailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md index 0151d14ad1..8a57779e5c 100644 --- a/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md +++ b/kubernetes/docs/V1beta1PodDisruptionBudgetStatus.md @@ -1,7 +1,9 @@ + # V1beta1PodDisruptionBudgetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currentHealthy** | **Integer** | current number of healthy pods | diff --git a/kubernetes/docs/V1beta1PolicyRule.md b/kubernetes/docs/V1beta1PolicyRule.md index 454f018963..4ba7d22759 100644 --- a/kubernetes/docs/V1beta1PolicyRule.md +++ b/kubernetes/docs/V1beta1PolicyRule.md @@ -1,7 +1,9 @@ + # V1beta1PolicyRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. | [optional] diff --git a/kubernetes/docs/V1beta1PriorityClass.md b/kubernetes/docs/V1beta1PriorityClass.md index 4940f42998..05b6d80143 100644 --- a/kubernetes/docs/V1beta1PriorityClass.md +++ b/kubernetes/docs/V1beta1PriorityClass.md @@ -1,14 +1,17 @@ + # V1beta1PriorityClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **description** | **String** | description is an arbitrary string that usually provides guidelines on when this priority class should be used. | [optional] **globalDefault** | **Boolean** | globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**preemptionPolicy** | **String** | PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. | [optional] **value** | **Integer** | The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec. | diff --git a/kubernetes/docs/V1beta1PriorityClassList.md b/kubernetes/docs/V1beta1PriorityClassList.md index fbe80c9183..a8704ecbd1 100644 --- a/kubernetes/docs/V1beta1PriorityClassList.md +++ b/kubernetes/docs/V1beta1PriorityClassList.md @@ -1,13 +1,15 @@ + # V1beta1PriorityClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1PriorityClass>**](V1beta1PriorityClass.md) | items is the list of PriorityClasses | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ReplicaSet.md b/kubernetes/docs/V1beta1ReplicaSet.md index 4670031c83..eb8eff6733 100644 --- a/kubernetes/docs/V1beta1ReplicaSet.md +++ b/kubernetes/docs/V1beta1ReplicaSet.md @@ -1,14 +1,16 @@ + # V1beta1ReplicaSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1ReplicaSetSpec**](V1beta1ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta1ReplicaSetStatus**](V1beta1ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1ReplicaSetSpec**](V1beta1ReplicaSetSpec.md) | | [optional] +**status** | [**V1beta1ReplicaSetStatus**](V1beta1ReplicaSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ReplicaSetCondition.md b/kubernetes/docs/V1beta1ReplicaSetCondition.md index 8ac2d50d57..b61aa7cf7c 100644 --- a/kubernetes/docs/V1beta1ReplicaSetCondition.md +++ b/kubernetes/docs/V1beta1ReplicaSetCondition.md @@ -1,7 +1,9 @@ + # V1beta1ReplicaSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | The last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta1ReplicaSetList.md b/kubernetes/docs/V1beta1ReplicaSetList.md index d2a1a64d0c..b508de1a1a 100644 --- a/kubernetes/docs/V1beta1ReplicaSetList.md +++ b/kubernetes/docs/V1beta1ReplicaSetList.md @@ -1,13 +1,15 @@ + # V1beta1ReplicaSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1ReplicaSet>**](V1beta1ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ReplicaSetSpec.md b/kubernetes/docs/V1beta1ReplicaSetSpec.md index bbc6071653..49f72d0c42 100644 --- a/kubernetes/docs/V1beta1ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta1ReplicaSetSpec.md @@ -1,13 +1,15 @@ + # V1beta1ReplicaSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **Integer** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] diff --git a/kubernetes/docs/V1beta1ReplicaSetStatus.md b/kubernetes/docs/V1beta1ReplicaSetStatus.md index 73d5d10572..dbc52c509a 100644 --- a/kubernetes/docs/V1beta1ReplicaSetStatus.md +++ b/kubernetes/docs/V1beta1ReplicaSetStatus.md @@ -1,7 +1,9 @@ + # V1beta1ReplicaSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] diff --git a/kubernetes/docs/V1beta1ResourceAttributes.md b/kubernetes/docs/V1beta1ResourceAttributes.md index 9ed88db198..bfb03e950d 100644 --- a/kubernetes/docs/V1beta1ResourceAttributes.md +++ b/kubernetes/docs/V1beta1ResourceAttributes.md @@ -1,7 +1,9 @@ + # V1beta1ResourceAttributes ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **group** | **String** | Group is the API Group of the Resource. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1beta1ResourceRule.md b/kubernetes/docs/V1beta1ResourceRule.md index 419f9b2967..d8e651d7a9 100644 --- a/kubernetes/docs/V1beta1ResourceRule.md +++ b/kubernetes/docs/V1beta1ResourceRule.md @@ -1,7 +1,9 @@ + # V1beta1ResourceRule ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroups** | **List<String>** | APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. | [optional] diff --git a/kubernetes/docs/V1beta1Role.md b/kubernetes/docs/V1beta1Role.md index e3e4faa276..d6b369628b 100644 --- a/kubernetes/docs/V1beta1Role.md +++ b/kubernetes/docs/V1beta1Role.md @@ -1,12 +1,14 @@ + # V1beta1Role ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **rules** | [**List<V1beta1PolicyRule>**](V1beta1PolicyRule.md) | Rules holds all the PolicyRules for this Role | [optional] diff --git a/kubernetes/docs/V1beta1RoleBinding.md b/kubernetes/docs/V1beta1RoleBinding.md index 76280b7b9e..373e2573ba 100644 --- a/kubernetes/docs/V1beta1RoleBinding.md +++ b/kubernetes/docs/V1beta1RoleBinding.md @@ -1,13 +1,15 @@ + # V1beta1RoleBinding ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. | [optional] -**roleRef** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. | +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**roleRef** | [**V1beta1RoleRef**](V1beta1RoleRef.md) | | **subjects** | [**List<V1beta1Subject>**](V1beta1Subject.md) | Subjects holds references to the objects the role applies to. | [optional] diff --git a/kubernetes/docs/V1beta1RoleBindingList.md b/kubernetes/docs/V1beta1RoleBindingList.md index 5f9d42773b..584eeb1376 100644 --- a/kubernetes/docs/V1beta1RoleBindingList.md +++ b/kubernetes/docs/V1beta1RoleBindingList.md @@ -1,13 +1,15 @@ + # V1beta1RoleBindingList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1RoleBinding>**](V1beta1RoleBinding.md) | Items is a list of RoleBindings | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1RoleList.md b/kubernetes/docs/V1beta1RoleList.md index b26069b95b..5d0dc8a5db 100644 --- a/kubernetes/docs/V1beta1RoleList.md +++ b/kubernetes/docs/V1beta1RoleList.md @@ -1,13 +1,15 @@ + # V1beta1RoleList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1Role>**](V1beta1Role.md) | Items is a list of Roles | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard object's metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1RoleRef.md b/kubernetes/docs/V1beta1RoleRef.md index 311c525e30..2be8fcfae2 100644 --- a/kubernetes/docs/V1beta1RoleRef.md +++ b/kubernetes/docs/V1beta1RoleRef.md @@ -1,7 +1,9 @@ + # V1beta1RoleRef ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroup** | **String** | APIGroup is the group for the resource being referenced | diff --git a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md index 9c92ec4286..029ccc2111 100644 --- a/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta1RollingUpdateDaemonSet.md @@ -1,10 +1,12 @@ + # V1beta1RollingUpdateDaemonSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxUnavailable** | [**IntOrString**](IntOrString.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md index bbf289c16d..0dd8072a31 100644 --- a/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1beta1RollingUpdateStatefulSetStrategy.md @@ -1,7 +1,9 @@ + # V1beta1RollingUpdateStatefulSetStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **partition** | **Integer** | Partition indicates the ordinal at which the StatefulSet should be partitioned. | [optional] diff --git a/kubernetes/docs/V1beta1RuleWithOperations.md b/kubernetes/docs/V1beta1RuleWithOperations.md index 2a08ee7296..703e10c9da 100644 --- a/kubernetes/docs/V1beta1RuleWithOperations.md +++ b/kubernetes/docs/V1beta1RuleWithOperations.md @@ -1,7 +1,9 @@ + # V1beta1RuleWithOperations ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroups** | **List<String>** | APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. | [optional] diff --git a/kubernetes/docs/V1beta1RuntimeClass.md b/kubernetes/docs/V1beta1RuntimeClass.md index 334466bc70..6e678de197 100644 --- a/kubernetes/docs/V1beta1RuntimeClass.md +++ b/kubernetes/docs/V1beta1RuntimeClass.md @@ -1,13 +1,15 @@ + # V1beta1RuntimeClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **handler** | **String** | Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1RuntimeClassList.md b/kubernetes/docs/V1beta1RuntimeClassList.md index 50590a78a3..57b328e37e 100644 --- a/kubernetes/docs/V1beta1RuntimeClassList.md +++ b/kubernetes/docs/V1beta1RuntimeClassList.md @@ -1,13 +1,15 @@ + # V1beta1RuntimeClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1RuntimeClass>**](V1beta1RuntimeClass.md) | Items is a list of schema objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md index 142664df03..1d9ac76004 100644 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectAccessReview.md @@ -1,14 +1,16 @@ + # V1beta1SelfSubjectAccessReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated. user and groups must be empty | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1beta1SelfSubjectAccessReviewSpec**](V1beta1SelfSubjectAccessReviewSpec.md) | | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md index 27484310b9..6810b23d97 100644 --- a/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1beta1SelfSubjectAccessReviewSpec.md @@ -1,11 +1,13 @@ + # V1beta1SelfSubjectAccessReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**nonResourceAttributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**nonResourceAttributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | | [optional] +**resourceAttributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | | [optional] diff --git a/kubernetes/docs/V1beta1SelfSubjectRulesReview.md b/kubernetes/docs/V1beta1SelfSubjectRulesReview.md index 2aaa617f4d..6213315b81 100644 --- a/kubernetes/docs/V1beta1SelfSubjectRulesReview.md +++ b/kubernetes/docs/V1beta1SelfSubjectRulesReview.md @@ -1,14 +1,16 @@ + # V1beta1SelfSubjectRulesReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SelfSubjectRulesReviewSpec**](V1beta1SelfSubjectRulesReviewSpec.md) | Spec holds information about the request being evaluated. | -**status** | [**V1beta1SubjectRulesReviewStatus**](V1beta1SubjectRulesReviewStatus.md) | Status is filled in by the server and indicates the set of actions a user can perform. | [optional] +**spec** | [**V1beta1SelfSubjectRulesReviewSpec**](V1beta1SelfSubjectRulesReviewSpec.md) | | +**status** | [**V1beta1SubjectRulesReviewStatus**](V1beta1SubjectRulesReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1SelfSubjectRulesReviewSpec.md b/kubernetes/docs/V1beta1SelfSubjectRulesReviewSpec.md index ac7bfb451f..5890a0f122 100644 --- a/kubernetes/docs/V1beta1SelfSubjectRulesReviewSpec.md +++ b/kubernetes/docs/V1beta1SelfSubjectRulesReviewSpec.md @@ -1,7 +1,9 @@ + # V1beta1SelfSubjectRulesReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **namespace** | **String** | Namespace to evaluate rules for. Required. | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSet.md b/kubernetes/docs/V1beta1StatefulSet.md index 84bda09c1d..d0d815f819 100644 --- a/kubernetes/docs/V1beta1StatefulSet.md +++ b/kubernetes/docs/V1beta1StatefulSet.md @@ -1,14 +1,16 @@ + # V1beta1StatefulSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1StatefulSetSpec**](V1beta1StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1beta1StatefulSetStatus**](V1beta1StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] +**spec** | [**V1beta1StatefulSetSpec**](V1beta1StatefulSetSpec.md) | | [optional] +**status** | [**V1beta1StatefulSetStatus**](V1beta1StatefulSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSetCondition.md b/kubernetes/docs/V1beta1StatefulSetCondition.md index cd9c81853a..e75a2903ad 100644 --- a/kubernetes/docs/V1beta1StatefulSetCondition.md +++ b/kubernetes/docs/V1beta1StatefulSetCondition.md @@ -1,7 +1,9 @@ + # V1beta1StatefulSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSetList.md b/kubernetes/docs/V1beta1StatefulSetList.md index 9170cf4f63..0a571f7f14 100644 --- a/kubernetes/docs/V1beta1StatefulSetList.md +++ b/kubernetes/docs/V1beta1StatefulSetList.md @@ -1,7 +1,9 @@ + # V1beta1StatefulSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSetSpec.md b/kubernetes/docs/V1beta1StatefulSetSpec.md index 8368810f9f..ab7786c4d4 100644 --- a/kubernetes/docs/V1beta1StatefulSetSpec.md +++ b/kubernetes/docs/V1beta1StatefulSetSpec.md @@ -1,16 +1,18 @@ + # V1beta1StatefulSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **podManagementPolicy** | **String** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **Integer** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **serviceName** | **String** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**updateStrategy** | [**V1beta1StatefulSetUpdateStrategy**](V1beta1StatefulSetUpdateStrategy.md) | updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**updateStrategy** | [**V1beta1StatefulSetUpdateStrategy**](V1beta1StatefulSetUpdateStrategy.md) | | [optional] **volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSetStatus.md b/kubernetes/docs/V1beta1StatefulSetStatus.md index 364ca74dc4..61a981ae1f 100644 --- a/kubernetes/docs/V1beta1StatefulSetStatus.md +++ b/kubernetes/docs/V1beta1StatefulSetStatus.md @@ -1,7 +1,9 @@ + # V1beta1StatefulSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collisionCount** | **Integer** | collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] diff --git a/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md b/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md index c6b1836422..fa1e0031dd 100644 --- a/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta1StatefulSetUpdateStrategy.md @@ -1,10 +1,12 @@ + # V1beta1StatefulSetUpdateStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1beta1RollingUpdateStatefulSetStrategy**](V1beta1RollingUpdateStatefulSetStrategy.md) | RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. | [optional] +**rollingUpdate** | [**V1beta1RollingUpdateStatefulSetStrategy**](V1beta1RollingUpdateStatefulSetStrategy.md) | | [optional] **type** | **String** | Type indicates the type of the StatefulSetUpdateStrategy. | [optional] diff --git a/kubernetes/docs/V1beta1StorageClass.md b/kubernetes/docs/V1beta1StorageClass.md index d6b2282173..3e0970ad38 100644 --- a/kubernetes/docs/V1beta1StorageClass.md +++ b/kubernetes/docs/V1beta1StorageClass.md @@ -1,14 +1,16 @@ + # V1beta1StorageClass ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowVolumeExpansion** | **Boolean** | AllowVolumeExpansion shows whether the storage class allow volume expand | [optional] **allowedTopologies** | [**List<V1TopologySelectorTerm>**](V1TopologySelectorTerm.md) | Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. | [optional] **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **mountOptions** | **List<String>** | Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. | [optional] **parameters** | **Map<String, String>** | Parameters holds the parameters for the provisioner that should create volumes of this storage class. | [optional] **provisioner** | **String** | Provisioner indicates the type of the provisioner. | diff --git a/kubernetes/docs/V1beta1StorageClassList.md b/kubernetes/docs/V1beta1StorageClassList.md index ab97a42ff2..3210b8541e 100644 --- a/kubernetes/docs/V1beta1StorageClassList.md +++ b/kubernetes/docs/V1beta1StorageClassList.md @@ -1,13 +1,15 @@ + # V1beta1StorageClassList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1StorageClass>**](V1beta1StorageClass.md) | Items is the list of StorageClasses | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1Subject.md b/kubernetes/docs/V1beta1Subject.md index 227b3d2249..52d1c3c48e 100644 --- a/kubernetes/docs/V1beta1Subject.md +++ b/kubernetes/docs/V1beta1Subject.md @@ -1,7 +1,9 @@ + # V1beta1Subject ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiGroup** | **String** | APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. | [optional] diff --git a/kubernetes/docs/V1beta1SubjectAccessReview.md b/kubernetes/docs/V1beta1SubjectAccessReview.md index b63b713f9d..7221dd4fc4 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReview.md +++ b/kubernetes/docs/V1beta1SubjectAccessReview.md @@ -1,14 +1,16 @@ + # V1beta1SubjectAccessReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | Status is filled in by the server and indicates whether the request is allowed or not | [optional] +**spec** | [**V1beta1SubjectAccessReviewSpec**](V1beta1SubjectAccessReviewSpec.md) | | +**status** | [**V1beta1SubjectAccessReviewStatus**](V1beta1SubjectAccessReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md index 7444d3a911..4c72ae63c8 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md +++ b/kubernetes/docs/V1beta1SubjectAccessReviewSpec.md @@ -1,13 +1,15 @@ + # V1beta1SubjectAccessReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | [**Map<String, List<String>>**](List.md) | Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. | [optional] **group** | **List<String>** | Groups is the groups you're testing for. | [optional] -**nonResourceAttributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | NonResourceAttributes describes information for a non-resource access request | [optional] -**resourceAttributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | ResourceAuthorizationAttributes describes information for a resource access request | [optional] +**nonResourceAttributes** | [**V1beta1NonResourceAttributes**](V1beta1NonResourceAttributes.md) | | [optional] +**resourceAttributes** | [**V1beta1ResourceAttributes**](V1beta1ResourceAttributes.md) | | [optional] **uid** | **String** | UID information about the requesting user. | [optional] **user** | **String** | User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups | [optional] diff --git a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md b/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md index 2f13ef1af2..1fdd87175d 100644 --- a/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md +++ b/kubernetes/docs/V1beta1SubjectAccessReviewStatus.md @@ -1,7 +1,9 @@ + # V1beta1SubjectAccessReviewStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **allowed** | **Boolean** | Allowed is required. True if the action would be allowed, false otherwise. | diff --git a/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md b/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md index d3c7ab7f8a..35debf6451 100644 --- a/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md +++ b/kubernetes/docs/V1beta1SubjectRulesReviewStatus.md @@ -1,7 +1,9 @@ + # V1beta1SubjectRulesReviewStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **evaluationError** | **String** | EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. | [optional] diff --git a/kubernetes/docs/V1beta1TokenReview.md b/kubernetes/docs/V1beta1TokenReview.md index 71784ae594..c382f354d1 100644 --- a/kubernetes/docs/V1beta1TokenReview.md +++ b/kubernetes/docs/V1beta1TokenReview.md @@ -1,14 +1,16 @@ + # V1beta1TokenReview ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta1TokenReviewSpec**](V1beta1TokenReviewSpec.md) | Spec holds information about the request being evaluated | -**status** | [**V1beta1TokenReviewStatus**](V1beta1TokenReviewStatus.md) | Status is filled in by the server and indicates whether the request can be authenticated. | [optional] +**spec** | [**V1beta1TokenReviewSpec**](V1beta1TokenReviewSpec.md) | | +**status** | [**V1beta1TokenReviewStatus**](V1beta1TokenReviewStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1TokenReviewSpec.md b/kubernetes/docs/V1beta1TokenReviewSpec.md index 1ce97dfa02..06b6142562 100644 --- a/kubernetes/docs/V1beta1TokenReviewSpec.md +++ b/kubernetes/docs/V1beta1TokenReviewSpec.md @@ -1,7 +1,9 @@ + # V1beta1TokenReviewSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audiences** | **List<String>** | Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. | [optional] diff --git a/kubernetes/docs/V1beta1TokenReviewStatus.md b/kubernetes/docs/V1beta1TokenReviewStatus.md index 2471c4a8c9..827e2fa4b3 100644 --- a/kubernetes/docs/V1beta1TokenReviewStatus.md +++ b/kubernetes/docs/V1beta1TokenReviewStatus.md @@ -1,13 +1,15 @@ + # V1beta1TokenReviewStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **audiences** | **List<String>** | Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. | [optional] **authenticated** | **Boolean** | Authenticated indicates that the token was associated with a known user. | [optional] **error** | **String** | Error indicates that the token couldn't be checked | [optional] -**user** | [**V1beta1UserInfo**](V1beta1UserInfo.md) | User is the UserInfo associated with the provided token. | [optional] +**user** | [**V1beta1UserInfo**](V1beta1UserInfo.md) | | [optional] diff --git a/kubernetes/docs/V1beta1UserInfo.md b/kubernetes/docs/V1beta1UserInfo.md index b0b0c91cfe..114e9ed185 100644 --- a/kubernetes/docs/V1beta1UserInfo.md +++ b/kubernetes/docs/V1beta1UserInfo.md @@ -1,7 +1,9 @@ + # V1beta1UserInfo ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **extra** | [**Map<String, List<String>>**](List.md) | Any additional information provided by the authenticator. | [optional] diff --git a/kubernetes/docs/V1beta1Webhook.md b/kubernetes/docs/V1beta1ValidatingWebhook.md similarity index 62% rename from kubernetes/docs/V1beta1Webhook.md rename to kubernetes/docs/V1beta1ValidatingWebhook.md index 15cc4daf72..04294407bf 100644 --- a/kubernetes/docs/V1beta1Webhook.md +++ b/kubernetes/docs/V1beta1ValidatingWebhook.md @@ -1,14 +1,18 @@ -# V1beta1Webhook + +# V1beta1ValidatingWebhook ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **admissionReviewVersions** | **List<String>** | AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. | [optional] -**clientConfig** | [**AdmissionregistrationV1beta1WebhookClientConfig**](AdmissionregistrationV1beta1WebhookClientConfig.md) | ClientConfig defines how to communicate with the hook. Required | +**clientConfig** | [**AdmissionregistrationV1beta1WebhookClientConfig**](AdmissionregistrationV1beta1WebhookClientConfig.md) | | **failurePolicy** | **String** | FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. | [optional] +**matchPolicy** | **String** | matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" | [optional] **name** | **String** | The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. | -**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"runlevel\", \"operator\": \"NotIn\", \"values\": [ \"0\", \"1\" ] } ] } If instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"environment\", \"operator\": \"In\", \"values\": [ \"prod\", \"staging\" ] } ] } See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything. | [optional] +**namespaceSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**objectSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] **rules** | [**List<V1beta1RuleWithOperations>**](V1beta1RuleWithOperations.md) | Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. | [optional] **sideEffects** | **String** | SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. | [optional] **timeoutSeconds** | **Integer** | TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. | [optional] diff --git a/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md b/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md index 4ad51e9fb8..64ab85443a 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md +++ b/kubernetes/docs/V1beta1ValidatingWebhookConfiguration.md @@ -1,13 +1,15 @@ + # V1beta1ValidatingWebhookConfiguration ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. | [optional] -**webhooks** | [**List<V1beta1Webhook>**](V1beta1Webhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**webhooks** | [**List<V1beta1ValidatingWebhook>**](V1beta1ValidatingWebhook.md) | Webhooks is a list of webhooks and the affected resources and operations. | [optional] diff --git a/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md b/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md index acbfba87b6..a0452aa20d 100644 --- a/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md +++ b/kubernetes/docs/V1beta1ValidatingWebhookConfigurationList.md @@ -1,13 +1,15 @@ + # V1beta1ValidatingWebhookConfigurationList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1ValidatingWebhookConfiguration>**](V1beta1ValidatingWebhookConfiguration.md) | List of ValidatingWebhookConfiguration. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1VolumeAttachment.md b/kubernetes/docs/V1beta1VolumeAttachment.md index e45d8bbb31..6359db2f7b 100644 --- a/kubernetes/docs/V1beta1VolumeAttachment.md +++ b/kubernetes/docs/V1beta1VolumeAttachment.md @@ -1,14 +1,16 @@ + # V1beta1VolumeAttachment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1beta1VolumeAttachmentSpec**](V1beta1VolumeAttachmentSpec.md) | Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. | -**status** | [**V1beta1VolumeAttachmentStatus**](V1beta1VolumeAttachmentStatus.md) | Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta1VolumeAttachmentSpec**](V1beta1VolumeAttachmentSpec.md) | | +**status** | [**V1beta1VolumeAttachmentStatus**](V1beta1VolumeAttachmentStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta1VolumeAttachmentList.md b/kubernetes/docs/V1beta1VolumeAttachmentList.md index bbee413e0c..9b9ba6e24f 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentList.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentList.md @@ -1,13 +1,15 @@ + # V1beta1VolumeAttachmentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta1VolumeAttachment>**](V1beta1VolumeAttachment.md) | Items is the list of VolumeAttachments | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta1VolumeAttachmentSource.md b/kubernetes/docs/V1beta1VolumeAttachmentSource.md index c180e1e8b9..b095bf631c 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentSource.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentSource.md @@ -1,9 +1,12 @@ + # V1beta1VolumeAttachmentSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**inlineVolumeSpec** | [**V1PersistentVolumeSpec**](V1PersistentVolumeSpec.md) | | [optional] **persistentVolumeName** | **String** | Name of the persistent volume to attach. | [optional] diff --git a/kubernetes/docs/V1beta1VolumeAttachmentSpec.md b/kubernetes/docs/V1beta1VolumeAttachmentSpec.md index 25e974126d..7e7b481015 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentSpec.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentSpec.md @@ -1,12 +1,14 @@ + # V1beta1VolumeAttachmentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **attacher** | **String** | Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName(). | **nodeName** | **String** | The node that the volume should be attached to. | -**source** | [**V1beta1VolumeAttachmentSource**](V1beta1VolumeAttachmentSource.md) | Source represents the volume that should be attached. | +**source** | [**V1beta1VolumeAttachmentSource**](V1beta1VolumeAttachmentSource.md) | | diff --git a/kubernetes/docs/V1beta1VolumeAttachmentStatus.md b/kubernetes/docs/V1beta1VolumeAttachmentStatus.md index 16b0dc54a0..fa488e6996 100644 --- a/kubernetes/docs/V1beta1VolumeAttachmentStatus.md +++ b/kubernetes/docs/V1beta1VolumeAttachmentStatus.md @@ -1,13 +1,15 @@ + # V1beta1VolumeAttachmentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**attachError** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] +**attachError** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | | [optional] **attached** | **Boolean** | Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | **attachmentMetadata** | **Map<String, String>** | Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. | [optional] -**detachError** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. | [optional] +**detachError** | [**V1beta1VolumeError**](V1beta1VolumeError.md) | | [optional] diff --git a/kubernetes/docs/V1beta1VolumeError.md b/kubernetes/docs/V1beta1VolumeError.md index 586974483b..176f6a9ace 100644 --- a/kubernetes/docs/V1beta1VolumeError.md +++ b/kubernetes/docs/V1beta1VolumeError.md @@ -1,7 +1,9 @@ + # V1beta1VolumeError ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **String** | String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. | [optional] diff --git a/kubernetes/docs/V1beta2ControllerRevision.md b/kubernetes/docs/V1beta2ControllerRevision.md index 952b4f3a53..b1ce3b8c9a 100644 --- a/kubernetes/docs/V1beta2ControllerRevision.md +++ b/kubernetes/docs/V1beta2ControllerRevision.md @@ -1,13 +1,15 @@ + # V1beta2ControllerRevision ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] -**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | Data is the serialized representation of the state. | [optional] +**data** | [**RuntimeRawExtension**](RuntimeRawExtension.md) | | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] **revision** | **Long** | Revision indicates the revision of the state represented by Data. | diff --git a/kubernetes/docs/V1beta2ControllerRevisionList.md b/kubernetes/docs/V1beta2ControllerRevisionList.md index 3fd48dd05f..56f308c9a3 100644 --- a/kubernetes/docs/V1beta2ControllerRevisionList.md +++ b/kubernetes/docs/V1beta2ControllerRevisionList.md @@ -1,13 +1,15 @@ + # V1beta2ControllerRevisionList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta2ControllerRevision>**](V1beta2ControllerRevision.md) | Items is the list of ControllerRevisions | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta2DaemonSet.md b/kubernetes/docs/V1beta2DaemonSet.md index b027c2780d..c93f0ab0f9 100644 --- a/kubernetes/docs/V1beta2DaemonSet.md +++ b/kubernetes/docs/V1beta2DaemonSet.md @@ -1,14 +1,16 @@ + # V1beta2DaemonSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta2DaemonSetSpec**](V1beta2DaemonSetSpec.md) | The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta2DaemonSetStatus**](V1beta2DaemonSetStatus.md) | The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2DaemonSetSpec**](V1beta2DaemonSetSpec.md) | | [optional] +**status** | [**V1beta2DaemonSetStatus**](V1beta2DaemonSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta2DaemonSetCondition.md b/kubernetes/docs/V1beta2DaemonSetCondition.md index f1dc1e21bf..88004f95b2 100644 --- a/kubernetes/docs/V1beta2DaemonSetCondition.md +++ b/kubernetes/docs/V1beta2DaemonSetCondition.md @@ -1,7 +1,9 @@ + # V1beta2DaemonSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta2DaemonSetList.md b/kubernetes/docs/V1beta2DaemonSetList.md index b7a57702cf..6d14824b18 100644 --- a/kubernetes/docs/V1beta2DaemonSetList.md +++ b/kubernetes/docs/V1beta2DaemonSetList.md @@ -1,13 +1,15 @@ + # V1beta2DaemonSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta2DaemonSet>**](V1beta2DaemonSet.md) | A list of daemon sets. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta2DaemonSetSpec.md b/kubernetes/docs/V1beta2DaemonSetSpec.md index f4a80d46eb..8b8970bff7 100644 --- a/kubernetes/docs/V1beta2DaemonSetSpec.md +++ b/kubernetes/docs/V1beta2DaemonSetSpec.md @@ -1,14 +1,16 @@ + # V1beta2DaemonSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). | [optional] **revisionHistoryLimit** | **Integer** | The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | -**updateStrategy** | [**V1beta2DaemonSetUpdateStrategy**](V1beta2DaemonSetUpdateStrategy.md) | An update strategy to replace existing DaemonSet pods with new pods. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**updateStrategy** | [**V1beta2DaemonSetUpdateStrategy**](V1beta2DaemonSetUpdateStrategy.md) | | [optional] diff --git a/kubernetes/docs/V1beta2DaemonSetStatus.md b/kubernetes/docs/V1beta2DaemonSetStatus.md index 41b89f3594..d76c08ce90 100644 --- a/kubernetes/docs/V1beta2DaemonSetStatus.md +++ b/kubernetes/docs/V1beta2DaemonSetStatus.md @@ -1,7 +1,9 @@ + # V1beta2DaemonSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collisionCount** | **Integer** | Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] diff --git a/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md b/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md index 89ad93303c..3c61f162d6 100644 --- a/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta2DaemonSetUpdateStrategy.md @@ -1,10 +1,12 @@ + # V1beta2DaemonSetUpdateStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1beta2RollingUpdateDaemonSet**](V1beta2RollingUpdateDaemonSet.md) | Rolling update config params. Present only if type = \"RollingUpdate\". | [optional] +**rollingUpdate** | [**V1beta2RollingUpdateDaemonSet**](V1beta2RollingUpdateDaemonSet.md) | | [optional] **type** | **String** | Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/V1beta2Deployment.md b/kubernetes/docs/V1beta2Deployment.md index 399cfa16bd..db19657cd8 100644 --- a/kubernetes/docs/V1beta2Deployment.md +++ b/kubernetes/docs/V1beta2Deployment.md @@ -1,14 +1,16 @@ + # V1beta2Deployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata. | [optional] -**spec** | [**V1beta2DeploymentSpec**](V1beta2DeploymentSpec.md) | Specification of the desired behavior of the Deployment. | [optional] -**status** | [**V1beta2DeploymentStatus**](V1beta2DeploymentStatus.md) | Most recently observed status of the Deployment. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2DeploymentSpec**](V1beta2DeploymentSpec.md) | | [optional] +**status** | [**V1beta2DeploymentStatus**](V1beta2DeploymentStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta2DeploymentCondition.md b/kubernetes/docs/V1beta2DeploymentCondition.md index d8c399cff7..c07ab3eee9 100644 --- a/kubernetes/docs/V1beta2DeploymentCondition.md +++ b/kubernetes/docs/V1beta2DeploymentCondition.md @@ -1,7 +1,9 @@ + # V1beta2DeploymentCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta2DeploymentList.md b/kubernetes/docs/V1beta2DeploymentList.md index 130e892c10..0be0bb392f 100644 --- a/kubernetes/docs/V1beta2DeploymentList.md +++ b/kubernetes/docs/V1beta2DeploymentList.md @@ -1,13 +1,15 @@ + # V1beta2DeploymentList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta2Deployment>**](V1beta2Deployment.md) | Items is the list of Deployments. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta2DeploymentSpec.md b/kubernetes/docs/V1beta2DeploymentSpec.md index d3398b3c91..eb2283cc34 100644 --- a/kubernetes/docs/V1beta2DeploymentSpec.md +++ b/kubernetes/docs/V1beta2DeploymentSpec.md @@ -1,7 +1,9 @@ + # V1beta2DeploymentSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] @@ -9,9 +11,9 @@ Name | Type | Description | Notes **progressDeadlineSeconds** | **Integer** | The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. | [optional] **replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. | -**strategy** | [**V1beta2DeploymentStrategy**](V1beta2DeploymentStrategy.md) | The deployment strategy to use to replace existing pods with new ones. | [optional] -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template describes the pods that will be created. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**strategy** | [**V1beta2DeploymentStrategy**](V1beta2DeploymentStrategy.md) | | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | diff --git a/kubernetes/docs/V1beta2DeploymentStatus.md b/kubernetes/docs/V1beta2DeploymentStatus.md index e31e65985c..7f7dee05c8 100644 --- a/kubernetes/docs/V1beta2DeploymentStatus.md +++ b/kubernetes/docs/V1beta2DeploymentStatus.md @@ -1,7 +1,9 @@ + # V1beta2DeploymentStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. | [optional] diff --git a/kubernetes/docs/V1beta2DeploymentStrategy.md b/kubernetes/docs/V1beta2DeploymentStrategy.md index dd2e38be15..7ec1100793 100644 --- a/kubernetes/docs/V1beta2DeploymentStrategy.md +++ b/kubernetes/docs/V1beta2DeploymentStrategy.md @@ -1,10 +1,12 @@ + # V1beta2DeploymentStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1beta2RollingUpdateDeployment**](V1beta2RollingUpdateDeployment.md) | Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. | [optional] +**rollingUpdate** | [**V1beta2RollingUpdateDeployment**](V1beta2RollingUpdateDeployment.md) | | [optional] **type** | **String** | Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/V1beta2ReplicaSet.md b/kubernetes/docs/V1beta2ReplicaSet.md index 02656c3a34..63806627e5 100644 --- a/kubernetes/docs/V1beta2ReplicaSet.md +++ b/kubernetes/docs/V1beta2ReplicaSet.md @@ -1,14 +1,16 @@ + # V1beta2ReplicaSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata | [optional] -**spec** | [**V1beta2ReplicaSetSpec**](V1beta2ReplicaSetSpec.md) | Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] -**status** | [**V1beta2ReplicaSetStatus**](V1beta2ReplicaSetStatus.md) | Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ReplicaSetSpec**](V1beta2ReplicaSetSpec.md) | | [optional] +**status** | [**V1beta2ReplicaSetStatus**](V1beta2ReplicaSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta2ReplicaSetCondition.md b/kubernetes/docs/V1beta2ReplicaSetCondition.md index a45fbc60ed..63dbd0b2f4 100644 --- a/kubernetes/docs/V1beta2ReplicaSetCondition.md +++ b/kubernetes/docs/V1beta2ReplicaSetCondition.md @@ -1,7 +1,9 @@ + # V1beta2ReplicaSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | The last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta2ReplicaSetList.md b/kubernetes/docs/V1beta2ReplicaSetList.md index da3f1e271e..f83038bbf2 100644 --- a/kubernetes/docs/V1beta2ReplicaSetList.md +++ b/kubernetes/docs/V1beta2ReplicaSetList.md @@ -1,13 +1,15 @@ + # V1beta2ReplicaSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V1beta2ReplicaSet>**](V1beta2ReplicaSet.md) | List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V1beta2ReplicaSetSpec.md b/kubernetes/docs/V1beta2ReplicaSetSpec.md index d1257f63c4..d4b5e0eb65 100644 --- a/kubernetes/docs/V1beta2ReplicaSetSpec.md +++ b/kubernetes/docs/V1beta2ReplicaSetSpec.md @@ -1,13 +1,15 @@ + # V1beta2ReplicaSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **minReadySeconds** | **Integer** | Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) | [optional] **replicas** | **Integer** | Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | [optional] diff --git a/kubernetes/docs/V1beta2ReplicaSetStatus.md b/kubernetes/docs/V1beta2ReplicaSetStatus.md index 7264c92f9f..851f16e5d7 100644 --- a/kubernetes/docs/V1beta2ReplicaSetStatus.md +++ b/kubernetes/docs/V1beta2ReplicaSetStatus.md @@ -1,7 +1,9 @@ + # V1beta2ReplicaSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **availableReplicas** | **Integer** | The number of available replicas (ready for at least minReadySeconds) for this replica set. | [optional] diff --git a/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md b/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md index c2addcb6a4..cd00853699 100644 --- a/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md +++ b/kubernetes/docs/V1beta2RollingUpdateDaemonSet.md @@ -1,10 +1,12 @@ + # V1beta2RollingUpdateDaemonSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxUnavailable** | [**IntOrString**](IntOrString.md) | The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/V1beta2RollingUpdateDeployment.md b/kubernetes/docs/V1beta2RollingUpdateDeployment.md index d7a68f3cce..ddf983eaa8 100644 --- a/kubernetes/docs/V1beta2RollingUpdateDeployment.md +++ b/kubernetes/docs/V1beta2RollingUpdateDeployment.md @@ -1,11 +1,13 @@ + # V1beta2RollingUpdateDeployment ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**maxSurge** | [**IntOrString**](IntOrString.md) | The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. | [optional] -**maxUnavailable** | [**IntOrString**](IntOrString.md) | The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. | [optional] +**maxSurge** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] +**maxUnavailable** | [**IntOrString**](IntOrString.md) | IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. | [optional] diff --git a/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md b/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md index 628936702c..bcb625b19e 100644 --- a/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md +++ b/kubernetes/docs/V1beta2RollingUpdateStatefulSetStrategy.md @@ -1,7 +1,9 @@ + # V1beta2RollingUpdateStatefulSetStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **partition** | **Integer** | Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. | [optional] diff --git a/kubernetes/docs/V1beta2Scale.md b/kubernetes/docs/V1beta2Scale.md index d9d800ac72..52af1d18f6 100644 --- a/kubernetes/docs/V1beta2Scale.md +++ b/kubernetes/docs/V1beta2Scale.md @@ -1,14 +1,16 @@ + # V1beta2Scale ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. | [optional] -**spec** | [**V1beta2ScaleSpec**](V1beta2ScaleSpec.md) | defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. | [optional] -**status** | [**V1beta2ScaleStatus**](V1beta2ScaleStatus.md) | current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1beta2ScaleSpec**](V1beta2ScaleSpec.md) | | [optional] +**status** | [**V1beta2ScaleStatus**](V1beta2ScaleStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta2ScaleSpec.md b/kubernetes/docs/V1beta2ScaleSpec.md index 21f6d8d87f..d60e0102de 100644 --- a/kubernetes/docs/V1beta2ScaleSpec.md +++ b/kubernetes/docs/V1beta2ScaleSpec.md @@ -1,7 +1,9 @@ + # V1beta2ScaleSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | desired number of instances for the scaled object. | [optional] diff --git a/kubernetes/docs/V1beta2ScaleStatus.md b/kubernetes/docs/V1beta2ScaleStatus.md index 9eca8832b7..1f6d31797b 100644 --- a/kubernetes/docs/V1beta2ScaleStatus.md +++ b/kubernetes/docs/V1beta2ScaleStatus.md @@ -1,7 +1,9 @@ + # V1beta2ScaleStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **replicas** | **Integer** | actual number of observed instances of the scaled object. | diff --git a/kubernetes/docs/V1beta2StatefulSet.md b/kubernetes/docs/V1beta2StatefulSet.md index 423a2d4e6f..392d1312a6 100644 --- a/kubernetes/docs/V1beta2StatefulSet.md +++ b/kubernetes/docs/V1beta2StatefulSet.md @@ -1,14 +1,16 @@ + # V1beta2StatefulSet ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] **metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] -**spec** | [**V1beta2StatefulSetSpec**](V1beta2StatefulSetSpec.md) | Spec defines the desired identities of pods in this set. | [optional] -**status** | [**V1beta2StatefulSetStatus**](V1beta2StatefulSetStatus.md) | Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. | [optional] +**spec** | [**V1beta2StatefulSetSpec**](V1beta2StatefulSetSpec.md) | | [optional] +**status** | [**V1beta2StatefulSetStatus**](V1beta2StatefulSetStatus.md) | | [optional] diff --git a/kubernetes/docs/V1beta2StatefulSetCondition.md b/kubernetes/docs/V1beta2StatefulSetCondition.md index a77c16a460..d93fe8558a 100644 --- a/kubernetes/docs/V1beta2StatefulSetCondition.md +++ b/kubernetes/docs/V1beta2StatefulSetCondition.md @@ -1,7 +1,9 @@ + # V1beta2StatefulSetCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | Last time the condition transitioned from one status to another. | [optional] diff --git a/kubernetes/docs/V1beta2StatefulSetList.md b/kubernetes/docs/V1beta2StatefulSetList.md index 82b2819368..3a3f297dfc 100644 --- a/kubernetes/docs/V1beta2StatefulSetList.md +++ b/kubernetes/docs/V1beta2StatefulSetList.md @@ -1,7 +1,9 @@ + # V1beta2StatefulSetList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] diff --git a/kubernetes/docs/V1beta2StatefulSetSpec.md b/kubernetes/docs/V1beta2StatefulSetSpec.md index 33b9d25ce9..635c5aa6ee 100644 --- a/kubernetes/docs/V1beta2StatefulSetSpec.md +++ b/kubernetes/docs/V1beta2StatefulSetSpec.md @@ -1,16 +1,18 @@ + # V1beta2StatefulSetSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **podManagementPolicy** | **String** | podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. | [optional] **replicas** | **Integer** | replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. | [optional] **revisionHistoryLimit** | **Integer** | revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. | [optional] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | **serviceName** | **String** | serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller. | -**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. | -**updateStrategy** | [**V1beta2StatefulSetUpdateStrategy**](V1beta2StatefulSetUpdateStrategy.md) | updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. | [optional] +**template** | [**V1PodTemplateSpec**](V1PodTemplateSpec.md) | | +**updateStrategy** | [**V1beta2StatefulSetUpdateStrategy**](V1beta2StatefulSetUpdateStrategy.md) | | [optional] **volumeClaimTemplates** | [**List<V1PersistentVolumeClaim>**](V1PersistentVolumeClaim.md) | volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. | [optional] diff --git a/kubernetes/docs/V1beta2StatefulSetStatus.md b/kubernetes/docs/V1beta2StatefulSetStatus.md index a451d37f60..550a75ef31 100644 --- a/kubernetes/docs/V1beta2StatefulSetStatus.md +++ b/kubernetes/docs/V1beta2StatefulSetStatus.md @@ -1,7 +1,9 @@ + # V1beta2StatefulSetStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **collisionCount** | **Integer** | collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. | [optional] diff --git a/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md b/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md index a6770d7ecb..ec918f0021 100644 --- a/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md +++ b/kubernetes/docs/V1beta2StatefulSetUpdateStrategy.md @@ -1,10 +1,12 @@ + # V1beta2StatefulSetUpdateStrategy ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**rollingUpdate** | [**V1beta2RollingUpdateStatefulSetStrategy**](V1beta2RollingUpdateStatefulSetStrategy.md) | RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. | [optional] +**rollingUpdate** | [**V1beta2RollingUpdateStatefulSetStrategy**](V1beta2RollingUpdateStatefulSetStrategy.md) | | [optional] **type** | **String** | Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. | [optional] diff --git a/kubernetes/docs/V2alpha1CronJob.md b/kubernetes/docs/V2alpha1CronJob.md index 5ce13b3619..cb0eb25bad 100644 --- a/kubernetes/docs/V2alpha1CronJob.md +++ b/kubernetes/docs/V2alpha1CronJob.md @@ -1,14 +1,16 @@ + # V2alpha1CronJob ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2alpha1CronJobSpec**](V2alpha1CronJobSpec.md) | Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] -**status** | [**V2alpha1CronJobStatus**](V2alpha1CronJobStatus.md) | Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V2alpha1CronJobSpec**](V2alpha1CronJobSpec.md) | | [optional] +**status** | [**V2alpha1CronJobStatus**](V2alpha1CronJobStatus.md) | | [optional] diff --git a/kubernetes/docs/V2alpha1CronJobList.md b/kubernetes/docs/V2alpha1CronJobList.md index 9c295837a1..428d31be15 100644 --- a/kubernetes/docs/V2alpha1CronJobList.md +++ b/kubernetes/docs/V2alpha1CronJobList.md @@ -1,13 +1,15 @@ + # V2alpha1CronJobList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V2alpha1CronJob>**](V2alpha1CronJob.md) | items is the list of CronJobs. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V2alpha1CronJobSpec.md b/kubernetes/docs/V2alpha1CronJobSpec.md index efb664f845..cbfb3e1471 100644 --- a/kubernetes/docs/V2alpha1CronJobSpec.md +++ b/kubernetes/docs/V2alpha1CronJobSpec.md @@ -1,12 +1,14 @@ + # V2alpha1CronJobSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **concurrencyPolicy** | **String** | Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one | [optional] **failedJobsHistoryLimit** | **Integer** | The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] -**jobTemplate** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | Specifies the job that will be created when executing a CronJob. | +**jobTemplate** | [**V2alpha1JobTemplateSpec**](V2alpha1JobTemplateSpec.md) | | **schedule** | **String** | The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron. | **startingDeadlineSeconds** | **Long** | Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. | [optional] **successfulJobsHistoryLimit** | **Integer** | The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. | [optional] diff --git a/kubernetes/docs/V2alpha1CronJobStatus.md b/kubernetes/docs/V2alpha1CronJobStatus.md index 9c9ca4f42b..818b0bc0a8 100644 --- a/kubernetes/docs/V2alpha1CronJobStatus.md +++ b/kubernetes/docs/V2alpha1CronJobStatus.md @@ -1,7 +1,9 @@ + # V2alpha1CronJobStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | [**List<V1ObjectReference>**](V1ObjectReference.md) | A list of pointers to currently running jobs. | [optional] diff --git a/kubernetes/docs/V2alpha1JobTemplateSpec.md b/kubernetes/docs/V2alpha1JobTemplateSpec.md index de9b01a817..9a92ec8fc9 100644 --- a/kubernetes/docs/V2alpha1JobTemplateSpec.md +++ b/kubernetes/docs/V2alpha1JobTemplateSpec.md @@ -1,11 +1,13 @@ + # V2alpha1JobTemplateSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V1JobSpec**](V1JobSpec.md) | Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V1JobSpec**](V1JobSpec.md) | | [optional] diff --git a/kubernetes/docs/V2beta1CrossVersionObjectReference.md b/kubernetes/docs/V2beta1CrossVersionObjectReference.md index 018f04f515..14c6c2e56d 100644 --- a/kubernetes/docs/V2beta1CrossVersionObjectReference.md +++ b/kubernetes/docs/V2beta1CrossVersionObjectReference.md @@ -1,7 +1,9 @@ + # V2beta1CrossVersionObjectReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent | [optional] diff --git a/kubernetes/docs/V2beta1ExternalMetricSource.md b/kubernetes/docs/V2beta1ExternalMetricSource.md index 2886f40719..08da73bb7e 100644 --- a/kubernetes/docs/V2beta1ExternalMetricSource.md +++ b/kubernetes/docs/V2beta1ExternalMetricSource.md @@ -1,13 +1,15 @@ + # V2beta1ExternalMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metricName** | **String** | metricName is the name of the metric in question. | -**metricSelector** | [**V1LabelSelector**](V1LabelSelector.md) | metricSelector is used to identify a specific time series within a given metric. | [optional] -**targetAverageValue** | [**Quantity**](Quantity.md) | targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. | [optional] -**targetValue** | [**Quantity**](Quantity.md) | targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. | [optional] +**metricSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**targetAverageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +**targetValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] diff --git a/kubernetes/docs/V2beta1ExternalMetricStatus.md b/kubernetes/docs/V2beta1ExternalMetricStatus.md index c5dde392bb..7ab06a9a4c 100644 --- a/kubernetes/docs/V2beta1ExternalMetricStatus.md +++ b/kubernetes/docs/V2beta1ExternalMetricStatus.md @@ -1,13 +1,15 @@ + # V2beta1ExternalMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currentAverageValue** | **String** | currentAverageValue is the current value of metric averaged over autoscaled pods. | [optional] -**currentValue** | **String** | currentValue is the current value of the metric (as a quantity) | +**currentAverageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +**currentValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | **metricName** | **String** | metricName is the name of a metric used for autoscaling in metric system. | -**metricSelector** | [**V1LabelSelector**](V1LabelSelector.md) | metricSelector is used to identify a specific time series within a given metric. | [optional] +**metricSelector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md index 0ed6767888..075be58d46 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscaler.md @@ -1,14 +1,16 @@ + # V2beta1HorizontalPodAutoscaler ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2beta1HorizontalPodAutoscalerSpec**](V2beta1HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V2beta1HorizontalPodAutoscalerStatus**](V2beta1HorizontalPodAutoscalerStatus.md) | status is the current information about the autoscaler. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V2beta1HorizontalPodAutoscalerSpec**](V2beta1HorizontalPodAutoscalerSpec.md) | | [optional] +**status** | [**V2beta1HorizontalPodAutoscalerStatus**](V2beta1HorizontalPodAutoscalerStatus.md) | | [optional] diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md index 99b2d13b77..2c6e815536 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerCondition.md @@ -1,7 +1,9 @@ + # V2beta1HorizontalPodAutoscalerCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md index 4bbb9c150e..3c229d49a1 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerList.md @@ -1,13 +1,15 @@ + # V2beta1HorizontalPodAutoscalerList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V2beta1HorizontalPodAutoscaler>**](V2beta1HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md index 74158857f6..896b388c3b 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerSpec.md @@ -1,13 +1,15 @@ + # V2beta1HorizontalPodAutoscalerSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | **metrics** | [**List<V2beta1MetricSpec>**](V2beta1MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. | [optional] **minReplicas** | **Integer** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] -**scaleTargetRef** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | +**scaleTargetRef** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | diff --git a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md index 3c795b9ff4..066a00a7dd 100644 --- a/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2beta1HorizontalPodAutoscalerStatus.md @@ -1,7 +1,9 @@ + # V2beta1HorizontalPodAutoscalerStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**List<V2beta1HorizontalPodAutoscalerCondition>**](V2beta1HorizontalPodAutoscalerCondition.md) | conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. | diff --git a/kubernetes/docs/V2beta1MetricSpec.md b/kubernetes/docs/V2beta1MetricSpec.md index 20600abf56..10440f1fc1 100644 --- a/kubernetes/docs/V2beta1MetricSpec.md +++ b/kubernetes/docs/V2beta1MetricSpec.md @@ -1,13 +1,15 @@ + # V2beta1MetricSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta1ExternalMetricSource**](V2beta1ExternalMetricSource.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta1ObjectMetricSource**](V2beta1ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta1PodsMetricSource**](V2beta1PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta1ResourceMetricSource**](V2beta1ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta1ExternalMetricSource**](V2beta1ExternalMetricSource.md) | | [optional] +**_object** | [**V2beta1ObjectMetricSource**](V2beta1ObjectMetricSource.md) | | [optional] +**pods** | [**V2beta1PodsMetricSource**](V2beta1PodsMetricSource.md) | | [optional] +**resource** | [**V2beta1ResourceMetricSource**](V2beta1ResourceMetricSource.md) | | [optional] **type** | **String** | type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. | diff --git a/kubernetes/docs/V2beta1MetricStatus.md b/kubernetes/docs/V2beta1MetricStatus.md index 9cd76e733a..7c19c6ac6d 100644 --- a/kubernetes/docs/V2beta1MetricStatus.md +++ b/kubernetes/docs/V2beta1MetricStatus.md @@ -1,13 +1,15 @@ + # V2beta1MetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta1ExternalMetricStatus**](V2beta1ExternalMetricStatus.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta1ObjectMetricStatus**](V2beta1ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta1PodsMetricStatus**](V2beta1PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta1ResourceMetricStatus**](V2beta1ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta1ExternalMetricStatus**](V2beta1ExternalMetricStatus.md) | | [optional] +**_object** | [**V2beta1ObjectMetricStatus**](V2beta1ObjectMetricStatus.md) | | [optional] +**pods** | [**V2beta1PodsMetricStatus**](V2beta1PodsMetricStatus.md) | | [optional] +**resource** | [**V2beta1ResourceMetricStatus**](V2beta1ResourceMetricStatus.md) | | [optional] **type** | **String** | type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. | diff --git a/kubernetes/docs/V2beta1ObjectMetricSource.md b/kubernetes/docs/V2beta1ObjectMetricSource.md index f3d55ae5c7..202078d3eb 100644 --- a/kubernetes/docs/V2beta1ObjectMetricSource.md +++ b/kubernetes/docs/V2beta1ObjectMetricSource.md @@ -1,14 +1,16 @@ + # V2beta1ObjectMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**averageValue** | **String** | averageValue is the target value of the average of the metric across all relevant pods (as a quantity) | [optional] +**averageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] **metricName** | **String** | metricName is the name of the metric in question. | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. | [optional] -**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | target is the described Kubernetes object. | -**targetValue** | **String** | targetValue is the target value of the metric (as a quantity). | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | +**targetValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | diff --git a/kubernetes/docs/V2beta1ObjectMetricStatus.md b/kubernetes/docs/V2beta1ObjectMetricStatus.md index 8e63e2fb24..f7ab3f58e3 100644 --- a/kubernetes/docs/V2beta1ObjectMetricStatus.md +++ b/kubernetes/docs/V2beta1ObjectMetricStatus.md @@ -1,14 +1,16 @@ + # V2beta1ObjectMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**averageValue** | **String** | averageValue is the current value of the average of the metric across all relevant pods (as a quantity) | [optional] -**currentValue** | **String** | currentValue is the current value of the metric (as a quantity). | +**averageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +**currentValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | **metricName** | **String** | metricName is the name of the metric in question. | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. | [optional] -**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | target is the described Kubernetes object. | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**target** | [**V2beta1CrossVersionObjectReference**](V2beta1CrossVersionObjectReference.md) | | diff --git a/kubernetes/docs/V2beta1PodsMetricSource.md b/kubernetes/docs/V2beta1PodsMetricSource.md index 87f7db909b..9deaadaa9c 100644 --- a/kubernetes/docs/V2beta1PodsMetricSource.md +++ b/kubernetes/docs/V2beta1PodsMetricSource.md @@ -1,12 +1,14 @@ + # V2beta1PodsMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **metricName** | **String** | metricName is the name of the metric in question | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. | [optional] -**targetAverageValue** | **String** | targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) | +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] +**targetAverageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | diff --git a/kubernetes/docs/V2beta1PodsMetricStatus.md b/kubernetes/docs/V2beta1PodsMetricStatus.md index 1836b69855..0d81bb663d 100644 --- a/kubernetes/docs/V2beta1PodsMetricStatus.md +++ b/kubernetes/docs/V2beta1PodsMetricStatus.md @@ -1,12 +1,14 @@ + # V2beta1PodsMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currentAverageValue** | **String** | currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) | +**currentAverageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | **metricName** | **String** | metricName is the name of the metric in question | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V2beta1ResourceMetricSource.md b/kubernetes/docs/V2beta1ResourceMetricSource.md index 75d0d38b5e..81f36188fa 100644 --- a/kubernetes/docs/V2beta1ResourceMetricSource.md +++ b/kubernetes/docs/V2beta1ResourceMetricSource.md @@ -1,12 +1,14 @@ + # V2beta1ResourceMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | name is the name of the resource in question. | **targetAverageUtilization** | **Integer** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**targetAverageValue** | [**Quantity**](Quantity.md) | targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. | [optional] +**targetAverageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] diff --git a/kubernetes/docs/V2beta1ResourceMetricStatus.md b/kubernetes/docs/V2beta1ResourceMetricStatus.md index c55c9ac101..10a614b780 100644 --- a/kubernetes/docs/V2beta1ResourceMetricStatus.md +++ b/kubernetes/docs/V2beta1ResourceMetricStatus.md @@ -1,11 +1,13 @@ + # V2beta1ResourceMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **currentAverageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. | [optional] -**currentAverageValue** | **String** | currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. | +**currentAverageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | **name** | **String** | name is the name of the resource in question. | diff --git a/kubernetes/docs/V2beta2CrossVersionObjectReference.md b/kubernetes/docs/V2beta2CrossVersionObjectReference.md index 8a2b769a9c..e4d42125b6 100644 --- a/kubernetes/docs/V2beta2CrossVersionObjectReference.md +++ b/kubernetes/docs/V2beta2CrossVersionObjectReference.md @@ -1,7 +1,9 @@ + # V2beta2CrossVersionObjectReference ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | API version of the referent | [optional] diff --git a/kubernetes/docs/V2beta2ExternalMetricSource.md b/kubernetes/docs/V2beta2ExternalMetricSource.md index c2935c4f34..1d32fa4e96 100644 --- a/kubernetes/docs/V2beta2ExternalMetricSource.md +++ b/kubernetes/docs/V2beta2ExternalMetricSource.md @@ -1,11 +1,13 @@ + # V2beta2ExternalMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | diff --git a/kubernetes/docs/V2beta2ExternalMetricStatus.md b/kubernetes/docs/V2beta2ExternalMetricStatus.md index ab97d1188b..946741429e 100644 --- a/kubernetes/docs/V2beta2ExternalMetricStatus.md +++ b/kubernetes/docs/V2beta2ExternalMetricStatus.md @@ -1,11 +1,13 @@ + # V2beta2ExternalMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md b/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md index 6312ed9e3a..13bb1f2408 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscaler.md @@ -1,14 +1,16 @@ + # V2beta2HorizontalPodAutoscaler ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata | [optional] -**spec** | [**V2beta2HorizontalPodAutoscalerSpec**](V2beta2HorizontalPodAutoscalerSpec.md) | spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. | [optional] -**status** | [**V2beta2HorizontalPodAutoscalerStatus**](V2beta2HorizontalPodAutoscalerStatus.md) | status is the current information about the autoscaler. | [optional] +**metadata** | [**V1ObjectMeta**](V1ObjectMeta.md) | | [optional] +**spec** | [**V2beta2HorizontalPodAutoscalerSpec**](V2beta2HorizontalPodAutoscalerSpec.md) | | [optional] +**status** | [**V2beta2HorizontalPodAutoscalerStatus**](V2beta2HorizontalPodAutoscalerStatus.md) | | [optional] diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md index 9836abef16..333b09846f 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerCondition.md @@ -1,7 +1,9 @@ + # V2beta2HorizontalPodAutoscalerCondition ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **lastTransitionTime** | [**DateTime**](DateTime.md) | lastTransitionTime is the last time the condition transitioned from one status to another | [optional] diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md index 162cad280f..3960762d27 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerList.md @@ -1,13 +1,15 @@ + # V2beta2HorizontalPodAutoscalerList ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **apiVersion** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources | [optional] **items** | [**List<V2beta2HorizontalPodAutoscaler>**](V2beta2HorizontalPodAutoscaler.md) | items is the list of horizontal pod autoscaler objects. | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds | [optional] -**metadata** | [**V1ListMeta**](V1ListMeta.md) | metadata is the standard list metadata. | [optional] +**metadata** | [**V1ListMeta**](V1ListMeta.md) | | [optional] diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md index 3d5718d541..5eedf7c3dd 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerSpec.md @@ -1,13 +1,15 @@ + # V2beta2HorizontalPodAutoscalerSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **maxReplicas** | **Integer** | maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas. | **metrics** | [**List<V2beta2MetricSpec>**](V2beta2MetricSpec.md) | metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. | [optional] **minReplicas** | **Integer** | minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. | [optional] -**scaleTargetRef** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. | +**scaleTargetRef** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | | diff --git a/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md b/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md index 74000735aa..e6b3e6bd36 100644 --- a/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md +++ b/kubernetes/docs/V2beta2HorizontalPodAutoscalerStatus.md @@ -1,7 +1,9 @@ + # V2beta2HorizontalPodAutoscalerStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**List<V2beta2HorizontalPodAutoscalerCondition>**](V2beta2HorizontalPodAutoscalerCondition.md) | conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met. | diff --git a/kubernetes/docs/V2beta2MetricIdentifier.md b/kubernetes/docs/V2beta2MetricIdentifier.md index 848a7d5206..121610cc96 100644 --- a/kubernetes/docs/V2beta2MetricIdentifier.md +++ b/kubernetes/docs/V2beta2MetricIdentifier.md @@ -1,11 +1,13 @@ + # V2beta2MetricIdentifier ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | name is the name of the given metric | -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. | [optional] +**selector** | [**V1LabelSelector**](V1LabelSelector.md) | | [optional] diff --git a/kubernetes/docs/V2beta2MetricSpec.md b/kubernetes/docs/V2beta2MetricSpec.md index cd19f52b63..dd875c3f68 100644 --- a/kubernetes/docs/V2beta2MetricSpec.md +++ b/kubernetes/docs/V2beta2MetricSpec.md @@ -1,13 +1,15 @@ + # V2beta2MetricSpec ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta2ExternalMetricSource**](V2beta2ExternalMetricSource.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta2ObjectMetricSource**](V2beta2ObjectMetricSource.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta2PodsMetricSource**](V2beta2PodsMetricSource.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta2ResourceMetricSource**](V2beta2ResourceMetricSource.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta2ExternalMetricSource**](V2beta2ExternalMetricSource.md) | | [optional] +**_object** | [**V2beta2ObjectMetricSource**](V2beta2ObjectMetricSource.md) | | [optional] +**pods** | [**V2beta2PodsMetricSource**](V2beta2PodsMetricSource.md) | | [optional] +**resource** | [**V2beta2ResourceMetricSource**](V2beta2ResourceMetricSource.md) | | [optional] **type** | **String** | type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object. | diff --git a/kubernetes/docs/V2beta2MetricStatus.md b/kubernetes/docs/V2beta2MetricStatus.md index 4c931f0458..081c1a67e6 100644 --- a/kubernetes/docs/V2beta2MetricStatus.md +++ b/kubernetes/docs/V2beta2MetricStatus.md @@ -1,13 +1,15 @@ + # V2beta2MetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**external** | [**V2beta2ExternalMetricStatus**](V2beta2ExternalMetricStatus.md) | external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). | [optional] -**object** | [**V2beta2ObjectMetricStatus**](V2beta2ObjectMetricStatus.md) | object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). | [optional] -**pods** | [**V2beta2PodsMetricStatus**](V2beta2PodsMetricStatus.md) | pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. | [optional] -**resource** | [**V2beta2ResourceMetricStatus**](V2beta2ResourceMetricStatus.md) | resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. | [optional] +**external** | [**V2beta2ExternalMetricStatus**](V2beta2ExternalMetricStatus.md) | | [optional] +**_object** | [**V2beta2ObjectMetricStatus**](V2beta2ObjectMetricStatus.md) | | [optional] +**pods** | [**V2beta2PodsMetricStatus**](V2beta2PodsMetricStatus.md) | | [optional] +**resource** | [**V2beta2ResourceMetricStatus**](V2beta2ResourceMetricStatus.md) | | [optional] **type** | **String** | type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object. | diff --git a/kubernetes/docs/V2beta2MetricTarget.md b/kubernetes/docs/V2beta2MetricTarget.md index 1a664ba830..c47669f609 100644 --- a/kubernetes/docs/V2beta2MetricTarget.md +++ b/kubernetes/docs/V2beta2MetricTarget.md @@ -1,13 +1,15 @@ + # V2beta2MetricTarget ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **averageUtilization** | **Integer** | averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type | [optional] -**averageValue** | [**Quantity**](Quantity.md) | averageValue is the target value of the average of the metric across all relevant pods (as a quantity) | [optional] +**averageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] **type** | **String** | type represents whether the metric type is Utilization, Value, or AverageValue | -**value** | [**Quantity**](Quantity.md) | value is the target value of the metric (as a quantity). | [optional] +**value** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] diff --git a/kubernetes/docs/V2beta2MetricValueStatus.md b/kubernetes/docs/V2beta2MetricValueStatus.md index 855ed98258..6c8ee9edcf 100644 --- a/kubernetes/docs/V2beta2MetricValueStatus.md +++ b/kubernetes/docs/V2beta2MetricValueStatus.md @@ -1,12 +1,14 @@ + # V2beta2MetricValueStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **averageUtilization** | **Integer** | currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. | [optional] -**averageValue** | **String** | averageValue is the current value of the average of the metric across all relevant pods (as a quantity) | [optional] -**value** | **String** | value is the current value of the metric (as a quantity). | [optional] +**averageValue** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] +**value** | [**Quantity**](Quantity.md) | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] diff --git a/kubernetes/docs/V2beta2ObjectMetricSource.md b/kubernetes/docs/V2beta2ObjectMetricSource.md index 0568228435..0325b60b80 100644 --- a/kubernetes/docs/V2beta2ObjectMetricSource.md +++ b/kubernetes/docs/V2beta2ObjectMetricSource.md @@ -1,12 +1,14 @@ + # V2beta2ObjectMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **describedObject** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | diff --git a/kubernetes/docs/V2beta2ObjectMetricStatus.md b/kubernetes/docs/V2beta2ObjectMetricStatus.md index 5f888fa340..00ab660102 100644 --- a/kubernetes/docs/V2beta2ObjectMetricStatus.md +++ b/kubernetes/docs/V2beta2ObjectMetricStatus.md @@ -1,12 +1,14 @@ + # V2beta2ObjectMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | **describedObject** | [**V2beta2CrossVersionObjectReference**](V2beta2CrossVersionObjectReference.md) | | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | diff --git a/kubernetes/docs/V2beta2PodsMetricSource.md b/kubernetes/docs/V2beta2PodsMetricSource.md index 131f492063..872cc93136 100644 --- a/kubernetes/docs/V2beta2PodsMetricSource.md +++ b/kubernetes/docs/V2beta2PodsMetricSource.md @@ -1,11 +1,13 @@ + # V2beta2PodsMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | diff --git a/kubernetes/docs/V2beta2PodsMetricStatus.md b/kubernetes/docs/V2beta2PodsMetricStatus.md index 0f0061db69..7c50766e56 100644 --- a/kubernetes/docs/V2beta2PodsMetricStatus.md +++ b/kubernetes/docs/V2beta2PodsMetricStatus.md @@ -1,11 +1,13 @@ + # V2beta2PodsMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | -**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | metric identifies the target metric by name and selector | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | +**metric** | [**V2beta2MetricIdentifier**](V2beta2MetricIdentifier.md) | | diff --git a/kubernetes/docs/V2beta2ResourceMetricSource.md b/kubernetes/docs/V2beta2ResourceMetricSource.md index 78a135c1bd..05f2bd9a18 100644 --- a/kubernetes/docs/V2beta2ResourceMetricSource.md +++ b/kubernetes/docs/V2beta2ResourceMetricSource.md @@ -1,11 +1,13 @@ + # V2beta2ResourceMetricSource ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | name is the name of the resource in question. | -**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | target specifies the target value for the given metric | +**target** | [**V2beta2MetricTarget**](V2beta2MetricTarget.md) | | diff --git a/kubernetes/docs/V2beta2ResourceMetricStatus.md b/kubernetes/docs/V2beta2ResourceMetricStatus.md index ae0f57b559..2b2a779532 100644 --- a/kubernetes/docs/V2beta2ResourceMetricStatus.md +++ b/kubernetes/docs/V2beta2ResourceMetricStatus.md @@ -1,10 +1,12 @@ + # V2beta2ResourceMetricStatus ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | current contains the current value for the given metric | +**current** | [**V2beta2MetricValueStatus**](V2beta2MetricValueStatus.md) | | **name** | **String** | Name is the name of the resource in question. | diff --git a/kubernetes/docs/VersionApi.md b/kubernetes/docs/VersionApi.md index 44b34d363c..b2452c76a5 100644 --- a/kubernetes/docs/VersionApi.md +++ b/kubernetes/docs/VersionApi.md @@ -1,6 +1,6 @@ # VersionApi -All URIs are relative to *https://localhost* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- @@ -18,27 +18,36 @@ get the code version ### Example ```java // Import classes: -//import io.kubernetes.client.ApiClient; -//import io.kubernetes.client.ApiException; -//import io.kubernetes.client.Configuration; -//import io.kubernetes.client.auth.*; -//import io.kubernetes.client.apis.VersionApi; - -ApiClient defaultClient = Configuration.getDefaultApiClient(); - -// Configure API key authorization: BearerToken -ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); -BearerToken.setApiKey("YOUR API KEY"); -// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) -//BearerToken.setApiKeyPrefix("Token"); - -VersionApi apiInstance = new VersionApi(); -try { - VersionInfo result = apiInstance.getCode(); - System.out.println(result); -} catch (ApiException e) { - System.err.println("Exception when calling VersionApi#getCode"); - e.printStackTrace(); +import io.kubernetes.client.ApiClient; +import io.kubernetes.client.ApiException; +import io.kubernetes.client.Configuration; +import io.kubernetes.client.auth.*; +import io.kubernetes.client.models.*; +import io.kubernetes.client.apis.VersionApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("http://localhost"); + + // Configure API key authorization: BearerToken + ApiKeyAuth BearerToken = (ApiKeyAuth) defaultClient.getAuthentication("BearerToken"); + BearerToken.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //BearerToken.setApiKeyPrefix("Token"); + + VersionApi apiInstance = new VersionApi(defaultClient); + try { + VersionInfo result = apiInstance.getCode(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VersionApi#getCode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } } ``` @@ -55,6 +64,12 @@ This endpoint does not need any parameter. ### HTTP request headers - - **Content-Type**: application/json + - **Content-Type**: Not defined - **Accept**: application/json +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**401** | Unauthorized | - | + diff --git a/kubernetes/docs/VersionInfo.md b/kubernetes/docs/VersionInfo.md index 3734abb6f4..95ee84360d 100644 --- a/kubernetes/docs/VersionInfo.md +++ b/kubernetes/docs/VersionInfo.md @@ -1,7 +1,9 @@ + # VersionInfo ## Properties + Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **buildDate** | **String** | | diff --git a/kubernetes/src/main/java/io/kubernetes/client/ApiCallback.java b/kubernetes/src/main/java/io/kubernetes/client/ApiCallback.java index 48a58ce544..586fc1bdc6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/ApiCallback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/ApiCallback.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/ApiClient.java b/kubernetes/src/main/java/io/kubernetes/client/ApiClient.java index c6bccd3464..54a6464056 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/ApiClient.java +++ b/kubernetes/src/main/java/io/kubernetes/client/ApiClient.java @@ -1,22 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.6.9 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; -import com.squareup.okhttp.*; -import com.squareup.okhttp.internal.http.HttpMethod; -import com.squareup.okhttp.logging.HttpLoggingInterceptor; -import com.squareup.okhttp.logging.HttpLoggingInterceptor.Level; +import okhttp3.*; +import okhttp3.internal.http.HttpMethod; +import okhttp3.logging.HttpLoggingInterceptor; +import okhttp3.logging.HttpLoggingInterceptor.Level; import okio.BufferedSink; import okio.Okio; import org.joda.time.DateTime; @@ -47,12 +47,12 @@ import io.kubernetes.client.auth.Authentication; import io.kubernetes.client.auth.HttpBasicAuth; +import io.kubernetes.client.auth.HttpBearerAuth; import io.kubernetes.client.auth.ApiKeyAuth; -import io.kubernetes.client.auth.OAuth; public class ApiClient { - private String basePath = "https://localhost"; + private String basePath = "http://localhost"; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private String tempFolderPath = null; @@ -74,10 +74,21 @@ public class ApiClient { private HttpLoggingInterceptor loggingInterceptor; /* - * Constructor for ApiClient + * Basic constructor for ApiClient */ public ApiClient() { - httpClient = new OkHttpClient(); + init(); + + // Setup authentications (key: authentication name, value: authentication). + authentications.put("BearerToken", new ApiKeyAuth("header", "authorization")); + // Prevent the authentications from being modified. + authentications = Collections.unmodifiableMap(authentications); + } + + private void init() { + OkHttpClient.Builder builder = new OkHttpClient.Builder(); + builder.addNetworkInterceptor(getProgressInterceptor()); + httpClient = builder.build(); verifyingSsl = true; @@ -85,20 +96,15 @@ public ApiClient() { json = new JSON(); // Set default User-Agent. - setUserAgent("Swagger-Codegen/1.0-SNAPSHOT/java"); + setUserAgent("OpenAPI-Generator/1.0-SNAPSHOT/java"); - // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); - authentications.put("BearerToken", new ApiKeyAuth("header", "authorization")); - authentications.put("BasicAuth", new HttpBasicAuth()); - // Prevent the authentications from being modified. - authentications = Collections.unmodifiableMap(authentications); } /** * Get base path * - * @return Baes path + * @return Base path */ public String getBasePath() { return basePath; @@ -107,7 +113,7 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://localhost + * @param basePath Base path of the URL (e.g http://localhost * @return An instance of OkHttpClient */ public ApiClient setBasePath(String basePath) { @@ -125,13 +131,14 @@ public OkHttpClient getHttpClient() { } /** - * Set HTTP client + * Set HTTP client, which must never be null. * - * @param httpClient An instance of OkHttpClient + * @param newHttpClient An instance of OkHttpClient * @return Api Client + * @throws NullPointerException when newHttpClient is null */ - public ApiClient setHttpClient(OkHttpClient httpClient) { - this.httpClient = httpClient; + public ApiClient setHttpClient(OkHttpClient newHttpClient) { + this.httpClient = Objects.requireNonNull(newHttpClient, "HttpClient must not be null!"); return this; } @@ -331,12 +338,6 @@ public void setApiKeyPrefix(String apiKeyPrefix) { * @param accessToken Access token */ public void setAccessToken(String accessToken) { - for (Authentication auth : authentications.values()) { - if (auth instanceof OAuth) { - ((OAuth) auth).setAccessToken(accessToken); - return; - } - } throw new RuntimeException("No OAuth2 authentication configured!"); } @@ -383,7 +384,7 @@ public ApiClient setDebugging(boolean debugging) { if (debugging) { loggingInterceptor = new HttpLoggingInterceptor(); loggingInterceptor.setLevel(Level.BODY); - httpClient.interceptors().add(loggingInterceptor); + httpClient = httpClient.newBuilder().addInterceptor(loggingInterceptor).build(); } else { httpClient.interceptors().remove(loggingInterceptor); loggingInterceptor = null; @@ -406,7 +407,7 @@ public String getTempFolderPath() { } /** - * Set the tempoaray folder path (for downloading files) + * Set the temporary folder path (for downloading files) * * @param tempFolderPath Temporary folder path * @return ApiClient @@ -422,21 +423,67 @@ public ApiClient setTempFolderPath(String tempFolderPath) { * @return Timeout in milliseconds */ public int getConnectTimeout() { - return httpClient.getConnectTimeout(); + return httpClient.connectTimeoutMillis(); } /** * Sets the connect timeout (in milliseconds). * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. * * @param connectionTimeout connection timeout in milliseconds * @return Api client */ public ApiClient setConnectTimeout(int connectionTimeout) { - httpClient.setConnectTimeout(connectionTimeout, TimeUnit.MILLISECONDS); + httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** + * Get read timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getReadTimeout() { + return httpClient.readTimeoutMillis(); + } + + /** + * Sets the read timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param readTimeout read timeout in milliseconds + * @return Api client + */ + public ApiClient setReadTimeout(int readTimeout) { + httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build(); return this; } + /** + * Get write timeout (in milliseconds). + * + * @return Timeout in milliseconds + */ + public int getWriteTimeout() { + return httpClient.writeTimeoutMillis(); + } + + /** + * Sets the write timeout (in milliseconds). + * A value of 0 means no timeout, otherwise values must be between 1 and + * {@link Integer#MAX_VALUE}. + * + * @param writeTimeout connection timeout in milliseconds + * @return Api client + */ + public ApiClient setWriteTimeout(int writeTimeout) { + httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build(); + return this; + } + + /** * Format the given parameter object into string. * @@ -452,7 +499,7 @@ public String parameterToString(Object param) { return jsonStr.substring(1, jsonStr.length() - 1); } else if (param instanceof Collection) { StringBuilder b = new StringBuilder(); - for (Object o : (Collection)param) { + for (Object o : (Collection) param) { if (b.length() > 0) { b.append(","); } @@ -477,7 +524,9 @@ public List parameterToPair(String name, Object value) { List params = new ArrayList(); // preconditions - if (name == null || name.isEmpty() || value == null || value instanceof Collection) return params; + if (name == null || name.isEmpty() || value == null || value instanceof Collection) { + return params; + } params.add(new Pair(name, parameterToString(value))); return params; @@ -522,7 +571,7 @@ public List parameterToPairs(String collectionFormat, String name, Collect delimiter = escapeString("|"); } - StringBuilder sb = new StringBuilder() ; + StringBuilder sb = new StringBuilder(); for (Object item : value) { sb.append(delimiter); sb.append(escapeString(parameterToString(item))); @@ -533,6 +582,40 @@ public List parameterToPairs(String collectionFormat, String name, Collect return params; } + /** + * Formats the specified collection path parameter to a string value. + * + * @param collectionFormat The collection format of the parameter. + * @param value The value of the parameter. + * @return String representation of the parameter + */ + public String collectionPathParameterToString(String collectionFormat, Collection value) { + // create the value based on the collection format + if ("multi".equals(collectionFormat)) { + // not valid for path params + return parameterToString(value); + } + + // collectionFormat is assumed to be "csv" by default + String delimiter = ","; + + if ("ssv".equals(collectionFormat)) { + delimiter = " "; + } else if ("tsv".equals(collectionFormat)) { + delimiter = "\t"; + } else if ("pipes".equals(collectionFormat)) { + delimiter = "|"; + } + + StringBuilder sb = new StringBuilder() ; + for (Object item : value) { + sb.append(delimiter); + sb.append(parameterToString(item)); + } + + return sb.substring(delimiter.length()); + } + /** * Sanitize filename by removing path. * e.g. ../../sun.gif becomes sun.gif @@ -556,8 +639,8 @@ public String sanitizeFilename(String filename) { * @return True if the given MIME is JSON, false otherwise. */ public boolean isJsonMime(String mime) { - String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; - return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); + String jsonMime = "(?i)^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$"; + return mime != null && (mime.matches(jsonMime) || mime.equals("*/*")); } /** @@ -592,7 +675,7 @@ public String selectHeaderAccept(String[] accepts) { */ public String selectHeaderContentType(String[] contentTypes) { if (contentTypes.length == 0 || contentTypes[0].equals("*/*")) { - return "application/json"; + return "application/json"; } for (String contentType : contentTypes) { if (isJsonMime(contentType)) { @@ -730,8 +813,8 @@ public File downloadFileFromResponse(Response response) throws ApiException { * Prepare file for download * * @param response An instance of the Response object - * @throws IOException If fail to prepare file for download * @return Prepared file for the download + * @throws IOException If fail to prepare file for download */ public File prepareDownloadFile(Response response) throws IOException { String filename = null; @@ -774,8 +857,8 @@ public File prepareDownloadFile(Response response) throws IOException { * * @param Type * @param call An instance of the Call object - * @throws ApiException If fail to execute the call * @return ApiResponse<T> + * @throws ApiException If fail to execute the call */ public ApiResponse execute(Call call) throws ApiException { return execute(call, null); @@ -816,22 +899,22 @@ public void executeAsync(Call call, ApiCallback callback) { /** * Execute HTTP call asynchronously. * - * @see #execute(Call, Type) * @param Type * @param call The callback to be executed when the API call finishes * @param returnType Return type * @param callback ApiCallback + * @see #execute(Call, Type) */ @SuppressWarnings("unchecked") public void executeAsync(Call call, final Type returnType, final ApiCallback callback) { call.enqueue(new Callback() { @Override - public void onFailure(Request request, IOException e) { + public void onFailure(Call call, IOException e) { callback.onFailure(new ApiException(e), 0, null); } @Override - public void onResponse(Response response) throws IOException { + public void onResponse(Call call, Response response) throws IOException { T result; try { result = (T) handleResponse(response, returnType); @@ -850,9 +933,9 @@ public void onResponse(Response response) throws IOException { * @param Type * @param response Response * @param returnType Return type - * @throws ApiException If the response has a unsuccessful status code or - * fail to deserialize the response body * @return Type + * @throws ApiException If the response has an unsuccessful status code or + * fail to deserialize the response body */ public T handleResponse(Response response, Type returnType) throws ApiException { if (response.isSuccessful()) { @@ -862,7 +945,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept if (response.body() != null) { try { response.body().close(); - } catch (IOException e) { + } catch (Exception e) { throw new ApiException(response.message(), e, response.code(), response.headers().toMultimap()); } } @@ -894,12 +977,12 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept * @param headerParams The header parameters * @param formParams The form parameters * @param authNames The authentications to apply - * @param progressRequestListener Progress request listener + * @param callback Callback for upload/download progress * @return The HTTP call * @throws ApiException If fail to serialize the request body object */ - public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, formParams, authNames, progressRequestListener); + public Call buildCall(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { + Request request = buildRequest(path, method, queryParams, collectionQueryParams, body, headerParams, formParams, authNames, callback); return httpClient.newCall(request); } @@ -915,11 +998,11 @@ public Call buildCall(String path, String method, List queryParams, List

queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public Request buildRequest(String path, String method, List queryParams, List collectionQueryParams, Object body, Map headerParams, Map formParams, String[] authNames, ApiCallback callback) throws ApiException { updateParamsForAuth(authNames, queryParams, headerParams); final String url = buildUrl(path, queryParams, collectionQueryParams); @@ -951,10 +1034,14 @@ public Request buildRequest(String path, String method, List queryParams, reqBody = serialize(body, contentType); } + // Associate callback with request (if not null) so interceptor can + // access it when creating ProgressResponseBody + reqBuilder.tag(callback); + Request request = null; - if(progressRequestListener != null && reqBody != null) { - ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, progressRequestListener); + if (callback != null && reqBody != null) { + ProgressRequestBody progressRequestBody = new ProgressRequestBody(reqBody, callback); request = reqBuilder.method(method, progressRequestBody).build(); } else { request = reqBuilder.method(method, reqBody).build(); @@ -1033,13 +1120,15 @@ public void processHeaderParams(Map headerParams, Request.Builde * Update query and header parameters based on authentication settings. * * @param authNames The authentications to apply - * @param queryParams List of query parameters - * @param headerParams Map of header parameters + * @param queryParams List of query parameters + * @param headerParams Map of header parameters */ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams) { for (String authName : authNames) { Authentication auth = authentications.get(authName); - if (auth == null) throw new RuntimeException("Authentication undefined: " + authName); + if (auth == null) { + throw new RuntimeException("Authentication undefined: " + authName); + } auth.applyToParams(queryParams, headerParams); } } @@ -1051,7 +1140,7 @@ public void updateParamsForAuth(String[] authNames, List queryParams, Map< * @return RequestBody */ public RequestBody buildRequestBodyFormEncoding(Map formParams) { - FormEncodingBuilder formBuilder = new FormEncodingBuilder(); + okhttp3.FormBody.Builder formBuilder = new okhttp3.FormBody.Builder(); for (Entry param : formParams.entrySet()) { formBuilder.add(param.getKey(), parameterToString(param.getValue())); } @@ -1066,7 +1155,7 @@ public RequestBody buildRequestBodyFormEncoding(Map formParams) * @return RequestBody */ public RequestBody buildRequestBodyMultipart(Map formParams) { - MultipartBuilder mpBuilder = new MultipartBuilder().type(MultipartBuilder.FORM); + MultipartBody.Builder mpBuilder = new MultipartBody.Builder().setType(MultipartBody.FORM); for (Entry param : formParams.entrySet()) { if (param.getValue() instanceof File) { File file = (File) param.getValue(); @@ -1096,6 +1185,27 @@ public String guessContentTypeFromFile(File file) { } } + /** + * Get network interceptor to add it to the httpClient to track download progress for + * async requests. + */ + private Interceptor getProgressInterceptor() { + return new Interceptor() { + @Override + public Response intercept(Interceptor.Chain chain) throws IOException { + final Request request = chain.request(); + final Response originalResponse = chain.proceed(request); + if (request.tag() instanceof ApiCallback) { + final ApiCallback callback = (ApiCallback) request.tag(); + return originalResponse.newBuilder() + .body(new ProgressResponseBody(originalResponse.body(), callback)) + .build(); + } + return originalResponse; + } + }; + } + /** * Apply SSL related settings to httpClient according to the current values of * verifyingSsl and sslCaCert. @@ -1105,19 +1215,28 @@ private void applySslSettings() { TrustManager[] trustManagers = null; HostnameVerifier hostnameVerifier = null; if (!verifyingSsl) { - TrustManager trustAll = new X509TrustManager() { - @Override - public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException {} - @Override - public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException {} - @Override - public X509Certificate[] getAcceptedIssuers() { return null; } + trustManagers = new TrustManager[]{ + new X509TrustManager() { + @Override + public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) throws CertificateException { + } + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return new java.security.cert.X509Certificate[]{}; + } + } }; SSLContext sslContext = SSLContext.getInstance("TLS"); - trustManagers = new TrustManager[]{ trustAll }; hostnameVerifier = new HostnameVerifier() { @Override - public boolean verify(String hostname, SSLSession session) { return true; } + public boolean verify(String hostname, SSLSession session) { + return true; + } }; } else if (sslCaCert != null) { char[] password = null; // Any password will work. @@ -1140,11 +1259,12 @@ public void checkServerTrusted(X509Certificate[] chain, String authType) throws if (keyManagers != null || trustManagers != null) { SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(keyManagers, trustManagers, new SecureRandom()); - httpClient.setSslSocketFactory(sslContext.getSocketFactory()); + httpClient = httpClient.newBuilder().sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]).build(); } else { - httpClient.setSslSocketFactory(null); + httpClient = httpClient.newBuilder().sslSocketFactory(null, (X509TrustManager) trustManagers[0]).build(); } - httpClient.setHostnameVerifier(hostnameVerifier); + + httpClient = httpClient.newBuilder().hostnameVerifier(hostnameVerifier).build(); } catch (GeneralSecurityException e) { throw new RuntimeException(e); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/ApiException.java b/kubernetes/src/main/java/io/kubernetes/client/ApiException.java index 59b2f2ae48..1a7b1d29e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/ApiException.java +++ b/kubernetes/src/main/java/io/kubernetes/client/ApiException.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,7 @@ import java.util.Map; import java.util.List; - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/kubernetes/src/main/java/io/kubernetes/client/ApiResponse.java b/kubernetes/src/main/java/io/kubernetes/client/ApiResponse.java index 8ebd46dc10..60e07834cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/ApiResponse.java +++ b/kubernetes/src/main/java/io/kubernetes/client/ApiResponse.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/Configuration.java b/kubernetes/src/main/java/io/kubernetes/client/Configuration.java index f6ebcac3b9..f30502066f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/Configuration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/Configuration.java @@ -1,19 +1,19 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/GzipRequestInterceptor.java b/kubernetes/src/main/java/io/kubernetes/client/GzipRequestInterceptor.java index 532b39c6d2..3253f3031b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/GzipRequestInterceptor.java +++ b/kubernetes/src/main/java/io/kubernetes/client/GzipRequestInterceptor.java @@ -1,19 +1,19 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; -import com.squareup.okhttp.*; +import okhttp3.*; import okio.Buffer; import okio.BufferedSink; import okio.GzipSink; @@ -27,7 +27,8 @@ * Taken from https://github.com/square/okhttp/issues/350 */ class GzipRequestInterceptor implements Interceptor { - @Override public Response intercept(Chain chain) throws IOException { + @Override + public Response intercept(Chain chain) throws IOException { Request originalRequest = chain.request(); if (originalRequest.body() == null || originalRequest.header("Content-Encoding") != null) { return chain.proceed(originalRequest); @@ -63,19 +64,22 @@ public void writeTo(BufferedSink sink) throws IOException { private RequestBody gzip(final RequestBody body) { return new RequestBody() { - @Override public MediaType contentType() { + @Override + public MediaType contentType() { return body.contentType(); } - @Override public long contentLength() { + @Override + public long contentLength() { return -1; // We don't know the compressed length in advance! } - @Override public void writeTo(BufferedSink sink) throws IOException { + @Override + public void writeTo(BufferedSink sink) throws IOException { BufferedSink gzipSink = Okio.buffer(new GzipSink(sink)); body.writeTo(gzipSink); gzipSink.close(); } }; } -} \ No newline at end of file +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/JSON.java b/kubernetes/src/main/java/io/kubernetes/client/JSON.java index 99d8287a93..b79a7434d9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/JSON.java +++ b/kubernetes/src/main/java/io/kubernetes/client/JSON.java @@ -1,38 +1,47 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.6.9 + * The version of the OpenAPI document: v1.15.6 + * * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ + package io.kubernetes.client; import com.google.gson.Gson; import com.google.gson.GsonBuilder; import com.google.gson.JsonParseException; import com.google.gson.TypeAdapter; +import com.google.gson.internal.bind.util.ISO8601Utils; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; - -import okio.ByteString; - +import com.google.gson.JsonElement; +import io.gsonfire.GsonFireBuilder; +import io.gsonfire.TypeSelector; import org.joda.time.DateTime; import org.joda.time.LocalDate; import org.joda.time.format.DateTimeFormatter; import org.joda.time.format.DateTimeFormatterBuilder; import org.joda.time.format.ISODateTimeFormat; +import io.kubernetes.client.models.*; +import okio.ByteString; + import java.io.IOException; import java.io.StringReader; import java.lang.reflect.Type; import java.text.DateFormat; import java.text.ParseException; +import java.text.ParsePosition; import java.util.Date; +import java.util.Locale; +import java.util.Map; +import java.util.HashMap; public class JSON { private Gson gson; @@ -41,15 +50,38 @@ public class JSON { private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); private DateTimeTypeAdapter dateTimeTypeAdapter = new DateTimeTypeAdapter(); private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private ByteArrayAdapter byteArrayTypeAdapter = new ByteArrayAdapter(); + private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); + + public static GsonBuilder createGson() { + GsonFireBuilder fireBuilder = new GsonFireBuilder() + ; + GsonBuilder builder = fireBuilder.createGsonBuilder(); + return builder; + } + + private static String getDiscriminatorValue(JsonElement readElement, String discriminatorField) { + JsonElement element = readElement.getAsJsonObject().get(discriminatorField); + if (null == element) { + throw new IllegalArgumentException("missing discriminator field: <" + discriminatorField + ">"); + } + return element.getAsString(); + } + + private static Class getClassByDiscriminator(Map classByDiscriminatorValue, String discriminatorValue) { + Class clazz = (Class) classByDiscriminatorValue.get(discriminatorValue.toUpperCase(Locale.ROOT)); + if (null == clazz) { + throw new IllegalArgumentException("cannot determine model class of name: <" + discriminatorValue + ">"); + } + return clazz; + } public JSON() { - gson = new GsonBuilder() + gson = createGson() .registerTypeAdapter(Date.class, dateTypeAdapter) .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) .registerTypeAdapter(DateTime.class, dateTimeTypeAdapter) .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) - .registerTypeAdapter(byte[].class, byteArrayTypeAdapter) + .registerTypeAdapter(byte[].class, byteArrayAdapter) .create(); } @@ -110,40 +142,38 @@ public T deserialize(String body, Type returnType) { } catch (JsonParseException e) { // Fallback processing when failed to parse JSON form response body: // return the response body string directly for the String return type; - if (returnType.equals(String.class)) + if (returnType.equals(String.class)) { return (T) body; - else + } else { throw (e); + } } } /** - + * Gson TypeAdapter for Byte Array type - + */ + * Gson TypeAdapter for Byte Array type + */ public class ByteArrayAdapter extends TypeAdapter { @Override public void write(JsonWriter out, byte[] value) throws IOException { - boolean oldHtmlSafe = out.isHtmlSafe(); - out.setHtmlSafe(false); if (value == null) { out.nullValue(); } else { out.value(ByteString.of(value).base64()); } - out.setHtmlSafe(oldHtmlSafe); } @Override public byte[] read(JsonReader in) throws IOException { switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String bytesAsBase64 = in.nextString(); - ByteString byteString = ByteString.decodeBase64(bytesAsBase64); - return byteString.toByteArray(); + case NULL: + in.nextNull(); + return null; + default: + String bytesAsBase64 = in.nextString(); + ByteString byteString = ByteString.decodeBase64(bytesAsBase64); + return byteString.toByteArray(); } } } @@ -156,8 +186,9 @@ public static class DateTimeTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; public DateTimeTypeAdapter() { - this(new DateTimeFormatterBuilder().append(ISODateTimeFormat.dateTime().getPrinter(), - ISODateTimeFormat.dateOptionalTimeParser().getParser()).toFormatter()); + this(new DateTimeFormatterBuilder() + .append(ISODateTimeFormat.dateTime().getPrinter(), ISODateTimeFormat.dateOptionalTimeParser().getParser()) + .toFormatter()); } public DateTimeTypeAdapter(DateTimeFormatter formatter) { @@ -180,12 +211,12 @@ public void write(JsonWriter out, DateTime date) throws IOException { @Override public DateTime read(JsonReader in) throws IOException { switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - return formatter.parseDateTime(date); + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + return formatter.parseDateTime(date); } } } @@ -221,12 +252,12 @@ public void write(JsonWriter out, LocalDate date) throws IOException { @Override public LocalDate read(JsonReader in) throws IOException { switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - return formatter.parseLocalDate(date); + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + return formatter.parseLocalDate(date); } } } @@ -250,8 +281,7 @@ public static class SqlDateTypeAdapter extends TypeAdapter { private DateFormat dateFormat; - public SqlDateTypeAdapter() { - } + public SqlDateTypeAdapter() {} public SqlDateTypeAdapter(DateFormat dateFormat) { this.dateFormat = dateFormat; @@ -279,19 +309,19 @@ public void write(JsonWriter out, java.sql.Date date) throws IOException { @Override public java.sql.Date read(JsonReader in) throws IOException { switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return new java.sql.Date(dateFormat.parse(date).getTime()); + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return new java.sql.Date(dateFormat.parse(date).getTime()); + } + return new java.sql.Date(ISO8601Utils.parse(date, new ParsePosition(0)).getTime()); + } catch (ParseException e) { + throw new JsonParseException(e); } - return new java.sql.Date(ISODateTimeFormat.basicDateTime().parseMillis(date)); - } catch (ParseException e) { - throw new JsonParseException(e); - } } } } @@ -304,8 +334,7 @@ public static class DateTypeAdapter extends TypeAdapter { private DateFormat dateFormat; - public DateTypeAdapter() { - } + public DateTypeAdapter() {} public DateTypeAdapter(DateFormat dateFormat) { this.dateFormat = dateFormat; @@ -324,7 +353,7 @@ public void write(JsonWriter out, Date date) throws IOException { if (dateFormat != null) { value = dateFormat.format(date); } else { - value = ISODateTimeFormat.basicDateTime().print(date.getTime()); + value = ISO8601Utils.format(date, true); } out.value(value); } @@ -334,19 +363,19 @@ public void write(JsonWriter out, Date date) throws IOException { public Date read(JsonReader in) throws IOException { try { switch (in.peek()) { - case NULL: - in.nextNull(); - return null; - default: - String date = in.nextString(); - try { - if (dateFormat != null) { - return dateFormat.parse(date); + case NULL: + in.nextNull(); + return null; + default: + String date = in.nextString(); + try { + if (dateFormat != null) { + return dateFormat.parse(date); + } + return ISO8601Utils.parse(date, new ParsePosition(0)); + } catch (ParseException e) { + throw new JsonParseException(e); } - return ISODateTimeFormat.basicDateTime().parseDateTime(date).toDate(); - } catch (ParseException e) { - throw new JsonParseException(e); - } } } catch (IllegalArgumentException e) { throw new JsonParseException(e); diff --git a/kubernetes/src/main/java/io/kubernetes/client/Pair.java b/kubernetes/src/main/java/io/kubernetes/client/Pair.java index e9b896d9d8..71c88260de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/Pair.java +++ b/kubernetes/src/main/java/io/kubernetes/client/Pair.java @@ -1,19 +1,19 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; @@ -24,13 +24,17 @@ public Pair (String name, String value) { } private void setName(String name) { - if (!isValidString(name)) return; + if (!isValidString(name)) { + return; + } this.name = name; } private void setValue(String value) { - if (!isValidString(value)) return; + if (!isValidString(value)) { + return; + } this.value = value; } @@ -44,8 +48,13 @@ public String getValue() { } private boolean isValidString(String arg) { - if (arg == null) return false; - if (arg.trim().isEmpty()) return false; + if (arg == null) { + return false; + } + + if (arg.trim().isEmpty()) { + return false; + } return true; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/ProgressRequestBody.java b/kubernetes/src/main/java/io/kubernetes/client/ProgressRequestBody.java index 42cd07c8c5..e1a93fcf40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/ProgressRequestBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/ProgressRequestBody.java @@ -1,20 +1,20 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; -import com.squareup.okhttp.MediaType; -import com.squareup.okhttp.RequestBody; +import okhttp3.MediaType; +import okhttp3.RequestBody; import java.io.IOException; @@ -26,17 +26,13 @@ public class ProgressRequestBody extends RequestBody { - public interface ProgressRequestListener { - void onRequestProgress(long bytesWritten, long contentLength, boolean done); - } - private final RequestBody requestBody; - private final ProgressRequestListener progressListener; + private final ApiCallback callback; - public ProgressRequestBody(RequestBody requestBody, ProgressRequestListener progressListener) { + public ProgressRequestBody(RequestBody requestBody, ApiCallback callback) { this.requestBody = requestBody; - this.progressListener = progressListener; + this.callback = callback; } @Override @@ -70,7 +66,7 @@ public void write(Buffer source, long byteCount) throws IOException { } bytesWritten += byteCount; - progressListener.onRequestProgress(bytesWritten, contentLength, bytesWritten == contentLength); + callback.onUploadProgress(bytesWritten, contentLength, bytesWritten == contentLength); } }; } diff --git a/kubernetes/src/main/java/io/kubernetes/client/ProgressResponseBody.java b/kubernetes/src/main/java/io/kubernetes/client/ProgressResponseBody.java index 8e629cd156..e7463fda04 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/ProgressResponseBody.java +++ b/kubernetes/src/main/java/io/kubernetes/client/ProgressResponseBody.java @@ -1,20 +1,20 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; -import com.squareup.okhttp.MediaType; -import com.squareup.okhttp.ResponseBody; +import okhttp3.MediaType; +import okhttp3.ResponseBody; import java.io.IOException; @@ -26,17 +26,13 @@ public class ProgressResponseBody extends ResponseBody { - public interface ProgressListener { - void update(long bytesRead, long contentLength, boolean done); - } - private final ResponseBody responseBody; - private final ProgressListener progressListener; + private final ApiCallback callback; private BufferedSource bufferedSource; - public ProgressResponseBody(ResponseBody responseBody, ProgressListener progressListener) { + public ProgressResponseBody(ResponseBody responseBody, ApiCallback callback) { this.responseBody = responseBody; - this.progressListener = progressListener; + this.callback = callback; } @Override @@ -45,12 +41,12 @@ public MediaType contentType() { } @Override - public long contentLength() throws IOException { + public long contentLength() { return responseBody.contentLength(); } @Override - public BufferedSource source() throws IOException { + public BufferedSource source() { if (bufferedSource == null) { bufferedSource = Okio.buffer(source(responseBody.source())); } @@ -66,7 +62,7 @@ public long read(Buffer sink, long byteCount) throws IOException { long bytesRead = super.read(sink, byteCount); // read() returns the number of bytes read, or -1 if this source is exhausted. totalBytesRead += bytesRead != -1 ? bytesRead : 0; - progressListener.update(totalBytesRead, responseBody.contentLength(), bytesRead == -1); + callback.onDownloadProgress(totalBytesRead, responseBody.contentLength(), bytesRead == -1); return bytesRead; } }; diff --git a/kubernetes/src/main/java/io/kubernetes/client/StringUtil.java b/kubernetes/src/main/java/io/kubernetes/client/StringUtil.java index 5231849d11..8ac56c8291 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/StringUtil.java +++ b/kubernetes/src/main/java/io/kubernetes/client/StringUtil.java @@ -1,19 +1,19 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client; - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). @@ -24,8 +24,12 @@ public class StringUtil { */ public static boolean containsIgnoreCase(String[] array, String value) { for (String str : array) { - if (value == null && str == null) return true; - if (value != null && value.equalsIgnoreCase(str)) return true; + if (value == null && str == null) { + return true; + } + if (value != null && value.equalsIgnoreCase(str)) { + return true; + } } return false; } @@ -43,7 +47,9 @@ public static boolean containsIgnoreCase(String[] array, String value) { */ public static String join(String[] array, String separator) { int len = array.length; - if (len == 0) return ""; + if (len == 0) { + return ""; + } StringBuilder out = new StringBuilder(); out.append(array[0]); diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationApi.java index bf773b0c6c..2cca0f0993 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class AdmissionregistrationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AdmissionregistrationApi() { this(Configuration.getDefaultApiClient()); } public AdmissionregistrationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1Api.java index a365b7e1b0..ac6377f047 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1MutatingWebhookConfiguration; import io.kubernetes.client.models.V1beta1MutatingWebhookConfigurationList; @@ -43,22 +42,22 @@ import java.util.Map; public class AdmissionregistrationV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AdmissionregistrationV1beta1Api() { this(Configuration.getDefaultApiClient()); } public AdmissionregistrationV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -67,74 +66,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createMutatingWebhookConfigurationCall(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createMutatingWebhookConfigurationCall(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createMutatingWebhookConfigurationValidateBeforeCall(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createMutatingWebhookConfigurationValidateBeforeCall(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createMutatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createMutatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -146,10 +141,18 @@ private com.squareup.okhttp.Call createMutatingWebhookConfigurationValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1MutatingWebhookConfiguration createMutatingWebhookConfiguration(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createMutatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -161,11 +164,19 @@ public V1beta1MutatingWebhookConfiguration createMutatingWebhookConfiguration(V1 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createMutatingWebhookConfigurationWithHttpInfo(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -175,35 +186,24 @@ public ApiResponse createMutatingWebhookCon * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createMutatingWebhookConfigurationAsync(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createMutatingWebhookConfigurationAsync(V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createMutatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createValidatingWebhookConfiguration @@ -211,74 +211,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createValidatingWebhookConfigurationCall(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createValidatingWebhookConfigurationCall(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createValidatingWebhookConfigurationValidateBeforeCall(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createValidatingWebhookConfigurationValidateBeforeCall(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createValidatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createValidatingWebhookConfigurationCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -290,10 +286,18 @@ private com.squareup.okhttp.Call createValidatingWebhookConfigurationValidateBef * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1ValidatingWebhookConfiguration createValidatingWebhookConfiguration(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createValidatingWebhookConfigurationWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -305,11 +309,19 @@ public V1beta1ValidatingWebhookConfiguration createValidatingWebhookConfiguratio * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createValidatingWebhookConfigurationWithHttpInfo(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -319,448 +331,530 @@ public ApiResponse createValidatingWebhoo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createValidatingWebhookConfigurationAsync(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createValidatingWebhookConfigurationAsync(V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createValidatingWebhookConfigurationValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionMutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionMutatingWebhookConfigurationCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionMutatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionMutatingWebhookConfigurationCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of MutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionMutatingWebhookConfiguration(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionMutatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of MutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionMutatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of MutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionMutatingWebhookConfigurationAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionMutatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionValidatingWebhookConfigurationCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionValidatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionValidatingWebhookConfigurationCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionValidatingWebhookConfiguration(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionValidatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionValidatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionValidatingWebhookConfigurationAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionValidatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteMutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteMutatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteMutatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = deleteMutatingWebhookConfigurationCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -768,17 +862,24 @@ private com.squareup.okhttp.Call deleteMutatingWebhookConfigurationValidateBefor * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteMutatingWebhookConfiguration(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteMutatingWebhookConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteMutatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -786,18 +887,25 @@ public V1Status deleteMutatingWebhookConfiguration(String name, String pretty, V * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -805,123 +913,110 @@ public ApiResponse deleteMutatingWebhookConfigurationWithHttpInfo(Stri * delete a MutatingWebhookConfiguration * @param name name of the MutatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteMutatingWebhookConfigurationAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteMutatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteMutatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteValidatingWebhookConfigurationCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteValidatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = deleteValidatingWebhookConfigurationCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -929,17 +1024,24 @@ private com.squareup.okhttp.Call deleteValidatingWebhookConfigurationValidateBef * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteValidatingWebhookConfiguration(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteValidatingWebhookConfiguration(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteValidatingWebhookConfigurationWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -947,18 +1049,25 @@ public V1Status deleteValidatingWebhookConfiguration(String name, String pretty, * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -966,100 +1075,76 @@ public ApiResponse deleteValidatingWebhookConfigurationWithHttpInfo(St * delete a ValidatingWebhookConfiguration * @param name name of the ValidatingWebhookConfiguration (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteValidatingWebhookConfigurationAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteValidatingWebhookConfigurationAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteValidatingWebhookConfigurationValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -1067,10 +1152,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -1078,49 +1169,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listMutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1128,85 +1213,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listMutatingWebhookConfigurationCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listMutatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listMutatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listMutatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listMutatingWebhookConfigurationCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listMutatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind MutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1216,16 +1310,23 @@ private com.squareup.okhttp.Call listMutatingWebhookConfigurationValidateBeforeC * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1MutatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listMutatingWebhookConfigurationWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1MutatingWebhookConfigurationList listMutatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listMutatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind MutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1235,17 +1336,24 @@ public V1beta1MutatingWebhookConfigurationList listMutatingWebhookConfiguration( * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1MutatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listMutatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listMutatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind MutatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1253,39 +1361,27 @@ public ApiResponse listMutatingWebhookC * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listMutatingWebhookConfigurationAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listMutatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listMutatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listMutatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1293,85 +1389,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listValidatingWebhookConfigurationCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listValidatingWebhookConfigurationCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listValidatingWebhookConfigurationValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listValidatingWebhookConfigurationValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listValidatingWebhookConfigurationCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listValidatingWebhookConfigurationCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1381,16 +1486,23 @@ private com.squareup.okhttp.Call listValidatingWebhookConfigurationValidateBefor * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ValidatingWebhookConfigurationList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listValidatingWebhookConfigurationWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ValidatingWebhookConfigurationList listValidatingWebhookConfiguration(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listValidatingWebhookConfigurationWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1400,17 +1512,24 @@ public V1beta1ValidatingWebhookConfigurationList listValidatingWebhookConfigurat * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ValidatingWebhookConfigurationList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listValidatingWebhookConfigurationWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listValidatingWebhookConfigurationWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ValidatingWebhookConfiguration * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1418,35 +1537,22 @@ public ApiResponse listValidatingWebh * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listValidatingWebhookConfigurationAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listValidatingWebhookConfigurationAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listValidatingWebhookConfigurationValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listValidatingWebhookConfigurationValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchMutatingWebhookConfiguration @@ -1456,63 +1562,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchMutatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchMutatingWebhookConfigurationCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchMutatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchMutatingWebhookConfigurationValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1524,14 +1630,10 @@ private com.squareup.okhttp.Call patchMutatingWebhookConfigurationValidateBefore throw new ApiException("Missing the required parameter 'body' when calling patchMutatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1545,10 +1647,16 @@ private com.squareup.okhttp.Call patchMutatingWebhookConfigurationValidateBefore * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1562,11 +1670,17 @@ public V1beta1MutatingWebhookConfiguration patchMutatingWebhookConfiguration(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchMutatingWebhookConfigurationWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1578,35 +1692,22 @@ public ApiResponse patchMutatingWebhookConf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchMutatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchMutatingWebhookConfigurationAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchValidatingWebhookConfiguration @@ -1616,63 +1717,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchValidatingWebhookConfigurationCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchValidatingWebhookConfigurationCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchValidatingWebhookConfigurationValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchValidatingWebhookConfigurationValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1684,14 +1785,10 @@ private com.squareup.okhttp.Call patchValidatingWebhookConfigurationValidateBefo throw new ApiException("Missing the required parameter 'body' when calling patchValidatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1705,10 +1802,16 @@ private com.squareup.okhttp.Call patchValidatingWebhookConfigurationValidateBefo * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1722,11 +1825,17 @@ public V1beta1ValidatingWebhookConfiguration patchValidatingWebhookConfiguration * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchValidatingWebhookConfigurationWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1738,35 +1847,22 @@ public ApiResponse patchValidatingWebhook * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchValidatingWebhookConfigurationAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchValidatingWebhookConfigurationAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readMutatingWebhookConfiguration @@ -1774,75 +1870,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readMutatingWebhookConfigurationCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readMutatingWebhookConfigurationCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readMutatingWebhookConfigurationValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readMutatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = readMutatingWebhookConfigurationCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readMutatingWebhookConfigurationCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1854,10 +1944,16 @@ private com.squareup.okhttp.Call readMutatingWebhookConfigurationValidateBeforeC * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1MutatingWebhookConfiguration readMutatingWebhookConfiguration(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readMutatingWebhookConfigurationWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readMutatingWebhookConfigurationWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1869,11 +1965,17 @@ public V1beta1MutatingWebhookConfiguration readMutatingWebhookConfiguration(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readMutatingWebhookConfigurationWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1883,35 +1985,22 @@ public ApiResponse readMutatingWebhookConfi * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readMutatingWebhookConfigurationAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readMutatingWebhookConfigurationAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readMutatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readValidatingWebhookConfiguration @@ -1919,75 +2008,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readValidatingWebhookConfigurationCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readValidatingWebhookConfigurationCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readValidatingWebhookConfigurationValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readValidatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = readValidatingWebhookConfigurationCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readValidatingWebhookConfigurationCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1999,10 +2082,16 @@ private com.squareup.okhttp.Call readValidatingWebhookConfigurationValidateBefor * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1ValidatingWebhookConfiguration readValidatingWebhookConfiguration(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readValidatingWebhookConfigurationWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readValidatingWebhookConfigurationWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -2014,11 +2103,17 @@ public V1beta1ValidatingWebhookConfiguration readValidatingWebhookConfiguration( * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readValidatingWebhookConfigurationWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2028,35 +2123,22 @@ public ApiResponse readValidatingWebhookC * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readValidatingWebhookConfigurationAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readValidatingWebhookConfigurationAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readValidatingWebhookConfigurationValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceMutatingWebhookConfiguration @@ -2065,61 +2147,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceMutatingWebhookConfigurationCall(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceMutatingWebhookConfigurationCall(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/mutatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceMutatingWebhookConfigurationValidateBeforeCall(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceMutatingWebhookConfigurationValidateBeforeCall(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2131,14 +2212,10 @@ private com.squareup.okhttp.Call replaceMutatingWebhookConfigurationValidateBefo throw new ApiException("Missing the required parameter 'body' when calling replaceMutatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = replaceMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2151,10 +2228,17 @@ private com.squareup.okhttp.Call replaceMutatingWebhookConfigurationValidateBefo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1MutatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceMutatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2167,11 +2251,18 @@ public V1beta1MutatingWebhookConfiguration replaceMutatingWebhookConfiguration(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1MutatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceMutatingWebhookConfigurationWithHttpInfo(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2182,35 +2273,23 @@ public ApiResponse replaceMutatingWebhookCo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceMutatingWebhookConfigurationAsync(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceMutatingWebhookConfigurationAsync(String name, V1beta1MutatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceMutatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceValidatingWebhookConfiguration @@ -2219,61 +2298,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceValidatingWebhookConfigurationCall(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceValidatingWebhookConfigurationCall(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/admissionregistration.k8s.io/v1beta1/validatingwebhookconfigurations/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceValidatingWebhookConfigurationValidateBeforeCall(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceValidatingWebhookConfigurationValidateBeforeCall(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2285,14 +2363,10 @@ private com.squareup.okhttp.Call replaceValidatingWebhookConfigurationValidateBe throw new ApiException("Missing the required parameter 'body' when calling replaceValidatingWebhookConfiguration(Async)"); } - - com.squareup.okhttp.Call call = replaceValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2305,10 +2379,17 @@ private com.squareup.okhttp.Call replaceValidatingWebhookConfigurationValidateBe * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ValidatingWebhookConfiguration * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1ValidatingWebhookConfiguration replaceValidatingWebhookConfiguration(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceValidatingWebhookConfigurationWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2321,11 +2402,18 @@ public V1beta1ValidatingWebhookConfiguration replaceValidatingWebhookConfigurati * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ValidatingWebhookConfiguration> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceValidatingWebhookConfigurationWithHttpInfo(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2336,34 +2424,22 @@ public ApiResponse replaceValidatingWebho * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceValidatingWebhookConfigurationAsync(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceValidatingWebhookConfigurationAsync(String name, V1beta1ValidatingWebhookConfiguration body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceValidatingWebhookConfigurationValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsApi.java index 68ab297036..afebf32b94 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class ApiextensionsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ApiextensionsApi() { this(Configuration.getDefaultApiClient()); } public ApiextensionsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsV1beta1Api.java index a80956e36c..b72e4ad9b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiextensionsV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CustomResourceDefinition; import io.kubernetes.client.models.V1beta1CustomResourceDefinitionList; @@ -41,22 +40,22 @@ import java.util.Map; public class ApiextensionsV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ApiextensionsV1beta1Api() { this(Configuration.getDefaultApiClient()); } public ApiextensionsV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCustomResourceDefinitionCall(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createCustomResourceDefinitionCall(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createCustomResourceDefinitionValidateBeforeCall(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createCustomResourceDefinitionValidateBeforeCall(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCustomResourceDefinition(Async)"); } - - com.squareup.okhttp.Call call = createCustomResourceDefinitionCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createCustomResourceDefinitionCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createCustomResourceDefinitionValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1CustomResourceDefinition createCustomResourceDefinition(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createCustomResourceDefinitionWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1beta1CustomResourceDefinition createCustomResourceDefinition(V1beta1Cus * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createCustomResourceDefinitionWithHttpInfo(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createCustomResourceDefiniti * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCustomResourceDefinitionAsync(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createCustomResourceDefinitionAsync(V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createCustomResourceDefinitionValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionCustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCustomResourceDefinitionCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionCustomResourceDefinitionCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionCustomResourceDefinitionValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionCustomResourceDefinitionCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of CustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionCustomResourceDefinition(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionCustomResourceDefinition(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of CustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionCustomResourceDefinitionWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of CustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionCustomResourceDefinitionAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCustomResourceDefinitionCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteCustomResourceDefinitionCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCustomResourceDefinitionValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCustomResourceDefinitionValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCustomResourceDefinition(Async)"); } - - com.squareup.okhttp.Call call = deleteCustomResourceDefinitionCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCustomResourceDefinitionCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deleteCustomResourceDefinitionValidateBeforeCal * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCustomResourceDefinition(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteCustomResourceDefinitionWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteCustomResourceDefinition(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCustomResourceDefinitionWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deleteCustomResourceDefinition(String name, String pretty, V1Del * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deleteCustomResourceDefinitionWithHttpInfo(String n * delete a CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCustomResourceDefinitionAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCustomResourceDefinitionAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCustomResourceDefinitionValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listCustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCustomResourceDefinitionCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listCustomResourceDefinitionCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listCustomResourceDefinitionValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listCustomResourceDefinitionValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listCustomResourceDefinitionCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listCustomResourceDefinitionCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind CustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listCustomResourceDefinitionValidateBeforeCall( * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1CustomResourceDefinitionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CustomResourceDefinitionList listCustomResourceDefinition(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listCustomResourceDefinitionWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1CustomResourceDefinitionList listCustomResourceDefinition(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listCustomResourceDefinitionWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind CustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1beta1CustomResourceDefinitionList listCustomResourceDefinition(String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1CustomResourceDefinitionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listCustomResourceDefinitionWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listCustomResourceDefinitionValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listCustomResourceDefinitionWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind CustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listCustomResourceDefini * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCustomResourceDefinitionAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listCustomResourceDefinitionAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listCustomResourceDefinitionValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listCustomResourceDefinitionValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchCustomResourceDefinition @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCustomResourceDefinitionCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchCustomResourceDefinitionCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchCustomResourceDefinitionValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchCustomResourceDefinitionValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling patchCustomResourceDefinition(Async)"); } - - com.squareup.okhttp.Call call = patchCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchCustomResourceDefinitionValidateBeforeCall * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CustomResourceDefinition patchCustomResourceDefinition(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CustomResourceDefinition patchCustomResourceDefinition(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1beta1CustomResourceDefinition patchCustomResourceDefinition(String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchCustomResourceDefinitionWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchCustomResourceDefinitionWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchCustomResourceDefinitio * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCustomResourceDefinitionAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchCustomResourceDefinitionAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchCustomResourceDefinitionStatus @@ -979,63 +1020,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCustomResourceDefinitionStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchCustomResourceDefinitionStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchCustomResourceDefinitionStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchCustomResourceDefinitionStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1047,14 +1088,10 @@ private com.squareup.okhttp.Call patchCustomResourceDefinitionStatusValidateBefo throw new ApiException("Missing the required parameter 'body' when calling patchCustomResourceDefinitionStatus(Async)"); } - - com.squareup.okhttp.Call call = patchCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1068,10 +1105,16 @@ private com.squareup.okhttp.Call patchCustomResourceDefinitionStatusValidateBefo * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CustomResourceDefinition patchCustomResourceDefinitionStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CustomResourceDefinition patchCustomResourceDefinitionStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1085,11 +1128,17 @@ public V1beta1CustomResourceDefinition patchCustomResourceDefinitionStatus(Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchCustomResourceDefinitionStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchCustomResourceDefinitionStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1101,35 +1150,22 @@ public ApiResponse patchCustomResourceDefinitio * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCustomResourceDefinitionStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchCustomResourceDefinitionStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readCustomResourceDefinition @@ -1137,75 +1173,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCustomResourceDefinitionCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readCustomResourceDefinitionCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readCustomResourceDefinitionValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCustomResourceDefinition(Async)"); } - - com.squareup.okhttp.Call call = readCustomResourceDefinitionCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readCustomResourceDefinitionCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1217,10 +1247,16 @@ private com.squareup.okhttp.Call readCustomResourceDefinitionValidateBeforeCall( * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CustomResourceDefinition readCustomResourceDefinition(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readCustomResourceDefinitionWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readCustomResourceDefinitionWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1232,11 +1268,17 @@ public V1beta1CustomResourceDefinition readCustomResourceDefinition(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readCustomResourceDefinitionWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readCustomResourceDefinitionValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readCustomResourceDefinitionValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1246,105 +1288,82 @@ public ApiResponse readCustomResourceDefinition * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCustomResourceDefinitionAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readCustomResourceDefinitionAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readCustomResourceDefinitionValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readCustomResourceDefinitionValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readCustomResourceDefinitionStatus * @param name name of the CustomResourceDefinition (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCustomResourceDefinitionStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readCustomResourceDefinitionStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readCustomResourceDefinitionStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readCustomResourceDefinitionStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCustomResourceDefinitionStatus(Async)"); } - - com.squareup.okhttp.Call call = readCustomResourceDefinitionStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readCustomResourceDefinitionStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -1354,10 +1373,16 @@ private com.squareup.okhttp.Call readCustomResourceDefinitionStatusValidateBefor * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CustomResourceDefinition readCustomResourceDefinitionStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readCustomResourceDefinitionStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readCustomResourceDefinitionStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -1367,11 +1392,17 @@ public V1beta1CustomResourceDefinition readCustomResourceDefinitionStatus(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readCustomResourceDefinitionStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1379,35 +1410,22 @@ public ApiResponse readCustomResourceDefinition * read status of the specified CustomResourceDefinition * @param name name of the CustomResourceDefinition (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCustomResourceDefinitionStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readCustomResourceDefinitionStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readCustomResourceDefinitionStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCustomResourceDefinition @@ -1416,61 +1434,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCustomResourceDefinitionCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCustomResourceDefinitionCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCustomResourceDefinitionValidateBeforeCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionValidateBeforeCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1482,14 +1499,10 @@ private com.squareup.okhttp.Call replaceCustomResourceDefinitionValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling replaceCustomResourceDefinition(Async)"); } - - com.squareup.okhttp.Call call = replaceCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCustomResourceDefinitionCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1502,10 +1515,17 @@ private com.squareup.okhttp.Call replaceCustomResourceDefinitionValidateBeforeCa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CustomResourceDefinition replaceCustomResourceDefinition(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceCustomResourceDefinitionWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1518,11 +1538,18 @@ public V1beta1CustomResourceDefinition replaceCustomResourceDefinition(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCustomResourceDefinitionWithHttpInfo(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1533,35 +1560,23 @@ public ApiResponse replaceCustomResourceDefinit * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCustomResourceDefinitionAsync(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceCustomResourceDefinitionAsync(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCustomResourceDefinitionValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCustomResourceDefinitionStatus @@ -1570,61 +1585,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCustomResourceDefinitionStatusCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCustomResourceDefinitionStatusCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCustomResourceDefinitionStatusValidateBeforeCall(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1636,14 +1650,10 @@ private com.squareup.okhttp.Call replaceCustomResourceDefinitionStatusValidateBe throw new ApiException("Missing the required parameter 'body' when calling replaceCustomResourceDefinitionStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1656,10 +1666,17 @@ private com.squareup.okhttp.Call replaceCustomResourceDefinitionStatusValidateBe * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CustomResourceDefinition * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CustomResourceDefinition replaceCustomResourceDefinitionStatus(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceCustomResourceDefinitionStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1672,11 +1689,18 @@ public V1beta1CustomResourceDefinition replaceCustomResourceDefinitionStatus(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CustomResourceDefinition> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCustomResourceDefinitionStatusWithHttpInfo(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1687,34 +1711,22 @@ public ApiResponse replaceCustomResourceDefinit * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCustomResourceDefinitionStatusAsync(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceCustomResourceDefinitionStatusAsync(String name, V1beta1CustomResourceDefinition body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCustomResourceDefinitionStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationApi.java index 3bf1135d79..28a40c46e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class ApiregistrationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ApiregistrationApi() { this(Configuration.getDefaultApiClient()); } public ApiregistrationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1Api.java index 108b279a3f..2f9d1c92c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.V1APIService; import io.kubernetes.client.models.V1APIServiceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import java.lang.reflect.Type; @@ -41,22 +40,22 @@ import java.util.Map; public class ApiregistrationV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ApiregistrationV1Api() { this(Configuration.getDefaultApiClient()); } public ApiregistrationV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createAPIServiceCall(V1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createAPIServiceCall(V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createAPIServiceValidateBeforeCall(V1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createAPIServiceValidateBeforeCall(V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAPIService(Async)"); } - - com.squareup.okhttp.Call call = createAPIServiceCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createAPIServiceCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createAPIServiceValidateBeforeCall(V1APIService * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1APIService createAPIService(V1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1APIService createAPIService(V1APIService body, String pretty, String dr * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createAPIServiceWithHttpInfo(V1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,118 +184,106 @@ public ApiResponse createAPIServiceWithHttpInfo(V1APIService body, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createAPIServiceAsync(V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createAPIServiceAsync(V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteAPIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteAPIServiceCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAPIService(Async)"); } - - com.squareup.okhttp.Call call = deleteAPIServiceCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -292,17 +291,24 @@ private com.squareup.okhttp.Call deleteAPIServiceValidateBeforeCall(String name, * delete an APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteAPIService(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteAPIServiceWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteAPIService(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -310,18 +316,25 @@ public V1Status deleteAPIService(String name, String pretty, V1DeleteOptions bod * delete an APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteAPIServiceValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -329,265 +342,288 @@ public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pr * delete an APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteAPIServiceAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteAPIServiceValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionAPIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionAPIServiceCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionAPIServiceCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionAPIServiceCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionAPIService(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionAPIService(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionAPIServiceAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listAPIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listAPIServiceCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listAPIServiceValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listAPIServiceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listAPIServiceCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listAPIServiceValidateBeforeCall(String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1APIServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1APIServiceList listAPIService(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listAPIServiceWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1APIServiceList listAPIService(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1APIServiceList listAPIService(String pretty, String _continue, String f * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1APIServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listAPIServiceWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listAPIServiceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listAPIServiceWithHttpInfo(String pretty, S * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listAPIServiceAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchAPIService @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchAPIServiceCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchAPIServiceValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchAPIService(Async)"); } - - com.squareup.okhttp.Call call = patchAPIServiceCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchAPIServiceCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchAPIServiceValidateBeforeCall(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1APIService patchAPIService(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1APIService patchAPIService(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1APIService patchAPIService(String name, V1Patch body, String pretty, St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchAPIServiceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchAPIServiceWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchAPIServiceWithHttpInfo(String name, V1Patc * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchAPIServiceAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchAPIServiceStatus @@ -979,63 +1020,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchAPIServiceStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1047,14 +1088,10 @@ private com.squareup.okhttp.Call patchAPIServiceStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchAPIServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = patchAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1068,10 +1105,16 @@ private com.squareup.okhttp.Call patchAPIServiceStatusValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1APIService patchAPIServiceStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1APIService patchAPIServiceStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1085,11 +1128,17 @@ public V1APIService patchAPIServiceStatus(String name, V1Patch body, String pret * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchAPIServiceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchAPIServiceStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1101,35 +1150,22 @@ public ApiResponse patchAPIServiceStatusWithHttpInfo(String name, * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchAPIServiceStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readAPIService @@ -1137,75 +1173,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readAPIServiceCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readAPIServiceValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIService(Async)"); } - - com.squareup.okhttp.Call call = readAPIServiceCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readAPIServiceCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1217,10 +1247,16 @@ private com.squareup.okhttp.Call readAPIServiceValidateBeforeCall(String name, S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIService readAPIService(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readAPIServiceWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readAPIServiceWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1232,11 +1268,17 @@ public V1APIService readAPIService(String name, String pretty, Boolean exact, Bo * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readAPIServiceWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readAPIServiceValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1246,105 +1288,82 @@ public ApiResponse readAPIServiceWithHttpInfo(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readAPIServiceAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readAPIServiceValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readAPIServiceStatus * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = readAPIServiceStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readAPIServiceStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -1354,10 +1373,16 @@ private com.squareup.okhttp.Call readAPIServiceStatusValidateBeforeCall(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIService readAPIServiceStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readAPIServiceStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readAPIServiceStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -1367,11 +1392,17 @@ public V1APIService readAPIServiceStatus(String name, String pretty) throws ApiE * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readAPIServiceStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readAPIServiceStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1379,35 +1410,22 @@ public ApiResponse readAPIServiceStatusWithHttpInfo(String name, S * read status of the specified APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readAPIServiceStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceAPIService @@ -1416,61 +1434,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceAPIServiceCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceAPIServiceValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1482,14 +1499,10 @@ private com.squareup.okhttp.Call replaceAPIServiceValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling replaceAPIService(Async)"); } - - com.squareup.okhttp.Call call = replaceAPIServiceCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceAPIServiceCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1502,10 +1515,17 @@ private com.squareup.okhttp.Call replaceAPIServiceValidateBeforeCall(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1APIService replaceAPIService(String name, V1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1518,11 +1538,18 @@ public V1APIService replaceAPIService(String name, V1APIService body, String pre * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceAPIServiceWithHttpInfo(String name, V1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1533,35 +1560,23 @@ public ApiResponse replaceAPIServiceWithHttpInfo(String name, V1AP * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceAPIServiceAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceAPIServiceStatus @@ -1570,61 +1585,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceStatusCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceAPIServiceStatusCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1636,14 +1650,10 @@ private com.squareup.okhttp.Call replaceAPIServiceStatusValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceAPIServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1656,10 +1666,17 @@ private com.squareup.okhttp.Call replaceAPIServiceStatusValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1APIService replaceAPIServiceStatus(String name, V1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1672,11 +1689,18 @@ public V1APIService replaceAPIServiceStatus(String name, V1APIService body, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceAPIServiceStatusWithHttpInfo(String name, V1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1687,34 +1711,22 @@ public ApiResponse replaceAPIServiceStatusWithHttpInfo(String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceStatusAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceAPIServiceStatusAsync(String name, V1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1beta1Api.java index 8ae34ec530..91d6c0593d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ApiregistrationV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1APIService; import io.kubernetes.client.models.V1beta1APIServiceList; @@ -41,22 +40,22 @@ import java.util.Map; public class ApiregistrationV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ApiregistrationV1beta1Api() { this(Configuration.getDefaultApiClient()); } public ApiregistrationV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createAPIServiceCall(V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createAPIServiceCall(V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createAPIServiceValidateBeforeCall(V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createAPIServiceValidateBeforeCall(V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAPIService(Async)"); } - - com.squareup.okhttp.Call call = createAPIServiceCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createAPIServiceCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createAPIServiceValidateBeforeCall(V1beta1APISe * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1APIService createAPIService(V1beta1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createAPIServiceWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1beta1APIService createAPIService(V1beta1APIService body, String pretty, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createAPIServiceWithHttpInfo(V1beta1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,118 +184,106 @@ public ApiResponse createAPIServiceWithHttpInfo(V1beta1APISer * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createAPIServiceAsync(V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createAPIServiceAsync(V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createAPIServiceValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteAPIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteAPIServiceCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteAPIServiceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteAPIServiceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAPIService(Async)"); } - - com.squareup.okhttp.Call call = deleteAPIServiceCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteAPIServiceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -292,17 +291,24 @@ private com.squareup.okhttp.Call deleteAPIServiceValidateBeforeCall(String name, * delete an APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteAPIService(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteAPIServiceWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteAPIService(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteAPIServiceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -310,18 +316,25 @@ public V1Status deleteAPIService(String name, String pretty, V1DeleteOptions bod * delete an APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteAPIServiceValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -329,265 +342,288 @@ public ApiResponse deleteAPIServiceWithHttpInfo(String name, String pr * delete an APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteAPIServiceAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteAPIServiceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteAPIServiceValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteAPIServiceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionAPIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionAPIServiceCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionAPIServiceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionAPIServiceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionAPIServiceCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionAPIServiceCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionAPIService(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionAPIServiceWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionAPIService(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionAPIServiceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionAPIServiceAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionAPIServiceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listAPIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listAPIServiceCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listAPIServiceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listAPIServiceValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listAPIServiceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listAPIServiceCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listAPIServiceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listAPIServiceValidateBeforeCall(String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1APIServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1APIServiceList listAPIService(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listAPIServiceWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1APIServiceList listAPIService(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listAPIServiceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1beta1APIServiceList listAPIService(String pretty, String _continue, Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1APIServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listAPIServiceWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listAPIServiceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind APIService * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listAPIServiceWithHttpInfo(String pret * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listAPIServiceAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listAPIServiceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listAPIServiceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listAPIServiceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchAPIService @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchAPIServiceCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchAPIServiceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchAPIServiceValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchAPIServiceValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchAPIService(Async)"); } - - com.squareup.okhttp.Call call = patchAPIServiceCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchAPIServiceCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchAPIServiceValidateBeforeCall(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1APIService patchAPIService(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1APIService patchAPIService(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1beta1APIService patchAPIService(String name, V1Patch body, String prett * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchAPIServiceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchAPIServiceWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchAPIServiceWithHttpInfo(String name, V * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchAPIServiceAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchAPIServiceStatus @@ -979,63 +1020,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchAPIServiceStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchAPIServiceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchAPIServiceStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1047,14 +1088,10 @@ private com.squareup.okhttp.Call patchAPIServiceStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchAPIServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = patchAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1068,10 +1105,16 @@ private com.squareup.okhttp.Call patchAPIServiceStatusValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1APIService patchAPIServiceStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1APIService patchAPIServiceStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1085,11 +1128,17 @@ public V1beta1APIService patchAPIServiceStatus(String name, V1Patch body, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchAPIServiceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchAPIServiceStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1101,35 +1150,22 @@ public ApiResponse patchAPIServiceStatusWithHttpInfo(String n * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAPIServiceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchAPIServiceStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readAPIService @@ -1137,75 +1173,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readAPIServiceCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readAPIServiceValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readAPIServiceValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIService(Async)"); } - - com.squareup.okhttp.Call call = readAPIServiceCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readAPIServiceCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1217,10 +1247,16 @@ private com.squareup.okhttp.Call readAPIServiceValidateBeforeCall(String name, S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1APIService readAPIService(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readAPIServiceWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readAPIServiceWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1232,11 +1268,17 @@ public V1beta1APIService readAPIService(String name, String pretty, Boolean exac * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readAPIServiceWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readAPIServiceValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1246,105 +1288,82 @@ public ApiResponse readAPIServiceWithHttpInfo(String name, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readAPIServiceAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readAPIServiceValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readAPIServiceValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readAPIServiceStatus * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readAPIServiceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readAPIServiceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAPIServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = readAPIServiceStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readAPIServiceStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -1354,10 +1373,16 @@ private com.squareup.okhttp.Call readAPIServiceStatusValidateBeforeCall(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1APIService readAPIServiceStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readAPIServiceStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readAPIServiceStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -1367,11 +1392,17 @@ public V1beta1APIService readAPIServiceStatus(String name, String pretty) throws * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readAPIServiceStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readAPIServiceStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1379,35 +1410,22 @@ public ApiResponse readAPIServiceStatusWithHttpInfo(String na * read status of the specified APIService * @param name name of the APIService (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAPIServiceStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readAPIServiceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readAPIServiceStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readAPIServiceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceAPIService @@ -1416,61 +1434,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceAPIServiceCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceAPIServiceValidateBeforeCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceAPIServiceValidateBeforeCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1482,14 +1499,10 @@ private com.squareup.okhttp.Call replaceAPIServiceValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling replaceAPIService(Async)"); } - - com.squareup.okhttp.Call call = replaceAPIServiceCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceAPIServiceCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1502,10 +1515,17 @@ private com.squareup.okhttp.Call replaceAPIServiceValidateBeforeCall(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1APIService replaceAPIService(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceAPIServiceWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1518,11 +1538,18 @@ public V1beta1APIService replaceAPIService(String name, V1beta1APIService body, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceAPIServiceWithHttpInfo(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1533,35 +1560,23 @@ public ApiResponse replaceAPIServiceWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceAsync(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceAPIServiceAsync(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceAPIServiceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceAPIServiceStatus @@ -1570,61 +1585,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceStatusCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceAPIServiceStatusCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apiregistration.k8s.io/v1beta1/apiservices/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceAPIServiceStatusValidateBeforeCall(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1636,14 +1650,10 @@ private com.squareup.okhttp.Call replaceAPIServiceStatusValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceAPIServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceAPIServiceStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1656,10 +1666,17 @@ private com.squareup.okhttp.Call replaceAPIServiceStatusValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1APIService * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1APIService replaceAPIServiceStatus(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceAPIServiceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1672,11 +1689,18 @@ public V1beta1APIService replaceAPIServiceStatus(String name, V1beta1APIService * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1APIService> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceAPIServiceStatusWithHttpInfo(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1687,34 +1711,22 @@ public ApiResponse replaceAPIServiceStatusWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAPIServiceStatusAsync(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceAPIServiceStatusAsync(String name, V1beta1APIService body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceAPIServiceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ApisApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ApisApi.java index 9703f1b4a2..bf405a2b3b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ApisApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ApisApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class ApisApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ApisApi() { this(Configuration.getDefaultApiClient()); } public ApisApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIVersions - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIVersionsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIVersionsValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIVersionsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIVersionsCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIVersionsCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIVersionsValidateBeforeCall(final Progress * get available API versions * @return V1APIGroupList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroupList getAPIVersions() throws ApiException { - ApiResponse resp = getAPIVersionsWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIVersionsWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroupList getAPIVersions() throws ApiException { * get available API versions * @return ApiResponse<V1APIGroupList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIVersionsWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIVersionsValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIVersionsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available API versions - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIVersionsAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIVersionsAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIVersionsValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIVersionsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsApi.java index 8ceb74ab87..2cd2e05068 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class AppsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AppsApi() { this(Configuration.getDefaultApiClient()); } public AppsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1Api.java index b6774128fe..da69dec89f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -35,7 +35,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1Deployment; import io.kubernetes.client.models.V1DeploymentList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1ReplicaSet; import io.kubernetes.client.models.V1ReplicaSetList; import io.kubernetes.client.models.V1Scale; @@ -50,22 +49,22 @@ import java.util.Map; public class AppsV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AppsV1Api() { this(Configuration.getDefaultApiClient()); } public AppsV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -75,61 +74,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedControllerRevisionCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -141,14 +140,10 @@ private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBefor throw new ApiException("Missing the required parameter 'body' when calling createNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -161,10 +156,18 @@ private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ControllerRevision createNamespacedControllerRevision(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -177,11 +180,19 @@ public V1ControllerRevision createNamespacedControllerRevision(String namespace, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedControllerRevisionWithHttpInfo(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -192,35 +203,24 @@ public ApiResponse createNamespacedControllerRevisionWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedControllerRevisionAsync(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDaemonSet @@ -229,61 +229,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -295,14 +295,10 @@ private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -315,10 +311,18 @@ private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1DaemonSet createNamespacedDaemonSet(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -331,11 +335,19 @@ public V1DaemonSet createNamespacedDaemonSet(String namespace, V1DaemonSet body, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDaemonSetWithHttpInfo(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -346,35 +358,24 @@ public ApiResponse createNamespacedDaemonSetWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDeployment @@ -383,61 +384,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -449,14 +450,10 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -469,10 +466,18 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Deployment createNamespacedDeployment(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -485,11 +490,19 @@ public V1Deployment createNamespacedDeployment(String namespace, V1Deployment bo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDeploymentWithHttpInfo(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -500,35 +513,24 @@ public ApiResponse createNamespacedDeploymentWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentAsync(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedReplicaSet @@ -537,61 +539,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -603,14 +605,10 @@ private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -623,10 +621,18 @@ private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ReplicaSet createNamespacedReplicaSet(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -639,11 +645,19 @@ public V1ReplicaSet createNamespacedReplicaSet(String namespace, V1ReplicaSet bo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedReplicaSetWithHttpInfo(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -654,35 +668,24 @@ public ApiResponse createNamespacedReplicaSetWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicaSetAsync(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedStatefulSet @@ -691,61 +694,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedStatefulSetCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -757,14 +760,10 @@ private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -777,10 +776,18 @@ private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1StatefulSet createNamespacedStatefulSet(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -793,11 +800,19 @@ public V1StatefulSet createNamespacedStatefulSet(String namespace, V1StatefulSet * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedStatefulSetWithHttpInfo(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -808,126 +823,145 @@ public ApiResponse createNamespacedStatefulSetWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedStatefulSetAsync(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -935,19 +969,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionVal * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -955,20 +1001,32 @@ public V1Status deleteCollectionNamespacedControllerRevision(String namespace, S * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -976,133 +1034,156 @@ public ApiResponse deleteCollectionNamespacedControllerRevisionWithHtt * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1110,19 +1191,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetValidateBefo * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1130,20 +1223,32 @@ public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pre * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1151,133 +1256,156 @@ public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(Str * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1285,19 +1413,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBef * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1305,20 +1445,32 @@ public V1Status deleteCollectionNamespacedDeployment(String namespace, String pr * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,133 +1478,156 @@ public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(St * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1460,19 +1635,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetValidateBef * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1480,20 +1667,32 @@ public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pr * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1501,133 +1700,156 @@ public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(St * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1635,19 +1857,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetValidateBe * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1655,20 +1889,32 @@ public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String p * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1676,113 +1922,109 @@ public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(S * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1794,14 +2036,10 @@ private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBefor throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1810,17 +2048,24 @@ private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBefor * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1829,18 +2074,25 @@ public V1Status deleteNamespacedControllerRevision(String name, String namespace * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1849,111 +2101,102 @@ public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(Stri * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1965,14 +2208,10 @@ private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1981,17 +2220,24 @@ private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(Str * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2000,18 +2246,25 @@ public V1Status deleteNamespacedDaemonSet(String name, String namespace, String * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2020,111 +2273,102 @@ public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDeployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2136,14 +2380,10 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2152,17 +2392,24 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2171,18 +2418,25 @@ public V1Status deleteNamespacedDeployment(String name, String namespace, String * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2191,111 +2445,102 @@ public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2307,14 +2552,10 @@ private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2323,17 +2564,24 @@ private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(St * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2342,18 +2590,25 @@ public V1Status deleteNamespacedReplicaSet(String name, String namespace, String * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2362,111 +2617,102 @@ public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedStatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2478,14 +2724,10 @@ private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2494,17 +2736,24 @@ private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(S * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2513,18 +2762,25 @@ public V1Status deleteNamespacedStatefulSet(String name, String namespace, Strin * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2533,100 +2789,76 @@ public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -2634,10 +2866,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -2645,48 +2883,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listControllerRevisionForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2695,84 +2927,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listControllerRevisionForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/controllerrevisions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listControllerRevisionForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2783,15 +3024,22 @@ private com.squareup.okhttp.Call listControllerRevisionForAllNamespacesValidateB * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ControllerRevisionList listControllerRevisionForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listControllerRevisionForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ControllerRevisionList listControllerRevisionForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2802,16 +3050,23 @@ public V1ControllerRevisionList listControllerRevisionForAllNamespaces(String _c * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2820,38 +3075,26 @@ public ApiResponse listControllerRevisionForAllNamespa * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listControllerRevisionForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDaemonSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2860,84 +3103,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDaemonSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/daemonsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDaemonSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2948,15 +3200,22 @@ private com.squareup.okhttp.Call listDaemonSetForAllNamespacesValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1DaemonSetList listDaemonSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDaemonSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1DaemonSetList listDaemonSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2967,16 +3226,23 @@ public V1DaemonSetList listDaemonSetForAllNamespaces(String _continue, String fi * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2985,38 +3251,26 @@ public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDaemonSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDeploymentForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3025,84 +3279,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/deployments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3113,15 +3376,22 @@ private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1DeploymentList listDeploymentForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDeploymentForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1DeploymentList listDeploymentForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3132,16 +3402,23 @@ public V1DeploymentList listDeploymentForAllNamespaces(String _continue, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3150,40 +3427,28 @@ public ApiResponse listDeploymentForAllNamespacesWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3191,85 +3456,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedControllerRevisionCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3277,6 +3550,7 @@ private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeC * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3286,10 +3560,16 @@ private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeC * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ControllerRevisionList listNamespacedControllerRevision(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ControllerRevisionList listNamespacedControllerRevision(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3297,6 +3577,7 @@ public V1ControllerRevisionList listNamespacedControllerRevision(String namespac * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3306,11 +3587,17 @@ public V1ControllerRevisionList listNamespacedControllerRevision(String namespac * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3318,6 +3605,7 @@ public ApiResponse listNamespacedControllerRevisionWit * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3325,40 +3613,28 @@ public ApiResponse listNamespacedControllerRevisionWit * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3366,85 +3642,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDaemonSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3452,6 +3736,7 @@ private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(Strin * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3461,10 +3746,16 @@ private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3472,6 +3763,7 @@ public V1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3481,11 +3773,17 @@ public V1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3493,6 +3791,7 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(String n * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3500,40 +3799,28 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(String n * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3541,85 +3828,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3627,6 +3922,7 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3636,10 +3932,16 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1DeploymentList listNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1DeploymentList listNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3647,6 +3949,7 @@ public V1DeploymentList listNamespacedDeployment(String namespace, String pretty * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3656,11 +3959,17 @@ public V1DeploymentList listNamespacedDeployment(String namespace, String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3668,6 +3977,7 @@ public ApiResponse listNamespacedDeploymentWithHttpInfo(String * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3675,40 +3985,28 @@ public ApiResponse listNamespacedDeploymentWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3716,85 +4014,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedReplicaSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3802,6 +4108,7 @@ private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(Stri * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3811,10 +4118,16 @@ private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3822,6 +4135,7 @@ public V1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3831,11 +4145,17 @@ public V1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3843,6 +4163,7 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(String * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3850,40 +4171,28 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3891,85 +4200,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedStatefulSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3977,6 +4294,7 @@ private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(Str * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3986,10 +4304,16 @@ private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1StatefulSetList listNamespacedStatefulSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1StatefulSetList listNamespacedStatefulSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3997,6 +4321,7 @@ public V1StatefulSetList listNamespacedStatefulSet(String namespace, String pret * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4006,11 +4331,17 @@ public V1StatefulSetList listNamespacedStatefulSet(String namespace, String pret * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4018,6 +4349,7 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo(Stri * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4025,38 +4357,26 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo(Stri * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listReplicaSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4065,84 +4385,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listReplicaSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/replicasets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listReplicaSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4153,15 +4482,22 @@ private com.squareup.okhttp.Call listReplicaSetForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicaSetList listReplicaSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listReplicaSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ReplicaSetList listReplicaSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4172,16 +4508,23 @@ public V1ReplicaSetList listReplicaSetForAllNamespaces(String _continue, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4190,38 +4533,26 @@ public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listReplicaSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listStatefulSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4230,84 +4561,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listStatefulSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/statefulsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listStatefulSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4318,15 +4658,22 @@ private com.squareup.okhttp.Call listStatefulSetForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1StatefulSetList listStatefulSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listStatefulSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1StatefulSetList listStatefulSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4337,16 +4684,23 @@ public V1StatefulSetList listStatefulSetForAllNamespaces(String _continue, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4355,35 +4709,22 @@ public ApiResponse listStatefulSetForAllNamespacesWithHttpInf * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listStatefulSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedControllerRevision @@ -4394,64 +4735,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedControllerRevisionCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4468,14 +4809,10 @@ private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBefore throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -4490,10 +4827,16 @@ private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBefore * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ControllerRevision patchNamespacedControllerRevision(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ControllerRevision patchNamespacedControllerRevision(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4508,11 +4851,17 @@ public V1ControllerRevision patchNamespacedControllerRevision(String name, Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4525,35 +4874,22 @@ public ApiResponse patchNamespacedControllerRevisionWithHt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedControllerRevisionAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDaemonSet @@ -4564,64 +4900,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDaemonSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4638,14 +4974,10 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -4660,10 +4992,16 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1DaemonSet patchNamespacedDaemonSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1DaemonSet patchNamespacedDaemonSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4678,11 +5016,17 @@ public V1DaemonSet patchNamespacedDaemonSet(String name, String namespace, V1Pat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4695,35 +5039,22 @@ public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDaemonSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDaemonSetStatus @@ -4734,64 +5065,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4808,14 +5139,10 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -4830,10 +5157,16 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4848,11 +5181,17 @@ public V1DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4865,35 +5204,22 @@ public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(Strin * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeployment @@ -4904,64 +5230,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4978,14 +5304,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5000,10 +5322,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Deployment patchNamespacedDeployment(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Deployment patchNamespacedDeployment(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5018,11 +5346,17 @@ public V1Deployment patchNamespacedDeployment(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5035,35 +5369,22 @@ public ApiResponse patchNamespacedDeploymentWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentScale @@ -5074,64 +5395,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5148,14 +5469,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5170,10 +5487,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Scale patchNamespacedDeploymentScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Scale patchNamespacedDeploymentScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5188,11 +5511,17 @@ public V1Scale patchNamespacedDeploymentScale(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5205,35 +5534,22 @@ public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentStatus @@ -5244,64 +5560,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5318,14 +5634,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5340,10 +5652,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Deployment patchNamespacedDeploymentStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Deployment patchNamespacedDeploymentStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5358,11 +5676,17 @@ public V1Deployment patchNamespacedDeploymentStatus(String name, String namespac * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5375,35 +5699,22 @@ public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSet @@ -5414,64 +5725,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5488,14 +5799,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5510,10 +5817,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicaSet patchNamespacedReplicaSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ReplicaSet patchNamespacedReplicaSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5528,11 +5841,17 @@ public V1ReplicaSet patchNamespacedReplicaSet(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5545,35 +5864,22 @@ public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSetScale @@ -5584,64 +5890,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5658,14 +5964,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5680,10 +5982,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Scale patchNamespacedReplicaSetScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Scale patchNamespacedReplicaSetScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5698,11 +6006,17 @@ public V1Scale patchNamespacedReplicaSetScale(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5715,35 +6029,22 @@ public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSetStatus @@ -5754,64 +6055,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5828,14 +6129,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5850,10 +6147,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5868,11 +6171,17 @@ public V1ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespac * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5885,35 +6194,22 @@ public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSet @@ -5924,64 +6220,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5998,14 +6294,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6020,10 +6312,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1StatefulSet patchNamespacedStatefulSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1StatefulSet patchNamespacedStatefulSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6038,11 +6336,17 @@ public V1StatefulSet patchNamespacedStatefulSet(String name, String namespace, V * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6055,35 +6359,22 @@ public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSetScale @@ -6094,64 +6385,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6168,14 +6459,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6190,10 +6477,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Scale patchNamespacedStatefulSetScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Scale patchNamespacedStatefulSetScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6208,11 +6501,17 @@ public V1Scale patchNamespacedStatefulSetScale(String name, String namespace, V1 * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6225,35 +6524,22 @@ public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String n * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSetStatus @@ -6264,64 +6550,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6338,14 +6624,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6360,10 +6642,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeC * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1StatefulSet patchNamespacedStatefulSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1StatefulSet patchNamespacedStatefulSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6378,11 +6666,17 @@ public V1StatefulSet patchNamespacedStatefulSetStatus(String name, String namesp * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6395,35 +6689,22 @@ public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedControllerRevision @@ -6432,62 +6713,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6499,14 +6778,10 @@ private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeC throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -6519,10 +6794,16 @@ private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeC * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ControllerRevision readNamespacedControllerRevision(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -6535,11 +6816,17 @@ public V1ControllerRevision readNamespacedControllerRevision(String name, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6550,35 +6837,22 @@ public ApiResponse readNamespacedControllerRevisionWithHtt * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDaemonSet @@ -6587,62 +6861,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6654,14 +6926,10 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -6674,10 +6942,16 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSet readNamespacedDaemonSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -6690,11 +6964,17 @@ public V1DaemonSet readNamespacedDaemonSet(String name, String namespace, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6705,93 +6985,74 @@ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDaemonSetStatus * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6803,14 +7064,10 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -6821,10 +7078,16 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1DaemonSet readNamespacedDaemonSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -6835,11 +7098,17 @@ public V1DaemonSet readNamespacedDaemonSetStatus(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6848,35 +7117,22 @@ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(String * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeployment @@ -6885,62 +7141,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6952,14 +7206,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -6972,10 +7222,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Deployment readNamespacedDeployment(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -6988,11 +7244,17 @@ public V1Deployment readNamespacedDeployment(String name, String namespace, Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7003,93 +7265,74 @@ public ApiResponse readNamespacedDeploymentWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7101,14 +7344,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7119,10 +7358,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Scale readNamespacedDeploymentScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7133,11 +7378,17 @@ public V1Scale readNamespacedDeploymentScale(String name, String namespace, Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7146,93 +7397,74 @@ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String nam * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentStatus * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7244,14 +7476,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7262,10 +7490,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Deployment readNamespacedDeploymentStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7276,11 +7510,17 @@ public V1Deployment readNamespacedDeploymentStatus(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7289,35 +7529,22 @@ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo(Stri * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSet @@ -7326,62 +7553,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7393,14 +7618,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -7413,10 +7634,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSet readNamespacedReplicaSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -7429,11 +7656,17 @@ public V1ReplicaSet readNamespacedReplicaSet(String name, String namespace, Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7444,93 +7677,74 @@ public ApiResponse readNamespacedReplicaSetWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7542,14 +7756,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7560,10 +7770,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Scale readNamespacedReplicaSetScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7574,11 +7790,17 @@ public V1Scale readNamespacedReplicaSetScale(String name, String namespace, Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7587,93 +7809,74 @@ public ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(String nam * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSetStatus * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7685,14 +7888,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7703,10 +7902,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicaSet readNamespacedReplicaSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7717,11 +7922,17 @@ public V1ReplicaSet readNamespacedReplicaSetStatus(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7730,35 +7941,22 @@ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(Stri * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSet @@ -7767,62 +7965,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7834,14 +8030,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -7854,10 +8046,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(Str * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSet readNamespacedStatefulSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -7870,11 +8068,17 @@ public V1StatefulSet readNamespacedStatefulSet(String name, String namespace, St * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7885,93 +8089,74 @@ public ApiResponse readNamespacedStatefulSetWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7983,14 +8168,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8001,10 +8182,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Scale readNamespacedStatefulSetScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8015,11 +8202,17 @@ public V1Scale readNamespacedStatefulSetScale(String name, String namespace, Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8028,93 +8221,74 @@ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(String na * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSetStatus * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8126,14 +8300,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8144,10 +8314,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCa * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StatefulSet readNamespacedStatefulSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8158,11 +8334,17 @@ public V1StatefulSet readNamespacedStatefulSetStatus(String name, String namespa * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8171,35 +8353,22 @@ public ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(St * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedControllerRevision @@ -8209,62 +8378,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8281,14 +8449,10 @@ private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBefo throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8302,10 +8466,17 @@ private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBefo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ControllerRevision replaceNamespacedControllerRevision(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8319,11 +8490,18 @@ public V1ControllerRevision replaceNamespacedControllerRevision(String name, Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8335,35 +8513,23 @@ public ApiResponse replaceNamespacedControllerRevisionWith * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDaemonSet @@ -8373,62 +8539,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8445,14 +8610,10 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8466,10 +8627,17 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1DaemonSet replaceNamespacedDaemonSet(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8483,11 +8651,18 @@ public V1DaemonSet replaceNamespacedDaemonSet(String name, String namespace, V1D * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8499,35 +8674,23 @@ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDaemonSetStatus @@ -8537,62 +8700,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8609,14 +8771,10 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8630,10 +8788,17 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1DaemonSet replaceNamespacedDaemonSetStatus(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8647,11 +8812,18 @@ public V1DaemonSet replaceNamespacedDaemonSetStatus(String name, String namespac * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8663,35 +8835,23 @@ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeployment @@ -8701,62 +8861,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8773,14 +8932,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8794,10 +8949,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Deployment replaceNamespacedDeployment(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8811,11 +8973,18 @@ public V1Deployment replaceNamespacedDeployment(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8827,35 +8996,23 @@ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentAsync(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentScale @@ -8865,62 +9022,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8937,14 +9093,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8958,10 +9110,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Scale replaceNamespacedDeploymentScale(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8975,11 +9134,18 @@ public V1Scale replaceNamespacedDeploymentScale(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8991,35 +9157,23 @@ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentStatus @@ -9029,62 +9183,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9101,14 +9254,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9122,10 +9271,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Deployment replaceNamespacedDeploymentStatus(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9139,11 +9295,18 @@ public V1Deployment replaceNamespacedDeploymentStatus(String name, String namesp * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9155,35 +9318,23 @@ public ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, V1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSet @@ -9193,62 +9344,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9265,14 +9415,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9286,10 +9432,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ReplicaSet replaceNamespacedReplicaSet(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9303,11 +9456,18 @@ public V1ReplicaSet replaceNamespacedReplicaSet(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9319,35 +9479,23 @@ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSetScale @@ -9357,62 +9505,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9429,14 +9576,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9450,10 +9593,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Scale replaceNamespacedReplicaSetScale(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9467,11 +9617,18 @@ public V1Scale replaceNamespacedReplicaSetScale(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9483,35 +9640,23 @@ public ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSetStatus @@ -9521,62 +9666,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9593,14 +9737,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9614,10 +9754,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ReplicaSet replaceNamespacedReplicaSetStatus(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9631,11 +9778,18 @@ public V1ReplicaSet replaceNamespacedReplicaSetStatus(String name, String namesp * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9647,35 +9801,23 @@ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSet @@ -9685,62 +9827,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9757,14 +9898,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9778,10 +9915,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1StatefulSet replaceNamespacedStatefulSet(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9795,11 +9939,18 @@ public V1StatefulSet replaceNamespacedStatefulSet(String name, String namespace, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9811,35 +9962,23 @@ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSetScale @@ -9849,62 +9988,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9921,14 +10059,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9942,10 +10076,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Scale replaceNamespacedStatefulSetScale(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9959,11 +10100,18 @@ public V1Scale replaceNamespacedStatefulSetScale(String name, String namespace, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9975,35 +10123,23 @@ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSetStatus @@ -10013,62 +10149,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10085,14 +10220,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBefor throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10106,10 +10237,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1StatefulSet replaceNamespacedStatefulSetStatus(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10123,11 +10261,18 @@ public V1StatefulSet replaceNamespacedStatefulSetStatus(String name, String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10139,34 +10284,22 @@ public ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta1Api.java index 95c0937ce5..c520813fbc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -33,7 +33,6 @@ import io.kubernetes.client.models.AppsV1beta1Scale; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1ControllerRevision; import io.kubernetes.client.models.V1beta1ControllerRevisionList; @@ -47,22 +46,22 @@ import java.util.Map; public class AppsV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AppsV1beta1Api() { this(Configuration.getDefaultApiClient()); } public AppsV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -72,61 +71,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedControllerRevisionCall(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -138,14 +137,10 @@ private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBefor throw new ApiException("Missing the required parameter 'body' when calling createNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -158,10 +153,18 @@ private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1ControllerRevision createNamespacedControllerRevision(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -174,11 +177,19 @@ public V1beta1ControllerRevision createNamespacedControllerRevision(String names * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedControllerRevisionWithHttpInfo(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -189,35 +200,24 @@ public ApiResponse createNamespacedControllerRevision * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedControllerRevisionAsync(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDeployment @@ -226,61 +226,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentCall(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentCall(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -292,14 +292,10 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -312,10 +308,18 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public AppsV1beta1Deployment createNamespacedDeployment(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -328,11 +332,19 @@ public AppsV1beta1Deployment createNamespacedDeployment(String namespace, AppsV1 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDeploymentWithHttpInfo(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -343,35 +355,24 @@ public ApiResponse createNamespacedDeploymentWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentAsync(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentAsync(String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDeploymentRollback @@ -381,62 +382,62 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentRollbackCall(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentRollbackCall(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/rollback" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDeploymentRollbackValidateBeforeCall(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDeploymentRollbackValidateBeforeCall(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -453,14 +454,10 @@ private com.squareup.okhttp.Call createNamespacedDeploymentRollbackValidateBefor throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeploymentRollback(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDeploymentRollbackCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDeploymentRollbackCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -474,10 +471,18 @@ private com.squareup.okhttp.Call createNamespacedDeploymentRollbackValidateBefor * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Status createNamespacedDeploymentRollback(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedDeploymentRollbackWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDeploymentRollbackWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -491,11 +496,19 @@ public V1Status createNamespacedDeploymentRollback(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDeploymentRollbackWithHttpInfo(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -507,35 +520,24 @@ public ApiResponse createNamespacedDeploymentRollbackWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentRollbackAsync(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentRollbackAsync(String name, String namespace, AppsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedStatefulSet @@ -544,61 +546,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedStatefulSetCall(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -610,14 +612,10 @@ private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -630,10 +628,18 @@ private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1StatefulSet createNamespacedStatefulSet(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -646,11 +652,19 @@ public V1beta1StatefulSet createNamespacedStatefulSet(String namespace, V1beta1S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedStatefulSetWithHttpInfo(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -661,126 +675,145 @@ public ApiResponse createNamespacedStatefulSetWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedStatefulSetAsync(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -788,19 +821,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionVal * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -808,20 +853,32 @@ public V1Status deleteCollectionNamespacedControllerRevision(String namespace, S * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -829,133 +886,156 @@ public ApiResponse deleteCollectionNamespacedControllerRevisionWithHtt * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -963,19 +1043,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBef * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -983,20 +1075,32 @@ public V1Status deleteCollectionNamespacedDeployment(String namespace, String pr * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1004,133 +1108,156 @@ public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(St * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1138,19 +1265,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetValidateBe * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1158,20 +1297,32 @@ public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String p * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1179,113 +1330,109 @@ public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(S * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1297,14 +1444,10 @@ private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBefor throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1313,17 +1456,24 @@ private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBefor * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1332,18 +1482,25 @@ public V1Status deleteNamespacedControllerRevision(String name, String namespace * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1352,111 +1509,102 @@ public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(Stri * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDeployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1468,14 +1616,10 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1484,17 +1628,24 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1503,18 +1654,25 @@ public V1Status deleteNamespacedDeployment(String name, String namespace, String * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1523,111 +1681,102 @@ public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedStatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1639,14 +1788,10 @@ private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1655,17 +1800,24 @@ private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(S * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1674,18 +1826,25 @@ public V1Status deleteNamespacedStatefulSet(String name, String namespace, Strin * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1694,100 +1853,76 @@ public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -1795,10 +1930,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -1806,48 +1947,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listControllerRevisionForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1856,84 +1991,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listControllerRevisionForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/controllerrevisions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listControllerRevisionForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1944,15 +2088,22 @@ private com.squareup.okhttp.Call listControllerRevisionForAllNamespacesValidateB * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ControllerRevisionList listControllerRevisionForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listControllerRevisionForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ControllerRevisionList listControllerRevisionForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1963,16 +2114,23 @@ public V1beta1ControllerRevisionList listControllerRevisionForAllNamespaces(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1981,38 +2139,26 @@ public ApiResponse listControllerRevisionForAllNa * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listControllerRevisionForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDeploymentForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2021,84 +2167,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/deployments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2109,15 +2264,22 @@ private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return AppsV1beta1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public AppsV1beta1DeploymentList listDeploymentForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDeploymentForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public AppsV1beta1DeploymentList listDeploymentForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2128,16 +2290,23 @@ public AppsV1beta1DeploymentList listDeploymentForAllNamespaces(String _continue * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<AppsV1beta1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2146,40 +2315,28 @@ public ApiResponse listDeploymentForAllNamespacesWith * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2187,85 +2344,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedControllerRevisionCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2273,6 +2438,7 @@ private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeC * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2282,10 +2448,16 @@ private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeC * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ControllerRevisionList listNamespacedControllerRevision(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ControllerRevisionList listNamespacedControllerRevision(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2293,6 +2465,7 @@ public V1beta1ControllerRevisionList listNamespacedControllerRevision(String nam * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2302,11 +2475,17 @@ public V1beta1ControllerRevisionList listNamespacedControllerRevision(String nam * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2314,6 +2493,7 @@ public ApiResponse listNamespacedControllerRevisi * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2321,40 +2501,28 @@ public ApiResponse listNamespacedControllerRevisi * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2362,85 +2530,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2448,6 +2624,7 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2457,10 +2634,16 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return AppsV1beta1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public AppsV1beta1DeploymentList listNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public AppsV1beta1DeploymentList listNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2468,6 +2651,7 @@ public AppsV1beta1DeploymentList listNamespacedDeployment(String namespace, Stri * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2477,11 +2661,17 @@ public AppsV1beta1DeploymentList listNamespacedDeployment(String namespace, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<AppsV1beta1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2489,6 +2679,7 @@ public ApiResponse listNamespacedDeploymentWithHttpIn * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2496,40 +2687,28 @@ public ApiResponse listNamespacedDeploymentWithHttpIn * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2537,85 +2716,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedStatefulSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2623,6 +2810,7 @@ private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(Str * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2632,10 +2820,16 @@ private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1StatefulSetList listNamespacedStatefulSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1StatefulSetList listNamespacedStatefulSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2643,6 +2837,7 @@ public V1beta1StatefulSetList listNamespacedStatefulSet(String namespace, String * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2652,11 +2847,17 @@ public V1beta1StatefulSetList listNamespacedStatefulSet(String namespace, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2664,6 +2865,7 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2671,38 +2873,26 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listStatefulSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2711,84 +2901,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listStatefulSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/statefulsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listStatefulSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2799,15 +2998,22 @@ private com.squareup.okhttp.Call listStatefulSetForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1StatefulSetList listStatefulSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listStatefulSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1StatefulSetList listStatefulSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2818,16 +3024,23 @@ public V1beta1StatefulSetList listStatefulSetForAllNamespaces(String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2836,35 +3049,22 @@ public ApiResponse listStatefulSetForAllNamespacesWithHt * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call listStatefulSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedControllerRevision @@ -2875,64 +3075,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedControllerRevisionCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2949,14 +3149,10 @@ private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBefore throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -2971,10 +3167,16 @@ private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBefore * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ControllerRevision patchNamespacedControllerRevision(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1ControllerRevision patchNamespacedControllerRevision(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -2989,11 +3191,17 @@ public V1beta1ControllerRevision patchNamespacedControllerRevision(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3006,35 +3214,22 @@ public ApiResponse patchNamespacedControllerRevisionW * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedControllerRevisionAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeployment @@ -3045,64 +3240,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3119,14 +3314,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3141,10 +3332,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public AppsV1beta1Deployment patchNamespacedDeployment(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public AppsV1beta1Deployment patchNamespacedDeployment(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3159,11 +3356,17 @@ public AppsV1beta1Deployment patchNamespacedDeployment(String name, String names * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3176,35 +3379,22 @@ public ApiResponse patchNamespacedDeploymentWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentScale @@ -3215,64 +3405,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3289,14 +3479,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3311,10 +3497,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return AppsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public AppsV1beta1Scale patchNamespacedDeploymentScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public AppsV1beta1Scale patchNamespacedDeploymentScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3329,11 +3521,17 @@ public AppsV1beta1Scale patchNamespacedDeploymentScale(String name, String names * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<AppsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3346,35 +3544,22 @@ public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentStatus @@ -3385,64 +3570,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3459,14 +3644,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3481,10 +3662,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public AppsV1beta1Deployment patchNamespacedDeploymentStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public AppsV1beta1Deployment patchNamespacedDeploymentStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3499,11 +3686,17 @@ public AppsV1beta1Deployment patchNamespacedDeploymentStatus(String name, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3516,35 +3709,22 @@ public ApiResponse patchNamespacedDeploymentStatusWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSet @@ -3555,64 +3735,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3629,14 +3809,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3651,10 +3827,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1StatefulSet patchNamespacedStatefulSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1StatefulSet patchNamespacedStatefulSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3669,11 +3851,17 @@ public V1beta1StatefulSet patchNamespacedStatefulSet(String name, String namespa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3686,35 +3874,22 @@ public ApiResponse patchNamespacedStatefulSetWithHttpInfo(St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSetScale @@ -3725,64 +3900,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3799,14 +3974,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3821,10 +3992,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return AppsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public AppsV1beta1Scale patchNamespacedStatefulSetScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public AppsV1beta1Scale patchNamespacedStatefulSetScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3839,11 +4016,17 @@ public AppsV1beta1Scale patchNamespacedStatefulSetScale(String name, String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<AppsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3856,35 +4039,22 @@ public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSetStatus @@ -3895,64 +4065,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3969,14 +4139,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3991,10 +4157,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeC * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1StatefulSet patchNamespacedStatefulSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1StatefulSet patchNamespacedStatefulSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4009,11 +4181,17 @@ public V1beta1StatefulSet patchNamespacedStatefulSetStatus(String name, String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4026,35 +4204,22 @@ public ApiResponse patchNamespacedStatefulSetStatusWithHttpI * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedControllerRevision @@ -4063,62 +4228,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4130,14 +4293,10 @@ private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeC throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -4150,10 +4309,16 @@ private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeC * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1ControllerRevision readNamespacedControllerRevision(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -4166,11 +4331,17 @@ public V1beta1ControllerRevision readNamespacedControllerRevision(String name, S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4181,35 +4352,22 @@ public ApiResponse readNamespacedControllerRevisionWi * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeployment @@ -4218,62 +4376,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4285,14 +4441,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -4305,10 +4457,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public AppsV1beta1Deployment readNamespacedDeployment(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -4321,11 +4479,17 @@ public AppsV1beta1Deployment readNamespacedDeployment(String name, String namesp * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4336,93 +4500,74 @@ public ApiResponse readNamespacedDeploymentWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4434,14 +4579,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4452,10 +4593,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return AppsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public AppsV1beta1Scale readNamespacedDeploymentScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4466,11 +4613,17 @@ public AppsV1beta1Scale readNamespacedDeploymentScale(String name, String namesp * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<AppsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4479,93 +4632,74 @@ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(S * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentStatus * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4577,14 +4711,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4595,10 +4725,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public AppsV1beta1Deployment readNamespacedDeploymentStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4609,11 +4745,17 @@ public AppsV1beta1Deployment readNamespacedDeploymentStatus(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4622,35 +4764,22 @@ public ApiResponse readNamespacedDeploymentStatusWithHttp * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSet @@ -4659,62 +4788,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4726,14 +4853,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -4746,10 +4869,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(Str * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1StatefulSet readNamespacedStatefulSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -4762,11 +4891,17 @@ public V1beta1StatefulSet readNamespacedStatefulSet(String name, String namespac * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4777,93 +4912,74 @@ public ApiResponse readNamespacedStatefulSetWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4875,14 +4991,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4893,10 +5005,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return AppsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public AppsV1beta1Scale readNamespacedStatefulSetScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4907,11 +5025,17 @@ public AppsV1beta1Scale readNamespacedStatefulSetScale(String name, String names * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<AppsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4920,93 +5044,74 @@ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo( * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSetStatus * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5018,14 +5123,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -5036,10 +5137,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCa * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1StatefulSet readNamespacedStatefulSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -5050,11 +5157,17 @@ public V1beta1StatefulSet readNamespacedStatefulSetStatus(String name, String na * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5063,35 +5176,22 @@ public ApiResponse readNamespacedStatefulSetStatusWithHttpIn * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedControllerRevision @@ -5101,62 +5201,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5173,14 +5272,10 @@ private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBefo throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -5194,10 +5289,17 @@ private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBefo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1ControllerRevision replaceNamespacedControllerRevision(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -5211,11 +5313,18 @@ public V1beta1ControllerRevision replaceNamespacedControllerRevision(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5227,35 +5336,23 @@ public ApiResponse replaceNamespacedControllerRevisio * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1beta1ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeployment @@ -5265,62 +5362,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5337,14 +5433,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -5358,10 +5450,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public AppsV1beta1Deployment replaceNamespacedDeployment(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -5375,11 +5474,18 @@ public AppsV1beta1Deployment replaceNamespacedDeployment(String name, String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5391,35 +5497,23 @@ public ApiResponse replaceNamespacedDeploymentWithHttpInf * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentAsync(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentScale @@ -5429,62 +5523,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5501,14 +5594,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -5522,10 +5611,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return AppsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public AppsV1beta1Scale replaceNamespacedDeploymentScale(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -5539,11 +5635,18 @@ public AppsV1beta1Scale replaceNamespacedDeploymentScale(String name, String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<AppsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5555,35 +5658,23 @@ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInf * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentStatus @@ -5593,62 +5684,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5665,14 +5755,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -5686,10 +5772,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return AppsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public AppsV1beta1Deployment replaceNamespacedDeploymentStatus(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -5703,11 +5796,18 @@ public AppsV1beta1Deployment replaceNamespacedDeploymentStatus(String name, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<AppsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5719,35 +5819,23 @@ public ApiResponse replaceNamespacedDeploymentStatusWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, AppsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSet @@ -5757,62 +5845,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5829,14 +5916,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -5850,10 +5933,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1StatefulSet replaceNamespacedStatefulSet(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -5867,11 +5957,18 @@ public V1beta1StatefulSet replaceNamespacedStatefulSet(String name, String names * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5883,35 +5980,23 @@ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSetScale @@ -5921,62 +6006,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5993,14 +6077,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -6014,10 +6094,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return AppsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public AppsV1beta1Scale replaceNamespacedStatefulSetScale(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -6031,11 +6118,18 @@ public AppsV1beta1Scale replaceNamespacedStatefulSetScale(String name, String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<AppsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6047,35 +6141,23 @@ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpIn * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, AppsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSetStatus @@ -6085,62 +6167,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta1/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6157,14 +6238,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBefor throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -6178,10 +6255,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1StatefulSet replaceNamespacedStatefulSetStatus(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -6195,11 +6279,18 @@ public V1beta1StatefulSet replaceNamespacedStatefulSetStatus(String name, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6211,34 +6302,22 @@ public ApiResponse replaceNamespacedStatefulSetStatusWithHtt * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1beta1StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta2Api.java index ae411ba68f..21f1caef83 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AppsV1beta2Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta2ControllerRevision; import io.kubernetes.client.models.V1beta2ControllerRevisionList; @@ -50,22 +49,22 @@ import java.util.Map; public class AppsV1beta2Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AppsV1beta2Api() { this(Configuration.getDefaultApiClient()); } public AppsV1beta2Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -75,61 +74,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedControllerRevisionCall(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedControllerRevisionCall(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedControllerRevisionValidateBeforeCall(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -141,14 +140,10 @@ private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBefor throw new ApiException("Missing the required parameter 'body' when calling createNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedControllerRevisionCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -161,10 +156,18 @@ private com.squareup.okhttp.Call createNamespacedControllerRevisionValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta2ControllerRevision createNamespacedControllerRevision(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedControllerRevisionWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -177,11 +180,19 @@ public V1beta2ControllerRevision createNamespacedControllerRevision(String names * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedControllerRevisionWithHttpInfo(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -192,35 +203,24 @@ public ApiResponse createNamespacedControllerRevision * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedControllerRevisionAsync(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedControllerRevisionAsync(String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedControllerRevisionValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDaemonSet @@ -229,61 +229,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDaemonSetCall(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -295,14 +295,10 @@ private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -315,10 +311,18 @@ private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta2DaemonSet createNamespacedDaemonSet(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -331,11 +335,19 @@ public V1beta2DaemonSet createNamespacedDaemonSet(String namespace, V1beta2Daemo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDaemonSetWithHttpInfo(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -346,35 +358,24 @@ public ApiResponse createNamespacedDaemonSetWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDaemonSetAsync(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDeployment @@ -383,61 +384,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentCall(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentCall(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -449,14 +450,10 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -469,10 +466,18 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta2Deployment createNamespacedDeployment(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -485,11 +490,19 @@ public V1beta2Deployment createNamespacedDeployment(String namespace, V1beta2Dep * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDeploymentWithHttpInfo(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -500,35 +513,24 @@ public ApiResponse createNamespacedDeploymentWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentAsync(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentAsync(String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedReplicaSet @@ -537,61 +539,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicaSetCall(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -603,14 +605,10 @@ private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -623,10 +621,18 @@ private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta2ReplicaSet createNamespacedReplicaSet(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -639,11 +645,19 @@ public V1beta2ReplicaSet createNamespacedReplicaSet(String namespace, V1beta2Rep * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedReplicaSetWithHttpInfo(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -654,35 +668,24 @@ public ApiResponse createNamespacedReplicaSetWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicaSetAsync(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedStatefulSet @@ -691,61 +694,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedStatefulSetCall(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedStatefulSetCall(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedStatefulSetValidateBeforeCall(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -757,14 +760,10 @@ private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedStatefulSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -777,10 +776,18 @@ private com.squareup.okhttp.Call createNamespacedStatefulSetValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta2StatefulSet createNamespacedStatefulSet(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedStatefulSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -793,11 +800,19 @@ public V1beta2StatefulSet createNamespacedStatefulSet(String namespace, V1beta2S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedStatefulSetWithHttpInfo(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -808,126 +823,145 @@ public ApiResponse createNamespacedStatefulSetWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedStatefulSetAsync(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedStatefulSetAsync(String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedStatefulSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -935,19 +969,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionVal * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedControllerRevision(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -955,20 +1001,32 @@ public V1Status deleteCollectionNamespacedControllerRevision(String namespace, S * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -976,133 +1034,156 @@ public ApiResponse deleteCollectionNamespacedControllerRevisionWithHtt * delete collection of ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1110,19 +1191,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetValidateBefo * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1130,20 +1223,32 @@ public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pre * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1151,133 +1256,156 @@ public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(Str * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1285,19 +1413,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBef * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1305,20 +1445,32 @@ public V1Status deleteCollectionNamespacedDeployment(String namespace, String pr * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,133 +1478,156 @@ public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(St * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1460,19 +1635,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetValidateBef * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1480,20 +1667,32 @@ public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pr * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1501,133 +1700,156 @@ public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(St * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1635,19 +1857,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetValidateBe * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1655,20 +1889,32 @@ public V1Status deleteCollectionNamespacedStatefulSet(String namespace, String p * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1676,113 +1922,109 @@ public ApiResponse deleteCollectionNamespacedStatefulSetWithHttpInfo(S * delete collection of StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedControllerRevision * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedControllerRevisionCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1794,14 +2036,10 @@ private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBefor throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1810,17 +2048,24 @@ private com.squareup.okhttp.Call deleteNamespacedControllerRevisionValidateBefor * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedControllerRevision(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1829,18 +2074,25 @@ public V1Status deleteNamespacedControllerRevision(String name, String namespace * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1849,111 +2101,102 @@ public ApiResponse deleteNamespacedControllerRevisionWithHttpInfo(Stri * @param name name of the ControllerRevision (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedControllerRevisionAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1965,14 +2208,10 @@ private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1981,17 +2220,24 @@ private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(Str * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2000,18 +2246,25 @@ public V1Status deleteNamespacedDaemonSet(String name, String namespace, String * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2020,111 +2273,102 @@ public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDeployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2136,14 +2380,10 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2152,17 +2392,24 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2171,18 +2418,25 @@ public V1Status deleteNamespacedDeployment(String name, String namespace, String * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2191,111 +2445,102 @@ public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2307,14 +2552,10 @@ private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2323,17 +2564,24 @@ private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(St * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2342,18 +2590,25 @@ public V1Status deleteNamespacedReplicaSet(String name, String namespace, String * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2362,111 +2617,102 @@ public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedStatefulSet * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedStatefulSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2478,14 +2724,10 @@ private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedStatefulSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2494,17 +2736,24 @@ private com.squareup.okhttp.Call deleteNamespacedStatefulSetValidateBeforeCall(S * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedStatefulSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2513,18 +2762,25 @@ public V1Status deleteNamespacedStatefulSet(String name, String namespace, Strin * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2533,100 +2789,76 @@ public ApiResponse deleteNamespacedStatefulSetWithHttpInfo(String name * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedStatefulSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -2634,10 +2866,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -2645,48 +2883,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listControllerRevisionForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2695,84 +2927,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listControllerRevisionForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listControllerRevisionForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/controllerrevisions"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listControllerRevisionForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listControllerRevisionForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2783,15 +3024,22 @@ private com.squareup.okhttp.Call listControllerRevisionForAllNamespacesValidateB * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ControllerRevisionList listControllerRevisionForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listControllerRevisionForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2ControllerRevisionList listControllerRevisionForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listControllerRevisionForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2802,16 +3050,23 @@ public V1beta2ControllerRevisionList listControllerRevisionForAllNamespaces(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listControllerRevisionForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ControllerRevision + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2820,38 +3075,26 @@ public ApiResponse listControllerRevisionForAllNa * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listControllerRevisionForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listControllerRevisionForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listControllerRevisionForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listControllerRevisionForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDaemonSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2860,84 +3103,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDaemonSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/daemonsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDaemonSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2948,15 +3200,22 @@ private com.squareup.okhttp.Call listDaemonSetForAllNamespacesValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2DaemonSetList listDaemonSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDaemonSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2DaemonSetList listDaemonSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2967,16 +3226,23 @@ public V1beta2DaemonSetList listDaemonSetForAllNamespaces(String _continue, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2985,38 +3251,26 @@ public ApiResponse listDaemonSetForAllNamespacesWithHttpIn * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDaemonSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDeploymentForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3025,84 +3279,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/deployments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3113,15 +3376,22 @@ private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2DeploymentList listDeploymentForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDeploymentForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2DeploymentList listDeploymentForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3132,16 +3402,23 @@ public V1beta2DeploymentList listDeploymentForAllNamespaces(String _continue, St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3150,40 +3427,28 @@ public ApiResponse listDeploymentForAllNamespacesWithHttp * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3191,85 +3456,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedControllerRevisionCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedControllerRevisionCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedControllerRevisionValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedControllerRevisionCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedControllerRevisionCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3277,6 +3550,7 @@ private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeC * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3286,10 +3560,16 @@ private com.squareup.okhttp.Call listNamespacedControllerRevisionValidateBeforeC * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2ControllerRevisionList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ControllerRevisionList listNamespacedControllerRevision(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2ControllerRevisionList listNamespacedControllerRevision(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedControllerRevisionWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3297,6 +3577,7 @@ public V1beta2ControllerRevisionList listNamespacedControllerRevision(String nam * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3306,11 +3587,17 @@ public V1beta2ControllerRevisionList listNamespacedControllerRevision(String nam * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2ControllerRevisionList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedControllerRevisionWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3318,6 +3605,7 @@ public ApiResponse listNamespacedControllerRevisi * list or watch objects of kind ControllerRevision * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3325,40 +3613,28 @@ public ApiResponse listNamespacedControllerRevisi * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedControllerRevisionAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedControllerRevisionValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3366,85 +3642,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDaemonSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3452,6 +3736,7 @@ private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(Strin * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3461,10 +3746,16 @@ private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3472,6 +3763,7 @@ public V1beta2DaemonSetList listNamespacedDaemonSet(String namespace, String pre * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3481,11 +3773,17 @@ public V1beta2DaemonSetList listNamespacedDaemonSet(String namespace, String pre * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3493,6 +3791,7 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(Str * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3500,40 +3799,28 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(Str * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3541,85 +3828,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3627,6 +3922,7 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3636,10 +3932,16 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2DeploymentList listNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2DeploymentList listNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3647,6 +3949,7 @@ public V1beta2DeploymentList listNamespacedDeployment(String namespace, String p * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3656,11 +3959,17 @@ public V1beta2DeploymentList listNamespacedDeployment(String namespace, String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3668,6 +3977,7 @@ public ApiResponse listNamespacedDeploymentWithHttpInfo(S * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3675,40 +3985,28 @@ public ApiResponse listNamespacedDeploymentWithHttpInfo(S * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3716,85 +4014,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedReplicaSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3802,6 +4108,7 @@ private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(Stri * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3811,10 +4118,16 @@ private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3822,6 +4135,7 @@ public V1beta2ReplicaSetList listNamespacedReplicaSet(String namespace, String p * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3831,11 +4145,17 @@ public V1beta2ReplicaSetList listNamespacedReplicaSet(String namespace, String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3843,6 +4163,7 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(S * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3850,40 +4171,28 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(S * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedStatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3891,85 +4200,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedStatefulSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedStatefulSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedStatefulSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedStatefulSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedStatefulSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3977,6 +4294,7 @@ private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(Str * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3986,10 +4304,16 @@ private com.squareup.okhttp.Call listNamespacedStatefulSetValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2StatefulSetList listNamespacedStatefulSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2StatefulSetList listNamespacedStatefulSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedStatefulSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3997,6 +4321,7 @@ public V1beta2StatefulSetList listNamespacedStatefulSet(String namespace, String * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4006,11 +4331,17 @@ public V1beta2StatefulSetList listNamespacedStatefulSet(String namespace, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedStatefulSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4018,6 +4349,7 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo * list or watch objects of kind StatefulSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4025,38 +4357,26 @@ public ApiResponse listNamespacedStatefulSetWithHttpInfo * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedStatefulSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedStatefulSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedStatefulSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listReplicaSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4065,84 +4385,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listReplicaSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/replicasets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listReplicaSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4153,15 +4482,22 @@ private com.squareup.okhttp.Call listReplicaSetForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ReplicaSetList listReplicaSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listReplicaSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2ReplicaSetList listReplicaSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4172,16 +4508,23 @@ public V1beta2ReplicaSetList listReplicaSetForAllNamespaces(String _continue, St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4190,38 +4533,26 @@ public ApiResponse listReplicaSetForAllNamespacesWithHttp * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listReplicaSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listStatefulSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4230,84 +4561,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listStatefulSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStatefulSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/statefulsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listStatefulSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listStatefulSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4318,15 +4658,22 @@ private com.squareup.okhttp.Call listStatefulSetForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta2StatefulSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2StatefulSetList listStatefulSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listStatefulSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta2StatefulSetList listStatefulSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStatefulSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4337,16 +4684,23 @@ public V1beta2StatefulSetList listStatefulSetForAllNamespaces(String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta2StatefulSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listStatefulSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind StatefulSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4355,35 +4709,22 @@ public ApiResponse listStatefulSetForAllNamespacesWithHt * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listStatefulSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listStatefulSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listStatefulSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listStatefulSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedControllerRevision @@ -4394,64 +4735,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedControllerRevisionCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedControllerRevisionCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4468,14 +4809,10 @@ private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBefore throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -4490,10 +4827,16 @@ private com.squareup.okhttp.Call patchNamespacedControllerRevisionValidateBefore * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ControllerRevision patchNamespacedControllerRevision(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2ControllerRevision patchNamespacedControllerRevision(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4508,11 +4851,17 @@ public V1beta2ControllerRevision patchNamespacedControllerRevision(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedControllerRevisionWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4525,35 +4874,22 @@ public ApiResponse patchNamespacedControllerRevisionW * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedControllerRevisionAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedControllerRevisionAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDaemonSet @@ -4564,64 +4900,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDaemonSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4638,14 +4974,10 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -4660,10 +4992,16 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2DaemonSet patchNamespacedDaemonSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2DaemonSet patchNamespacedDaemonSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4678,11 +5016,17 @@ public V1beta2DaemonSet patchNamespacedDaemonSet(String name, String namespace, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4695,35 +5039,22 @@ public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDaemonSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDaemonSetStatus @@ -4734,64 +5065,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4808,14 +5139,10 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -4830,10 +5157,16 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -4848,11 +5181,17 @@ public V1beta2DaemonSet patchNamespacedDaemonSetStatus(String name, String names * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4865,35 +5204,22 @@ public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeployment @@ -4904,64 +5230,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4978,14 +5304,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5000,10 +5322,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2Deployment patchNamespacedDeployment(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2Deployment patchNamespacedDeployment(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5018,11 +5346,17 @@ public V1beta2Deployment patchNamespacedDeployment(String name, String namespace * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5035,35 +5369,22 @@ public ApiResponse patchNamespacedDeploymentWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentScale @@ -5074,64 +5395,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5148,14 +5469,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5170,10 +5487,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2Scale patchNamespacedDeploymentScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2Scale patchNamespacedDeploymentScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5188,11 +5511,17 @@ public V1beta2Scale patchNamespacedDeploymentScale(String name, String namespace * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5205,35 +5534,22 @@ public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentStatus @@ -5244,64 +5560,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5318,14 +5634,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5340,10 +5652,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2Deployment patchNamespacedDeploymentStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2Deployment patchNamespacedDeploymentStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5358,11 +5676,17 @@ public V1beta2Deployment patchNamespacedDeploymentStatus(String name, String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5375,35 +5699,22 @@ public ApiResponse patchNamespacedDeploymentStatusWithHttpInf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSet @@ -5414,64 +5725,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5488,14 +5799,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5510,10 +5817,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ReplicaSet patchNamespacedReplicaSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2ReplicaSet patchNamespacedReplicaSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5528,11 +5841,17 @@ public V1beta2ReplicaSet patchNamespacedReplicaSet(String name, String namespace * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5545,35 +5864,22 @@ public ApiResponse patchNamespacedReplicaSetWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSetScale @@ -5584,64 +5890,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5658,14 +5964,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5680,10 +5982,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2Scale patchNamespacedReplicaSetScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2Scale patchNamespacedReplicaSetScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5698,11 +6006,17 @@ public V1beta2Scale patchNamespacedReplicaSetScale(String name, String namespace * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5715,35 +6029,22 @@ public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSetStatus @@ -5754,64 +6055,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5828,14 +6129,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5850,10 +6147,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5868,11 +6171,17 @@ public V1beta2ReplicaSet patchNamespacedReplicaSetStatus(String name, String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5885,35 +6194,22 @@ public ApiResponse patchNamespacedReplicaSetStatusWithHttpInf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSet @@ -5924,64 +6220,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5998,14 +6294,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6020,10 +6312,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2StatefulSet patchNamespacedStatefulSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2StatefulSet patchNamespacedStatefulSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6038,11 +6336,17 @@ public V1beta2StatefulSet patchNamespacedStatefulSet(String name, String namespa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6055,35 +6359,22 @@ public ApiResponse patchNamespacedStatefulSetWithHttpInfo(St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedStatefulSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSetScale @@ -6094,64 +6385,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6168,14 +6459,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6190,10 +6477,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetScaleValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2Scale patchNamespacedStatefulSetScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2Scale patchNamespacedStatefulSetScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6208,11 +6501,17 @@ public V1beta2Scale patchNamespacedStatefulSetScale(String name, String namespac * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6225,35 +6524,22 @@ public ApiResponse patchNamespacedStatefulSetScaleWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedStatefulSetScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedStatefulSetStatus @@ -6264,64 +6550,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedStatefulSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6338,14 +6624,10 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6360,10 +6642,16 @@ private com.squareup.okhttp.Call patchNamespacedStatefulSetStatusValidateBeforeC * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta2StatefulSet patchNamespacedStatefulSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta2StatefulSet patchNamespacedStatefulSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6378,11 +6666,17 @@ public V1beta2StatefulSet patchNamespacedStatefulSetStatus(String name, String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6395,35 +6689,22 @@ public ApiResponse patchNamespacedStatefulSetStatusWithHttpI * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedStatefulSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedControllerRevision @@ -6432,62 +6713,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedControllerRevisionCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6499,14 +6778,10 @@ private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeC throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedControllerRevisionCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -6519,10 +6794,16 @@ private com.squareup.okhttp.Call readNamespacedControllerRevisionValidateBeforeC * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta2ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2ControllerRevision readNamespacedControllerRevision(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedControllerRevisionWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -6535,11 +6816,17 @@ public V1beta2ControllerRevision readNamespacedControllerRevision(String name, S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta2ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedControllerRevisionWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6550,35 +6837,22 @@ public ApiResponse readNamespacedControllerRevisionWi * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedControllerRevisionAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedControllerRevisionValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDaemonSet @@ -6587,62 +6861,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - localVarHeaderParams.put("Content-Type", localVarContentType); - - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6654,14 +6926,10 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -6674,10 +6942,16 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2DaemonSet readNamespacedDaemonSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -6690,11 +6964,17 @@ public V1beta2DaemonSet readNamespacedDaemonSet(String name, String namespace, S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6705,93 +6985,74 @@ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDaemonSetStatus * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6803,14 +7064,10 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -6821,10 +7078,16 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2DaemonSet readNamespacedDaemonSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -6835,11 +7098,17 @@ public V1beta2DaemonSet readNamespacedDaemonSetStatus(String name, String namesp * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6848,35 +7117,22 @@ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(S * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeployment @@ -6885,62 +7141,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6952,14 +7206,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -6972,10 +7222,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2Deployment readNamespacedDeployment(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -6988,11 +7244,17 @@ public V1beta2Deployment readNamespacedDeployment(String name, String namespace, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7003,93 +7265,74 @@ public ApiResponse readNamespacedDeploymentWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7101,14 +7344,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7119,10 +7358,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2Scale readNamespacedDeploymentScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7133,11 +7378,17 @@ public V1beta2Scale readNamespacedDeploymentScale(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7146,93 +7397,74 @@ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(Strin * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentStatus * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7244,14 +7476,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7262,10 +7490,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2Deployment readNamespacedDeploymentStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7276,11 +7510,17 @@ public V1beta2Deployment readNamespacedDeploymentStatus(String name, String name * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7289,35 +7529,22 @@ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSet @@ -7326,62 +7553,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7393,14 +7618,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -7413,10 +7634,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2ReplicaSet readNamespacedReplicaSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -7429,11 +7656,17 @@ public V1beta2ReplicaSet readNamespacedReplicaSet(String name, String namespace, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7444,93 +7677,74 @@ public ApiResponse readNamespacedReplicaSetWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7542,14 +7756,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7560,10 +7770,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2Scale readNamespacedReplicaSetScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7574,11 +7790,17 @@ public V1beta2Scale readNamespacedReplicaSetScale(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7587,93 +7809,74 @@ public ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(Strin * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSetStatus * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7685,14 +7888,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7703,10 +7902,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2ReplicaSet readNamespacedReplicaSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7717,11 +7922,17 @@ public V1beta2ReplicaSet readNamespacedReplicaSetStatus(String name, String name * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7730,35 +7941,22 @@ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSet @@ -7767,62 +7965,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7834,14 +8030,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -7854,10 +8046,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetValidateBeforeCall(Str * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2StatefulSet readNamespacedStatefulSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -7870,11 +8068,17 @@ public V1beta2StatefulSet readNamespacedStatefulSet(String name, String namespac * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7885,93 +8089,74 @@ public ApiResponse readNamespacedStatefulSetWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedStatefulSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7983,14 +8168,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8001,10 +8182,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetScaleValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2Scale readNamespacedStatefulSetScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8015,11 +8202,17 @@ public V1beta2Scale readNamespacedStatefulSetScale(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8028,93 +8221,74 @@ public ApiResponse readNamespacedStatefulSetScaleWithHttpInfo(Stri * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedStatefulSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedStatefulSetStatus * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedStatefulSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8126,14 +8300,10 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8144,10 +8314,16 @@ private com.squareup.okhttp.Call readNamespacedStatefulSetStatusValidateBeforeCa * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta2StatefulSet readNamespacedStatefulSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedStatefulSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8158,11 +8334,17 @@ public V1beta2StatefulSet readNamespacedStatefulSetStatus(String name, String na * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8171,35 +8353,22 @@ public ApiResponse readNamespacedStatefulSetStatusWithHttpIn * @param name name of the StatefulSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedStatefulSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedControllerRevision @@ -8209,62 +8378,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedControllerRevisionCall(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/controllerrevisions/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedControllerRevisionValidateBeforeCall(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8281,14 +8449,10 @@ private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBefo throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedControllerRevision(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8302,10 +8466,17 @@ private com.squareup.okhttp.Call replaceNamespacedControllerRevisionValidateBefo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2ControllerRevision * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2ControllerRevision replaceNamespacedControllerRevision(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedControllerRevisionWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8319,11 +8490,18 @@ public V1beta2ControllerRevision replaceNamespacedControllerRevision(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2ControllerRevision> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedControllerRevisionWithHttpInfo(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8335,35 +8513,23 @@ public ApiResponse replaceNamespacedControllerRevisio * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedControllerRevisionAsync(String name, String namespace, V1beta2ControllerRevision body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedControllerRevisionValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDaemonSet @@ -8373,62 +8539,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8445,14 +8610,10 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8466,10 +8627,17 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2DaemonSet replaceNamespacedDaemonSet(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8483,11 +8651,18 @@ public V1beta2DaemonSet replaceNamespacedDaemonSet(String name, String namespace * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8499,35 +8674,23 @@ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDaemonSetStatus @@ -8537,62 +8700,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8609,14 +8771,10 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8630,10 +8788,17 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2DaemonSet replaceNamespacedDaemonSetStatus(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8647,11 +8812,18 @@ public V1beta2DaemonSet replaceNamespacedDaemonSetStatus(String name, String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8663,35 +8835,23 @@ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInf * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1beta2DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeployment @@ -8701,62 +8861,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8773,14 +8932,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8794,10 +8949,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2Deployment replaceNamespacedDeployment(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8811,11 +8973,18 @@ public V1beta2Deployment replaceNamespacedDeployment(String name, String namespa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8827,35 +8996,23 @@ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentAsync(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentScale @@ -8865,62 +9022,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8937,14 +9093,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8958,10 +9110,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2Scale replaceNamespacedDeploymentScale(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8975,11 +9134,18 @@ public V1beta2Scale replaceNamespacedDeploymentScale(String name, String namespa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8991,35 +9157,23 @@ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentStatus @@ -9029,62 +9183,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9101,14 +9254,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9122,10 +9271,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2Deployment replaceNamespacedDeploymentStatus(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9139,11 +9295,18 @@ public V1beta2Deployment replaceNamespacedDeploymentStatus(String name, String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9155,35 +9318,23 @@ public ApiResponse replaceNamespacedDeploymentStatusWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, V1beta2Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSet @@ -9193,62 +9344,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9265,14 +9415,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9286,10 +9432,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2ReplicaSet replaceNamespacedReplicaSet(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9303,11 +9456,18 @@ public V1beta2ReplicaSet replaceNamespacedReplicaSet(String name, String namespa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9319,35 +9479,23 @@ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSetScale @@ -9357,62 +9505,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9429,14 +9576,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9450,10 +9593,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2Scale replaceNamespacedReplicaSetScale(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9467,11 +9617,18 @@ public V1beta2Scale replaceNamespacedReplicaSetScale(String name, String namespa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9483,35 +9640,23 @@ public ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSetStatus @@ -9521,62 +9666,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9593,14 +9737,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9614,10 +9754,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2ReplicaSet replaceNamespacedReplicaSetStatus(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9631,11 +9778,18 @@ public V1beta2ReplicaSet replaceNamespacedReplicaSetStatus(String name, String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9647,35 +9801,23 @@ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1beta2ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSet @@ -9685,62 +9827,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetValidateBeforeCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9757,14 +9898,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9778,10 +9915,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2StatefulSet replaceNamespacedStatefulSet(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9795,11 +9939,18 @@ public V1beta2StatefulSet replaceNamespacedStatefulSet(String name, String names * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9811,35 +9962,23 @@ public ApiResponse replaceNamespacedStatefulSetWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetAsync(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSetScale @@ -9849,62 +9988,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetScaleCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetScaleValidateBeforeCall(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9921,14 +10059,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9942,10 +10076,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2Scale replaceNamespacedStatefulSetScale(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9959,11 +10100,18 @@ public V1beta2Scale replaceNamespacedStatefulSetScale(String name, String namesp * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9975,35 +10123,23 @@ public ApiResponse replaceNamespacedStatefulSetScaleWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetScaleAsync(String name, String namespace, V1beta2Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedStatefulSetStatus @@ -10013,62 +10149,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedStatefulSetStatusCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/apps/v1beta2/namespaces/{namespace}/statefulsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedStatefulSetStatusValidateBeforeCall(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10085,14 +10220,10 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBefor throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedStatefulSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10106,10 +10237,17 @@ private com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusValidateBefor * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta2StatefulSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta2StatefulSet replaceNamespacedStatefulSetStatus(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedStatefulSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10123,11 +10261,18 @@ public V1beta2StatefulSet replaceNamespacedStatefulSetStatus(String name, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta2StatefulSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedStatefulSetStatusWithHttpInfo(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10139,34 +10284,22 @@ public ApiResponse replaceNamespacedStatefulSetStatusWithHtt * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedStatefulSetStatusAsync(String name, String namespace, V1beta2StatefulSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedStatefulSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationApi.java index db842845c2..59055918ba 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class AuditregistrationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuditregistrationApi() { this(Configuration.getDefaultApiClient()); } public AuditregistrationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationV1alpha1Api.java index 4db9185697..9eec7c12c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuditregistrationV1alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1AuditSink; import io.kubernetes.client.models.V1alpha1AuditSinkList; @@ -41,22 +40,22 @@ import java.util.Map; public class AuditregistrationV1alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuditregistrationV1alpha1Api() { this(Configuration.getDefaultApiClient()); } public AuditregistrationV1alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createAuditSinkCall(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createAuditSinkCall(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createAuditSinkValidateBeforeCall(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createAuditSinkValidateBeforeCall(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createAuditSink(Async)"); } - - com.squareup.okhttp.Call call = createAuditSinkCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createAuditSinkCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createAuditSinkValidateBeforeCall(V1alpha1Audit * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1AuditSink * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1AuditSink createAuditSink(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createAuditSinkWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createAuditSinkWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1alpha1AuditSink createAuditSink(V1alpha1AuditSink body, String pretty, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1AuditSink> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createAuditSinkWithHttpInfo(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createAuditSinkValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createAuditSinkValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,118 +184,106 @@ public ApiResponse createAuditSinkWithHttpInfo(V1alpha1AuditS * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createAuditSinkAsync(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createAuditSinkAsync(V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createAuditSinkValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createAuditSinkValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteAuditSink * @param name name of the AuditSink (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteAuditSinkCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteAuditSinkCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteAuditSinkValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteAuditSinkValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteAuditSink(Async)"); } - - com.squareup.okhttp.Call call = deleteAuditSinkCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteAuditSinkCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -292,17 +291,24 @@ private com.squareup.okhttp.Call deleteAuditSinkValidateBeforeCall(String name, * delete an AuditSink * @param name name of the AuditSink (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteAuditSink(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteAuditSinkWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteAuditSink(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteAuditSinkWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -310,18 +316,25 @@ public V1Status deleteAuditSink(String name, String pretty, V1DeleteOptions body * delete an AuditSink * @param name name of the AuditSink (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteAuditSinkWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteAuditSinkValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteAuditSinkWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteAuditSinkValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -329,265 +342,288 @@ public ApiResponse deleteAuditSinkWithHttpInfo(String name, String pre * delete an AuditSink * @param name name of the AuditSink (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteAuditSinkAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteAuditSinkAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteAuditSinkValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteAuditSinkValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionAuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionAuditSinkCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionAuditSinkCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionAuditSinkValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionAuditSinkValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionAuditSinkCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionAuditSinkCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of AuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionAuditSink(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionAuditSinkWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionAuditSink(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionAuditSinkWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of AuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionAuditSinkWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionAuditSinkValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionAuditSinkWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionAuditSinkValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of AuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionAuditSinkAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionAuditSinkAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionAuditSinkValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionAuditSinkValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listAuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listAuditSinkCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listAuditSinkCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listAuditSinkValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listAuditSinkValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listAuditSinkCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listAuditSinkCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind AuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listAuditSinkValidateBeforeCall(String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1AuditSinkList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1AuditSinkList listAuditSink(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listAuditSinkWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1AuditSinkList listAuditSink(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listAuditSinkWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind AuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1alpha1AuditSinkList listAuditSink(String pretty, String _continue, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1AuditSinkList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listAuditSinkWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listAuditSinkValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listAuditSinkWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listAuditSinkValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind AuditSink * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listAuditSinkWithHttpInfo(String prett * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listAuditSinkAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listAuditSinkAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listAuditSinkValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listAuditSinkValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchAuditSink @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAuditSinkCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchAuditSinkCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchAuditSinkValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchAuditSinkValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchAuditSinkValidateBeforeCall(String name, V throw new ApiException("Missing the required parameter 'body' when calling patchAuditSink(Async)"); } - - com.squareup.okhttp.Call call = patchAuditSinkCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchAuditSinkCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchAuditSinkValidateBeforeCall(String name, V * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1AuditSink * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1AuditSink patchAuditSink(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchAuditSinkWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1AuditSink patchAuditSink(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchAuditSinkWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1alpha1AuditSink patchAuditSink(String name, V1Patch body, String pretty * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1AuditSink> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchAuditSinkWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchAuditSinkWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchAuditSinkWithHttpInfo(String name, V1 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchAuditSinkAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchAuditSinkAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readAuditSink @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAuditSinkCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readAuditSinkCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readAuditSinkValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readAuditSinkValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readAuditSink(Async)"); } - - com.squareup.okhttp.Call call = readAuditSinkCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readAuditSinkCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readAuditSinkValidateBeforeCall(String name, St * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1alpha1AuditSink * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1AuditSink readAuditSink(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readAuditSinkWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readAuditSinkWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1alpha1AuditSink readAuditSink(String name, String pretty, Boolean exact * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1alpha1AuditSink> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readAuditSinkWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readAuditSinkValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readAuditSinkValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readAuditSinkWithHttpInfo(String name, Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readAuditSinkAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readAuditSinkAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readAuditSinkValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readAuditSinkValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceAuditSink @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAuditSinkCall(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceAuditSinkCall(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/auditregistration.k8s.io/v1alpha1/auditsinks/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceAuditSinkValidateBeforeCall(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceAuditSinkValidateBeforeCall(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replaceAuditSinkValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceAuditSink(Async)"); } - - com.squareup.okhttp.Call call = replaceAuditSinkCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceAuditSinkCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replaceAuditSinkValidateBeforeCall(String name, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1AuditSink * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1AuditSink replaceAuditSink(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceAuditSinkWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceAuditSinkWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1alpha1AuditSink replaceAuditSink(String name, V1alpha1AuditSink body, S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1AuditSink> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceAuditSinkWithHttpInfo(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replaceAuditSinkWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceAuditSinkAsync(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceAuditSinkAsync(String name, V1alpha1AuditSink body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceAuditSinkValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationApi.java index d414ed7d83..061545217a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class AuthenticationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuthenticationApi() { this(Configuration.getDefaultApiClient()); } public AuthenticationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/authentication.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1Api.java index d66265e98a..7257e4843e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,22 +37,22 @@ import java.util.Map; public class AuthenticationV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuthenticationV1Api() { this(Configuration.getDefaultApiClient()); } public AuthenticationV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -61,74 +61,70 @@ public void setApiClient(ApiClient apiClient) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createTokenReviewCall(V1TokenReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createTokenReviewCall(V1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authentication.k8s.io/v1/tokenreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createTokenReviewValidateBeforeCall(V1TokenReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createTokenReviewValidateBeforeCall(V1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createTokenReview(Async)"); } - - com.squareup.okhttp.Call call = createTokenReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createTokenReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -140,10 +136,18 @@ private com.squareup.okhttp.Call createTokenReviewValidateBeforeCall(V1TokenRevi * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1TokenReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1TokenReview createTokenReview(V1TokenReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createTokenReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createTokenReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -155,11 +159,19 @@ public V1TokenReview createTokenReview(V1TokenReview body, String dryRun, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1TokenReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createTokenReviewWithHttpInfo(V1TokenReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -169,95 +181,72 @@ public ApiResponse createTokenReviewWithHttpInfo(V1TokenReview bo * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createTokenReviewAsync(V1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createTokenReviewAsync(V1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/authentication.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -265,10 +254,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -276,44 +271,37 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1beta1Api.java index 2d02fd684d..43c8bda718 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthenticationV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,22 +37,22 @@ import java.util.Map; public class AuthenticationV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuthenticationV1beta1Api() { this(Configuration.getDefaultApiClient()); } public AuthenticationV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -61,74 +61,70 @@ public void setApiClient(ApiClient apiClient) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createTokenReviewCall(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createTokenReviewCall(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authentication.k8s.io/v1beta1/tokenreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createTokenReviewValidateBeforeCall(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createTokenReviewValidateBeforeCall(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createTokenReview(Async)"); } - - com.squareup.okhttp.Call call = createTokenReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createTokenReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -140,10 +136,18 @@ private com.squareup.okhttp.Call createTokenReviewValidateBeforeCall(V1beta1Toke * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1TokenReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1TokenReview createTokenReview(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createTokenReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createTokenReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -155,11 +159,19 @@ public V1beta1TokenReview createTokenReview(V1beta1TokenReview body, String dryR * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1TokenReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createTokenReviewWithHttpInfo(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -169,95 +181,72 @@ public ApiResponse createTokenReviewWithHttpInfo(V1beta1Toke * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createTokenReviewAsync(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createTokenReviewAsync(V1beta1TokenReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createTokenReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/authentication.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -265,10 +254,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -276,44 +271,37 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationApi.java index af5bd906fe..74c5f430c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class AuthorizationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuthorizationApi() { this(Configuration.getDefaultApiClient()); } public AuthorizationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1Api.java index b0eaef50d8..4a1e2a0ead 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,22 +40,22 @@ import java.util.Map; public class AuthorizationV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuthorizationV1Api() { this(Configuration.getDefaultApiClient()); } public AuthorizationV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1/namespaces/{namespace}/localsubjectaccessreviews" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -131,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewValidat throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLocalSubjectAccessReview(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedLocalSubjectAccessReviewCall(namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewCall(namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -151,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewValidat * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1LocalSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -167,11 +171,19 @@ public V1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1LocalSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedLocalSubjectAccessReviewWithHttpInfo(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -182,35 +194,24 @@ public ApiResponse createNamespacedLocalSubjectAcces * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewAsync(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(String namespace, V1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createSelfSubjectAccessReview @@ -218,74 +219,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createSelfSubjectAccessReviewCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1/selfsubjectaccessreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createSelfSubjectAccessReviewValidateBeforeCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectAccessReview(Async)"); } - - com.squareup.okhttp.Call call = createSelfSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createSelfSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -297,10 +294,18 @@ private com.squareup.okhttp.Call createSelfSubjectAccessReviewValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1SelfSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1SelfSubjectAccessReview createSelfSubjectAccessReview(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -312,11 +317,19 @@ public V1SelfSubjectAccessReview createSelfSubjectAccessReview(V1SelfSubjectAcce * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1SelfSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createSelfSubjectAccessReviewWithHttpInfo(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -326,35 +339,24 @@ public ApiResponse createSelfSubjectAccessReviewWithH * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectAccessReviewAsync(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createSelfSubjectAccessReviewAsync(V1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createSelfSubjectRulesReview @@ -362,74 +364,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createSelfSubjectRulesReviewCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1/selfsubjectrulesreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createSelfSubjectRulesReviewValidateBeforeCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectRulesReview(Async)"); } - - com.squareup.okhttp.Call call = createSelfSubjectRulesReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createSelfSubjectRulesReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -441,10 +439,18 @@ private com.squareup.okhttp.Call createSelfSubjectRulesReviewValidateBeforeCall( * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1SelfSubjectRulesReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1SelfSubjectRulesReview createSelfSubjectRulesReview(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -456,11 +462,19 @@ public V1SelfSubjectRulesReview createSelfSubjectRulesReview(V1SelfSubjectRulesR * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1SelfSubjectRulesReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createSelfSubjectRulesReviewWithHttpInfo(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -470,35 +484,24 @@ public ApiResponse createSelfSubjectRulesReviewWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectRulesReviewAsync(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createSelfSubjectRulesReviewAsync(V1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createSubjectAccessReview @@ -506,74 +509,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createSubjectAccessReviewCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1/subjectaccessreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createSubjectAccessReviewValidateBeforeCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSubjectAccessReview(Async)"); } - - com.squareup.okhttp.Call call = createSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -585,10 +584,18 @@ private com.squareup.okhttp.Call createSubjectAccessReviewValidateBeforeCall(V1S * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1SubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1SubjectAccessReview createSubjectAccessReview(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -600,11 +607,19 @@ public V1SubjectAccessReview createSubjectAccessReview(V1SubjectAccessReview bod * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1SubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createSubjectAccessReviewWithHttpInfo(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -614,95 +629,72 @@ public ApiResponse createSubjectAccessReviewWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSubjectAccessReviewAsync(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createSubjectAccessReviewAsync(V1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -710,10 +702,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -721,44 +719,37 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1beta1Api.java index b49bd3d465..dcf2d1607f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AuthorizationV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -40,22 +40,22 @@ import java.util.Map; public class AuthorizationV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AuthorizationV1beta1Api() { this(Configuration.getDefaultApiClient()); } public AuthorizationV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewCall(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedLocalSubjectAccessReviewCall(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1beta1/namespaces/{namespace}/localsubjectaccessreviews" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedLocalSubjectAccessReviewValidateBeforeCall(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -131,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewValidat throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLocalSubjectAccessReview(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedLocalSubjectAccessReviewCall(namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewCall(namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -151,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewValidat * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1LocalSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedLocalSubjectAccessReviewWithHttpInfo(namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -167,11 +171,19 @@ public V1beta1LocalSubjectAccessReview createNamespacedLocalSubjectAccessReview( * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1LocalSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedLocalSubjectAccessReviewWithHttpInfo(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -182,35 +194,24 @@ public ApiResponse createNamespacedLocalSubject * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLocalSubjectAccessReviewAsync(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedLocalSubjectAccessReviewAsync(String namespace, V1beta1LocalSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedLocalSubjectAccessReviewValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createSelfSubjectAccessReview @@ -218,74 +219,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectAccessReviewCall(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createSelfSubjectAccessReviewCall(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1beta1/selfsubjectaccessreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createSelfSubjectAccessReviewValidateBeforeCall(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createSelfSubjectAccessReviewValidateBeforeCall(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectAccessReview(Async)"); } - - com.squareup.okhttp.Call call = createSelfSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createSelfSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -297,10 +294,18 @@ private com.squareup.okhttp.Call createSelfSubjectAccessReviewValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1SelfSubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1SelfSubjectAccessReview createSelfSubjectAccessReview(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createSelfSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -312,11 +317,19 @@ public V1beta1SelfSubjectAccessReview createSelfSubjectAccessReview(V1beta1SelfS * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1SelfSubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createSelfSubjectAccessReviewWithHttpInfo(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -326,35 +339,24 @@ public ApiResponse createSelfSubjectAccessReview * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectAccessReviewAsync(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createSelfSubjectAccessReviewAsync(V1beta1SelfSubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createSelfSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createSelfSubjectRulesReview @@ -362,74 +364,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectRulesReviewCall(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createSelfSubjectRulesReviewCall(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1beta1/selfsubjectrulesreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createSelfSubjectRulesReviewValidateBeforeCall(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createSelfSubjectRulesReviewValidateBeforeCall(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSelfSubjectRulesReview(Async)"); } - - com.squareup.okhttp.Call call = createSelfSubjectRulesReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createSelfSubjectRulesReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -441,10 +439,18 @@ private com.squareup.okhttp.Call createSelfSubjectRulesReviewValidateBeforeCall( * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1SelfSubjectRulesReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1SelfSubjectRulesReview createSelfSubjectRulesReview(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createSelfSubjectRulesReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -456,11 +462,19 @@ public V1beta1SelfSubjectRulesReview createSelfSubjectRulesReview(V1beta1SelfSub * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1SelfSubjectRulesReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createSelfSubjectRulesReviewWithHttpInfo(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -470,35 +484,24 @@ public ApiResponse createSelfSubjectRulesReviewWi * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSelfSubjectRulesReviewAsync(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createSelfSubjectRulesReviewAsync(V1beta1SelfSubjectRulesReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createSelfSubjectRulesReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createSubjectAccessReview @@ -506,74 +509,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSubjectAccessReviewCall(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createSubjectAccessReviewCall(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1beta1/subjectaccessreviews"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createSubjectAccessReviewValidateBeforeCall(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createSubjectAccessReviewValidateBeforeCall(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createSubjectAccessReview(Async)"); } - - com.squareup.okhttp.Call call = createSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createSubjectAccessReviewCall(body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -585,10 +584,18 @@ private com.squareup.okhttp.Call createSubjectAccessReviewValidateBeforeCall(V1b * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1SubjectAccessReview * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1SubjectAccessReview createSubjectAccessReview(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createSubjectAccessReviewWithHttpInfo(body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -600,11 +607,19 @@ public V1beta1SubjectAccessReview createSubjectAccessReview(V1beta1SubjectAccess * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1SubjectAccessReview> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createSubjectAccessReviewWithHttpInfo(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -614,95 +629,72 @@ public ApiResponse createSubjectAccessReviewWithHttp * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createSubjectAccessReviewAsync(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createSubjectAccessReviewAsync(V1beta1SubjectAccessReview body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createSubjectAccessReviewValidateBeforeCall(body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/authorization.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -710,10 +702,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -721,44 +719,37 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingApi.java index 059a3d6dbf..5ba3e9b59f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class AutoscalingApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AutoscalingApi() { this(Configuration.getDefaultApiClient()); } public AutoscalingApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV1Api.java index 0504e0aa4f..da28177eac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1HorizontalPodAutoscaler; import io.kubernetes.client.models.V1HorizontalPodAutoscalerList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import java.lang.reflect.Type; @@ -41,22 +40,22 @@ import java.util.Map; public class AutoscalingV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AutoscalingV1Api() { this(Configuration.getDefaultApiClient()); } public AutoscalingV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidate throw new ApiException("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidate * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedHorizontalPodAutos * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscal * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidate throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidate * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listHorizontalPodAutoscalerForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/horizontalpodautoscalers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesVali * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listHorizontalPodAutoscalerFor * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBe * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(Strin * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedHorizontalPodAut * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedHorizontalPodAut * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedHorizontalPodAutoscaler @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateB throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateB * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedHorizontalPodAutosc * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedHorizontalPodAutoscalerStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusVal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public V1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedHorizontalPodAutosc * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedHorizontalPodAutoscaler @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBe throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBe * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(String na * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedHorizontalPodAutosca * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedHorizontalPodAutoscalerStatus * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusVali throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusVali * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public V1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedHorizontalPodAutosca * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedHorizontalPodAutoscaler @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidat throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidat * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedHorizontalPodAuto * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedHorizontalPodAutoscalerStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusV throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusV * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public V1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedHorizontalPodAuto * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta1Api.java index feb529d812..6505c3edb9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V2beta1HorizontalPodAutoscaler; import io.kubernetes.client.models.V2beta1HorizontalPodAutoscalerList; @@ -41,22 +40,22 @@ import java.util.Map; public class AutoscalingV2beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AutoscalingV2beta1Api() { this(Configuration.getDefaultApiClient()); } public AutoscalingV2beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidate throw new ApiException("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidate * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V2beta1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V2beta1HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedHorizontalPod * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscal * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidate throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidate * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listHorizontalPodAutoscalerForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/horizontalpodautoscalers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesVali * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V2beta1HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V2beta1HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNames * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listHorizontalPodAutoscal * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBe * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V2beta1HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler( * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V2beta1HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler( * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedHorizontalP * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedHorizontalP * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedHorizontalPodAutoscaler @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateB throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateB * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedHorizontalPodA * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedHorizontalPodAutoscalerStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusVal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public V2beta1HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedHorizontalPodA * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedHorizontalPodAutoscaler @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBe throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBe * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedHorizontalPodAu * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedHorizontalPodAutoscalerStatus * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusVali throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusVali * @param pretty If 'true', then the output is pretty printed. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public V2beta1HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatu * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedHorizontalPodAu * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedHorizontalPodAutoscaler @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidat throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidat * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedHorizontalPo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedHorizontalPodAutoscalerStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta1/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusV throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusV * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2beta1HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public V2beta1HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerSt * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2beta1HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedHorizontalPo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V2beta1HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta2Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta2Api.java index 6963c269de..99eb7872ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta2Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/AutoscalingV2beta2Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V2beta2HorizontalPodAutoscaler; import io.kubernetes.client.models.V2beta2HorizontalPodAutoscalerList; @@ -41,22 +40,22 @@ import java.util.Map; public class AutoscalingV2beta2Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public AutoscalingV2beta2Api() { this(Configuration.getDefaultApiClient()); } public AutoscalingV2beta2Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedHorizontalPodAutoscalerCall(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidate throw new ApiException("Missing the required parameter 'body' when calling createNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerValidate * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V2beta2HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V2beta2HorizontalPodAutoscaler createNamespacedHorizontalPodAutoscaler(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedHorizontalPod * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedHorizontalPodAutoscalerAsync(String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscal * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedHorizontalPodAutoscaler(String namespa * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedHorizontalPodAutoscalerWi * delete collection of HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedHorizontalPodAutoscaler * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidate throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerValidate * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedHorizontalPodAutoscaler(String name, String name * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedHorizontalPodAutoscalerWithHttpInfo * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listHorizontalPodAutoscalerForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/horizontalpodautoscalers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesVali * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V2beta2HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V2beta2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V2beta2HorizontalPodAutoscalerList listHorizontalPodAutoscalerForAllNames * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listHorizontalPodAutoscalerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind HorizontalPodAutoscaler + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listHorizontalPodAutoscal * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listHorizontalPodAutoscalerForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listHorizontalPodAutoscalerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listHorizontalPodAutoscalerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedHorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedHorizontalPodAutoscalerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedHorizontalPodAutoscalerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBe * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerValidateBe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V2beta2HorizontalPodAutoscalerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V2beta2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedHorizontalPodAutoscalerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V2beta2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler( * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V2beta2HorizontalPodAutoscalerList listNamespacedHorizontalPodAutoscaler( * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscalerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedHorizontalPodAutoscalerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedHorizontalP * list or watch objects of kind HorizontalPodAutoscaler * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedHorizontalP * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedHorizontalPodAutoscalerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedHorizontalPodAutoscalerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedHorizontalPodAutoscaler @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateB throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerValidateB * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscaler(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedHorizontalPodA * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedHorizontalPodAutoscalerStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusVal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusVal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public V2beta2HorizontalPodAutoscaler patchNamespacedHorizontalPodAutoscalerStat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedHorizontalPodA * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedHorizontalPodAutoscaler @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBe throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerValidateBe * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V2beta2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public V2beta2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscaler(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedHorizontalPodAu * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedHorizontalPodAutoscalerStatus * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusVali throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusVali * @param pretty If 'true', then the output is pretty printed. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V2beta2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public V2beta2HorizontalPodAutoscaler readNamespacedHorizontalPodAutoscalerStatu * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedHorizontalPodAu * @param name name of the HorizontalPodAutoscaler (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedHorizontalPodAutoscaler @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidat throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscaler(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerValidat * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V2beta2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public V2beta2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscaler(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedHorizontalPodAutoscalerWithHttpInfo(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedHorizontalPo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerAsync(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedHorizontalPodAutoscalerStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/autoscaling/v2beta2/namespaces/{namespace}/horizontalpodautoscalers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusV throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedHorizontalPodAutoscalerStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusV * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2beta2HorizontalPodAutoscaler * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V2beta2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerStatus(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public V2beta2HorizontalPodAutoscaler replaceNamespacedHorizontalPodAutoscalerSt * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2beta2HorizontalPodAutoscaler> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedHorizontalPodAutoscalerStatusWithHttpInfo(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedHorizontalPo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedHorizontalPodAutoscalerStatusAsync(String name, String namespace, V2beta2HorizontalPodAutoscaler body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedHorizontalPodAutoscalerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchApi.java index d295e6c3cc..cfc852fd87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class BatchApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public BatchApi() { this(Configuration.getDefaultApiClient()); } public BatchApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1Api.java index e95e63db1d..11ead24c05 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1Job; import io.kubernetes.client.models.V1JobList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import java.lang.reflect.Type; @@ -41,22 +40,22 @@ import java.util.Map; public class BatchV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public BatchV1Api() { this(Configuration.getDefaultApiClient()); } public BatchV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedJobCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedJobCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedJobValidateBeforeCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedJobValidateBeforeCall(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedJobValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling createNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedJobCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedJobCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedJobValidateBeforeCall(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Job createNamespacedJob(String namespace, V1Job body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1Job createNamespacedJob(String namespace, V1Job body, String pretty, St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedJobWithHttpInfo(String namespace, V1Job body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedJobWithHttpInfo(String namespace, V1Jo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedJobAsync(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedJobAsync(String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedJobCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedJobValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedJobCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedJobValidateBeforeCall * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedJob(String namespace, String pretty, S * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedJobWithHttpInfo(String na * delete collection of Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedJobAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedJob * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedJobCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedJobValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedJobCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedJobValidateBeforeCall(String na * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedJob(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedJobWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedJob(String name, String namespace, String pretty * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedJobWithHttpInfo(String name, String * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedJobAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listJobForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listJobForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1/jobs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listJobForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listJobForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Job + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listJobForAllNamespacesValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1JobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1JobList listJobForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listJobForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1JobList listJobForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Job + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V1JobList listJobForAllNamespaces(String _continue, String fieldSelector, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1JobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listJobForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listJobForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listJobForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Job + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listJobForAllNamespacesWithHttpInfo(String _contin * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listJobForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listJobForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listJobForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedJobCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedJobValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedJobCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedJobValidateBeforeCall(String name * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedJobValidateBeforeCall(String name * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1JobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1JobList listNamespacedJob(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedJobWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1JobList listNamespacedJob(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V1JobList listNamespacedJob(String namespace, String pretty, String _cont * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V1JobList listNamespacedJob(String namespace, String pretty, String _cont * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1JobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedJobWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedJobWithHttpInfo(String namespace, St * list or watch objects of kind Job * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedJobWithHttpInfo(String namespace, St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedJobAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedJob @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedJobCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedJobValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedJobValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedJobValidateBeforeCall(String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Job patchNamespacedJob(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Job patchNamespacedJob(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1Job patchNamespacedJob(String name, String namespace, V1Patch body, Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedJobWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedJobWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedJobWithHttpInfo(String name, String nam * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedJobAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedJobAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedJobStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedJobStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedJobStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedJobStatusValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedJobStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedJobStatusValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Job patchNamespacedJobStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Job patchNamespacedJobStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public V1Job patchNamespacedJobStatus(String name, String namespace, V1Patch bod * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedJobStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedJobStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedJobStatusWithHttpInfo(String name, Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedJobStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedJobStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedJob @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedJobCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedJobCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedJobValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedJobValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedJobCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedJobCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedJobValidateBeforeCall(String name * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Job readNamespacedJob(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedJobWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedJobWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public V1Job readNamespacedJob(String name, String namespace, String pretty, Boo * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedJobWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedJobValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedJobValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedJobWithHttpInfo(String name, String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedJobAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedJobAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedJobValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedJobValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedJobStatus * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedJobStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedJobStatusValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedJobStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedJobStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedJobStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedJobStatusValidateBeforeCall(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Job readNamespacedJobStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedJobStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedJobStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public V1Job readNamespacedJobStatus(String name, String namespace, String prett * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedJobStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedJobStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedJobStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedJobStatusWithHttpInfo(String name, Strin * @param name name of the Job (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedJobStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedJobStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedJobStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedJobStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedJob @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedJobCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedJobCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedJobValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedJobValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedJobValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedJob(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedJobCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedJobValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Job replaceNamespacedJob(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public V1Job replaceNamespacedJob(String name, String namespace, V1Job body, Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedJobWithHttpInfo(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedJobWithHttpInfo(String name, String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedJobAsync(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedJobAsync(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedJobStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedJobStatusCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedJobStatusCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedJobStatusValidateBeforeCall(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedJobStatusValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedJobStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedJobStatusValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Job * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Job replaceNamespacedJobStatus(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public V1Job replaceNamespacedJobStatus(String name, String namespace, V1Job bod * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Job> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedJobStatusWithHttpInfo(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedJobStatusWithHttpInfo(String name, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedJobStatusAsync(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedJobStatusAsync(String name, String namespace, V1Job body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1beta1Api.java index 5d34f7d2e4..f569b31415 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CronJob; import io.kubernetes.client.models.V1beta1CronJobList; @@ -41,22 +40,22 @@ import java.util.Map; public class BatchV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public BatchV1beta1Api() { this(Configuration.getDefaultApiClient()); } public BatchV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedCronJobCall(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedCronJobCall(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedCronJobValidateBeforeCall(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedCronJobValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedCronJobCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedCronJobCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedCronJobValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1CronJob createNamespacedCronJob(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1beta1CronJob createNamespacedCronJob(String namespace, V1beta1CronJob b * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedCronJobWithHttpInfo(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedCronJobWithHttpInfo(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedCronJobAsync(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedCronJobAsync(String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedCronJobValidateBefore * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedCronJob(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedCronJob(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedCronJob(String namespace, String prett * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(Strin * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedCronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedCronJobValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedCronJobCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedCronJobValidateBeforeCall(Strin * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedCronJob(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedCronJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedCronJob(String name, String namespace, String pr * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, St * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listCronJobForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCronJobForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/cronjobs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listCronJobForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listCronJobForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind CronJob + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listCronJobForAllNamespacesValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1CronJobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CronJobList listCronJobForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listCronJobForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1CronJobList listCronJobForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind CronJob + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V1beta1CronJobList listCronJobForAllNamespaces(String _continue, String f * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1CronJobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listCronJobForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listCronJobForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listCronJobForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind CronJob + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listCronJobForAllNamespacesWithHttpInfo(S * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCronJobForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listCronJobForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listCronJobForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedCronJobCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedCronJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedCronJobCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedCronJobValidateBeforeCall(String * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedCronJobValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1CronJobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CronJobList listNamespacedCronJob(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1CronJobList listNamespacedCronJob(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V1beta1CronJobList listNamespacedCronJob(String namespace, String pretty, * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V1beta1CronJobList listNamespacedCronJob(String namespace, String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1CronJobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedCronJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedCronJobWithHttpInfo(String * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedCronJobWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedCronJobAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedCronJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCronJob @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCronJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedCronJobValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedCronJobValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CronJob patchNamespacedCronJob(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CronJob patchNamespacedCronJob(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1beta1CronJob patchNamespacedCronJob(String name, String namespace, V1Pa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedCronJobWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedCronJobWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedCronJobWithHttpInfo(String nam * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedCronJobAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCronJobStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedCronJobStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCronJobStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedCronJobStatusValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CronJob patchNamespacedCronJobStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CronJob patchNamespacedCronJobStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public V1beta1CronJob patchNamespacedCronJobStatus(String name, String namespace * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedCronJobStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedCronJob @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedCronJobCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedCronJobValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedCronJobCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedCronJobCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedCronJobValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CronJob readNamespacedCronJob(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedCronJobWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedCronJobWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public V1beta1CronJob readNamespacedCronJob(String name, String namespace, Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedCronJobWithHttpInfo(String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedCronJobAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedCronJobStatus * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedCronJobStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCronJobStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedCronJobStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedCronJobStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedCronJobStatusValidateBeforeCall(S * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CronJob readNamespacedCronJobStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public V1beta1CronJob readNamespacedCronJobStatus(String name, String namespace, * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedCronJobStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedCronJobStatusWithHttpInfo(Strin * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedCronJobStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCronJob @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCronJobValidateBeforeCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CronJob replaceNamespacedCronJob(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public V1beta1CronJob replaceNamespacedCronJob(String name, String namespace, V1 * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCronJobWithHttpInfo(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedCronJobWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobAsync(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedCronJobAsync(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCronJobStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobStatusCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v1beta1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCronJobStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobStatusValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CronJob replaceNamespacedCronJobStatus(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public V1beta1CronJob replaceNamespacedCronJobStatus(String name, String namespa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobStatusAsync(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedCronJobStatusAsync(String name, String namespace, V1beta1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV2alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV2alpha1Api.java index b8f3a7e49a..072db9b67c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV2alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/BatchV2alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V2alpha1CronJob; import io.kubernetes.client.models.V2alpha1CronJobList; @@ -41,22 +40,22 @@ import java.util.Map; public class BatchV2alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public BatchV2alpha1Api() { this(Configuration.getDefaultApiClient()); } public BatchV2alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedCronJobCall(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedCronJobCall(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedCronJobValidateBeforeCall(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedCronJobValidateBeforeCall(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedCronJobValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedCronJobCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedCronJobCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedCronJobValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V2alpha1CronJob createNamespacedCronJob(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedCronJobWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V2alpha1CronJob createNamespacedCronJob(String namespace, V2alpha1CronJob * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedCronJobWithHttpInfo(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedCronJobWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedCronJobAsync(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedCronJobAsync(String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedCronJobValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedCronJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedCronJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedCronJobCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedCronJobValidateBefore * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedCronJob(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedCronJob(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedCronJob(String namespace, String prett * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedCronJobWithHttpInfo(Strin * delete collection of CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedCronJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedCronJob * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedCronJobCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedCronJobValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedCronJobCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedCronJobCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedCronJobValidateBeforeCall(Strin * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedCronJob(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedCronJob(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedCronJobWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedCronJob(String name, String namespace, String pr * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedCronJobWithHttpInfo(String name, St * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedCronJobAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedCronJobValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listCronJobForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCronJobForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listCronJobForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/cronjobs"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listCronJobForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listCronJobForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listCronJobForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listCronJobForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind CronJob + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listCronJobForAllNamespacesValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V2alpha1CronJobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2alpha1CronJobList listCronJobForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listCronJobForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V2alpha1CronJobList listCronJobForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listCronJobForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind CronJob + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V2alpha1CronJobList listCronJobForAllNamespaces(String _continue, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V2alpha1CronJobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listCronJobForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listCronJobForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listCronJobForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind CronJob + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listCronJobForAllNamespacesWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCronJobForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listCronJobForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listCronJobForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listCronJobForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedCronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedCronJobCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedCronJobCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedCronJobValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedCronJobValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedCronJobCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedCronJobCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedCronJobValidateBeforeCall(String * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedCronJobValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V2alpha1CronJobList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2alpha1CronJobList listNamespacedCronJob(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedCronJobWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V2alpha1CronJobList listNamespacedCronJob(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedCronJobWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V2alpha1CronJobList listNamespacedCronJob(String namespace, String pretty * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V2alpha1CronJobList listNamespacedCronJob(String namespace, String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V2alpha1CronJobList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedCronJobWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedCronJobWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedCronJobWithHttpInfo(String * list or watch objects of kind CronJob * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedCronJobWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedCronJobAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedCronJobAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedCronJobValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedCronJobValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCronJob @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedCronJobCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCronJobValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCronJobValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedCronJobValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedCronJobValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2alpha1CronJob patchNamespacedCronJob(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V2alpha1CronJob patchNamespacedCronJob(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V2alpha1CronJob patchNamespacedCronJob(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedCronJobWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedCronJobWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedCronJobWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedCronJobAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCronJobStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedCronJobStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedCronJobStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCronJobStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedCronJobStatusValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V2alpha1CronJob patchNamespacedCronJobStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V2alpha1CronJob patchNamespacedCronJobStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public V2alpha1CronJob patchNamespacedCronJobStatus(String name, String namespac * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedCronJobStatusWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCronJobStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedCronJobStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedCronJob @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedCronJobCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedCronJobValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedCronJobValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedCronJobCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedCronJobCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedCronJobValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V2alpha1CronJob readNamespacedCronJob(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedCronJobWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedCronJobWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public V2alpha1CronJob readNamespacedCronJob(String name, String namespace, Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedCronJobWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedCronJobWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedCronJobAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedCronJobValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedCronJobStatus * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedCronJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedCronJobStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedCronJobStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedCronJobStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedCronJobStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedCronJobStatusValidateBeforeCall(S * @param pretty If 'true', then the output is pretty printed. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V2alpha1CronJob readNamespacedCronJobStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedCronJobStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public V2alpha1CronJob readNamespacedCronJobStatus(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedCronJobStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedCronJobStatusWithHttpInfo(Stri * @param name name of the CronJob (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedCronJobStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedCronJobStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedCronJobStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCronJob @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedCronJobCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCronJobValidateBeforeCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobValidateBeforeCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCronJob(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCronJobCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V2alpha1CronJob replaceNamespacedCronJob(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCronJobWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public V2alpha1CronJob replaceNamespacedCronJob(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCronJobWithHttpInfo(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedCronJobWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobAsync(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedCronJobAsync(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCronJobValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCronJobStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobStatusCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedCronJobStatusCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/batch/v2alpha1/namespaces/{namespace}/cronjobs/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCronJobStatusValidateBeforeCall(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCronJobStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCronJobStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedCronJobStatusValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V2alpha1CronJob * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V2alpha1CronJob replaceNamespacedCronJobStatus(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCronJobStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public V2alpha1CronJob replaceNamespacedCronJobStatus(String name, String namesp * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V2alpha1CronJob> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedCronJobStatusWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCronJobStatusAsync(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedCronJobStatusAsync(String name, String namespace, V2alpha1CronJob body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCronJobStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesApi.java index ab9d5cf170..c2c9adb4ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class CertificatesApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CertificatesApi() { this(Configuration.getDefaultApiClient()); } public CertificatesApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesV1beta1Api.java index 666d3a1d4e..c5b207d9c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CertificatesV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CertificateSigningRequest; import io.kubernetes.client.models.V1beta1CertificateSigningRequestList; @@ -41,22 +40,22 @@ import java.util.Map; public class CertificatesV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CertificatesV1beta1Api() { this(Configuration.getDefaultApiClient()); } public CertificatesV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCertificateSigningRequestCall(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createCertificateSigningRequestCall(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createCertificateSigningRequestValidateBeforeCall(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createCertificateSigningRequestValidateBeforeCall(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCertificateSigningRequest(Async)"); } - - com.squareup.okhttp.Call call = createCertificateSigningRequestCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createCertificateSigningRequestCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createCertificateSigningRequestValidateBeforeCa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1CertificateSigningRequest createCertificateSigningRequest(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createCertificateSigningRequestWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1beta1CertificateSigningRequest createCertificateSigningRequest(V1beta1C * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createCertificateSigningRequestWithHttpInfo(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createCertificateSigningRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createCertificateSigningRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,118 +184,106 @@ public ApiResponse createCertificateSigningReq * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCertificateSigningRequestAsync(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createCertificateSigningRequestAsync(V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createCertificateSigningRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createCertificateSigningRequestValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCertificateSigningRequestCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteCertificateSigningRequestCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCertificateSigningRequestValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCertificateSigningRequestValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCertificateSigningRequest(Async)"); } - - com.squareup.okhttp.Call call = deleteCertificateSigningRequestCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCertificateSigningRequestCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -292,17 +291,24 @@ private com.squareup.okhttp.Call deleteCertificateSigningRequestValidateBeforeCa * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCertificateSigningRequest(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteCertificateSigningRequestWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteCertificateSigningRequest(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCertificateSigningRequestWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -310,18 +316,25 @@ public V1Status deleteCertificateSigningRequest(String name, String pretty, V1De * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -329,265 +342,288 @@ public ApiResponse deleteCertificateSigningRequestWithHttpInfo(String * delete a CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCertificateSigningRequestAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCertificateSigningRequestAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCertificateSigningRequestValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionCertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCertificateSigningRequestCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionCertificateSigningRequestCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionCertificateSigningRequestValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCertificateSigningRequestCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of CertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionCertificateSigningRequest(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionCertificateSigningRequest(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of CertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionCertificateSigningRequestWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of CertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCertificateSigningRequestAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionCertificateSigningRequestAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listCertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCertificateSigningRequestCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listCertificateSigningRequestCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listCertificateSigningRequestValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listCertificateSigningRequestValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listCertificateSigningRequestCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listCertificateSigningRequestCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind CertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listCertificateSigningRequestValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1CertificateSigningRequestList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CertificateSigningRequestList listCertificateSigningRequest(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listCertificateSigningRequestWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1CertificateSigningRequestList listCertificateSigningRequest(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listCertificateSigningRequestWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind CertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1beta1CertificateSigningRequestList listCertificateSigningRequest(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1CertificateSigningRequestList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listCertificateSigningRequestWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listCertificateSigningRequestValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listCertificateSigningRequestWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind CertificateSigningRequest * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listCertificateSigningR * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCertificateSigningRequestAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listCertificateSigningRequestAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listCertificateSigningRequestValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listCertificateSigningRequestValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchCertificateSigningRequest @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCertificateSigningRequestCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchCertificateSigningRequestCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchCertificateSigningRequestValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchCertificateSigningRequestValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequest(Async)"); } - - com.squareup.okhttp.Call call = patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchCertificateSigningRequestValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CertificateSigningRequest patchCertificateSigningRequest(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CertificateSigningRequest patchCertificateSigningRequest(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1beta1CertificateSigningRequest patchCertificateSigningRequest(String na * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchCertificateSigningRequestWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchCertificateSigningRequestWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchCertificateSigningRequ * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCertificateSigningRequestAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchCertificateSigningRequestAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchCertificateSigningRequestStatus @@ -979,63 +1020,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCertificateSigningRequestStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchCertificateSigningRequestStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchCertificateSigningRequestStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchCertificateSigningRequestStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1047,14 +1088,10 @@ private com.squareup.okhttp.Call patchCertificateSigningRequestStatusValidateBef throw new ApiException("Missing the required parameter 'body' when calling patchCertificateSigningRequestStatus(Async)"); } - - com.squareup.okhttp.Call call = patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1068,10 +1105,16 @@ private com.squareup.okhttp.Call patchCertificateSigningRequestStatusValidateBef * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CertificateSigningRequest patchCertificateSigningRequestStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CertificateSigningRequest patchCertificateSigningRequestStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1085,11 +1128,17 @@ public V1beta1CertificateSigningRequest patchCertificateSigningRequestStatus(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchCertificateSigningRequestStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchCertificateSigningRequestStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1101,35 +1150,22 @@ public ApiResponse patchCertificateSigningRequ * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCertificateSigningRequestStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchCertificateSigningRequestStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readCertificateSigningRequest @@ -1137,75 +1173,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCertificateSigningRequestCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readCertificateSigningRequestCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readCertificateSigningRequestValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readCertificateSigningRequestValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequest(Async)"); } - - com.squareup.okhttp.Call call = readCertificateSigningRequestCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readCertificateSigningRequestCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1217,10 +1247,16 @@ private com.squareup.okhttp.Call readCertificateSigningRequestValidateBeforeCall * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CertificateSigningRequest readCertificateSigningRequest(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readCertificateSigningRequestWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readCertificateSigningRequestWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1232,11 +1268,17 @@ public V1beta1CertificateSigningRequest readCertificateSigningRequest(String nam * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readCertificateSigningRequestWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readCertificateSigningRequestValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readCertificateSigningRequestValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1246,105 +1288,82 @@ public ApiResponse readCertificateSigningReque * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCertificateSigningRequestAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readCertificateSigningRequestAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readCertificateSigningRequestValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readCertificateSigningRequestValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readCertificateSigningRequestStatus * @param name name of the CertificateSigningRequest (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCertificateSigningRequestStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readCertificateSigningRequestStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readCertificateSigningRequestStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readCertificateSigningRequestStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCertificateSigningRequestStatus(Async)"); } - - com.squareup.okhttp.Call call = readCertificateSigningRequestStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readCertificateSigningRequestStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -1354,10 +1373,16 @@ private com.squareup.okhttp.Call readCertificateSigningRequestStatusValidateBefo * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CertificateSigningRequest readCertificateSigningRequestStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readCertificateSigningRequestStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readCertificateSigningRequestStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -1367,11 +1392,17 @@ public V1beta1CertificateSigningRequest readCertificateSigningRequestStatus(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readCertificateSigningRequestStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1379,35 +1410,22 @@ public ApiResponse readCertificateSigningReque * read status of the specified CertificateSigningRequest * @param name name of the CertificateSigningRequest (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCertificateSigningRequestStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readCertificateSigningRequestStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readCertificateSigningRequestStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCertificateSigningRequest @@ -1416,61 +1434,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCertificateSigningRequestCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCertificateSigningRequestCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCertificateSigningRequestValidateBeforeCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestValidateBeforeCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1482,14 +1499,10 @@ private com.squareup.okhttp.Call replaceCertificateSigningRequestValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequest(Async)"); } - - com.squareup.okhttp.Call call = replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCertificateSigningRequestCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1502,10 +1515,17 @@ private com.squareup.okhttp.Call replaceCertificateSigningRequestValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CertificateSigningRequest replaceCertificateSigningRequest(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceCertificateSigningRequestWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1518,11 +1538,18 @@ public V1beta1CertificateSigningRequest replaceCertificateSigningRequest(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCertificateSigningRequestWithHttpInfo(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1533,35 +1560,23 @@ public ApiResponse replaceCertificateSigningRe * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCertificateSigningRequestAsync(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceCertificateSigningRequestAsync(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCertificateSigningRequestValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCertificateSigningRequestApproval @@ -1570,61 +1585,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCertificateSigningRequestApprovalCall(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCertificateSigningRequestApprovalCall(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/approval" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCertificateSigningRequestApprovalValidateBeforeCall(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestApprovalValidateBeforeCall(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1636,14 +1650,10 @@ private com.squareup.okhttp.Call replaceCertificateSigningRequestApprovalValidat throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestApproval(Async)"); } - - com.squareup.okhttp.Call call = replaceCertificateSigningRequestApprovalCall(name, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalCall(name, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -1656,10 +1666,17 @@ private com.squareup.okhttp.Call replaceCertificateSigningRequestApprovalValidat * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CertificateSigningRequest replaceCertificateSigningRequestApproval(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = replaceCertificateSigningRequestApprovalWithHttpInfo(name, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -1672,11 +1689,18 @@ public V1beta1CertificateSigningRequest replaceCertificateSigningRequestApproval * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCertificateSigningRequestApprovalWithHttpInfo(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1687,35 +1711,23 @@ public ApiResponse replaceCertificateSigningRe * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCertificateSigningRequestApprovalAsync(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceCertificateSigningRequestApprovalAsync(String name, V1beta1CertificateSigningRequest body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCertificateSigningRequestApprovalValidateBeforeCall(name, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCertificateSigningRequestStatus @@ -1724,61 +1736,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCertificateSigningRequestStatusCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCertificateSigningRequestStatusCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/certificates.k8s.io/v1beta1/certificatesigningrequests/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCertificateSigningRequestStatusValidateBeforeCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCertificateSigningRequestStatusValidateBeforeCall(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1790,14 +1801,10 @@ private com.squareup.okhttp.Call replaceCertificateSigningRequestStatusValidateB throw new ApiException("Missing the required parameter 'body' when calling replaceCertificateSigningRequestStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1810,10 +1817,17 @@ private com.squareup.okhttp.Call replaceCertificateSigningRequestStatusValidateB * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CertificateSigningRequest * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CertificateSigningRequest replaceCertificateSigningRequestStatus(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceCertificateSigningRequestStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1826,11 +1840,18 @@ public V1beta1CertificateSigningRequest replaceCertificateSigningRequestStatus(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CertificateSigningRequest> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCertificateSigningRequestStatusWithHttpInfo(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1841,34 +1862,22 @@ public ApiResponse replaceCertificateSigningRe * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCertificateSigningRequestStatusAsync(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceCertificateSigningRequestStatusAsync(String name, V1beta1CertificateSigningRequest body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCertificateSigningRequestStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationApi.java index 91bd9e51b1..00d44f2e02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class CoordinationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CoordinationApi() { this(Configuration.getDefaultApiClient()); } public CoordinationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1Api.java index 6faf40da03..1f270dfc43 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1Lease; import io.kubernetes.client.models.V1LeaseList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import java.lang.reflect.Type; @@ -41,22 +40,22 @@ import java.util.Map; public class CoordinationV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CoordinationV1Api() { this(Configuration.getDefaultApiClient()); } public CoordinationV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLeaseCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedLeaseCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedLeaseValidateBeforeCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedLeaseValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedLeaseCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedLeaseCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedLeaseValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Lease createNamespacedLease(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1Lease createNamespacedLease(String namespace, V1Lease body, String pret * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedLeaseWithHttpInfo(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedLeaseWithHttpInfo(String namespace, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLeaseAsync(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedLeaseAsync(String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedLeaseValidateBeforeCa * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedLease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedLeaseValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedLeaseCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedLeaseCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedLeaseValidateBeforeCall(String * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedLease(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedLease(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedLease(String name, String namespace, String pret * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, Stri * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listLeaseForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listLeaseForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/leases"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listLeaseForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listLeaseForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Lease + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listLeaseForAllNamespacesValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1LeaseList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1LeaseList listLeaseForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listLeaseForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1LeaseList listLeaseForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Lease + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V1LeaseList listLeaseForAllNamespaces(String _continue, String fieldSelec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1LeaseList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listLeaseForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listLeaseForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listLeaseForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Lease + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listLeaseForAllNamespacesWithHttpInfo(String _co * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listLeaseForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listLeaseForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listLeaseForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedLeaseCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedLeaseValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedLeaseCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedLeaseValidateBeforeCall(String na * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedLeaseValidateBeforeCall(String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1LeaseList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1LeaseList listNamespacedLease(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1LeaseList listNamespacedLease(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V1LeaseList listNamespacedLease(String namespace, String pretty, String _ * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V1LeaseList listNamespacedLease(String namespace, String pretty, String _ * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1LeaseList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedLeaseAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedLeaseAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedLease @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedLeaseCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedLeaseValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedLeaseValidateBeforeCall(String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Lease patchNamespacedLease(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Lease patchNamespacedLease(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1Lease patchNamespacedLease(String name, String namespace, V1Patch body, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedLeaseAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedLeaseAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedLease @@ -1193,62 +1245,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedLeaseCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedLeaseCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1260,14 +1310,10 @@ private com.squareup.okhttp.Call readNamespacedLeaseValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedLeaseCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedLeaseCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1280,10 +1326,16 @@ private com.squareup.okhttp.Call readNamespacedLeaseValidateBeforeCall(String na * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Lease readNamespacedLease(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedLeaseWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedLeaseWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1296,11 +1348,17 @@ public V1Lease readNamespacedLease(String name, String namespace, String pretty, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1311,35 +1369,22 @@ public ApiResponse readNamespacedLeaseWithHttpInfo(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedLeaseAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedLeaseAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedLease @@ -1349,62 +1394,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedLeaseCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1421,14 +1465,10 @@ private com.squareup.okhttp.Call replaceNamespacedLeaseValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1442,10 +1482,17 @@ private com.squareup.okhttp.Call replaceNamespacedLeaseValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Lease replaceNamespacedLease(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1459,11 +1506,18 @@ public V1Lease replaceNamespacedLease(String name, String namespace, V1Lease bod * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedLeaseWithHttpInfo(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1475,34 +1529,22 @@ public ApiResponse replaceNamespacedLeaseWithHttpInfo(String name, Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedLeaseAsync(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedLeaseAsync(String name, String namespace, V1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1beta1Api.java index 0753eb1674..5d4df1a3a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CoordinationV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1Lease; import io.kubernetes.client.models.V1beta1LeaseList; @@ -41,22 +40,22 @@ import java.util.Map; public class CoordinationV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CoordinationV1beta1Api() { this(Configuration.getDefaultApiClient()); } public CoordinationV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLeaseCall(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedLeaseCall(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedLeaseValidateBeforeCall(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedLeaseValidateBeforeCall(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedLeaseValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedLeaseCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedLeaseCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedLeaseValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1Lease createNamespacedLease(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedLeaseWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1beta1Lease createNamespacedLease(String namespace, V1beta1Lease body, S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedLeaseWithHttpInfo(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedLeaseWithHttpInfo(String namesp * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedLeaseAsync(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedLeaseAsync(String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedLeaseValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedLeaseCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLeaseValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedLeaseCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedLeaseValidateBeforeCa * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedLease(String namespace, String pretty, * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedLeaseWithHttpInfo(String * delete collection of Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedLeaseAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedLease * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedLeaseCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedLeaseValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedLeaseCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedLeaseCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedLeaseValidateBeforeCall(String * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedLease(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedLease(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLeaseWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedLease(String name, String namespace, String pret * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedLeaseWithHttpInfo(String name, Stri * @param name name of the Lease (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedLeaseAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedLeaseValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listLeaseForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listLeaseForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listLeaseForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/leases"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listLeaseForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listLeaseForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listLeaseForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listLeaseForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Lease + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listLeaseForAllNamespacesValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1LeaseList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1LeaseList listLeaseForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listLeaseForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1LeaseList listLeaseForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listLeaseForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Lease + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V1beta1LeaseList listLeaseForAllNamespaces(String _continue, String field * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1LeaseList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listLeaseForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listLeaseForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listLeaseForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Lease + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listLeaseForAllNamespacesWithHttpInfo(Strin * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listLeaseForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listLeaseForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listLeaseForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listLeaseForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedLease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedLeaseCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedLeaseCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedLeaseValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedLeaseValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedLeaseCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedLeaseCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedLeaseValidateBeforeCall(String na * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedLeaseValidateBeforeCall(String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1LeaseList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1LeaseList listNamespacedLease(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedLeaseWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1LeaseList listNamespacedLease(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedLeaseWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V1beta1LeaseList listNamespacedLease(String namespace, String pretty, Str * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V1beta1LeaseList listNamespacedLease(String namespace, String pretty, Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1LeaseList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedLeaseWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedLeaseWithHttpInfo(String name * list or watch objects of kind Lease * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedLeaseWithHttpInfo(String name * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedLeaseAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedLeaseAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedLeaseValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedLeaseValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedLease @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedLeaseCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedLeaseCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedLeaseValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedLeaseValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedLeaseValidateBeforeCall(String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1Lease patchNamespacedLease(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1Lease patchNamespacedLease(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1beta1Lease patchNamespacedLease(String name, String namespace, V1Patch * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedLeaseWithHttpInfo(String name, S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedLeaseAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedLeaseAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedLease @@ -1193,62 +1245,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedLeaseCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedLeaseCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedLeaseValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1260,14 +1310,10 @@ private com.squareup.okhttp.Call readNamespacedLeaseValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedLeaseCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedLeaseCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1280,10 +1326,16 @@ private com.squareup.okhttp.Call readNamespacedLeaseValidateBeforeCall(String na * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1Lease readNamespacedLease(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedLeaseWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedLeaseWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1296,11 +1348,17 @@ public V1beta1Lease readNamespacedLease(String name, String namespace, String pr * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedLeaseWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1311,35 +1369,22 @@ public ApiResponse readNamespacedLeaseWithHttpInfo(String name, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedLeaseAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedLeaseAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedLeaseValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedLease @@ -1349,62 +1394,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedLeaseCall(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedLeaseCall(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/coordination.k8s.io/v1beta1/namespaces/{namespace}/leases/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedLeaseValidateBeforeCall(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedLeaseValidateBeforeCall(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1421,14 +1465,10 @@ private com.squareup.okhttp.Call replaceNamespacedLeaseValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLease(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedLeaseCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1442,10 +1482,17 @@ private com.squareup.okhttp.Call replaceNamespacedLeaseValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1Lease * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1Lease replaceNamespacedLease(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedLeaseWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1459,11 +1506,18 @@ public V1beta1Lease replaceNamespacedLease(String name, String namespace, V1beta * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1Lease> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedLeaseWithHttpInfo(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1475,34 +1529,22 @@ public ApiResponse replaceNamespacedLeaseWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedLeaseAsync(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedLeaseAsync(String name, String namespace, V1beta1Lease body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedLeaseValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CoreApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CoreApi.java index ec251f1d63..7a52db2a1e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CoreApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CoreApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class CoreApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CoreApi() { this(Configuration.getDefaultApiClient()); } public CoreApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIVersions - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIVersionsCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIVersionsCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIVersionsValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIVersionsValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIVersionsCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIVersionsCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIVersionsValidateBeforeCall(final Progress * get available API versions * @return V1APIVersions * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIVersions getAPIVersions() throws ApiException { - ApiResponse resp = getAPIVersionsWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIVersionsWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIVersions getAPIVersions() throws ApiException { * get available API versions * @return ApiResponse<V1APIVersions> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIVersionsWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIVersionsValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIVersionsValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available API versions - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIVersionsAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIVersionsAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIVersionsValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIVersionsValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CoreV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CoreV1Api.java index c2e5b9d9da..4a7c10e1b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CoreV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CoreV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -44,7 +44,6 @@ import io.kubernetes.client.models.V1NamespaceList; import io.kubernetes.client.models.V1Node; import io.kubernetes.client.models.V1NodeList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1PersistentVolume; import io.kubernetes.client.models.V1PersistentVolumeClaim; import io.kubernetes.client.models.V1PersistentVolumeClaimList; @@ -74,22 +73,22 @@ import java.util.Map; public class CoreV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CoreV1Api() { this(Configuration.getDefaultApiClient()); } public CoreV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -97,58 +96,52 @@ public void setApiClient(ApiClient apiClient) { * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectDeleteNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectDeleteNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -160,14 +153,10 @@ private com.squareup.okhttp.Call connectDeleteNamespacedPodProxyValidateBeforeCa throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectDeleteNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -178,10 +167,16 @@ private com.squareup.okhttp.Call connectDeleteNamespacedPodProxyValidateBeforeCa * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectDeleteNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectDeleteNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -192,11 +187,17 @@ public String connectDeleteNamespacedPodProxy(String name, String namespace, Str * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectDeleteNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -205,35 +206,22 @@ public ApiResponse connectDeleteNamespacedPodProxyWithHttpInfo(String na * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectDeleteNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectDeleteNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectDeleteNamespacedPodProxyWithPath @@ -241,59 +229,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectDeleteNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -310,14 +292,10 @@ private com.squareup.okhttp.Call connectDeleteNamespacedPodProxyWithPathValidate throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -329,10 +307,16 @@ private com.squareup.okhttp.Call connectDeleteNamespacedPodProxyWithPathValidate * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectDeleteNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectDeleteNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -344,11 +328,17 @@ public String connectDeleteNamespacedPodProxyWithPath(String name, String namesp * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectDeleteNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -358,93 +348,74 @@ public ApiResponse connectDeleteNamespacedPodProxyWithPathWithHttpInfo(S * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectDeleteNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectDeleteNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectDeleteNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectDeleteNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -456,14 +427,10 @@ private com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyValidateBefo throw new ApiException("Missing the required parameter 'namespace' when calling connectDeleteNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectDeleteNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -474,10 +441,16 @@ private com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyValidateBefo * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectDeleteNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectDeleteNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -488,11 +461,17 @@ public String connectDeleteNamespacedServiceProxy(String name, String namespace, * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectDeleteNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -501,35 +480,22 @@ public ApiResponse connectDeleteNamespacedServiceProxyWithHttpInfo(Strin * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectDeleteNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectDeleteNamespacedServiceProxyWithPath @@ -537,59 +503,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectDeleteNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -606,14 +566,10 @@ private com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyWithPathVali throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -625,10 +581,16 @@ private com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyWithPathVali * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectDeleteNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -640,11 +602,17 @@ public String connectDeleteNamespacedServiceProxyWithPath(String name, String na * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectDeleteNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -654,105 +622,82 @@ public ApiResponse connectDeleteNamespacedServiceProxyWithPathWithHttpIn * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectDeleteNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectDeleteNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectDeleteNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectDeleteNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectDeleteNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectDeleteNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectDeleteNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectDeleteNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectDeleteNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectDeleteNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -762,10 +707,16 @@ private com.squareup.okhttp.Call connectDeleteNodeProxyValidateBeforeCall(String * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectDeleteNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectDeleteNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectDeleteNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -775,11 +726,17 @@ public String connectDeleteNodeProxy(String name, String path) throws ApiExcepti * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectDeleteNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -787,93 +744,74 @@ public ApiResponse connectDeleteNodeProxyWithHttpInfo(String name, Strin * connect DELETE requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectDeleteNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectDeleteNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectDeleteNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectDeleteNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectDeleteNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectDeleteNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -885,14 +823,10 @@ private com.squareup.okhttp.Call connectDeleteNodeProxyWithPathValidateBeforeCal throw new ApiException("Missing the required parameter 'path' when calling connectDeleteNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectDeleteNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -903,10 +837,16 @@ private com.squareup.okhttp.Call connectDeleteNodeProxyWithPathValidateBeforeCal * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectDeleteNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectDeleteNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -917,11 +857,17 @@ public String connectDeleteNodeProxyWithPath(String name, String path, String pa * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectDeleteNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -930,35 +876,22 @@ public ApiResponse connectDeleteNodeProxyWithPathWithHttpInfo(String nam * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectDeleteNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectDeleteNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectDeleteNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedPodAttach @@ -969,66 +902,68 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (container != null) - localVarQueryParams.addAll(apiClient.parameterToPair("container", container)); - if (stderr != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stderr", stderr)); - if (stdin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdin", stdin)); - if (stdout != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdout", stdout)); - if (tty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("tty", tty)); + if (container != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); + } - Map localVarHeaderParams = new HashMap(); + if (stderr != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); + } - Map localVarFormParams = new HashMap(); + if (stdin != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); + } + + if (stdout != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); + } + if (tty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1040,14 +975,10 @@ private com.squareup.okhttp.Call connectGetNamespacedPodAttachValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodAttach(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); + return localVarCall; + } /** @@ -1062,10 +993,16 @@ private com.squareup.okhttp.Call connectGetNamespacedPodAttachValidateBeforeCall * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedPodAttach(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - ApiResponse resp = connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); + return localVarResp.getData(); } /** @@ -1080,11 +1017,17 @@ public String connectGetNamespacedPodAttach(String name, String namespace, Strin * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null, null); + okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1097,35 +1040,22 @@ public ApiResponse connectGetNamespacedPodAttachWithHttpInfo(String name * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectGetNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedPodExec @@ -1137,68 +1067,72 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (command != null) - localVarQueryParams.addAll(apiClient.parameterToPair("command", command)); - if (container != null) - localVarQueryParams.addAll(apiClient.parameterToPair("container", container)); - if (stderr != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stderr", stderr)); - if (stdin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdin", stdin)); - if (stdout != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdout", stdout)); - if (tty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("tty", tty)); + if (command != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command)); + } - Map localVarHeaderParams = new HashMap(); + if (container != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); + } - Map localVarFormParams = new HashMap(); + if (stderr != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); + } + + if (stdin != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); + } + + if (stdout != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); + } + + if (tty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1210,14 +1144,10 @@ private com.squareup.okhttp.Call connectGetNamespacedPodExecValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodExec(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); + return localVarCall; + } /** @@ -1233,10 +1163,16 @@ private com.squareup.okhttp.Call connectGetNamespacedPodExecValidateBeforeCall(S * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedPodExec(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - ApiResponse resp = connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); + return localVarResp.getData(); } /** @@ -1252,11 +1188,17 @@ public String connectGetNamespacedPodExec(String name, String namespace, String * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null, null); + okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1270,93 +1212,74 @@ public ApiResponse connectGetNamespacedPodExecWithHttpInfo(String name, * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectGetNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedPodPortforward * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param ports List of ports to forward Required when using WebSockets (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (ports != null) - localVarQueryParams.addAll(apiClient.parameterToPair("ports", ports)); + if (ports != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1368,14 +1291,10 @@ private com.squareup.okhttp.Call connectGetNamespacedPodPortforwardValidateBefor throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodPortforward(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedPodPortforwardCall(name, namespace, ports, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardCall(name, namespace, ports, _callback); + return localVarCall; + } /** @@ -1386,10 +1305,16 @@ private com.squareup.okhttp.Call connectGetNamespacedPodPortforwardValidateBefor * @param ports List of ports to forward Required when using WebSockets (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedPodPortforward(String name, String namespace, Integer ports) throws ApiException { - ApiResponse resp = connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); + return localVarResp.getData(); } /** @@ -1400,11 +1325,17 @@ public String connectGetNamespacedPodPortforward(String name, String namespace, * @param ports List of ports to forward Required when using WebSockets (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null, null); + okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1413,93 +1344,74 @@ public ApiResponse connectGetNamespacedPodPortforwardWithHttpInfo(String * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param ports List of ports to forward Required when using WebSockets (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectGetNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedPodProxy * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1511,14 +1423,10 @@ private com.squareup.okhttp.Call connectGetNamespacedPodProxyValidateBeforeCall( throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -1529,10 +1437,16 @@ private com.squareup.okhttp.Call connectGetNamespacedPodProxyValidateBeforeCall( * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -1543,11 +1457,17 @@ public String connectGetNamespacedPodProxy(String name, String namespace, String * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1556,35 +1476,22 @@ public ApiResponse connectGetNamespacedPodProxyWithHttpInfo(String name, * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectGetNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedPodProxyWithPath @@ -1592,59 +1499,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1661,14 +1562,10 @@ private com.squareup.okhttp.Call connectGetNamespacedPodProxyWithPathValidateBef throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -1680,10 +1577,16 @@ private com.squareup.okhttp.Call connectGetNamespacedPodProxyWithPathValidateBef * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -1695,11 +1598,17 @@ public String connectGetNamespacedPodProxyWithPath(String name, String namespace * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1709,93 +1618,74 @@ public ApiResponse connectGetNamespacedPodProxyWithPathWithHttpInfo(Stri * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectGetNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1807,14 +1697,10 @@ private com.squareup.okhttp.Call connectGetNamespacedServiceProxyValidateBeforeC throw new ApiException("Missing the required parameter 'namespace' when calling connectGetNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -1825,10 +1711,16 @@ private com.squareup.okhttp.Call connectGetNamespacedServiceProxyValidateBeforeC * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -1839,11 +1731,17 @@ public String connectGetNamespacedServiceProxy(String name, String namespace, St * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1852,35 +1750,22 @@ public ApiResponse connectGetNamespacedServiceProxyWithHttpInfo(String n * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectGetNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNamespacedServiceProxyWithPath @@ -1888,59 +1773,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1957,14 +1836,10 @@ private com.squareup.okhttp.Call connectGetNamespacedServiceProxyWithPathValidat throw new ApiException("Missing the required parameter 'path' when calling connectGetNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -1976,10 +1851,16 @@ private com.squareup.okhttp.Call connectGetNamespacedServiceProxyWithPathValidat * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectGetNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -1991,11 +1872,17 @@ public String connectGetNamespacedServiceProxyWithPath(String name, String names * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2005,105 +1892,82 @@ public ApiResponse connectGetNamespacedServiceProxyWithPathWithHttpInfo( * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectGetNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectGetNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectGetNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -2113,10 +1977,16 @@ private com.squareup.okhttp.Call connectGetNodeProxyValidateBeforeCall(String na * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectGetNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectGetNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -2126,11 +1996,17 @@ public String connectGetNodeProxy(String name, String path) throws ApiException * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectGetNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2138,93 +2014,74 @@ public ApiResponse connectGetNodeProxyWithHttpInfo(String name, String p * connect GET requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectGetNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectGetNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectGetNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectGetNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectGetNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectGetNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2236,14 +2093,10 @@ private com.squareup.okhttp.Call connectGetNodeProxyWithPathValidateBeforeCall(S throw new ApiException("Missing the required parameter 'path' when calling connectGetNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectGetNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectGetNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -2254,10 +2107,16 @@ private com.squareup.okhttp.Call connectGetNodeProxyWithPathValidateBeforeCall(S * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectGetNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectGetNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectGetNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -2268,11 +2127,17 @@ public String connectGetNodeProxyWithPath(String name, String path, String path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectGetNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2281,93 +2146,74 @@ public ApiResponse connectGetNodeProxyWithPathWithHttpInfo(String name, * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectGetNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectGetNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectGetNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectHeadNamespacedPodProxy * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectHeadNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectHeadNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectHeadNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2379,14 +2225,10 @@ private com.squareup.okhttp.Call connectHeadNamespacedPodProxyValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling connectHeadNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectHeadNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectHeadNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -2397,10 +2239,16 @@ private com.squareup.okhttp.Call connectHeadNamespacedPodProxyValidateBeforeCall * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectHeadNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectHeadNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -2411,11 +2259,17 @@ public String connectHeadNamespacedPodProxy(String name, String namespace, Strin * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectHeadNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2424,35 +2278,22 @@ public ApiResponse connectHeadNamespacedPodProxyWithHttpInfo(String name * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectHeadNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectHeadNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectHeadNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectHeadNamespacedPodProxyWithPath @@ -2460,59 +2301,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectHeadNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectHeadNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectHeadNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2529,14 +2364,10 @@ private com.squareup.okhttp.Call connectHeadNamespacedPodProxyWithPathValidateBe throw new ApiException("Missing the required parameter 'path' when calling connectHeadNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -2548,10 +2379,16 @@ private com.squareup.okhttp.Call connectHeadNamespacedPodProxyWithPathValidateBe * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectHeadNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectHeadNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -2563,11 +2400,17 @@ public String connectHeadNamespacedPodProxyWithPath(String name, String namespac * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectHeadNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2577,93 +2420,74 @@ public ApiResponse connectHeadNamespacedPodProxyWithPathWithHttpInfo(Str * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectHeadNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectHeadNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectHeadNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectHeadNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectHeadNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectHeadNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectHeadNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2675,14 +2499,10 @@ private com.squareup.okhttp.Call connectHeadNamespacedServiceProxyValidateBefore throw new ApiException("Missing the required parameter 'namespace' when calling connectHeadNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectHeadNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -2693,10 +2513,16 @@ private com.squareup.okhttp.Call connectHeadNamespacedServiceProxyValidateBefore * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectHeadNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectHeadNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -2707,11 +2533,17 @@ public String connectHeadNamespacedServiceProxy(String name, String namespace, S * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectHeadNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2720,35 +2552,22 @@ public ApiResponse connectHeadNamespacedServiceProxyWithHttpInfo(String * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectHeadNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectHeadNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectHeadNamespacedServiceProxyWithPath @@ -2756,59 +2575,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectHeadNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectHeadNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2825,14 +2638,10 @@ private com.squareup.okhttp.Call connectHeadNamespacedServiceProxyWithPathValida throw new ApiException("Missing the required parameter 'path' when calling connectHeadNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectHeadNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -2844,10 +2653,16 @@ private com.squareup.okhttp.Call connectHeadNamespacedServiceProxyWithPathValida * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectHeadNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectHeadNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -2859,11 +2674,17 @@ public String connectHeadNamespacedServiceProxyWithPath(String name, String name * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectHeadNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2873,105 +2694,82 @@ public ApiResponse connectHeadNamespacedServiceProxyWithPathWithHttpInfo * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectHeadNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectHeadNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectHeadNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectHeadNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectHeadNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectHeadNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectHeadNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectHeadNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectHeadNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectHeadNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectHeadNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -2981,10 +2779,16 @@ private com.squareup.okhttp.Call connectHeadNodeProxyValidateBeforeCall(String n * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectHeadNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectHeadNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectHeadNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -2994,11 +2798,17 @@ public String connectHeadNodeProxy(String name, String path) throws ApiException * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectHeadNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectHeadNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3006,93 +2816,74 @@ public ApiResponse connectHeadNodeProxyWithHttpInfo(String name, String * connect HEAD requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectHeadNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectHeadNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectHeadNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectHeadNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectHeadNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectHeadNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectHeadNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "HEAD", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectHeadNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectHeadNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3104,14 +2895,10 @@ private com.squareup.okhttp.Call connectHeadNodeProxyWithPathValidateBeforeCall( throw new ApiException("Missing the required parameter 'path' when calling connectHeadNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectHeadNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectHeadNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -3122,10 +2909,16 @@ private com.squareup.okhttp.Call connectHeadNodeProxyWithPathValidateBeforeCall( * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectHeadNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectHeadNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -3136,11 +2929,17 @@ public String connectHeadNodeProxyWithPath(String name, String path, String path * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectHeadNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3149,93 +2948,74 @@ public ApiResponse connectHeadNodeProxyWithPathWithHttpInfo(String name, * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectHeadNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectHeadNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectHeadNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectOptionsNamespacedPodProxy * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectOptionsNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectOptionsNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectOptionsNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3247,14 +3027,10 @@ private com.squareup.okhttp.Call connectOptionsNamespacedPodProxyValidateBeforeC throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectOptionsNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -3265,10 +3041,16 @@ private com.squareup.okhttp.Call connectOptionsNamespacedPodProxyValidateBeforeC * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectOptionsNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectOptionsNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -3279,11 +3061,17 @@ public String connectOptionsNamespacedPodProxy(String name, String namespace, St * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectOptionsNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3292,35 +3080,22 @@ public ApiResponse connectOptionsNamespacedPodProxyWithHttpInfo(String n * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectOptionsNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectOptionsNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectOptionsNamespacedPodProxyWithPath @@ -3328,59 +3103,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectOptionsNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectOptionsNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3397,14 +3166,10 @@ private com.squareup.okhttp.Call connectOptionsNamespacedPodProxyWithPathValidat throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectOptionsNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -3416,10 +3181,16 @@ private com.squareup.okhttp.Call connectOptionsNamespacedPodProxyWithPathValidat * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectOptionsNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectOptionsNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -3431,11 +3202,17 @@ public String connectOptionsNamespacedPodProxyWithPath(String name, String names * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectOptionsNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3445,93 +3222,74 @@ public ApiResponse connectOptionsNamespacedPodProxyWithPathWithHttpInfo( * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectOptionsNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectOptionsNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectOptionsNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectOptionsNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectOptionsNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3543,14 +3301,10 @@ private com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyValidateBef throw new ApiException("Missing the required parameter 'namespace' when calling connectOptionsNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectOptionsNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -3561,10 +3315,16 @@ private com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyValidateBef * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectOptionsNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectOptionsNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -3575,11 +3335,17 @@ public String connectOptionsNamespacedServiceProxy(String name, String namespace * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectOptionsNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3588,35 +3354,22 @@ public ApiResponse connectOptionsNamespacedServiceProxyWithHttpInfo(Stri * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectOptionsNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectOptionsNamespacedServiceProxyWithPath @@ -3624,59 +3377,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectOptionsNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3693,14 +3440,10 @@ private com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyWithPathVal throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectOptionsNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -3712,10 +3455,16 @@ private com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyWithPathVal * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectOptionsNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -3727,11 +3476,17 @@ public String connectOptionsNamespacedServiceProxyWithPath(String name, String n * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectOptionsNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3741,105 +3496,82 @@ public ApiResponse connectOptionsNamespacedServiceProxyWithPathWithHttpI * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectOptionsNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectOptionsNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectOptionsNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectOptionsNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectOptionsNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectOptionsNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectOptionsNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectOptionsNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectOptionsNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectOptionsNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -3849,10 +3581,16 @@ private com.squareup.okhttp.Call connectOptionsNodeProxyValidateBeforeCall(Strin * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectOptionsNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectOptionsNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectOptionsNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -3862,11 +3600,17 @@ public String connectOptionsNodeProxy(String name, String path) throws ApiExcept * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectOptionsNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectOptionsNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3874,93 +3618,74 @@ public ApiResponse connectOptionsNodeProxyWithHttpInfo(String name, Stri * connect OPTIONS requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectOptionsNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectOptionsNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectOptionsNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectOptionsNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectOptionsNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectOptionsNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectOptionsNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "OPTIONS", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectOptionsNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectOptionsNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3972,14 +3697,10 @@ private com.squareup.okhttp.Call connectOptionsNodeProxyWithPathValidateBeforeCa throw new ApiException("Missing the required parameter 'path' when calling connectOptionsNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectOptionsNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -3990,10 +3711,16 @@ private com.squareup.okhttp.Call connectOptionsNodeProxyWithPathValidateBeforeCa * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectOptionsNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectOptionsNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -4004,11 +3731,17 @@ public String connectOptionsNodeProxyWithPath(String name, String path, String p * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectOptionsNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4017,93 +3750,74 @@ public ApiResponse connectOptionsNodeProxyWithPathWithHttpInfo(String na * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectOptionsNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectOptionsNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectOptionsNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPatchNamespacedPodProxy * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPatchNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPatchNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPatchNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4115,14 +3829,10 @@ private com.squareup.okhttp.Call connectPatchNamespacedPodProxyValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPatchNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPatchNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -4133,10 +3843,16 @@ private com.squareup.okhttp.Call connectPatchNamespacedPodProxyValidateBeforeCal * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPatchNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectPatchNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -4147,11 +3863,17 @@ public String connectPatchNamespacedPodProxy(String name, String namespace, Stri * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPatchNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4160,35 +3882,22 @@ public ApiResponse connectPatchNamespacedPodProxyWithHttpInfo(String nam * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPatchNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectPatchNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPatchNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPatchNamespacedPodProxyWithPath @@ -4196,59 +3905,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPatchNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPatchNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4265,14 +3968,10 @@ private com.squareup.okhttp.Call connectPatchNamespacedPodProxyWithPathValidateB throw new ApiException("Missing the required parameter 'path' when calling connectPatchNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPatchNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -4284,10 +3983,16 @@ private com.squareup.okhttp.Call connectPatchNamespacedPodProxyWithPathValidateB * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPatchNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPatchNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -4299,11 +4004,17 @@ public String connectPatchNamespacedPodProxyWithPath(String name, String namespa * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPatchNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4313,93 +4024,74 @@ public ApiResponse connectPatchNamespacedPodProxyWithPathWithHttpInfo(St * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPatchNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectPatchNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPatchNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPatchNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPatchNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPatchNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPatchNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4411,14 +4103,10 @@ private com.squareup.okhttp.Call connectPatchNamespacedServiceProxyValidateBefor throw new ApiException("Missing the required parameter 'namespace' when calling connectPatchNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPatchNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -4429,10 +4117,16 @@ private com.squareup.okhttp.Call connectPatchNamespacedServiceProxyValidateBefor * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPatchNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectPatchNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -4443,11 +4137,17 @@ public String connectPatchNamespacedServiceProxy(String name, String namespace, * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPatchNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4456,35 +4156,22 @@ public ApiResponse connectPatchNamespacedServiceProxyWithHttpInfo(String * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPatchNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPatchNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPatchNamespacedServiceProxyWithPath @@ -4492,59 +4179,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPatchNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4561,14 +4242,10 @@ private com.squareup.okhttp.Call connectPatchNamespacedServiceProxyWithPathValid throw new ApiException("Missing the required parameter 'path' when calling connectPatchNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPatchNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -4580,10 +4257,16 @@ private com.squareup.okhttp.Call connectPatchNamespacedServiceProxyWithPathValid * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPatchNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPatchNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -4595,11 +4278,17 @@ public String connectPatchNamespacedServiceProxyWithPath(String name, String nam * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPatchNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4609,105 +4298,82 @@ public ApiResponse connectPatchNamespacedServiceProxyWithPathWithHttpInf * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPatchNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPatchNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPatchNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPatchNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPatchNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPatchNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPatchNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPatchNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPatchNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPatchNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPatchNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -4717,10 +4383,16 @@ private com.squareup.okhttp.Call connectPatchNodeProxyValidateBeforeCall(String * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPatchNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectPatchNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectPatchNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -4730,11 +4402,17 @@ public String connectPatchNodeProxy(String name, String path) throws ApiExceptio * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPatchNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectPatchNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4742,93 +4420,74 @@ public ApiResponse connectPatchNodeProxyWithHttpInfo(String name, String * connect PATCH requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPatchNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectPatchNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPatchNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPatchNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPatchNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPatchNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPatchNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPatchNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4840,14 +4499,10 @@ private com.squareup.okhttp.Call connectPatchNodeProxyWithPathValidateBeforeCall throw new ApiException("Missing the required parameter 'path' when calling connectPatchNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPatchNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPatchNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -4858,10 +4513,16 @@ private com.squareup.okhttp.Call connectPatchNodeProxyWithPathValidateBeforeCall * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPatchNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPatchNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -4872,11 +4533,17 @@ public String connectPatchNodeProxyWithPath(String name, String path, String pat * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPatchNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4885,35 +4552,22 @@ public ApiResponse connectPatchNodeProxyWithPathWithHttpInfo(String name * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPatchNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectPatchNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPatchNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedPodAttach @@ -4924,66 +4578,68 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedPodAttachCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/attach" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (container != null) - localVarQueryParams.addAll(apiClient.parameterToPair("container", container)); - if (stderr != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stderr", stderr)); - if (stdin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdin", stdin)); - if (stdout != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdout", stdout)); - if (tty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("tty", tty)); + if (container != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); + } - Map localVarHeaderParams = new HashMap(); + if (stderr != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); + } - Map localVarFormParams = new HashMap(); + if (stdin != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); + } + + if (stdout != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); + } + + if (tty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedPodAttachValidateBeforeCall(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4995,14 +4651,10 @@ private com.squareup.okhttp.Call connectPostNamespacedPodAttachValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodAttach(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedPodAttachCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); + return localVarCall; + } /** @@ -5017,10 +4669,16 @@ private com.squareup.okhttp.Call connectPostNamespacedPodAttachValidateBeforeCal * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedPodAttach(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - ApiResponse resp = connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedPodAttachWithHttpInfo(name, namespace, container, stderr, stdin, stdout, tty); + return localVarResp.getData(); } /** @@ -5035,11 +4693,17 @@ public String connectPostNamespacedPodAttach(String name, String namespace, Stri * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedPodAttachWithHttpInfo(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null, null); + okhttp3.Call localVarCall = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5052,35 +4716,22 @@ public ApiResponse connectPostNamespacedPodAttachWithHttpInfo(String nam * @param stdin Stdin if true, redirects the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Stdout if true indicates that stdout is to be redirected for the attach call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the attach call. This is passed through the container runtime so the tty is allocated on the worker node by the container runtime. Defaults to false. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectPostNamespacedPodAttachAsync(String name, String namespace, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedPodAttachValidateBeforeCall(name, namespace, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedPodExec @@ -5092,68 +4743,72 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedPodExecCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/exec" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (command != null) - localVarQueryParams.addAll(apiClient.parameterToPair("command", command)); - if (container != null) - localVarQueryParams.addAll(apiClient.parameterToPair("container", container)); - if (stderr != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stderr", stderr)); - if (stdin != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdin", stdin)); - if (stdout != null) - localVarQueryParams.addAll(apiClient.parameterToPair("stdout", stdout)); - if (tty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("tty", tty)); + if (command != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("command", command)); + } - Map localVarHeaderParams = new HashMap(); + if (container != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); + } - Map localVarFormParams = new HashMap(); + if (stderr != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stderr", stderr)); + } + + if (stdin != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdin", stdin)); + } + + if (stdout != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("stdout", stdout)); + } + if (tty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tty", tty)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedPodExecValidateBeforeCall(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5165,14 +4820,10 @@ private com.squareup.okhttp.Call connectPostNamespacedPodExecValidateBeforeCall( throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodExec(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedPodExecCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); + return localVarCall; + } /** @@ -5188,10 +4839,16 @@ private com.squareup.okhttp.Call connectPostNamespacedPodExecValidateBeforeCall( * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedPodExec(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - ApiResponse resp = connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedPodExecWithHttpInfo(name, namespace, command, container, stderr, stdin, stdout, tty); + return localVarResp.getData(); } /** @@ -5207,11 +4864,17 @@ public String connectPostNamespacedPodExec(String name, String namespace, String * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedPodExecWithHttpInfo(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null, null); + okhttp3.Call localVarCall = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5225,93 +4888,74 @@ public ApiResponse connectPostNamespacedPodExecWithHttpInfo(String name, * @param stdin Redirect the standard input stream of the pod for this call. Defaults to false. (optional) * @param stdout Redirect the standard output stream of the pod for this call. Defaults to true. (optional) * @param tty TTY if true indicates that a tty will be allocated for the exec call. Defaults to false. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectPostNamespacedPodExecAsync(String name, String namespace, String command, String container, Boolean stderr, Boolean stdin, Boolean stdout, Boolean tty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedPodExecValidateBeforeCall(name, namespace, command, container, stderr, stdin, stdout, tty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedPodPortforward * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param ports List of ports to forward Required when using WebSockets (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portforward" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (ports != null) - localVarQueryParams.addAll(apiClient.parameterToPair("ports", ports)); + if (ports != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("ports", ports)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedPodPortforwardValidateBeforeCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5323,14 +4967,10 @@ private com.squareup.okhttp.Call connectPostNamespacedPodPortforwardValidateBefo throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodPortforward(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedPodPortforwardCall(name, namespace, ports, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardCall(name, namespace, ports, _callback); + return localVarCall; + } /** @@ -5341,10 +4981,16 @@ private com.squareup.okhttp.Call connectPostNamespacedPodPortforwardValidateBefo * @param ports List of ports to forward Required when using WebSockets (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedPodPortforward(String name, String namespace, Integer ports) throws ApiException { - ApiResponse resp = connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedPodPortforwardWithHttpInfo(name, namespace, ports); + return localVarResp.getData(); } /** @@ -5355,11 +5001,17 @@ public String connectPostNamespacedPodPortforward(String name, String namespace, * @param ports List of ports to forward Required when using WebSockets (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedPodPortforwardWithHttpInfo(String name, String namespace, Integer ports) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null, null); + okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5368,93 +5020,74 @@ public ApiResponse connectPostNamespacedPodPortforwardWithHttpInfo(Strin * @param name name of the PodPortForwardOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param ports List of ports to forward Required when using WebSockets (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPostNamespacedPodPortforwardAsync(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedPodPortforwardValidateBeforeCall(name, namespace, ports, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedPodProxy * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5466,14 +5099,10 @@ private com.squareup.okhttp.Call connectPostNamespacedPodProxyValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -5484,10 +5113,16 @@ private com.squareup.okhttp.Call connectPostNamespacedPodProxyValidateBeforeCall * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -5498,11 +5133,17 @@ public String connectPostNamespacedPodProxy(String name, String namespace, Strin * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5511,35 +5152,22 @@ public ApiResponse connectPostNamespacedPodProxyWithHttpInfo(String name * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPostNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedPodProxyWithPath @@ -5547,59 +5175,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5616,14 +5238,10 @@ private com.squareup.okhttp.Call connectPostNamespacedPodProxyWithPathValidateBe throw new ApiException("Missing the required parameter 'path' when calling connectPostNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -5635,10 +5253,16 @@ private com.squareup.okhttp.Call connectPostNamespacedPodProxyWithPathValidateBe * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -5650,11 +5274,17 @@ public String connectPostNamespacedPodProxyWithPath(String name, String namespac * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5664,93 +5294,74 @@ public ApiResponse connectPostNamespacedPodProxyWithPathWithHttpInfo(Str * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectPostNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5762,14 +5373,10 @@ private com.squareup.okhttp.Call connectPostNamespacedServiceProxyValidateBefore throw new ApiException("Missing the required parameter 'namespace' when calling connectPostNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -5780,10 +5387,16 @@ private com.squareup.okhttp.Call connectPostNamespacedServiceProxyValidateBefore * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -5794,11 +5407,17 @@ public String connectPostNamespacedServiceProxy(String name, String namespace, S * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5807,35 +5426,22 @@ public ApiResponse connectPostNamespacedServiceProxyWithHttpInfo(String * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectPostNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNamespacedServiceProxyWithPath @@ -5843,59 +5449,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5912,14 +5512,10 @@ private com.squareup.okhttp.Call connectPostNamespacedServiceProxyWithPathValida throw new ApiException("Missing the required parameter 'path' when calling connectPostNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPostNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -5931,10 +5527,16 @@ private com.squareup.okhttp.Call connectPostNamespacedServiceProxyWithPathValida * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPostNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -5946,11 +5548,17 @@ public String connectPostNamespacedServiceProxyWithPath(String name, String name * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5960,105 +5568,82 @@ public ApiResponse connectPostNamespacedServiceProxyWithPathWithHttpInfo * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectPostNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPostNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPostNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -6068,10 +5653,16 @@ private com.squareup.okhttp.Call connectPostNodeProxyValidateBeforeCall(String n * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectPostNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectPostNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -6081,11 +5672,17 @@ public String connectPostNodeProxy(String name, String path) throws ApiException * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPostNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectPostNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6093,93 +5690,74 @@ public ApiResponse connectPostNodeProxyWithHttpInfo(String name, String * connect POST requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPostNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPostNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPostNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPostNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPostNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPostNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPostNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6191,14 +5769,10 @@ private com.squareup.okhttp.Call connectPostNodeProxyWithPathValidateBeforeCall( throw new ApiException("Missing the required parameter 'path' when calling connectPostNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPostNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPostNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -6209,10 +5783,16 @@ private com.squareup.okhttp.Call connectPostNodeProxyWithPathValidateBeforeCall( * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPostNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectPostNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPostNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -6223,11 +5803,17 @@ public String connectPostNodeProxyWithPath(String name, String path, String path * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPostNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6236,93 +5822,74 @@ public ApiResponse connectPostNodeProxyWithPathWithHttpInfo(String name, * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPostNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectPostNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPostNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPutNamespacedPodProxy * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPutNamespacedPodProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPutNamespacedPodProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPutNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6334,14 +5901,10 @@ private com.squareup.okhttp.Call connectPutNamespacedPodProxyValidateBeforeCall( throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedPodProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPutNamespacedPodProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPutNamespacedPodProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -6352,10 +5915,16 @@ private com.squareup.okhttp.Call connectPutNamespacedPodProxyValidateBeforeCall( * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPutNamespacedPodProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectPutNamespacedPodProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -6366,11 +5935,17 @@ public String connectPutNamespacedPodProxy(String name, String namespace, String * @param path Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPutNamespacedPodProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6379,35 +5954,22 @@ public ApiResponse connectPutNamespacedPodProxyWithHttpInfo(String name, * @param name name of the PodProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPutNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectPutNamespacedPodProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPutNamespacedPodProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPutNamespacedPodProxyWithPath @@ -6415,59 +5977,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPutNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPutNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPutNamespacedPodProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6484,14 +6040,10 @@ private com.squareup.okhttp.Call connectPutNamespacedPodProxyWithPathValidateBef throw new ApiException("Missing the required parameter 'path' when calling connectPutNamespacedPodProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPutNamespacedPodProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -6503,10 +6055,16 @@ private com.squareup.okhttp.Call connectPutNamespacedPodProxyWithPathValidateBef * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPutNamespacedPodProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPutNamespacedPodProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -6518,11 +6076,17 @@ public String connectPutNamespacedPodProxyWithPath(String name, String namespace * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPutNamespacedPodProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6532,93 +6096,74 @@ public ApiResponse connectPutNamespacedPodProxyWithPathWithHttpInfo(Stri * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to pod. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPutNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPutNamespacedPodProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPutNamespacedPodProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPutNamespacedServiceProxy * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPutNamespacedServiceProxyCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPutNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPutNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyValidateBeforeCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6630,14 +6175,10 @@ private com.squareup.okhttp.Call connectPutNamespacedServiceProxyValidateBeforeC throw new ApiException("Missing the required parameter 'namespace' when calling connectPutNamespacedServiceProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPutNamespacedServiceProxyCall(name, namespace, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPutNamespacedServiceProxyCall(name, namespace, path, _callback); + return localVarCall; + } /** @@ -6648,10 +6189,16 @@ private com.squareup.okhttp.Call connectPutNamespacedServiceProxyValidateBeforeC * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPutNamespacedServiceProxy(String name, String namespace, String path) throws ApiException { - ApiResponse resp = connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path); - return resp.getData(); + ApiResponse localVarResp = connectPutNamespacedServiceProxyWithHttpInfo(name, namespace, path); + return localVarResp.getData(); } /** @@ -6662,11 +6209,17 @@ public String connectPutNamespacedServiceProxy(String name, String namespace, St * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPutNamespacedServiceProxyWithHttpInfo(String name, String namespace, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null, null); + okhttp3.Call localVarCall = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6675,35 +6228,22 @@ public ApiResponse connectPutNamespacedServiceProxyWithHttpInfo(String n * @param name name of the ServiceProxyOptions (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param path Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPutNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call connectPutNamespacedServiceProxyAsync(String name, String namespace, String path, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPutNamespacedServiceProxyValidateBeforeCall(name, namespace, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPutNamespacedServiceProxyWithPath @@ -6711,59 +6251,53 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPutNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPutNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPutNamespacedServiceProxyWithPathValidateBeforeCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6780,14 +6314,10 @@ private com.squareup.okhttp.Call connectPutNamespacedServiceProxyWithPathValidat throw new ApiException("Missing the required parameter 'path' when calling connectPutNamespacedServiceProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPutNamespacedServiceProxyWithPathCall(name, namespace, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathCall(name, namespace, path, path2, _callback); + return localVarCall; + } /** @@ -6799,10 +6329,16 @@ private com.squareup.okhttp.Call connectPutNamespacedServiceProxyWithPathValidat * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPutNamespacedServiceProxyWithPath(String name, String namespace, String path, String path2) throws ApiException { - ApiResponse resp = connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPutNamespacedServiceProxyWithPathWithHttpInfo(name, namespace, path, path2); + return localVarResp.getData(); } /** @@ -6814,11 +6350,17 @@ public String connectPutNamespacedServiceProxyWithPath(String name, String names * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPutNamespacedServiceProxyWithPathWithHttpInfo(String name, String namespace, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null, null); + okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6828,105 +6370,82 @@ public ApiResponse connectPutNamespacedServiceProxyWithPathWithHttpInfo( * @param namespace object name and auth scope, such as for teams and projects (required) * @param path path to the resource (required) * @param path2 Path is the part of URLs that include service endpoints, suffixes, and parameters to use for the current proxy request to service. For example, the whole request URL is http://localhost/api/v1/namespaces/kube-system/services/elasticsearch-logging/_search?q=user:kimchy. Path is _search?q=user:kimchy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPutNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call connectPutNamespacedServiceProxyWithPathAsync(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPutNamespacedServiceProxyWithPathValidateBeforeCall(name, namespace, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPutNodeProxy * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPutNodeProxyCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPutNodeProxyCall(String name, String path, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path)); + if (path != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPutNodeProxyValidateBeforeCall(String name, String path, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPutNodeProxyValidateBeforeCall(String name, String path, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling connectPutNodeProxy(Async)"); } - - com.squareup.okhttp.Call call = connectPutNodeProxyCall(name, path, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPutNodeProxyCall(name, path, _callback); + return localVarCall; + } /** @@ -6936,10 +6455,16 @@ private com.squareup.okhttp.Call connectPutNodeProxyValidateBeforeCall(String na * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPutNodeProxy(String name, String path) throws ApiException { - ApiResponse resp = connectPutNodeProxyWithHttpInfo(name, path); - return resp.getData(); + ApiResponse localVarResp = connectPutNodeProxyWithHttpInfo(name, path); + return localVarResp.getData(); } /** @@ -6949,11 +6474,17 @@ public String connectPutNodeProxy(String name, String path) throws ApiException * @param path Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPutNodeProxyWithHttpInfo(String name, String path) throws ApiException { - com.squareup.okhttp.Call call = connectPutNodeProxyValidateBeforeCall(name, path, null, null); + okhttp3.Call localVarCall = connectPutNodeProxyValidateBeforeCall(name, path, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6961,93 +6492,74 @@ public ApiResponse connectPutNodeProxyWithHttpInfo(String name, String p * connect PUT requests to proxy of Node * @param name name of the NodeProxyOptions (required) * @param path Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPutNodeProxyAsync(String name, String path, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call connectPutNodeProxyAsync(String name, String path, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPutNodeProxyValidateBeforeCall(name, path, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPutNodeProxyValidateBeforeCall(name, path, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for connectPutNodeProxyWithPath * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call connectPutNodeProxyWithPathCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call connectPutNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/proxy/{path}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "path" + "\\}", apiClient.escapeString(path.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "path" + "\\}", localVarApiClient.escapeString(path.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (path2 != null) - localVarQueryParams.addAll(apiClient.parameterToPair("path", path2)); + if (path2 != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("path", path2)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "*/*" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call connectPutNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call connectPutNodeProxyWithPathValidateBeforeCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7059,14 +6571,10 @@ private com.squareup.okhttp.Call connectPutNodeProxyWithPathValidateBeforeCall(S throw new ApiException("Missing the required parameter 'path' when calling connectPutNodeProxyWithPath(Async)"); } - - com.squareup.okhttp.Call call = connectPutNodeProxyWithPathCall(name, path, path2, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = connectPutNodeProxyWithPathCall(name, path, path2, _callback); + return localVarCall; + } /** @@ -7077,10 +6585,16 @@ private com.squareup.okhttp.Call connectPutNodeProxyWithPathValidateBeforeCall(S * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String connectPutNodeProxyWithPath(String name, String path, String path2) throws ApiException { - ApiResponse resp = connectPutNodeProxyWithPathWithHttpInfo(name, path, path2); - return resp.getData(); + ApiResponse localVarResp = connectPutNodeProxyWithPathWithHttpInfo(name, path, path2); + return localVarResp.getData(); } /** @@ -7091,11 +6605,17 @@ public String connectPutNodeProxyWithPath(String name, String path, String path2 * @param path2 Path is the URL path to use for the current proxy request to node. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse connectPutNodeProxyWithPathWithHttpInfo(String name, String path, String path2) throws ApiException { - com.squareup.okhttp.Call call = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, null, null); + okhttp3.Call localVarCall = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7104,35 +6624,22 @@ public ApiResponse connectPutNodeProxyWithPathWithHttpInfo(String name, * @param name name of the NodeProxyOptions (required) * @param path path to the resource (required) * @param path2 Path is the URL path to use for the current proxy request to node. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call connectPutNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback callback) throws ApiException { + public okhttp3.Call connectPutNodeProxyWithPathAsync(String name, String path, String path2, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, progressListener, progressRequestListener); + okhttp3.Call localVarCall = connectPutNodeProxyWithPathValidateBeforeCall(name, path, path2, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespace @@ -7140,74 +6647,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespaceCall(V1Namespace body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespaceCall(V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespaceValidateBeforeCall(V1Namespace body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespaceValidateBeforeCall(V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNamespace(Async)"); } - - com.squareup.okhttp.Call call = createNamespaceCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespaceCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -7219,10 +6722,18 @@ private com.squareup.okhttp.Call createNamespaceValidateBeforeCall(V1Namespace b * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Namespace createNamespace(V1Namespace body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespaceWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -7234,11 +6745,19 @@ public V1Namespace createNamespace(V1Namespace body, String pretty, String dryRu * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespaceWithHttpInfo(V1Namespace body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7248,35 +6767,24 @@ public ApiResponse createNamespaceWithHttpInfo(V1Namespace body, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespaceAsync(V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespaceAsync(V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespaceValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedBinding @@ -7285,61 +6793,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedBindingCall(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedBindingCall(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/bindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedBindingValidateBeforeCall(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedBindingValidateBeforeCall(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -7351,14 +6859,10 @@ private com.squareup.okhttp.Call createNamespacedBindingValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedBinding(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedBindingCall(namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedBindingCall(namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -7371,10 +6875,18 @@ private com.squareup.okhttp.Call createNamespacedBindingValidateBeforeCall(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Binding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Binding createNamespacedBinding(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedBindingWithHttpInfo(namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -7387,11 +6899,19 @@ public V1Binding createNamespacedBinding(String namespace, V1Binding body, Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Binding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedBindingWithHttpInfo(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7402,35 +6922,24 @@ public ApiResponse createNamespacedBindingWithHttpInfo(String namespa * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedBindingAsync(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedBindingAsync(String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedBindingValidateBeforeCall(namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedConfigMap @@ -7439,61 +6948,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedConfigMapCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedConfigMapValidateBeforeCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedConfigMapValidateBeforeCall(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -7505,14 +7014,10 @@ private com.squareup.okhttp.Call createNamespacedConfigMapValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedConfigMapCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedConfigMapCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -7525,10 +7030,18 @@ private com.squareup.okhttp.Call createNamespacedConfigMapValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ConfigMap createNamespacedConfigMap(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedConfigMapWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -7541,11 +7054,19 @@ public V1ConfigMap createNamespacedConfigMap(String namespace, V1ConfigMap body, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedConfigMapWithHttpInfo(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7556,35 +7077,24 @@ public ApiResponse createNamespacedConfigMapWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedConfigMapAsync(String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedConfigMapValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedEndpoints @@ -7593,61 +7103,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedEndpointsCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedEndpointsCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedEndpointsValidateBeforeCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedEndpointsValidateBeforeCall(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -7659,14 +7169,10 @@ private com.squareup.okhttp.Call createNamespacedEndpointsValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedEndpointsCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedEndpointsCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -7679,10 +7185,18 @@ private com.squareup.okhttp.Call createNamespacedEndpointsValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Endpoints createNamespacedEndpoints(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedEndpointsWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -7695,11 +7209,19 @@ public V1Endpoints createNamespacedEndpoints(String namespace, V1Endpoints body, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedEndpointsWithHttpInfo(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7710,35 +7232,24 @@ public ApiResponse createNamespacedEndpointsWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedEndpointsAsync(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedEndpointsAsync(String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedEndpointsValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedEvent @@ -7747,61 +7258,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedEventCall(String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedEventCall(String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedEventValidateBeforeCall(String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -7813,14 +7324,10 @@ private com.squareup.okhttp.Call createNamespacedEventValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -7833,10 +7340,18 @@ private com.squareup.okhttp.Call createNamespacedEventValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Event createNamespacedEvent(String namespace, V1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -7849,11 +7364,19 @@ public V1Event createNamespacedEvent(String namespace, V1Event body, String pret * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedEventWithHttpInfo(String namespace, V1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7864,35 +7387,24 @@ public ApiResponse createNamespacedEventWithHttpInfo(String namespace, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedEventAsync(String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedEventAsync(String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedLimitRange @@ -7901,61 +7413,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedLimitRangeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedLimitRangeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedLimitRangeValidateBeforeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedLimitRangeValidateBeforeCall(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -7967,14 +7479,10 @@ private com.squareup.okhttp.Call createNamespacedLimitRangeValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedLimitRange(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedLimitRangeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedLimitRangeCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -7987,10 +7495,18 @@ private com.squareup.okhttp.Call createNamespacedLimitRangeValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1LimitRange createNamespacedLimitRange(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedLimitRangeWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8003,11 +7519,19 @@ public V1LimitRange createNamespacedLimitRange(String namespace, V1LimitRange bo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedLimitRangeWithHttpInfo(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8018,35 +7542,24 @@ public ApiResponse createNamespacedLimitRangeWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedLimitRangeAsync(String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedLimitRangeValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedPersistentVolumeClaim @@ -8055,61 +7568,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedPersistentVolumeClaimCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPersistentVolumeClaimCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -8121,14 +7634,10 @@ private com.squareup.okhttp.Call createNamespacedPersistentVolumeClaimValidateBe throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPersistentVolumeClaimCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8141,10 +7650,18 @@ private com.squareup.okhttp.Call createNamespacedPersistentVolumeClaimValidateBe * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PersistentVolumeClaim createNamespacedPersistentVolumeClaim(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPersistentVolumeClaimWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8157,11 +7674,19 @@ public V1PersistentVolumeClaim createNamespacedPersistentVolumeClaim(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8172,35 +7697,24 @@ public ApiResponse createNamespacedPersistentVolumeClai * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedPersistentVolumeClaimAsync(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPersistentVolumeClaimAsync(String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedPod @@ -8209,61 +7723,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPodValidateBeforeCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPodValidateBeforeCall(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -8275,14 +7789,10 @@ private com.squareup.okhttp.Call createNamespacedPodValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPodCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPodCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8295,10 +7805,18 @@ private com.squareup.okhttp.Call createNamespacedPodValidateBeforeCall(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Pod createNamespacedPod(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPodWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8311,11 +7829,19 @@ public V1Pod createNamespacedPod(String namespace, V1Pod body, String pretty, St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPodWithHttpInfo(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8326,35 +7852,24 @@ public ApiResponse createNamespacedPodWithHttpInfo(String namespace, V1Po * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodAsync(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodAsync(String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPodValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedPodBinding @@ -8364,62 +7879,62 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodBindingCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodBindingCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/binding" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPodBindingValidateBeforeCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPodBindingValidateBeforeCall(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8436,14 +7951,10 @@ private com.squareup.okhttp.Call createNamespacedPodBindingValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodBinding(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPodBindingCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPodBindingCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -8457,10 +7968,18 @@ private com.squareup.okhttp.Call createNamespacedPodBindingValidateBeforeCall(St * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Binding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Binding createNamespacedPodBinding(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPodBindingWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -8474,11 +7993,19 @@ public V1Binding createNamespacedPodBinding(String name, String namespace, V1Bin * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Binding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPodBindingWithHttpInfo(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8490,35 +8017,24 @@ public ApiResponse createNamespacedPodBindingWithHttpInfo(String name * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodBindingAsync(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodBindingAsync(String name, String namespace, V1Binding body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPodBindingValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedPodEviction @@ -8528,62 +8044,62 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodEvictionCall(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodEvictionCall(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/eviction" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPodEvictionValidateBeforeCall(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPodEvictionValidateBeforeCall(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8600,14 +8116,10 @@ private com.squareup.okhttp.Call createNamespacedPodEvictionValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodEviction(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPodEvictionCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPodEvictionCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -8621,10 +8133,18 @@ private com.squareup.okhttp.Call createNamespacedPodEvictionValidateBeforeCall(S * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1Eviction * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1Eviction createNamespacedPodEviction(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPodEvictionWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -8638,11 +8158,19 @@ public V1beta1Eviction createNamespacedPodEviction(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1Eviction> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPodEvictionWithHttpInfo(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8654,35 +8182,24 @@ public ApiResponse createNamespacedPodEvictionWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodEvictionAsync(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodEvictionAsync(String name, String namespace, V1beta1Eviction body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPodEvictionValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedPodTemplate @@ -8691,61 +8208,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodTemplateCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodTemplateCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPodTemplateValidateBeforeCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPodTemplateValidateBeforeCall(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -8757,14 +8274,10 @@ private com.squareup.okhttp.Call createNamespacedPodTemplateValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPodTemplateCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPodTemplateCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8777,10 +8290,18 @@ private com.squareup.okhttp.Call createNamespacedPodTemplateValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PodTemplate createNamespacedPodTemplate(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPodTemplateWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8793,11 +8314,19 @@ public V1PodTemplate createNamespacedPodTemplate(String namespace, V1PodTemplate * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPodTemplateWithHttpInfo(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8808,35 +8337,24 @@ public ApiResponse createNamespacedPodTemplateWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodTemplateAsync(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodTemplateAsync(String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPodTemplateValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedReplicationController @@ -8845,61 +8363,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicationControllerCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicationControllerCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedReplicationControllerValidateBeforeCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedReplicationControllerValidateBeforeCall(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -8911,14 +8429,10 @@ private com.squareup.okhttp.Call createNamespacedReplicationControllerValidateBe throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedReplicationControllerCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedReplicationControllerCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -8931,10 +8445,18 @@ private com.squareup.okhttp.Call createNamespacedReplicationControllerValidateBe * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ReplicationController createNamespacedReplicationController(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedReplicationControllerWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -8947,11 +8469,19 @@ public V1ReplicationController createNamespacedReplicationController(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedReplicationControllerWithHttpInfo(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8962,35 +8492,24 @@ public ApiResponse createNamespacedReplicationControlle * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicationControllerAsync(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicationControllerAsync(String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedReplicationControllerValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedResourceQuota @@ -8999,61 +8518,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedResourceQuotaCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceQuotaCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedResourceQuotaValidateBeforeCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedResourceQuotaValidateBeforeCall(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -9065,14 +8584,10 @@ private com.squareup.okhttp.Call createNamespacedResourceQuotaValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling createNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedResourceQuotaCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedResourceQuotaCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9085,10 +8600,18 @@ private com.squareup.okhttp.Call createNamespacedResourceQuotaValidateBeforeCall * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ResourceQuota createNamespacedResourceQuota(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedResourceQuotaWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9101,11 +8624,19 @@ public V1ResourceQuota createNamespacedResourceQuota(String namespace, V1Resourc * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedResourceQuotaWithHttpInfo(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9116,35 +8647,24 @@ public ApiResponse createNamespacedResourceQuotaWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedResourceQuotaAsync(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedResourceQuotaAsync(String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedResourceQuotaValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedSecret @@ -9153,61 +8673,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedSecretCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedSecretCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedSecretValidateBeforeCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedSecretValidateBeforeCall(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -9219,14 +8739,10 @@ private com.squareup.okhttp.Call createNamespacedSecretValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedSecretCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedSecretCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9239,10 +8755,18 @@ private com.squareup.okhttp.Call createNamespacedSecretValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Secret createNamespacedSecret(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedSecretWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9255,11 +8779,19 @@ public V1Secret createNamespacedSecret(String namespace, V1Secret body, String p * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedSecretWithHttpInfo(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9270,35 +8802,24 @@ public ApiResponse createNamespacedSecretWithHttpInfo(String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedSecretAsync(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedSecretAsync(String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedSecretValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedService @@ -9307,61 +8828,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedServiceCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedServiceCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedServiceValidateBeforeCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedServiceValidateBeforeCall(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -9373,14 +8894,10 @@ private com.squareup.okhttp.Call createNamespacedServiceValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedService(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedServiceCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedServiceCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9393,10 +8910,18 @@ private com.squareup.okhttp.Call createNamespacedServiceValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Service createNamespacedService(String namespace, V1Service body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedServiceWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9409,11 +8934,19 @@ public V1Service createNamespacedService(String namespace, V1Service body, Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedServiceWithHttpInfo(String namespace, V1Service body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9424,35 +8957,24 @@ public ApiResponse createNamespacedServiceWithHttpInfo(String namespa * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedServiceAsync(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedServiceAsync(String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedServiceValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedServiceAccount @@ -9461,61 +8983,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedServiceAccountCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedServiceAccountCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedServiceAccountValidateBeforeCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedServiceAccountValidateBeforeCall(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -9527,14 +9049,10 @@ private com.squareup.okhttp.Call createNamespacedServiceAccountValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling createNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedServiceAccountCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedServiceAccountCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9547,10 +9065,18 @@ private com.squareup.okhttp.Call createNamespacedServiceAccountValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ServiceAccount createNamespacedServiceAccount(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedServiceAccountWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9563,11 +9089,19 @@ public V1ServiceAccount createNamespacedServiceAccount(String namespace, V1Servi * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedServiceAccountWithHttpInfo(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9578,35 +9112,24 @@ public ApiResponse createNamespacedServiceAccountWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedServiceAccountAsync(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedServiceAccountAsync(String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedServiceAccountValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNode @@ -9614,74 +9137,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNodeCall(V1Node body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNodeCall(V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/nodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNodeValidateBeforeCall(V1Node body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNodeValidateBeforeCall(V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createNode(Async)"); } - - com.squareup.okhttp.Call call = createNodeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNodeCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9693,10 +9212,18 @@ private com.squareup.okhttp.Call createNodeValidateBeforeCall(V1Node body, Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Node createNode(V1Node body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNodeWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNodeWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9708,11 +9235,19 @@ public V1Node createNode(V1Node body, String pretty, String dryRun, String field * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNodeWithHttpInfo(V1Node body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9722,35 +9257,24 @@ public ApiResponse createNodeWithHttpInfo(V1Node body, String pretty, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNodeAsync(V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNodeAsync(V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNodeValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createPersistentVolume @@ -9758,74 +9282,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createPersistentVolumeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPersistentVolumeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createPersistentVolumeValidateBeforeCall(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPersistentVolume(Async)"); } - - com.squareup.okhttp.Call call = createPersistentVolumeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createPersistentVolumeCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9837,10 +9357,18 @@ private com.squareup.okhttp.Call createPersistentVolumeValidateBeforeCall(V1Pers * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PersistentVolume createPersistentVolume(V1PersistentVolume body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createPersistentVolumeWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9852,11 +9380,19 @@ public V1PersistentVolume createPersistentVolume(V1PersistentVolume body, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createPersistentVolumeWithHttpInfo(V1PersistentVolume body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9866,126 +9402,145 @@ public ApiResponse createPersistentVolumeWithHttpInfo(V1Pers * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createPersistentVolumeAsync(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPersistentVolumeAsync(V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createPersistentVolumeValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedConfigMapCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedConfigMapCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -9993,19 +9548,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedConfigMapValidateBefo * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -10013,20 +9580,32 @@ public V1Status deleteCollectionNamespacedConfigMap(String namespace, String pre * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10034,133 +9613,156 @@ public ApiResponse deleteCollectionNamespacedConfigMapWithHttpInfo(Str * delete collection of ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedConfigMapAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedConfigMapAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedEndpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedEndpointsCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedEndpointsCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -10168,19 +9770,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedEndpointsValidateBefo * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -10188,20 +9802,32 @@ public V1Status deleteCollectionNamespacedEndpoints(String namespace, String pre * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10209,133 +9835,156 @@ public ApiResponse deleteCollectionNamespacedEndpointsWithHttpInfo(Str * delete collection of Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedEndpointsAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedEndpointsAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -10343,19 +9992,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedEventValidateBeforeCa * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -10363,20 +10024,32 @@ public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10384,133 +10057,156 @@ public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedLimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedLimitRangeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedLimitRange(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedLimitRangeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -10518,19 +10214,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedLimitRangeValidateBef * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -10538,20 +10246,32 @@ public V1Status deleteCollectionNamespacedLimitRange(String namespace, String pr * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10559,133 +10279,156 @@ public ApiResponse deleteCollectionNamespacedLimitRangeWithHttpInfo(St * delete collection of LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) - * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedLimitRangeAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedPersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -10693,19 +10436,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedPersistentVolumeClaim * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -10713,20 +10468,32 @@ public V1Status deleteCollectionNamespacedPersistentVolumeClaim(String namespace * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10734,133 +10501,156 @@ public ApiResponse deleteCollectionNamespacedPersistentVolumeClaimWith * delete collection of PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedPod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedPodCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -10868,19 +10658,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedPodValidateBeforeCall * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -10888,20 +10690,32 @@ public V1Status deleteCollectionNamespacedPod(String namespace, String pretty, S * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10909,133 +10723,156 @@ public ApiResponse deleteCollectionNamespacedPodWithHttpInfo(String na * delete collection of Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedPodAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedPodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedPodTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodTemplateCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -11043,19 +10880,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedPodTemplateValidateBe * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -11063,20 +10912,32 @@ public V1Status deleteCollectionNamespacedPodTemplate(String namespace, String p * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11084,133 +10945,156 @@ public ApiResponse deleteCollectionNamespacedPodTemplateWithHttpInfo(S * delete collection of PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedPodTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedReplicationControllerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -11218,19 +11102,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedReplicationController * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedReplicationController(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedReplicationController(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -11238,20 +11134,32 @@ public V1Status deleteCollectionNamespacedReplicationController(String namespace * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11259,133 +11167,156 @@ public ApiResponse deleteCollectionNamespacedReplicationControllerWith * delete collection of ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicationControllerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedReplicationControllerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedResourceQuotaCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -11393,19 +11324,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedResourceQuotaValidate * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -11413,20 +11356,32 @@ public V1Status deleteCollectionNamespacedResourceQuota(String namespace, String * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11434,133 +11389,156 @@ public ApiResponse deleteCollectionNamespacedResourceQuotaWithHttpInfo * delete collection of ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedResourceQuotaAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedResourceQuotaAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedSecret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedSecretCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedSecretValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedSecretCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -11568,19 +11546,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedSecretValidateBeforeC * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -11588,20 +11578,32 @@ public V1Status deleteCollectionNamespacedSecret(String namespace, String pretty * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11609,133 +11611,156 @@ public ApiResponse deleteCollectionNamespacedSecretWithHttpInfo(String * delete collection of Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedSecretAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedSecretAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedServiceAccountCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedServiceAccountCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -11743,19 +11768,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedServiceAccountValidat * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedServiceAccount(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedServiceAccount(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -11763,20 +11800,32 @@ public V1Status deleteCollectionNamespacedServiceAccount(String namespace, Strin * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11784,455 +11833,541 @@ public ApiResponse deleteCollectionNamespacedServiceAccountWithHttpInf * delete collection of ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedServiceAccountAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedServiceAccountAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNodeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/nodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNodeValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionNodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNodeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNodeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of Node * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNode(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNodeWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNode(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of Node * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of Node * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNodeAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionNodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionPersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionPersistentVolumeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionPersistentVolumeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/api/v1/persistentvolumes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionPersistentVolumeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionPersistentVolumeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of PersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionPersistentVolume(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionPersistentVolume(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of PersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionPersistentVolumeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of PersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPersistentVolumeAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionPersistentVolumeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespace * @param name name of the Namespace (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespaceCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespaceCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespaceValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespaceValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNamespace(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespaceCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespaceCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -12240,17 +12375,24 @@ private com.squareup.okhttp.Call deleteNamespaceValidateBeforeCall(String name, * delete a Namespace * @param name name of the Namespace (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespace(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespaceWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespace(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespaceWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -12258,18 +12400,25 @@ public V1Status deleteNamespace(String name, String pretty, V1DeleteOptions body * delete a Namespace * @param name name of the Namespace (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespaceWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespaceValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespaceWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -12277,111 +12426,102 @@ public ApiResponse deleteNamespaceWithHttpInfo(String name, String pre * delete a Namespace * @param name name of the Namespace (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespaceAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteNamespaceAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespaceValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespaceValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedConfigMap * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedConfigMapCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -12393,14 +12533,10 @@ private com.squareup.okhttp.Call deleteNamespacedConfigMapValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedConfigMapCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedConfigMapCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -12409,17 +12545,24 @@ private com.squareup.okhttp.Call deleteNamespacedConfigMapValidateBeforeCall(Str * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedConfigMap(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedConfigMap(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedConfigMapWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -12428,18 +12571,25 @@ public V1Status deleteNamespacedConfigMap(String name, String namespace, String * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -12448,111 +12598,102 @@ public ApiResponse deleteNamespacedConfigMapWithHttpInfo(String name, * @param name name of the ConfigMap (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedConfigMapAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedConfigMapAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedEndpoints * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedEndpointsCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -12564,14 +12705,10 @@ private com.squareup.okhttp.Call deleteNamespacedEndpointsValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedEndpointsCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedEndpointsCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -12580,17 +12717,24 @@ private com.squareup.okhttp.Call deleteNamespacedEndpointsValidateBeforeCall(Str * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedEndpoints(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedEndpoints(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEndpointsWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -12599,18 +12743,25 @@ public V1Status deleteNamespacedEndpoints(String name, String namespace, String * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -12619,111 +12770,102 @@ public ApiResponse deleteNamespacedEndpointsWithHttpInfo(String name, * @param name name of the Endpoints (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedEndpointsAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedEndpointsAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedEvent * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedEventCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -12735,14 +12877,10 @@ private com.squareup.okhttp.Call deleteNamespacedEventValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedEventCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -12751,17 +12889,24 @@ private com.squareup.okhttp.Call deleteNamespacedEventValidateBeforeCall(String * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -12770,18 +12915,25 @@ public V1Status deleteNamespacedEvent(String name, String namespace, String pret * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -12790,111 +12942,102 @@ public ApiResponse deleteNamespacedEventWithHttpInfo(String name, Stri * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedLimitRange * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedLimitRangeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -12903,17 +13046,13 @@ private com.squareup.okhttp.Call deleteNamespacedLimitRangeValidateBeforeCall(St // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLimitRange(Async)"); - } - - - com.squareup.okhttp.Call call = deleteNamespacedLimitRangeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedLimitRange(Async)"); + } + + okhttp3.Call localVarCall = deleteNamespacedLimitRangeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -12922,17 +13061,24 @@ private com.squareup.okhttp.Call deleteNamespacedLimitRangeValidateBeforeCall(St * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedLimitRange(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedLimitRange(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -12941,18 +13087,25 @@ public V1Status deleteNamespacedLimitRange(String name, String namespace, String * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -12961,111 +13114,102 @@ public ApiResponse deleteNamespacedLimitRangeWithHttpInfo(String name, * @param name name of the LimitRange (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedLimitRangeAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedLimitRangeAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedPersistentVolumeClaim * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13077,14 +13221,10 @@ private com.squareup.okhttp.Call deleteNamespacedPersistentVolumeClaimValidateBe throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -13093,17 +13233,24 @@ private com.squareup.okhttp.Call deleteNamespacedPersistentVolumeClaimValidateBe * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedPersistentVolumeClaim(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedPersistentVolumeClaim(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -13112,18 +13259,25 @@ public V1Status deleteNamespacedPersistentVolumeClaim(String name, String namesp * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -13132,111 +13286,102 @@ public ApiResponse deleteNamespacedPersistentVolumeClaimWithHttpInfo(S * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedPod * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedPodCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedPodCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13248,14 +13393,10 @@ private com.squareup.okhttp.Call deleteNamespacedPodValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedPodCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedPodCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -13264,17 +13405,24 @@ private com.squareup.okhttp.Call deleteNamespacedPodValidateBeforeCall(String na * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedPod(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedPodWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedPod(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -13283,18 +13431,25 @@ public V1Status deleteNamespacedPod(String name, String namespace, String pretty * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -13303,111 +13458,102 @@ public ApiResponse deleteNamespacedPodWithHttpInfo(String name, String * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedPodAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedPodAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedPodValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedPodTemplate * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedPodTemplateCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13419,14 +13565,10 @@ private com.squareup.okhttp.Call deleteNamespacedPodTemplateValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedPodTemplateCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedPodTemplateCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -13435,17 +13577,24 @@ private com.squareup.okhttp.Call deleteNamespacedPodTemplateValidateBeforeCall(S * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedPodTemplate(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedPodTemplate(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -13454,18 +13603,25 @@ public V1Status deleteNamespacedPodTemplate(String name, String namespace, Strin * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -13474,111 +13630,102 @@ public ApiResponse deleteNamespacedPodTemplateWithHttpInfo(String name * @param name name of the PodTemplate (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedPodTemplateAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedPodTemplateAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedReplicationController * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedReplicationControllerCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13590,14 +13737,10 @@ private com.squareup.okhttp.Call deleteNamespacedReplicationControllerValidateBe throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedReplicationControllerCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedReplicationControllerCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -13606,17 +13749,24 @@ private com.squareup.okhttp.Call deleteNamespacedReplicationControllerValidateBe * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedReplicationController(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedReplicationController(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -13625,18 +13775,25 @@ public V1Status deleteNamespacedReplicationController(String name, String namesp * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -13645,111 +13802,102 @@ public ApiResponse deleteNamespacedReplicationControllerWithHttpInfo(S * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedReplicationControllerAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedReplicationControllerAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedResourceQuota * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedResourceQuotaCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13761,14 +13909,10 @@ private com.squareup.okhttp.Call deleteNamespacedResourceQuotaValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedResourceQuotaCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedResourceQuotaCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -13777,17 +13921,24 @@ private com.squareup.okhttp.Call deleteNamespacedResourceQuotaValidateBeforeCall * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedResourceQuota(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedResourceQuota(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -13796,18 +13947,25 @@ public V1Status deleteNamespacedResourceQuota(String name, String namespace, Str * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -13816,111 +13974,102 @@ public ApiResponse deleteNamespacedResourceQuotaWithHttpInfo(String na * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedResourceQuotaAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedResourceQuotaAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedSecret * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedSecretCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -13932,14 +14081,10 @@ private com.squareup.okhttp.Call deleteNamespacedSecretValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedSecretCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedSecretCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -13948,17 +14093,24 @@ private com.squareup.okhttp.Call deleteNamespacedSecretValidateBeforeCall(String * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedSecret(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedSecret(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedSecretWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -13967,18 +14119,25 @@ public V1Status deleteNamespacedSecret(String name, String namespace, String pre * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -13987,111 +14146,102 @@ public ApiResponse deleteNamespacedSecretWithHttpInfo(String name, Str * @param name name of the Secret (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedSecretAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteNamespacedSecretAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedSecretValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedService * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedServiceCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14103,14 +14253,10 @@ private com.squareup.okhttp.Call deleteNamespacedServiceValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedService(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedServiceCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedServiceCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -14119,17 +14265,24 @@ private com.squareup.okhttp.Call deleteNamespacedServiceValidateBeforeCall(Strin * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedService(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedService(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedServiceWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -14138,18 +14291,25 @@ public V1Status deleteNamespacedService(String name, String namespace, String pr * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -14158,111 +14318,102 @@ public ApiResponse deleteNamespacedServiceWithHttpInfo(String name, St * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedServiceAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedServiceAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedServiceValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedServiceAccount * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedServiceAccountCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -14274,14 +14425,10 @@ private com.squareup.okhttp.Call deleteNamespacedServiceAccountValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedServiceAccountCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedServiceAccountCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -14290,17 +14437,24 @@ private com.squareup.okhttp.Call deleteNamespacedServiceAccountValidateBeforeCal * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedServiceAccount(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedServiceAccount(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -14309,18 +14463,25 @@ public V1Status deleteNamespacedServiceAccount(String name, String namespace, St * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -14329,123 +14490,110 @@ public ApiResponse deleteNamespacedServiceAccountWithHttpInfo(String n * @param name name of the ServiceAccount (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedServiceAccountAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedServiceAccountAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNode * @param name name of the Node (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNodeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNodeValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteNode(Async)"); } - - com.squareup.okhttp.Call call = deleteNodeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -14453,17 +14601,24 @@ private com.squareup.okhttp.Call deleteNodeValidateBeforeCall(String name, Strin * delete a Node * @param name name of the Node (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNode(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNodeWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNode(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -14471,18 +14626,25 @@ public V1Status deleteNode(String name, String pretty, V1DeleteOptions body, Str * delete a Node * @param name name of the Node (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNodeValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -14490,123 +14652,110 @@ public ApiResponse deleteNodeWithHttpInfo(String name, String pretty, * delete a Node * @param name name of the Node (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNodeAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNodeValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deletePersistentVolume * @param name name of the PersistentVolume (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deletePersistentVolumeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deletePersistentVolumeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deletePersistentVolumeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePersistentVolume(Async)"); } - - com.squareup.okhttp.Call call = deletePersistentVolumeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deletePersistentVolumeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -14614,17 +14763,24 @@ private com.squareup.okhttp.Call deletePersistentVolumeValidateBeforeCall(String * delete a PersistentVolume * @param name name of the PersistentVolume (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deletePersistentVolume(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deletePersistentVolumeWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deletePersistentVolume(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePersistentVolumeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -14632,18 +14788,25 @@ public V1Status deletePersistentVolume(String name, String pretty, V1DeleteOptio * delete a PersistentVolume * @param name name of the PersistentVolume (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deletePersistentVolumeWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deletePersistentVolumeValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deletePersistentVolumeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -14651,100 +14814,76 @@ public ApiResponse deletePersistentVolumeWithHttpInfo(String name, Str * delete a PersistentVolume * @param name name of the PersistentVolume (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePersistentVolumeAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deletePersistentVolumeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deletePersistentVolumeValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deletePersistentVolumeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -14752,10 +14891,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -14763,48 +14908,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listComponentStatus + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -14813,84 +14952,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listComponentStatusCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listComponentStatusCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/componentstatuses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listComponentStatusValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listComponentStatusValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listComponentStatusCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listComponentStatusCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list objects of kind ComponentStatus + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -14901,15 +15049,22 @@ private com.squareup.okhttp.Call listComponentStatusValidateBeforeCall(String _c * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ComponentStatusList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ComponentStatusList listComponentStatus(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listComponentStatusWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ComponentStatusList listComponentStatus(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listComponentStatusWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list objects of kind ComponentStatus + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -14920,16 +15075,23 @@ public V1ComponentStatusList listComponentStatus(String _continue, String fieldS * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ComponentStatusList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listComponentStatusWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listComponentStatusValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listComponentStatusWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list objects of kind ComponentStatus + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -14938,38 +15100,26 @@ public ApiResponse listComponentStatusWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listComponentStatusAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listComponentStatusAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listComponentStatusValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listComponentStatusValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listConfigMapForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -14978,84 +15128,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listConfigMapForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listConfigMapForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/configmaps"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listConfigMapForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listConfigMapForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listConfigMapForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listConfigMapForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ConfigMap + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15066,15 +15225,22 @@ private com.squareup.okhttp.Call listConfigMapForAllNamespacesValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ConfigMapList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ConfigMapList listConfigMapForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listConfigMapForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ConfigMapList listConfigMapForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listConfigMapForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ConfigMap + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15085,16 +15251,23 @@ public V1ConfigMapList listConfigMapForAllNamespaces(String _continue, String fi * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ConfigMapList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listConfigMapForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listConfigMapForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listConfigMapForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ConfigMap + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15103,38 +15276,26 @@ public ApiResponse listConfigMapForAllNamespacesWithHttpInfo(St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listConfigMapForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listConfigMapForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listConfigMapForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listConfigMapForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listEndpointsForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15143,84 +15304,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listEndpointsForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listEndpointsForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/endpoints"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - - @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listEndpointsForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - - - com.squareup.okhttp.Call call = listEndpointsForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + + @SuppressWarnings("rawtypes") + private okhttp3.Call listEndpointsForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listEndpointsForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Endpoints + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15231,15 +15401,22 @@ private com.squareup.okhttp.Call listEndpointsForAllNamespacesValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1EndpointsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1EndpointsList listEndpointsForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listEndpointsForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1EndpointsList listEndpointsForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listEndpointsForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Endpoints + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15250,16 +15427,23 @@ public V1EndpointsList listEndpointsForAllNamespaces(String _continue, String fi * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1EndpointsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listEndpointsForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listEndpointsForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listEndpointsForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Endpoints + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15268,38 +15452,26 @@ public ApiResponse listEndpointsForAllNamespacesWithHttpInfo(St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listEndpointsForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listEndpointsForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listEndpointsForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listEndpointsForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listEventForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15308,84 +15480,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listEventForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/events"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listEventForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listEventForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Event + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15396,15 +15577,22 @@ private com.squareup.okhttp.Call listEventForAllNamespacesValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1EventList listEventForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listEventForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1EventList listEventForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Event + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15415,16 +15603,23 @@ public V1EventList listEventForAllNamespaces(String _continue, String fieldSelec * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listEventForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listEventForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listEventForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Event + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15433,38 +15628,26 @@ public ApiResponse listEventForAllNamespacesWithHttpInfo(String _co * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listEventForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listEventForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listLimitRangeForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15473,84 +15656,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listLimitRangeForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listLimitRangeForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/limitranges"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listLimitRangeForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listLimitRangeForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listLimitRangeForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listLimitRangeForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind LimitRange + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15561,15 +15753,22 @@ private com.squareup.okhttp.Call listLimitRangeForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1LimitRangeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1LimitRangeList listLimitRangeForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listLimitRangeForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1LimitRangeList listLimitRangeForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listLimitRangeForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind LimitRange + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15580,16 +15779,23 @@ public V1LimitRangeList listLimitRangeForAllNamespaces(String _continue, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1LimitRangeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listLimitRangeForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listLimitRangeForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind LimitRange + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15598,39 +15804,27 @@ public ApiResponse listLimitRangeForAllNamespacesWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listLimitRangeForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listLimitRangeForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listLimitRangeForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listLimitRangeForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespace * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15638,85 +15832,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespaceCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespaceCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespaceValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listNamespaceValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespaceCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespaceCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Namespace * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15726,16 +15929,23 @@ private com.squareup.okhttp.Call listNamespaceValidateBeforeCall(String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1NamespaceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NamespaceList listNamespace(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespaceWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1NamespaceList listNamespace(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespaceWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Namespace * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15745,17 +15955,24 @@ public V1NamespaceList listNamespace(String pretty, String _continue, String fie * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1NamespaceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespaceWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespaceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespaceWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Namespace * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15763,40 +15980,28 @@ public ApiResponse listNamespaceWithHttpInfo(String pretty, Str * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespaceAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespaceAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespaceValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespaceValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15804,85 +16009,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedConfigMapCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedConfigMapCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedConfigMapValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedConfigMapCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedConfigMapCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -15890,6 +16103,7 @@ private com.squareup.okhttp.Call listNamespacedConfigMapValidateBeforeCall(Strin * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15899,10 +16113,16 @@ private com.squareup.okhttp.Call listNamespacedConfigMapValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ConfigMapList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ConfigMapList listNamespacedConfigMap(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedConfigMapWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ConfigMapList listNamespacedConfigMap(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedConfigMapWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -15910,6 +16130,7 @@ public V1ConfigMapList listNamespacedConfigMap(String namespace, String pretty, * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15919,11 +16140,17 @@ public V1ConfigMapList listNamespacedConfigMap(String namespace, String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ConfigMapList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedConfigMapWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedConfigMapWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -15931,6 +16158,7 @@ public ApiResponse listNamespacedConfigMapWithHttpInfo(String n * list or watch objects of kind ConfigMap * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15938,40 +16166,28 @@ public ApiResponse listNamespacedConfigMapWithHttpInfo(String n * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedConfigMapAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedConfigMapAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedConfigMapValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedEndpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -15979,85 +16195,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedEndpointsCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedEndpointsCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedEndpointsValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedEndpointsCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedEndpointsCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -16065,6 +16289,7 @@ private com.squareup.okhttp.Call listNamespacedEndpointsValidateBeforeCall(Strin * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16074,10 +16299,16 @@ private com.squareup.okhttp.Call listNamespacedEndpointsValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1EndpointsList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1EndpointsList listNamespacedEndpoints(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedEndpointsWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1EndpointsList listNamespacedEndpoints(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedEndpointsWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -16085,6 +16316,7 @@ public V1EndpointsList listNamespacedEndpoints(String namespace, String pretty, * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16094,11 +16326,17 @@ public V1EndpointsList listNamespacedEndpoints(String namespace, String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1EndpointsList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedEndpointsWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedEndpointsWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -16106,6 +16344,7 @@ public ApiResponse listNamespacedEndpointsWithHttpInfo(String n * list or watch objects of kind Endpoints * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16113,40 +16352,28 @@ public ApiResponse listNamespacedEndpointsWithHttpInfo(String n * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedEndpointsAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedEndpointsAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedEndpointsValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16154,85 +16381,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedEventCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedEventCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -16240,6 +16475,7 @@ private com.squareup.okhttp.Call listNamespacedEventValidateBeforeCall(String na * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16249,10 +16485,16 @@ private com.squareup.okhttp.Call listNamespacedEventValidateBeforeCall(String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1EventList listNamespacedEvent(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedEventWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1EventList listNamespacedEvent(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -16260,6 +16502,7 @@ public V1EventList listNamespacedEvent(String namespace, String pretty, String _ * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16269,11 +16512,17 @@ public V1EventList listNamespacedEvent(String namespace, String pretty, String _ * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -16281,6 +16530,7 @@ public ApiResponse listNamespacedEventWithHttpInfo(String namespace * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16288,40 +16538,28 @@ public ApiResponse listNamespacedEventWithHttpInfo(String namespace * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedEventAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedLimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16329,85 +16567,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedLimitRangeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedLimitRangeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedLimitRangeValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedLimitRange(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedLimitRangeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedLimitRangeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -16415,6 +16661,7 @@ private com.squareup.okhttp.Call listNamespacedLimitRangeValidateBeforeCall(Stri * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16424,10 +16671,16 @@ private com.squareup.okhttp.Call listNamespacedLimitRangeValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1LimitRangeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1LimitRangeList listNamespacedLimitRange(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedLimitRangeWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1LimitRangeList listNamespacedLimitRange(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedLimitRangeWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -16435,6 +16688,7 @@ public V1LimitRangeList listNamespacedLimitRange(String namespace, String pretty * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16444,11 +16698,17 @@ public V1LimitRangeList listNamespacedLimitRange(String namespace, String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1LimitRangeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedLimitRangeWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -16456,6 +16716,7 @@ public ApiResponse listNamespacedLimitRangeWithHttpInfo(String * list or watch objects of kind LimitRange * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16463,40 +16724,28 @@ public ApiResponse listNamespacedLimitRangeWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedLimitRangeAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedLimitRangeAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedLimitRangeValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedPersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16504,85 +16753,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedPersistentVolumeClaimCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedPersistentVolumeClaimCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedPersistentVolumeClaimValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedPersistentVolumeClaimCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -16590,6 +16847,7 @@ private com.squareup.okhttp.Call listNamespacedPersistentVolumeClaimValidateBefo * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16599,10 +16857,16 @@ private com.squareup.okhttp.Call listNamespacedPersistentVolumeClaimValidateBefo * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PersistentVolumeClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedPersistentVolumeClaimWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -16610,6 +16874,7 @@ public V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(String na * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16619,11 +16884,17 @@ public V1PersistentVolumeClaimList listNamespacedPersistentVolumeClaim(String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PersistentVolumeClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedPersistentVolumeClaimWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -16631,6 +16902,7 @@ public ApiResponse listNamespacedPersistentVolumeCl * list or watch objects of kind PersistentVolumeClaim * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16638,40 +16910,28 @@ public ApiResponse listNamespacedPersistentVolumeCl * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedPersistentVolumeClaimAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedPersistentVolumeClaimValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedPod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16679,85 +16939,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedPodCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedPodCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedPodValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedPodValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedPodCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedPodCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -16765,6 +17033,7 @@ private com.squareup.okhttp.Call listNamespacedPodValidateBeforeCall(String name * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16774,10 +17043,16 @@ private com.squareup.okhttp.Call listNamespacedPodValidateBeforeCall(String name * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PodList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PodList listNamespacedPod(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedPodWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PodList listNamespacedPod(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedPodWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -16785,6 +17060,7 @@ public V1PodList listNamespacedPod(String namespace, String pretty, String _cont * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16794,11 +17070,17 @@ public V1PodList listNamespacedPod(String namespace, String pretty, String _cont * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PodList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedPodWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPodValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedPodWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -16806,6 +17088,7 @@ public ApiResponse listNamespacedPodWithHttpInfo(String namespace, St * list or watch objects of kind Pod * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16813,40 +17096,28 @@ public ApiResponse listNamespacedPodWithHttpInfo(String namespace, St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedPodAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedPodAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPodValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedPodValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedPodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16854,85 +17125,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedPodTemplateCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedPodTemplateCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedPodTemplateValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedPodTemplateCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedPodTemplateCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -16940,6 +17219,7 @@ private com.squareup.okhttp.Call listNamespacedPodTemplateValidateBeforeCall(Str * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16949,10 +17229,16 @@ private com.squareup.okhttp.Call listNamespacedPodTemplateValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PodTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PodTemplateList listNamespacedPodTemplate(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedPodTemplateWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PodTemplateList listNamespacedPodTemplate(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedPodTemplateWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -16960,6 +17246,7 @@ public V1PodTemplateList listNamespacedPodTemplate(String namespace, String pret * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16969,11 +17256,17 @@ public V1PodTemplateList listNamespacedPodTemplate(String namespace, String pret * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PodTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedPodTemplateWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -16981,6 +17274,7 @@ public ApiResponse listNamespacedPodTemplateWithHttpInfo(Stri * list or watch objects of kind PodTemplate * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -16988,40 +17282,28 @@ public ApiResponse listNamespacedPodTemplateWithHttpInfo(Stri * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedPodTemplateAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedPodTemplateAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedPodTemplateValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17029,85 +17311,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedReplicationControllerCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedReplicationControllerCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedReplicationControllerValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedReplicationControllerCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedReplicationControllerCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -17115,6 +17405,7 @@ private com.squareup.okhttp.Call listNamespacedReplicationControllerValidateBefo * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17124,10 +17415,16 @@ private com.squareup.okhttp.Call listNamespacedReplicationControllerValidateBefo * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ReplicationControllerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicationControllerList listNamespacedReplicationController(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ReplicationControllerList listNamespacedReplicationController(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedReplicationControllerWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -17135,6 +17432,7 @@ public V1ReplicationControllerList listNamespacedReplicationController(String na * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17144,11 +17442,17 @@ public V1ReplicationControllerList listNamespacedReplicationController(String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ReplicationControllerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedReplicationControllerWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -17156,6 +17460,7 @@ public ApiResponse listNamespacedReplicationControl * list or watch objects of kind ReplicationController * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17163,40 +17468,28 @@ public ApiResponse listNamespacedReplicationControl * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedReplicationControllerAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedReplicationControllerAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedReplicationControllerValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17204,85 +17497,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedResourceQuotaCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedResourceQuotaCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedResourceQuotaValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedResourceQuotaCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedResourceQuotaCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -17290,6 +17591,7 @@ private com.squareup.okhttp.Call listNamespacedResourceQuotaValidateBeforeCall(S * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17299,10 +17601,16 @@ private com.squareup.okhttp.Call listNamespacedResourceQuotaValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ResourceQuotaList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ResourceQuotaList listNamespacedResourceQuota(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ResourceQuotaList listNamespacedResourceQuota(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedResourceQuotaWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -17310,6 +17618,7 @@ public V1ResourceQuotaList listNamespacedResourceQuota(String namespace, String * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17319,11 +17628,17 @@ public V1ResourceQuotaList listNamespacedResourceQuota(String namespace, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ResourceQuotaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedResourceQuotaWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -17331,6 +17646,7 @@ public ApiResponse listNamespacedResourceQuotaWithHttpInfo( * list or watch objects of kind ResourceQuota * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17338,40 +17654,28 @@ public ApiResponse listNamespacedResourceQuotaWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedResourceQuotaAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedResourceQuotaAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedResourceQuotaValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedSecret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17379,85 +17683,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedSecretCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedSecretCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedSecretValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedSecretValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedSecretCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedSecretCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -17465,6 +17777,7 @@ private com.squareup.okhttp.Call listNamespacedSecretValidateBeforeCall(String n * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17474,10 +17787,16 @@ private com.squareup.okhttp.Call listNamespacedSecretValidateBeforeCall(String n * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1SecretList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1SecretList listNamespacedSecret(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedSecretWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1SecretList listNamespacedSecret(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedSecretWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -17485,6 +17804,7 @@ public V1SecretList listNamespacedSecret(String namespace, String pretty, String * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17494,11 +17814,17 @@ public V1SecretList listNamespacedSecret(String namespace, String pretty, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1SecretList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedSecretWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedSecretWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -17506,6 +17832,7 @@ public ApiResponse listNamespacedSecretWithHttpInfo(String namespa * list or watch objects of kind Secret * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17513,40 +17840,28 @@ public ApiResponse listNamespacedSecretWithHttpInfo(String namespa * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedSecretAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedSecretAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedSecretValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedSecretValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedService * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17554,85 +17869,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedServiceCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedServiceCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedServiceValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedServiceValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedService(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedServiceCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedServiceCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -17640,6 +17963,7 @@ private com.squareup.okhttp.Call listNamespacedServiceValidateBeforeCall(String * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17649,10 +17973,16 @@ private com.squareup.okhttp.Call listNamespacedServiceValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ServiceList listNamespacedService(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedServiceWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ServiceList listNamespacedService(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedServiceWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -17660,6 +17990,7 @@ public V1ServiceList listNamespacedService(String namespace, String pretty, Stri * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17669,11 +18000,17 @@ public V1ServiceList listNamespacedService(String namespace, String pretty, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedServiceWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedServiceWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -17681,6 +18018,7 @@ public ApiResponse listNamespacedServiceWithHttpInfo(String names * list or watch objects of kind Service * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17688,40 +18026,28 @@ public ApiResponse listNamespacedServiceWithHttpInfo(String names * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedServiceAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedServiceAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedServiceValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedServiceValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17729,85 +18055,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedServiceAccountCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedServiceAccountCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedServiceAccountValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedServiceAccountCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedServiceAccountCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -17815,6 +18149,7 @@ private com.squareup.okhttp.Call listNamespacedServiceAccountValidateBeforeCall( * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17824,10 +18159,16 @@ private com.squareup.okhttp.Call listNamespacedServiceAccountValidateBeforeCall( * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ServiceAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ServiceAccountList listNamespacedServiceAccount(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedServiceAccountWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ServiceAccountList listNamespacedServiceAccount(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedServiceAccountWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -17835,6 +18176,7 @@ public V1ServiceAccountList listNamespacedServiceAccount(String namespace, Strin * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17844,11 +18186,17 @@ public V1ServiceAccountList listNamespacedServiceAccount(String namespace, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ServiceAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedServiceAccountWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -17856,6 +18204,7 @@ public ApiResponse listNamespacedServiceAccountWithHttpInf * list or watch objects of kind ServiceAccount * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17863,39 +18212,27 @@ public ApiResponse listNamespacedServiceAccountWithHttpInf * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedServiceAccountAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedServiceAccountAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedServiceAccountValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17903,85 +18240,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNodeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNodeValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listNodeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Node * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -17991,16 +18337,23 @@ private com.squareup.okhttp.Call listNodeValidateBeforeCall(String pretty, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1NodeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NodeList listNode(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNodeWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1NodeList listNode(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Node * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18010,17 +18363,24 @@ public V1NodeList listNode(String pretty, String _continue, String fieldSelector * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1NodeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNodeWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Node * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18028,39 +18388,27 @@ public ApiResponse listNodeWithHttpInfo(String pretty, String _conti * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNodeAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18068,85 +18416,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPersistentVolumeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPersistentVolumeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPersistentVolumeValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listPersistentVolumeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPersistentVolumeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPersistentVolumeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18156,16 +18513,23 @@ private com.squareup.okhttp.Call listPersistentVolumeValidateBeforeCall(String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PersistentVolumeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolumeList listPersistentVolume(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPersistentVolumeWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PersistentVolumeList listPersistentVolume(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPersistentVolumeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18175,17 +18539,24 @@ public V1PersistentVolumeList listPersistentVolume(String pretty, String _contin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PersistentVolumeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPersistentVolumeWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPersistentVolumeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPersistentVolumeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PersistentVolume * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18193,38 +18564,26 @@ public ApiResponse listPersistentVolumeWithHttpInfo(Stri * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPersistentVolumeAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listPersistentVolumeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPersistentVolumeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPersistentVolumeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPersistentVolumeClaimForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18233,84 +18592,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPersistentVolumeClaimForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPersistentVolumeClaimForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumeclaims"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listPersistentVolumeClaimForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PersistentVolumeClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18321,15 +18689,22 @@ private com.squareup.okhttp.Call listPersistentVolumeClaimForAllNamespacesValida * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PersistentVolumeClaimList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPersistentVolumeClaimForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPersistentVolumeClaimForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PersistentVolumeClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18340,16 +18715,23 @@ public V1PersistentVolumeClaimList listPersistentVolumeClaimForAllNamespaces(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PersistentVolumeClaimList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPersistentVolumeClaimForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PersistentVolumeClaim + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18358,38 +18740,26 @@ public ApiResponse listPersistentVolumeClaimForAllN * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPersistentVolumeClaimForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listPersistentVolumeClaimForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPersistentVolumeClaimForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPodForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18398,84 +18768,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPodForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/pods"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPodForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listPodForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPodForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPodForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Pod + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18486,15 +18865,22 @@ private com.squareup.okhttp.Call listPodForAllNamespacesValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PodList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PodList listPodForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPodForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PodList listPodForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Pod + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18505,16 +18891,23 @@ public V1PodList listPodForAllNamespaces(String _continue, String fieldSelector, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PodList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPodForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPodForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPodForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Pod + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18523,38 +18916,26 @@ public ApiResponse listPodForAllNamespacesWithHttpInfo(String _contin * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listPodForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listPodForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPodForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPodTemplateForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18563,84 +18944,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPodTemplateForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodTemplateForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/podtemplates"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPodTemplateForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listPodTemplateForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listPodTemplateForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPodTemplateForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PodTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18651,15 +19041,22 @@ private com.squareup.okhttp.Call listPodTemplateForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PodTemplateList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PodTemplateList listPodTemplateForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPodTemplateForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PodTemplateList listPodTemplateForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodTemplateForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PodTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18670,16 +19067,23 @@ public V1PodTemplateList listPodTemplateForAllNamespaces(String _continue, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PodTemplateList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPodTemplateForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPodTemplateForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PodTemplate + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18688,38 +19092,26 @@ public ApiResponse listPodTemplateForAllNamespacesWithHttpInf * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodTemplateForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listPodTemplateForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listPodTemplateForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPodTemplateForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listReplicationControllerForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18728,84 +19120,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listReplicationControllerForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listReplicationControllerForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/replicationcontrollers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listReplicationControllerForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listReplicationControllerForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listReplicationControllerForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ReplicationController + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18816,15 +19217,22 @@ private com.squareup.okhttp.Call listReplicationControllerForAllNamespacesValida * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ReplicationControllerList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicationControllerList listReplicationControllerForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listReplicationControllerForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ReplicationControllerList listReplicationControllerForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listReplicationControllerForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ReplicationController + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18835,16 +19243,23 @@ public V1ReplicationControllerList listReplicationControllerForAllNamespaces(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ReplicationControllerList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listReplicationControllerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listReplicationControllerForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ReplicationController + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18853,38 +19268,26 @@ public ApiResponse listReplicationControllerForAllN * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listReplicationControllerForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listReplicationControllerForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listReplicationControllerForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listReplicationControllerForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listResourceQuotaForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18893,84 +19296,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listResourceQuotaForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listResourceQuotaForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/resourcequotas"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listResourceQuotaForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listResourceQuotaForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listResourceQuotaForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ResourceQuota + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -18981,15 +19393,22 @@ private com.squareup.okhttp.Call listResourceQuotaForAllNamespacesValidateBefore * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ResourceQuotaList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ResourceQuotaList listResourceQuotaForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listResourceQuotaForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ResourceQuotaList listResourceQuotaForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listResourceQuotaForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ResourceQuota + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19000,16 +19419,23 @@ public V1ResourceQuotaList listResourceQuotaForAllNamespaces(String _continue, S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ResourceQuotaList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listResourceQuotaForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listResourceQuotaForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ResourceQuota + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19018,38 +19444,26 @@ public ApiResponse listResourceQuotaForAllNamespacesWithHtt * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listResourceQuotaForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listResourceQuotaForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listResourceQuotaForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listResourceQuotaForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listSecretForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19058,84 +19472,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listSecretForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listSecretForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/secrets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listSecretForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listSecretForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listSecretForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listSecretForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Secret + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19146,15 +19569,22 @@ private com.squareup.okhttp.Call listSecretForAllNamespacesValidateBeforeCall(St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1SecretList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1SecretList listSecretForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listSecretForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1SecretList listSecretForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listSecretForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Secret + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19165,16 +19595,23 @@ public V1SecretList listSecretForAllNamespaces(String _continue, String fieldSel * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1SecretList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listSecretForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listSecretForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listSecretForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Secret + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19183,38 +19620,26 @@ public ApiResponse listSecretForAllNamespacesWithHttpInfo(String _ * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listSecretForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listSecretForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listSecretForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listSecretForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listServiceAccountForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19223,84 +19648,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listServiceAccountForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listServiceAccountForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/serviceaccounts"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listServiceAccountForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listServiceAccountForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listServiceAccountForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listServiceAccountForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ServiceAccount + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19311,15 +19745,22 @@ private com.squareup.okhttp.Call listServiceAccountForAllNamespacesValidateBefor * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ServiceAccountList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ServiceAccountList listServiceAccountForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listServiceAccountForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ServiceAccountList listServiceAccountForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listServiceAccountForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ServiceAccount + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19330,16 +19771,23 @@ public V1ServiceAccountList listServiceAccountForAllNamespaces(String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ServiceAccountList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listServiceAccountForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listServiceAccountForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ServiceAccount + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19348,38 +19796,26 @@ public ApiResponse listServiceAccountForAllNamespacesWithH * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listServiceAccountForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listServiceAccountForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listServiceAccountForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listServiceAccountForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listServiceForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19388,84 +19824,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listServiceForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listServiceForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/services"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listServiceForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listServiceForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listServiceForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listServiceForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Service + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19476,15 +19921,22 @@ private com.squareup.okhttp.Call listServiceForAllNamespacesValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ServiceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ServiceList listServiceForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listServiceForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ServiceList listServiceForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listServiceForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Service + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19495,16 +19947,23 @@ public V1ServiceList listServiceForAllNamespaces(String _continue, String fieldS * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ServiceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listServiceForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listServiceForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listServiceForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Service + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -19513,35 +19972,22 @@ public ApiResponse listServiceForAllNamespacesWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listServiceForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listServiceForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listServiceForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listServiceForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespace @@ -19551,63 +19997,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespaceCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespaceCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespaceValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespaceValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -19619,14 +20065,10 @@ private com.squareup.okhttp.Call patchNamespaceValidateBeforeCall(String name, V throw new ApiException("Missing the required parameter 'body' when calling patchNamespace(Async)"); } - - com.squareup.okhttp.Call call = patchNamespaceCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespaceCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -19640,10 +20082,16 @@ private com.squareup.okhttp.Call patchNamespaceValidateBeforeCall(String name, V * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Namespace patchNamespace(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Namespace patchNamespace(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -19657,11 +20105,17 @@ public V1Namespace patchNamespace(String name, V1Patch body, String pretty, Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespaceWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespaceWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -19673,35 +20127,22 @@ public ApiResponse patchNamespaceWithHttpInfo(String name, V1Patch * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespaceAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespaceAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespaceStatus @@ -19711,63 +20152,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespaceStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespaceStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespaceStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespaceStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -19779,14 +20220,10 @@ private com.squareup.okhttp.Call patchNamespaceStatusValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespaceStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -19800,10 +20237,16 @@ private com.squareup.okhttp.Call patchNamespaceStatusValidateBeforeCall(String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Namespace patchNamespaceStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Namespace patchNamespaceStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -19817,11 +20260,17 @@ public V1Namespace patchNamespaceStatus(String name, V1Patch body, String pretty * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespaceStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespaceStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -19833,35 +20282,22 @@ public ApiResponse patchNamespaceStatusWithHttpInfo(String name, V1 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespaceStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespaceStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedConfigMap @@ -19872,64 +20308,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedConfigMapCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedConfigMapCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedConfigMapValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -19946,14 +20382,10 @@ private com.squareup.okhttp.Call patchNamespacedConfigMapValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -19968,10 +20400,16 @@ private com.squareup.okhttp.Call patchNamespacedConfigMapValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ConfigMap patchNamespacedConfigMap(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ConfigMap patchNamespacedConfigMap(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -19986,11 +20424,17 @@ public V1ConfigMap patchNamespacedConfigMap(String name, String namespace, V1Pat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedConfigMapWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedConfigMapWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -20003,35 +20447,22 @@ public ApiResponse patchNamespacedConfigMapWithHttpInfo(String name * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedConfigMapAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedConfigMapAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedEndpoints @@ -20042,64 +20473,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedEndpointsCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedEndpointsCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedEndpointsValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -20116,14 +20547,10 @@ private com.squareup.okhttp.Call patchNamespacedEndpointsValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -20138,10 +20565,16 @@ private com.squareup.okhttp.Call patchNamespacedEndpointsValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Endpoints patchNamespacedEndpoints(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Endpoints patchNamespacedEndpoints(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -20156,11 +20589,17 @@ public V1Endpoints patchNamespacedEndpoints(String name, String namespace, V1Pat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedEndpointsWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedEndpointsWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -20173,35 +20612,22 @@ public ApiResponse patchNamespacedEndpointsWithHttpInfo(String name * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedEndpointsAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedEndpointsAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedEvent @@ -20212,64 +20638,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedEventCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -20286,14 +20712,10 @@ private com.squareup.okhttp.Call patchNamespacedEventValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -20308,10 +20730,16 @@ private com.squareup.okhttp.Call patchNamespacedEventValidateBeforeCall(String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Event patchNamespacedEvent(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Event patchNamespacedEvent(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -20326,11 +20754,17 @@ public V1Event patchNamespacedEvent(String name, String namespace, V1Patch body, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -20343,35 +20777,22 @@ public ApiResponse patchNamespacedEventWithHttpInfo(String name, String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedEventAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedEventAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedLimitRange @@ -20382,64 +20803,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedLimitRangeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedLimitRangeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedLimitRangeValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -20456,14 +20877,10 @@ private com.squareup.okhttp.Call patchNamespacedLimitRangeValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedLimitRange(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -20478,10 +20895,16 @@ private com.squareup.okhttp.Call patchNamespacedLimitRangeValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1LimitRange patchNamespacedLimitRange(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1LimitRange patchNamespacedLimitRange(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -20496,11 +20919,17 @@ public V1LimitRange patchNamespacedLimitRange(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedLimitRangeWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedLimitRangeWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -20513,35 +20942,22 @@ public ApiResponse patchNamespacedLimitRangeWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedLimitRangeAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedLimitRangeAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPersistentVolumeClaim @@ -20552,64 +20968,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPersistentVolumeClaimCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -20626,14 +21042,10 @@ private com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimValidateBef throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -20648,10 +21060,16 @@ private com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimValidateBef * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -20666,11 +21084,17 @@ public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaim(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -20683,35 +21107,22 @@ public ApiResponse patchNamespacedPersistentVolumeClaim * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedPersistentVolumeClaimAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPersistentVolumeClaimStatus @@ -20722,64 +21133,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -20796,14 +21207,10 @@ private com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimStatusValid throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPersistentVolumeClaimStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -20818,10 +21225,16 @@ private com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimStatusValid * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -20836,11 +21249,17 @@ public V1PersistentVolumeClaim patchNamespacedPersistentVolumeClaimStatus(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -20853,35 +21272,22 @@ public ApiResponse patchNamespacedPersistentVolumeClaim * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPod @@ -20892,64 +21298,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPodCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPodValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPodValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -20966,14 +21372,10 @@ private com.squareup.okhttp.Call patchNamespacedPodValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -20988,10 +21390,16 @@ private com.squareup.okhttp.Call patchNamespacedPodValidateBeforeCall(String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Pod patchNamespacedPod(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Pod patchNamespacedPod(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -21006,11 +21414,17 @@ public V1Pod patchNamespacedPod(String name, String namespace, V1Patch body, Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedPodWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedPodWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -21023,35 +21437,22 @@ public ApiResponse patchNamespacedPodWithHttpInfo(String name, String nam * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedPodAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPodStatus @@ -21062,64 +21463,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPodStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPodStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -21136,14 +21537,10 @@ private com.squareup.okhttp.Call patchNamespacedPodStatusValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -21158,10 +21555,16 @@ private com.squareup.okhttp.Call patchNamespacedPodStatusValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Pod patchNamespacedPodStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Pod patchNamespacedPodStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -21176,11 +21579,17 @@ public V1Pod patchNamespacedPodStatus(String name, String namespace, V1Patch bod * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedPodStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedPodStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -21193,35 +21602,22 @@ public ApiResponse patchNamespacedPodStatusWithHttpInfo(String name, Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedPodStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPodTemplate @@ -21232,64 +21628,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPodTemplateCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodTemplateCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPodTemplateValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -21306,14 +21702,10 @@ private com.squareup.okhttp.Call patchNamespacedPodTemplateValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -21328,10 +21720,16 @@ private com.squareup.okhttp.Call patchNamespacedPodTemplateValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PodTemplate patchNamespacedPodTemplate(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1PodTemplate patchNamespacedPodTemplate(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -21346,11 +21744,17 @@ public V1PodTemplate patchNamespacedPodTemplate(String name, String namespace, V * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedPodTemplateWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedPodTemplateWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -21363,35 +21767,22 @@ public ApiResponse patchNamespacedPodTemplateWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodTemplateAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedPodTemplateAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicationController @@ -21402,64 +21793,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicationControllerCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -21476,14 +21867,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerValidateBef throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -21498,10 +21885,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerValidateBef * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicationController patchNamespacedReplicationController(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ReplicationController patchNamespacedReplicationController(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -21516,11 +21909,17 @@ public V1ReplicationController patchNamespacedReplicationController(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicationControllerWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicationControllerWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -21533,35 +21932,22 @@ public ApiResponse patchNamespacedReplicationController * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedReplicationControllerAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicationControllerScale @@ -21572,64 +21958,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicationControllerScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -21646,14 +22032,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerScaleValida throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -21668,10 +22050,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerScaleValida * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Scale patchNamespacedReplicationControllerScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Scale patchNamespacedReplicationControllerScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -21686,11 +22074,17 @@ public V1Scale patchNamespacedReplicationControllerScale(String name, String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -21703,35 +22097,22 @@ public ApiResponse patchNamespacedReplicationControllerScaleWithHttpInf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedReplicationControllerScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicationControllerStatus @@ -21742,64 +22123,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicationControllerStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarHeaderParams = new HashMap(); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -21816,14 +22197,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerStatusValid throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -21838,10 +22215,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerStatusValid * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ReplicationController patchNamespacedReplicationControllerStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ReplicationController patchNamespacedReplicationControllerStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -21856,11 +22239,17 @@ public V1ReplicationController patchNamespacedReplicationControllerStatus(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -21873,35 +22262,22 @@ public ApiResponse patchNamespacedReplicationController * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedReplicationControllerStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedResourceQuota @@ -21912,64 +22288,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedResourceQuotaCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceQuotaCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -21986,14 +22362,10 @@ private com.squareup.okhttp.Call patchNamespacedResourceQuotaValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -22008,10 +22380,16 @@ private com.squareup.okhttp.Call patchNamespacedResourceQuotaValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ResourceQuota patchNamespacedResourceQuota(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ResourceQuota patchNamespacedResourceQuota(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -22026,11 +22404,17 @@ public V1ResourceQuota patchNamespacedResourceQuota(String name, String namespac * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedResourceQuotaWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedResourceQuotaWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -22043,35 +22427,22 @@ public ApiResponse patchNamespacedResourceQuotaWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedResourceQuotaAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedResourceQuotaAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedResourceQuotaStatus @@ -22082,64 +22453,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedResourceQuotaStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedResourceQuotaStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -22156,14 +22527,10 @@ private com.squareup.okhttp.Call patchNamespacedResourceQuotaStatusValidateBefor throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedResourceQuotaStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -22178,10 +22545,16 @@ private com.squareup.okhttp.Call patchNamespacedResourceQuotaStatusValidateBefor * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ResourceQuota patchNamespacedResourceQuotaStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ResourceQuota patchNamespacedResourceQuotaStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -22196,11 +22569,17 @@ public V1ResourceQuota patchNamespacedResourceQuotaStatus(String name, String na * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -22213,35 +22592,22 @@ public ApiResponse patchNamespacedResourceQuotaStatusWithHttpIn * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedResourceQuotaStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedResourceQuotaStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedSecret @@ -22252,64 +22618,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedSecretCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedSecretCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedSecretValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedSecretValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -22326,14 +22692,10 @@ private com.squareup.okhttp.Call patchNamespacedSecretValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -22348,10 +22710,16 @@ private com.squareup.okhttp.Call patchNamespacedSecretValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Secret patchNamespacedSecret(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Secret patchNamespacedSecret(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -22366,11 +22734,17 @@ public V1Secret patchNamespacedSecret(String name, String namespace, V1Patch bod * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedSecretWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedSecretWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -22383,35 +22757,22 @@ public ApiResponse patchNamespacedSecretWithHttpInfo(String name, Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedSecretAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedSecretAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedService @@ -22422,64 +22783,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedServiceCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedServiceCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedServiceValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedServiceValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -22496,14 +22857,10 @@ private com.squareup.okhttp.Call patchNamespacedServiceValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedService(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -22518,10 +22875,16 @@ private com.squareup.okhttp.Call patchNamespacedServiceValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Service patchNamespacedService(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Service patchNamespacedService(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -22536,11 +22899,17 @@ public V1Service patchNamespacedService(String name, String namespace, V1Patch b * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedServiceWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedServiceWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -22553,35 +22922,22 @@ public ApiResponse patchNamespacedServiceWithHttpInfo(String name, St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedServiceAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedServiceAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedServiceAccount @@ -22592,64 +22948,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedServiceAccountCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedServiceAccountCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedServiceAccountValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -22666,14 +23022,10 @@ private com.squareup.okhttp.Call patchNamespacedServiceAccountValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -22688,10 +23040,16 @@ private com.squareup.okhttp.Call patchNamespacedServiceAccountValidateBeforeCall * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ServiceAccount patchNamespacedServiceAccount(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ServiceAccount patchNamespacedServiceAccount(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -22706,11 +23064,17 @@ public V1ServiceAccount patchNamespacedServiceAccount(String name, String namesp * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedServiceAccountWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedServiceAccountWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -22723,35 +23087,22 @@ public ApiResponse patchNamespacedServiceAccountWithHttpInfo(S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedServiceAccountAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedServiceAccountAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedServiceStatus @@ -22762,64 +23113,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedServiceStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedServiceStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedServiceStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -22836,14 +23187,10 @@ private com.squareup.okhttp.Call patchNamespacedServiceStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -22858,10 +23205,16 @@ private com.squareup.okhttp.Call patchNamespacedServiceStatusValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Service patchNamespacedServiceStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Service patchNamespacedServiceStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -22876,11 +23229,17 @@ public V1Service patchNamespacedServiceStatus(String name, String namespace, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedServiceStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedServiceStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -22893,35 +23252,22 @@ public ApiResponse patchNamespacedServiceStatusWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedServiceStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedServiceStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNode @@ -22931,63 +23277,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNodeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNodeValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -22999,14 +23345,10 @@ private com.squareup.okhttp.Call patchNodeValidateBeforeCall(String name, V1Patc throw new ApiException("Missing the required parameter 'body' when calling patchNode(Async)"); } - - com.squareup.okhttp.Call call = patchNodeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNodeCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -23020,10 +23362,16 @@ private com.squareup.okhttp.Call patchNodeValidateBeforeCall(String name, V1Patc * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Node patchNode(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Node patchNode(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -23037,11 +23385,17 @@ public V1Node patchNode(String name, V1Patch body, String pretty, String dryRun, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNodeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNodeWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23053,35 +23407,22 @@ public ApiResponse patchNodeWithHttpInfo(String name, V1Patch body, Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNodeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNodeAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNodeStatus @@ -23091,63 +23432,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNodeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNodeStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNodeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNodeStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -23159,14 +23500,10 @@ private com.squareup.okhttp.Call patchNodeStatusValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchNodeStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNodeStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNodeStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -23180,10 +23517,16 @@ private com.squareup.okhttp.Call patchNodeStatusValidateBeforeCall(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Node patchNodeStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Node patchNodeStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -23197,11 +23540,17 @@ public V1Node patchNodeStatus(String name, V1Patch body, String pretty, String d * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNodeStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNodeStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23213,35 +23562,22 @@ public ApiResponse patchNodeStatusWithHttpInfo(String name, V1Patch body * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNodeStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNodeStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPersistentVolume @@ -23251,63 +23587,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchPersistentVolumeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchPersistentVolumeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPersistentVolumeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPersistentVolumeValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -23319,14 +23655,10 @@ private com.squareup.okhttp.Call patchPersistentVolumeValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchPersistentVolume(Async)"); } - - com.squareup.okhttp.Call call = patchPersistentVolumeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPersistentVolumeCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -23340,10 +23672,16 @@ private com.squareup.okhttp.Call patchPersistentVolumeValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolume patchPersistentVolume(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1PersistentVolume patchPersistentVolume(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -23357,11 +23695,17 @@ public V1PersistentVolume patchPersistentVolume(String name, V1Patch body, Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchPersistentVolumeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchPersistentVolumeWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23373,35 +23717,22 @@ public ApiResponse patchPersistentVolumeWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call patchPersistentVolumeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchPersistentVolumeAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPersistentVolumeStatus @@ -23411,63 +23742,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchPersistentVolumeStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchPersistentVolumeStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPersistentVolumeStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPersistentVolumeStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -23479,14 +23810,10 @@ private com.squareup.okhttp.Call patchPersistentVolumeStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling patchPersistentVolumeStatus(Async)"); } - - com.squareup.okhttp.Call call = patchPersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -23500,10 +23827,16 @@ private com.squareup.okhttp.Call patchPersistentVolumeStatusValidateBeforeCall(S * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PersistentVolume patchPersistentVolumeStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1PersistentVolume patchPersistentVolumeStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -23517,11 +23850,17 @@ public V1PersistentVolume patchPersistentVolumeStatus(String name, V1Patch body, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchPersistentVolumeStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchPersistentVolumeStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23533,105 +23872,82 @@ public ApiResponse patchPersistentVolumeStatusWithHttpInfo(S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPersistentVolumeStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchPersistentVolumeStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readComponentStatus * @param name name of the ComponentStatus (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readComponentStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readComponentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/componentstatuses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readComponentStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readComponentStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readComponentStatus(Async)"); } - - com.squareup.okhttp.Call call = readComponentStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readComponentStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -23641,10 +23957,16 @@ private com.squareup.okhttp.Call readComponentStatusValidateBeforeCall(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ComponentStatus * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ComponentStatus readComponentStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readComponentStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readComponentStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -23654,11 +23976,17 @@ public V1ComponentStatus readComponentStatus(String name, String pretty) throws * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ComponentStatus> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readComponentStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readComponentStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readComponentStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23666,35 +23994,22 @@ public ApiResponse readComponentStatusWithHttpInfo(String nam * read the specified ComponentStatus * @param name name of the ComponentStatus (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readComponentStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readComponentStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readComponentStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readComponentStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespace @@ -23702,75 +24017,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespaceCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespaceCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespaceValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespaceValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespace(Async)"); } - - com.squareup.okhttp.Call call = readNamespaceCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespaceCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -23782,10 +24091,16 @@ private com.squareup.okhttp.Call readNamespaceValidateBeforeCall(String name, St * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Namespace readNamespace(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespaceWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespaceWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -23797,11 +24112,17 @@ public V1Namespace readNamespace(String name, String pretty, Boolean exact, Bool * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespaceWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespaceValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespaceValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23811,105 +24132,82 @@ public ApiResponse readNamespaceWithHttpInfo(String name, String pr * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespaceAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespaceAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespaceValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespaceValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespaceStatus * @param name name of the Namespace (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespaceStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespaceStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespaceStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespaceStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNamespaceStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespaceStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespaceStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -23919,10 +24217,16 @@ private com.squareup.okhttp.Call readNamespaceStatusValidateBeforeCall(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Namespace readNamespaceStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readNamespaceStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespaceStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -23932,11 +24236,17 @@ public V1Namespace readNamespaceStatus(String name, String pretty) throws ApiExc * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespaceStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespaceStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readNamespaceStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -23944,35 +24254,22 @@ public ApiResponse readNamespaceStatusWithHttpInfo(String name, Str * read status of the specified Namespace * @param name name of the Namespace (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespaceStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespaceStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespaceStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespaceStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedConfigMap @@ -23981,62 +24278,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedConfigMapCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedConfigMapCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedConfigMapValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24048,14 +24343,10 @@ private com.squareup.okhttp.Call readNamespacedConfigMapValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedConfigMapCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedConfigMapCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -24068,10 +24359,16 @@ private com.squareup.okhttp.Call readNamespacedConfigMapValidateBeforeCall(Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ConfigMap readNamespacedConfigMap(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedConfigMapWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -24084,11 +24381,17 @@ public V1ConfigMap readNamespacedConfigMap(String name, String namespace, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedConfigMapWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -24099,35 +24402,22 @@ public ApiResponse readNamespacedConfigMapWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedConfigMapAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedConfigMapAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedConfigMapValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedEndpoints @@ -24136,62 +24426,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedEndpointsCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedEndpointsCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedEndpointsValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24203,14 +24491,10 @@ private com.squareup.okhttp.Call readNamespacedEndpointsValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedEndpointsCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedEndpointsCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -24223,10 +24507,16 @@ private com.squareup.okhttp.Call readNamespacedEndpointsValidateBeforeCall(Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Endpoints readNamespacedEndpoints(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedEndpointsWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -24239,11 +24529,17 @@ public V1Endpoints readNamespacedEndpoints(String name, String namespace, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedEndpointsWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -24254,35 +24550,22 @@ public ApiResponse readNamespacedEndpointsWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedEndpointsAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedEndpointsAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedEndpointsValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedEvent @@ -24291,62 +24574,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedEventCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24358,14 +24639,10 @@ private com.squareup.okhttp.Call readNamespacedEventValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedEventCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedEventCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -24378,10 +24655,16 @@ private com.squareup.okhttp.Call readNamespacedEventValidateBeforeCall(String na * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Event readNamespacedEvent(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedEventWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedEventWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -24394,11 +24677,17 @@ public V1Event readNamespacedEvent(String name, String namespace, String pretty, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedEventWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -24409,35 +24698,22 @@ public ApiResponse readNamespacedEventWithHttpInfo(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedEventAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedEventAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedLimitRange @@ -24446,62 +24722,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedLimitRangeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedLimitRangeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedLimitRangeValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24513,14 +24787,10 @@ private com.squareup.okhttp.Call readNamespacedLimitRangeValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedLimitRange(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedLimitRangeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedLimitRangeCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -24533,10 +24803,16 @@ private com.squareup.okhttp.Call readNamespacedLimitRangeValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1LimitRange readNamespacedLimitRange(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedLimitRangeWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -24549,11 +24825,17 @@ public V1LimitRange readNamespacedLimitRange(String name, String namespace, Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedLimitRangeWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -24564,35 +24846,22 @@ public ApiResponse readNamespacedLimitRangeWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedLimitRangeAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedLimitRangeAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedLimitRangeValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPersistentVolumeClaim @@ -24601,62 +24870,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPersistentVolumeClaimCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24668,14 +24935,10 @@ private com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimValidateBefo throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPersistentVolumeClaimCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -24688,10 +24951,16 @@ private com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimValidateBefo * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1PersistentVolumeClaim readNamespacedPersistentVolumeClaim(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -24704,11 +24973,17 @@ public V1PersistentVolumeClaim readNamespacedPersistentVolumeClaim(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -24719,93 +24994,74 @@ public ApiResponse readNamespacedPersistentVolumeClaimW * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedPersistentVolumeClaimAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPersistentVolumeClaimStatus * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24817,14 +25073,10 @@ private com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimStatusValida throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPersistentVolumeClaimStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPersistentVolumeClaimStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -24835,10 +25087,16 @@ private com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimStatusValida * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1PersistentVolumeClaim readNamespacedPersistentVolumeClaimStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -24849,11 +25107,17 @@ public V1PersistentVolumeClaim readNamespacedPersistentVolumeClaimStatus(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -24862,35 +25126,22 @@ public ApiResponse readNamespacedPersistentVolumeClaimS * @param name name of the PersistentVolumeClaim (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPod @@ -24899,62 +25150,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPodCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -24966,14 +25215,10 @@ private com.squareup.okhttp.Call readNamespacedPodValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -24986,10 +25231,16 @@ private com.squareup.okhttp.Call readNamespacedPodValidateBeforeCall(String name * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Pod readNamespacedPod(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedPodWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -25002,11 +25253,17 @@ public V1Pod readNamespacedPod(String name, String namespace, String pretty, Boo * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedPodValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25017,35 +25274,22 @@ public ApiResponse readNamespacedPodWithHttpInfo(String name, String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedPodAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPodLog @@ -25059,72 +25303,80 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodLogCall(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/log" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (container != null) - localVarQueryParams.addAll(apiClient.parameterToPair("container", container)); - if (follow != null) - localVarQueryParams.addAll(apiClient.parameterToPair("follow", follow)); - if (limitBytes != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limitBytes", limitBytes)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (previous != null) - localVarQueryParams.addAll(apiClient.parameterToPair("previous", previous)); - if (sinceSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("sinceSeconds", sinceSeconds)); - if (tailLines != null) - localVarQueryParams.addAll(apiClient.parameterToPair("tailLines", tailLines)); - if (timestamps != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timestamps", timestamps)); + if (container != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("container", container)); + } - Map localVarHeaderParams = new HashMap(); + if (follow != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("follow", follow)); + } - Map localVarFormParams = new HashMap(); + if (limitBytes != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limitBytes", limitBytes)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (previous != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("previous", previous)); + } + + if (sinceSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("sinceSeconds", sinceSeconds)); + } + + if (tailLines != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("tailLines", tailLines)); + } + + if (timestamps != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timestamps", timestamps)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "text/plain", "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodLogValidateBeforeCall(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -25136,14 +25388,10 @@ private com.squareup.okhttp.Call readNamespacedPodLogValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodLog(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodLogCall(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodLogCall(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); + return localVarCall; + } /** @@ -25161,10 +25409,16 @@ private com.squareup.okhttp.Call readNamespacedPodLogValidateBeforeCall(String n * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @return String * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public String readNamespacedPodLog(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps) throws ApiException { - ApiResponse resp = readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodLogWithHttpInfo(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps); + return localVarResp.getData(); } /** @@ -25182,11 +25436,17 @@ public String readNamespacedPodLog(String name, String namespace, String contain * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) * @return ApiResponse<String> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodLogWithHttpInfo(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null, null); + okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25202,93 +25462,74 @@ public ApiResponse readNamespacedPodLogWithHttpInfo(String name, String * @param sinceSeconds A relative time in seconds before the current time from which to show logs. If this value precedes the time a pod was started, only logs since the pod start will be returned. If this value is in the future, no logs will be returned. Only one of sinceSeconds or sinceTime may be specified. (optional) * @param tailLines If set, the number of lines from the end of the logs to show. If not specified, logs are shown from the creation of the container or sinceSeconds or sinceTime (optional) * @param timestamps If true, add an RFC3339 or RFC3339Nano timestamp at the beginning of every line of log output. Defaults to false. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodLogAsync(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedPodLogAsync(String name, String namespace, String container, Boolean follow, Integer limitBytes, String pretty, Boolean previous, Integer sinceSeconds, Integer tailLines, Boolean timestamps, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodLogValidateBeforeCall(name, namespace, container, follow, limitBytes, pretty, previous, sinceSeconds, tailLines, timestamps, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPodStatus * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPodStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -25300,14 +25541,10 @@ private com.squareup.okhttp.Call readNamespacedPodStatusValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -25318,10 +25555,16 @@ private com.squareup.okhttp.Call readNamespacedPodStatusValidateBeforeCall(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Pod readNamespacedPodStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedPodStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -25332,11 +25575,17 @@ public V1Pod readNamespacedPodStatus(String name, String namespace, String prett * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25345,35 +25594,22 @@ public ApiResponse readNamespacedPodStatusWithHttpInfo(String name, Strin * @param name name of the Pod (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedPodStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPodTemplate @@ -25382,62 +25618,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPodTemplateCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodTemplateCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodTemplateValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -25449,14 +25683,10 @@ private com.squareup.okhttp.Call readNamespacedPodTemplateValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodTemplateCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodTemplateCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -25469,10 +25699,16 @@ private com.squareup.okhttp.Call readNamespacedPodTemplateValidateBeforeCall(Str * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1PodTemplate readNamespacedPodTemplate(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodTemplateWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -25485,11 +25721,17 @@ public V1PodTemplate readNamespacedPodTemplate(String name, String namespace, St * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodTemplateWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25500,35 +25742,22 @@ public ApiResponse readNamespacedPodTemplateWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodTemplateAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedPodTemplateAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodTemplateValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicationController @@ -25537,62 +25766,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicationControllerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicationControllerCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -25604,14 +25831,10 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerValidateBefo throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicationControllerCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicationControllerCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -25624,10 +25847,16 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerValidateBefo * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicationController readNamespacedReplicationController(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicationControllerWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -25640,11 +25869,17 @@ public V1ReplicationController readNamespacedReplicationController(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicationControllerWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25655,93 +25890,74 @@ public ApiResponse readNamespacedReplicationControllerW * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicationControllerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedReplicationControllerAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicationControllerValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicationControllerScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicationControllerScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicationControllerScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -25753,14 +25969,10 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerScaleValidat throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicationControllerScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -25771,10 +25983,16 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerScaleValidat * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Scale readNamespacedReplicationControllerScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -25785,11 +26003,17 @@ public V1Scale readNamespacedReplicationControllerScale(String name, String name * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25798,93 +26022,74 @@ public ApiResponse readNamespacedReplicationControllerScaleWithHttpInfo * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicationControllerScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicationControllerScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicationControllerStatus * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicationControllerStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicationControllerStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -25896,14 +26101,10 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerStatusValida throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicationControllerStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -25914,10 +26115,16 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerStatusValida * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ReplicationController readNamespacedReplicationControllerStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -25928,11 +26135,17 @@ public V1ReplicationController readNamespacedReplicationControllerStatus(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -25941,35 +26154,22 @@ public ApiResponse readNamespacedReplicationControllerS * @param name name of the ReplicationController (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicationControllerStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicationControllerStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedResourceQuota @@ -25978,62 +26178,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceQuotaCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -26045,14 +26243,10 @@ private com.squareup.okhttp.Call readNamespacedResourceQuotaValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedResourceQuotaCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedResourceQuotaCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -26065,10 +26259,16 @@ private com.squareup.okhttp.Call readNamespacedResourceQuotaValidateBeforeCall(S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ResourceQuota readNamespacedResourceQuota(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedResourceQuotaWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -26081,11 +26281,17 @@ public V1ResourceQuota readNamespacedResourceQuota(String name, String namespace * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedResourceQuotaWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26096,93 +26302,74 @@ public ApiResponse readNamespacedResourceQuotaWithHttpInfo(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedResourceQuotaAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedResourceQuotaAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedResourceQuotaValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedResourceQuotaStatus * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedResourceQuotaStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedResourceQuotaStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -26194,14 +26381,10 @@ private com.squareup.okhttp.Call readNamespacedResourceQuotaStatusValidateBefore throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedResourceQuotaStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedResourceQuotaStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -26212,10 +26395,16 @@ private com.squareup.okhttp.Call readNamespacedResourceQuotaStatusValidateBefore * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ResourceQuota readNamespacedResourceQuotaStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -26226,11 +26415,17 @@ public V1ResourceQuota readNamespacedResourceQuotaStatus(String name, String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26239,35 +26434,22 @@ public ApiResponse readNamespacedResourceQuotaStatusWithHttpInf * @param name name of the ResourceQuota (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedResourceQuotaStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedResourceQuotaStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedSecret @@ -26276,62 +26458,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedSecretCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedSecretCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedSecretValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -26343,14 +26523,10 @@ private com.squareup.okhttp.Call readNamespacedSecretValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedSecretCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedSecretCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -26363,10 +26539,16 @@ private com.squareup.okhttp.Call readNamespacedSecretValidateBeforeCall(String n * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Secret readNamespacedSecret(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedSecretWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedSecretWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -26379,11 +26561,17 @@ public V1Secret readNamespacedSecret(String name, String namespace, String prett * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedSecretWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26394,35 +26582,22 @@ public ApiResponse readNamespacedSecretWithHttpInfo(String name, Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedSecretAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedSecretAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedSecretValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedService @@ -26431,62 +26606,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedServiceCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedServiceCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedServiceValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -26498,14 +26671,10 @@ private com.squareup.okhttp.Call readNamespacedServiceValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedService(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedServiceCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedServiceCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -26518,10 +26687,16 @@ private com.squareup.okhttp.Call readNamespacedServiceValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Service readNamespacedService(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedServiceWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedServiceWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -26534,11 +26709,17 @@ public V1Service readNamespacedService(String name, String namespace, String pre * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedServiceWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26549,35 +26730,22 @@ public ApiResponse readNamespacedServiceWithHttpInfo(String name, Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes - * @return The request call - * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call readNamespacedServiceAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedServiceAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedServiceValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedServiceAccount @@ -26586,62 +26754,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedServiceAccountCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedServiceAccountCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedServiceAccountValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -26653,14 +26819,10 @@ private com.squareup.okhttp.Call readNamespacedServiceAccountValidateBeforeCall( throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedServiceAccountCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedServiceAccountCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -26673,10 +26835,16 @@ private com.squareup.okhttp.Call readNamespacedServiceAccountValidateBeforeCall( * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ServiceAccount readNamespacedServiceAccount(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedServiceAccountWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -26689,11 +26857,17 @@ public V1ServiceAccount readNamespacedServiceAccount(String name, String namespa * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedServiceAccountWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26704,93 +26878,74 @@ public ApiResponse readNamespacedServiceAccountWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedServiceAccountAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedServiceAccountAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedServiceAccountValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedServiceStatus * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedServiceStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedServiceStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedServiceStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedServiceStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -26802,14 +26957,10 @@ private com.squareup.okhttp.Call readNamespacedServiceStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedServiceStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedServiceStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -26820,10 +26971,16 @@ private com.squareup.okhttp.Call readNamespacedServiceStatusValidateBeforeCall(S * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Service readNamespacedServiceStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedServiceStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -26834,11 +26991,17 @@ public V1Service readNamespacedServiceStatus(String name, String namespace, Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedServiceStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26847,35 +27010,22 @@ public ApiResponse readNamespacedServiceStatusWithHttpInfo(String nam * @param name name of the Service (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedServiceStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedServiceStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedServiceStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNode @@ -26883,75 +27033,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNodeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNodeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNodeValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNodeValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNode(Async)"); } - - com.squareup.okhttp.Call call = readNodeCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNodeCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -26963,10 +27107,16 @@ private com.squareup.okhttp.Call readNodeValidateBeforeCall(String name, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Node readNode(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNodeWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNodeWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -26978,11 +27128,17 @@ public V1Node readNode(String name, String pretty, Boolean exact, Boolean export * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNodeWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNodeValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNodeValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -26992,105 +27148,82 @@ public ApiResponse readNodeWithHttpInfo(String name, String pretty, Bool * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNodeAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNodeAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNodeValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNodeValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNodeStatus * @param name name of the Node (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNodeStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNodeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNodeStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNodeStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readNodeStatus(Async)"); } - - com.squareup.okhttp.Call call = readNodeStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNodeStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -27100,10 +27233,16 @@ private com.squareup.okhttp.Call readNodeStatusValidateBeforeCall(String name, S * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Node readNodeStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readNodeStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readNodeStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -27113,11 +27252,17 @@ public V1Node readNodeStatus(String name, String pretty) throws ApiException { * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNodeStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNodeStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readNodeStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -27125,35 +27270,22 @@ public ApiResponse readNodeStatusWithHttpInfo(String name, String pretty * read status of the specified Node * @param name name of the Node (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNodeStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNodeStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNodeStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNodeStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPersistentVolume @@ -27161,75 +27293,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readPersistentVolumeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPersistentVolumeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPersistentVolumeValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPersistentVolumeValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPersistentVolume(Async)"); } - - com.squareup.okhttp.Call call = readPersistentVolumeCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPersistentVolumeCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -27241,10 +27367,16 @@ private com.squareup.okhttp.Call readPersistentVolumeValidateBeforeCall(String n * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1PersistentVolume readPersistentVolume(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readPersistentVolumeWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readPersistentVolumeWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -27256,11 +27388,17 @@ public V1PersistentVolume readPersistentVolume(String name, String pretty, Boole * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPersistentVolumeWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readPersistentVolumeValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readPersistentVolumeValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -27270,105 +27408,82 @@ public ApiResponse readPersistentVolumeWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPersistentVolumeAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPersistentVolumeAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPersistentVolumeValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPersistentVolumeValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPersistentVolumeStatus * @param name name of the PersistentVolume (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readPersistentVolumeStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPersistentVolumeStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPersistentVolumeStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPersistentVolumeStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPersistentVolumeStatus(Async)"); } - - com.squareup.okhttp.Call call = readPersistentVolumeStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPersistentVolumeStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -27378,10 +27493,16 @@ private com.squareup.okhttp.Call readPersistentVolumeStatusValidateBeforeCall(St * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1PersistentVolume readPersistentVolumeStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readPersistentVolumeStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readPersistentVolumeStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -27391,11 +27512,17 @@ public V1PersistentVolume readPersistentVolumeStatus(String name, String pretty) * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPersistentVolumeStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readPersistentVolumeStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readPersistentVolumeStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -27403,35 +27530,22 @@ public ApiResponse readPersistentVolumeStatusWithHttpInfo(St * read status of the specified PersistentVolume * @param name name of the PersistentVolume (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPersistentVolumeStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPersistentVolumeStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPersistentVolumeStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPersistentVolumeStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespace @@ -27440,61 +27554,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespaceCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespaceCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespaceValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -27506,14 +27619,10 @@ private com.squareup.okhttp.Call replaceNamespaceValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceNamespace(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespaceCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespaceCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -27526,10 +27635,17 @@ private com.squareup.okhttp.Call replaceNamespaceValidateBeforeCall(String name, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Namespace replaceNamespace(String name, V1Namespace body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespaceWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -27542,11 +27658,18 @@ public V1Namespace replaceNamespace(String name, V1Namespace body, String pretty * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespaceWithHttpInfo(String name, V1Namespace body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -27557,35 +27680,23 @@ public ApiResponse replaceNamespaceWithHttpInfo(String name, V1Name * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespaceAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespaceAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespaceValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespaceFinalize @@ -27594,61 +27705,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespaceFinalizeCall(String name, V1Namespace body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/finalize" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1Namespace body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespaceFinalizeValidateBeforeCall(String name, V1Namespace body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -27660,14 +27770,10 @@ private com.squareup.okhttp.Call replaceNamespaceFinalizeValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespaceFinalize(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespaceFinalizeCall(name, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespaceFinalizeCall(name, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -27680,10 +27786,17 @@ private com.squareup.okhttp.Call replaceNamespaceFinalizeValidateBeforeCall(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Namespace replaceNamespaceFinalize(String name, V1Namespace body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = replaceNamespaceFinalizeWithHttpInfo(name, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -27696,11 +27809,18 @@ public V1Namespace replaceNamespaceFinalize(String name, V1Namespace body, Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespaceFinalizeWithHttpInfo(String name, V1Namespace body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -27711,35 +27831,23 @@ public ApiResponse replaceNamespaceFinalizeWithHttpInfo(String name * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespaceFinalizeAsync(String name, V1Namespace body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespaceFinalizeValidateBeforeCall(name, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespaceStatus @@ -27748,61 +27856,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespaceStatusCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespaceStatusCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespaceStatusValidateBeforeCall(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -27814,14 +27921,10 @@ private com.squareup.okhttp.Call replaceNamespaceStatusValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespaceStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespaceStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -27834,10 +27937,17 @@ private com.squareup.okhttp.Call replaceNamespaceStatusValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Namespace * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Namespace replaceNamespaceStatus(String name, V1Namespace body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespaceStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -27850,11 +27960,18 @@ public V1Namespace replaceNamespaceStatus(String name, V1Namespace body, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Namespace> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespaceStatusWithHttpInfo(String name, V1Namespace body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -27865,35 +27982,23 @@ public ApiResponse replaceNamespaceStatusWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespaceStatusAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespaceStatusAsync(String name, V1Namespace body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespaceStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedConfigMap @@ -27903,62 +28008,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedConfigMapCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedConfigMapCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/configmaps/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedConfigMapValidateBeforeCall(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -27975,14 +28079,10 @@ private com.squareup.okhttp.Call replaceNamespacedConfigMapValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedConfigMap(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedConfigMapCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -27996,10 +28096,17 @@ private com.squareup.okhttp.Call replaceNamespacedConfigMapValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ConfigMap * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ConfigMap replaceNamespacedConfigMap(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedConfigMapWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28013,11 +28120,18 @@ public V1ConfigMap replaceNamespacedConfigMap(String name, String namespace, V1C * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ConfigMap> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedConfigMapWithHttpInfo(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -28029,35 +28143,23 @@ public ApiResponse replaceNamespacedConfigMapWithHttpInfo(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedConfigMapAsync(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedConfigMapAsync(String name, String namespace, V1ConfigMap body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedConfigMapValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedEndpoints @@ -28067,62 +28169,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedEndpointsCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedEndpointsCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/endpoints/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedEndpointsValidateBeforeCall(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -28139,14 +28240,10 @@ private com.squareup.okhttp.Call replaceNamespacedEndpointsValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEndpoints(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedEndpointsCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -28160,10 +28257,17 @@ private com.squareup.okhttp.Call replaceNamespacedEndpointsValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Endpoints * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Endpoints replaceNamespacedEndpoints(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedEndpointsWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28177,11 +28281,18 @@ public V1Endpoints replaceNamespacedEndpoints(String name, String namespace, V1E * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Endpoints> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedEndpointsWithHttpInfo(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -28193,35 +28304,23 @@ public ApiResponse replaceNamespacedEndpointsWithHttpInfo(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedEndpointsAsync(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespacedEndpointsAsync(String name, String namespace, V1Endpoints body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedEndpointsValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedEvent @@ -28231,62 +28330,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedEventCall(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -28303,14 +28401,10 @@ private com.squareup.okhttp.Call replaceNamespacedEventValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -28324,10 +28418,17 @@ private com.squareup.okhttp.Call replaceNamespacedEventValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Event replaceNamespacedEvent(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28341,11 +28442,18 @@ public V1Event replaceNamespacedEvent(String name, String namespace, V1Event bod * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedEventWithHttpInfo(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -28357,35 +28465,23 @@ public ApiResponse replaceNamespacedEventWithHttpInfo(String name, Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedEventAsync(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, V1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedLimitRange @@ -28395,62 +28491,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedLimitRangeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedLimitRangeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/limitranges/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedLimitRangeValidateBeforeCall(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -28467,14 +28562,10 @@ private com.squareup.okhttp.Call replaceNamespacedLimitRangeValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedLimitRange(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedLimitRangeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -28488,10 +28579,17 @@ private com.squareup.okhttp.Call replaceNamespacedLimitRangeValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1LimitRange * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1LimitRange replaceNamespacedLimitRange(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedLimitRangeWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28505,11 +28603,18 @@ public V1LimitRange replaceNamespacedLimitRange(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1LimitRange> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedLimitRangeWithHttpInfo(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -28521,35 +28626,23 @@ public ApiResponse replaceNamespacedLimitRangeWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedLimitRangeAsync(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { + public okhttp3.Call replaceNamespacedLimitRangeAsync(String name, String namespace, V1LimitRange body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedLimitRangeValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPersistentVolumeClaim @@ -28559,62 +28652,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPersistentVolumeClaimCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -28631,14 +28723,10 @@ private com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimValidateB throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaim(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -28652,10 +28740,17 @@ private com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimValidateB * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaim(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPersistentVolumeClaimWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28669,11 +28764,18 @@ public V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaim(String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPersistentVolumeClaimWithHttpInfo(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -28685,35 +28787,23 @@ public ApiResponse replaceNamespacedPersistentVolumeCla * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedPersistentVolumeClaimAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPersistentVolumeClaimStatus @@ -28723,62 +28813,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/persistentvolumeclaims/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -28795,14 +28884,10 @@ private com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimStatusVal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPersistentVolumeClaimStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -28816,10 +28901,17 @@ private com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimStatusVal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PersistentVolumeClaim * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaimStatus(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28833,11 +28925,18 @@ public V1PersistentVolumeClaim replaceNamespacedPersistentVolumeClaimStatus(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PersistentVolumeClaim> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPersistentVolumeClaimStatusWithHttpInfo(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -28849,35 +28948,23 @@ public ApiResponse replaceNamespacedPersistentVolumeCla * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespacedPersistentVolumeClaimStatusAsync(String name, String namespace, V1PersistentVolumeClaim body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPersistentVolumeClaimStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPod @@ -28887,62 +28974,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPodCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPodValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPodValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -28959,14 +29045,10 @@ private com.squareup.okhttp.Call replaceNamespacedPodValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPod(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPodCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -28980,10 +29062,17 @@ private com.squareup.okhttp.Call replaceNamespacedPodValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Pod replaceNamespacedPod(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPodWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -28997,11 +29086,18 @@ public V1Pod replaceNamespacedPod(String name, String namespace, V1Pod body, Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPodWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29013,35 +29109,23 @@ public ApiResponse replaceNamespacedPodWithHttpInfo(String name, String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedPodAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPodValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPodStatus @@ -29051,62 +29135,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPodStatusCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodStatusCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPodStatusValidateBeforeCall(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -29123,14 +29206,10 @@ private com.squareup.okhttp.Call replaceNamespacedPodStatusValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPodStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -29144,10 +29223,17 @@ private com.squareup.okhttp.Call replaceNamespacedPodStatusValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Pod * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Pod replaceNamespacedPodStatus(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPodStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -29161,11 +29247,18 @@ public V1Pod replaceNamespacedPodStatus(String name, String namespace, V1Pod bod * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Pod> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPodStatusWithHttpInfo(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29177,35 +29270,23 @@ public ApiResponse replaceNamespacedPodStatusWithHttpInfo(String name, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodStatusAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedPodStatusAsync(String name, String namespace, V1Pod body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPodStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPodTemplate @@ -29215,62 +29296,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPodTemplateCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodTemplateCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/podtemplates/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPodTemplateValidateBeforeCall(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -29287,14 +29367,10 @@ private com.squareup.okhttp.Call replaceNamespacedPodTemplateValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodTemplate(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPodTemplateCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -29308,10 +29384,17 @@ private com.squareup.okhttp.Call replaceNamespacedPodTemplateValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PodTemplate * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1PodTemplate replaceNamespacedPodTemplate(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPodTemplateWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -29325,11 +29408,18 @@ public V1PodTemplate replaceNamespacedPodTemplate(String name, String namespace, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PodTemplate> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPodTemplateWithHttpInfo(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29341,35 +29431,23 @@ public ApiResponse replaceNamespacedPodTemplateWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodTemplateAsync(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedPodTemplateAsync(String name, String namespace, V1PodTemplate body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPodTemplateValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicationController @@ -29379,62 +29457,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicationControllerCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -29451,14 +29528,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerValidateB throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationController(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -29472,10 +29545,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerValidateB * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ReplicationController replaceNamespacedReplicationController(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicationControllerWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -29489,11 +29569,18 @@ public V1ReplicationController replaceNamespacedReplicationController(String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicationControllerWithHttpInfo(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29505,35 +29592,23 @@ public ApiResponse replaceNamespacedReplicationControll * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespacedReplicationControllerAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicationControllerScale @@ -29543,62 +29618,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicationControllerScaleCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerScaleValidateBeforeCall(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -29615,14 +29689,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerScaleVali throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -29636,10 +29706,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerScaleVali * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Scale replaceNamespacedReplicationControllerScale(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicationControllerScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -29653,11 +29730,18 @@ public V1Scale replaceNamespacedReplicationControllerScale(String name, String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicationControllerScaleWithHttpInfo(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29669,35 +29753,23 @@ public ApiResponse replaceNamespacedReplicationControllerScaleWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedReplicationControllerScaleAsync(String name, String namespace, V1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicationControllerStatus @@ -29707,62 +29779,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerStatusCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicationControllerStatusCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/replicationcontrollers/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerStatusValidateBeforeCall(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -29779,14 +29850,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerStatusVal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - - + + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -29800,10 +29867,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerStatusVal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ReplicationController * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ReplicationController replaceNamespacedReplicationControllerStatus(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicationControllerStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -29817,11 +29891,18 @@ public V1ReplicationController replaceNamespacedReplicationControllerStatus(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ReplicationController> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicationControllerStatusWithHttpInfo(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29833,35 +29914,23 @@ public ApiResponse replaceNamespacedReplicationControll * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerStatusAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespacedReplicationControllerStatusAsync(String name, String namespace, V1ReplicationController body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedResourceQuota @@ -29871,62 +29940,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedResourceQuotaCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceQuotaCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -29943,14 +30011,10 @@ private com.squareup.okhttp.Call replaceNamespacedResourceQuotaValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceQuota(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedResourceQuotaCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -29964,10 +30028,17 @@ private com.squareup.okhttp.Call replaceNamespacedResourceQuotaValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ResourceQuota replaceNamespacedResourceQuota(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedResourceQuotaWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -29981,11 +30052,18 @@ public V1ResourceQuota replaceNamespacedResourceQuota(String name, String namesp * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedResourceQuotaWithHttpInfo(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -29997,35 +30075,23 @@ public ApiResponse replaceNamespacedResourceQuotaWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedResourceQuotaAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedResourceQuotaAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedResourceQuotaValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedResourceQuotaStatus @@ -30035,62 +30101,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedResourceQuotaStatusCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedResourceQuotaStatusCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/resourcequotas/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedResourceQuotaStatusValidateBeforeCall(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -30107,14 +30172,10 @@ private com.squareup.okhttp.Call replaceNamespacedResourceQuotaStatusValidateBef throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedResourceQuotaStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -30128,10 +30189,17 @@ private com.squareup.okhttp.Call replaceNamespacedResourceQuotaStatusValidateBef * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ResourceQuota * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ResourceQuota replaceNamespacedResourceQuotaStatus(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedResourceQuotaStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -30145,11 +30213,18 @@ public V1ResourceQuota replaceNamespacedResourceQuotaStatus(String name, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ResourceQuota> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedResourceQuotaStatusWithHttpInfo(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -30161,35 +30236,23 @@ public ApiResponse replaceNamespacedResourceQuotaStatusWithHttp * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedResourceQuotaStatusAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedResourceQuotaStatusAsync(String name, String namespace, V1ResourceQuota body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedResourceQuotaStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedSecret @@ -30199,62 +30262,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedSecretCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedSecretCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/secrets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedSecretValidateBeforeCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedSecretValidateBeforeCall(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -30271,14 +30333,10 @@ private com.squareup.okhttp.Call replaceNamespacedSecretValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedSecret(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedSecretCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -30292,10 +30350,17 @@ private com.squareup.okhttp.Call replaceNamespacedSecretValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Secret * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Secret replaceNamespacedSecret(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedSecretWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -30309,11 +30374,18 @@ public V1Secret replaceNamespacedSecret(String name, String namespace, V1Secret * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Secret> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedSecretWithHttpInfo(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -30325,35 +30397,23 @@ public ApiResponse replaceNamespacedSecretWithHttpInfo(String name, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedSecretAsync(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedSecretAsync(String name, String namespace, V1Secret body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedSecretValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedService @@ -30363,62 +30423,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedServiceCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedServiceCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedServiceValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedServiceValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -30435,14 +30494,10 @@ private com.squareup.okhttp.Call replaceNamespacedServiceValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedService(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedServiceCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -30456,10 +30511,17 @@ private com.squareup.okhttp.Call replaceNamespacedServiceValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Service replaceNamespacedService(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedServiceWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -30473,11 +30535,18 @@ public V1Service replaceNamespacedService(String name, String namespace, V1Servi * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedServiceWithHttpInfo(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -30489,35 +30558,23 @@ public ApiResponse replaceNamespacedServiceWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedServiceAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespacedServiceAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedServiceValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedServiceAccount @@ -30527,62 +30584,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedServiceAccountCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedServiceAccountCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/serviceaccounts/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedServiceAccountValidateBeforeCall(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -30599,14 +30655,10 @@ private com.squareup.okhttp.Call replaceNamespacedServiceAccountValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedServiceAccount(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedServiceAccountCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -30620,10 +30672,17 @@ private com.squareup.okhttp.Call replaceNamespacedServiceAccountValidateBeforeCa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ServiceAccount * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ServiceAccount replaceNamespacedServiceAccount(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedServiceAccountWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -30637,11 +30696,18 @@ public V1ServiceAccount replaceNamespacedServiceAccount(String name, String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ServiceAccount> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedServiceAccountWithHttpInfo(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -30653,35 +30719,23 @@ public ApiResponse replaceNamespacedServiceAccountWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedServiceAccountAsync(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedServiceAccountAsync(String name, String namespace, V1ServiceAccount body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedServiceAccountValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedServiceStatus @@ -30691,62 +30745,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedServiceStatusCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedServiceStatusCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedServiceStatusValidateBeforeCall(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -30763,14 +30816,10 @@ private com.squareup.okhttp.Call replaceNamespacedServiceStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedServiceStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedServiceStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -30784,10 +30833,17 @@ private com.squareup.okhttp.Call replaceNamespacedServiceStatusValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Service * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Service replaceNamespacedServiceStatus(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedServiceStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -30801,11 +30857,18 @@ public V1Service replaceNamespacedServiceStatus(String name, String namespace, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Service> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedServiceStatusWithHttpInfo(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -30817,35 +30880,23 @@ public ApiResponse replaceNamespacedServiceStatusWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedServiceStatusAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { + public okhttp3.Call replaceNamespacedServiceStatusAsync(String name, String namespace, V1Service body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedServiceStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNode @@ -30854,61 +30905,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNodeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNodeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNodeValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNodeValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -30920,14 +30970,10 @@ private com.squareup.okhttp.Call replaceNodeValidateBeforeCall(String name, V1No throw new ApiException("Missing the required parameter 'body' when calling replaceNode(Async)"); } - - com.squareup.okhttp.Call call = replaceNodeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNodeCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -30940,10 +30986,17 @@ private com.squareup.okhttp.Call replaceNodeValidateBeforeCall(String name, V1No * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Node replaceNode(String name, V1Node body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNodeWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -30956,11 +31009,18 @@ public V1Node replaceNode(String name, V1Node body, String pretty, String dryRun * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNodeWithHttpInfo(String name, V1Node body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -30971,35 +31031,23 @@ public ApiResponse replaceNodeWithHttpInfo(String name, V1Node body, Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNodeAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNodeAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNodeStatus @@ -31008,61 +31056,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNodeStatusCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNodeStatusCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/nodes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNodeStatusValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNodeStatusValidateBeforeCall(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -31074,14 +31121,10 @@ private com.squareup.okhttp.Call replaceNodeStatusValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling replaceNodeStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNodeStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNodeStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -31094,10 +31137,17 @@ private com.squareup.okhttp.Call replaceNodeStatusValidateBeforeCall(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Node * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Node replaceNodeStatus(String name, V1Node body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNodeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -31110,11 +31160,18 @@ public V1Node replaceNodeStatus(String name, V1Node body, String pretty, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Node> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNodeStatusWithHttpInfo(String name, V1Node body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -31125,35 +31182,23 @@ public ApiResponse replaceNodeStatusWithHttpInfo(String name, V1Node bod * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNodeStatusAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNodeStatusAsync(String name, V1Node body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNodeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePersistentVolume @@ -31162,61 +31207,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replacePersistentVolumeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePersistentVolumeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePersistentVolumeValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePersistentVolumeValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -31228,14 +31272,10 @@ private com.squareup.okhttp.Call replacePersistentVolumeValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replacePersistentVolume(Async)"); } - - com.squareup.okhttp.Call call = replacePersistentVolumeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePersistentVolumeCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -31248,10 +31288,17 @@ private com.squareup.okhttp.Call replacePersistentVolumeValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolume replacePersistentVolume(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePersistentVolumeWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -31264,11 +31311,18 @@ public V1PersistentVolume replacePersistentVolume(String name, V1PersistentVolum * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePersistentVolumeWithHttpInfo(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -31279,35 +31333,23 @@ public ApiResponse replacePersistentVolumeWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePersistentVolumeAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replacePersistentVolumeAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePersistentVolumeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePersistentVolumeStatus @@ -31316,61 +31358,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replacePersistentVolumeStatusCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePersistentVolumeStatusCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/api/v1/persistentvolumes/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePersistentVolumeStatusValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePersistentVolumeStatusValidateBeforeCall(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -31382,14 +31423,10 @@ private com.squareup.okhttp.Call replacePersistentVolumeStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling replacePersistentVolumeStatus(Async)"); } - - com.squareup.okhttp.Call call = replacePersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePersistentVolumeStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -31402,10 +31439,17 @@ private com.squareup.okhttp.Call replacePersistentVolumeStatusValidateBeforeCall * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PersistentVolume * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1PersistentVolume replacePersistentVolumeStatus(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePersistentVolumeStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -31418,11 +31462,18 @@ public V1PersistentVolume replacePersistentVolumeStatus(String name, V1Persisten * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PersistentVolume> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePersistentVolumeStatusWithHttpInfo(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -31433,34 +31484,22 @@ public ApiResponse replacePersistentVolumeStatusWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePersistentVolumeStatusAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replacePersistentVolumeStatusAsync(String name, V1PersistentVolume body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePersistentVolumeStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/CustomObjectsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/CustomObjectsApi.java index 57ba056fa7..d3d40bf47e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/CustomObjectsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/CustomObjectsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,22 +36,22 @@ import java.util.Map; public class CustomObjectsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public CustomObjectsApi() { this(Configuration.getDefaultApiClient()); } public CustomObjectsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -61,59 +61,53 @@ public void setApiClient(ApiClient apiClient) { * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param body The JSON schema of the Resource to create. (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createClusterCustomObjectCall(String group, String version, String plural, Object body, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call createClusterCustomObjectCall(String group, String version, String plural, Object body, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterCustomObjectValidateBeforeCall(String group, String version, String plural, Object body, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterCustomObjectValidateBeforeCall(String group, String version, String plural, Object body, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -135,14 +129,10 @@ private com.squareup.okhttp.Call createClusterCustomObjectValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createClusterCustomObject(Async)"); } - - com.squareup.okhttp.Call call = createClusterCustomObjectCall(group, version, plural, body, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterCustomObjectCall(group, version, plural, body, pretty, _callback); + return localVarCall; + } /** @@ -155,10 +145,16 @@ private com.squareup.okhttp.Call createClusterCustomObjectValidateBeforeCall(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ public Object createClusterCustomObject(String group, String version, String plural, Object body, String pretty) throws ApiException { - ApiResponse resp = createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty); - return resp.getData(); + ApiResponse localVarResp = createClusterCustomObjectWithHttpInfo(group, version, plural, body, pretty); + return localVarResp.getData(); } /** @@ -171,11 +167,17 @@ public Object createClusterCustomObject(String group, String version, String plu * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ public ApiResponse createClusterCustomObjectWithHttpInfo(String group, String version, String plural, Object body, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, null, null); + okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -186,35 +188,22 @@ public ApiResponse createClusterCustomObjectWithHttpInfo(String group, S * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param body The JSON schema of the Resource to create. (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterCustomObjectAsync(String group, String version, String plural, Object body, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createClusterCustomObjectAsync(String group, String version, String plural, Object body, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterCustomObjectValidateBeforeCall(group, version, plural, body, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedCustomObject @@ -224,60 +213,54 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param body The JSON schema of the Resource to create. (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedCustomObjectCall(String group, String version, String namespace, String plural, Object body, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedCustomObjectCall(String group, String version, String namespace, String plural, Object body, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, Object body, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, Object body, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -304,14 +287,10 @@ private com.squareup.okhttp.Call createNamespacedCustomObjectValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling createNamespacedCustomObject(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedCustomObjectCall(group, version, namespace, plural, body, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedCustomObjectCall(group, version, namespace, plural, body, pretty, _callback); + return localVarCall; + } /** @@ -325,10 +304,16 @@ private com.squareup.okhttp.Call createNamespacedCustomObjectValidateBeforeCall( * @param pretty If 'true', then the output is pretty printed. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ public Object createNamespacedCustomObject(String group, String version, String namespace, String plural, Object body, String pretty) throws ApiException { - ApiResponse resp = createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, body, pretty); + return localVarResp.getData(); } /** @@ -342,11 +327,17 @@ public Object createNamespacedCustomObject(String group, String version, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ public ApiResponse createNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, Object body, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -358,35 +349,22 @@ public ApiResponse createNamespacedCustomObjectWithHttpInfo(String group * @param plural The custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param body The JSON schema of the Resource to create. (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, Object body, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, Object body, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, body, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterCustomObject @@ -398,64 +376,62 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteClusterCustomObjectCall(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteClusterCustomObjectCall(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } - Map localVarHeaderParams = new HashMap(); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } - Map localVarFormParams = new HashMap(); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -482,14 +458,10 @@ private com.squareup.okhttp.Call deleteClusterCustomObjectValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling deleteClusterCustomObject(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterCustomObjectCall(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterCustomObjectCall(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, _callback); + return localVarCall; + } /** @@ -505,10 +477,16 @@ private com.squareup.okhttp.Call deleteClusterCustomObjectValidateBeforeCall(Str * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object deleteClusterCustomObject(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + ApiResponse localVarResp = deleteClusterCustomObjectWithHttpInfo(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); + return localVarResp.getData(); } /** @@ -524,11 +502,17 @@ public Object deleteClusterCustomObject(String group, String version, String plu * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse deleteClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + okhttp3.Call localVarCall = deleteClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -542,35 +526,22 @@ public ApiResponse deleteClusterCustomObjectWithHttpInfo(String group, S * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterCustomObjectAsync(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterCustomObjectAsync(String group, String version, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedCustomObject @@ -583,65 +554,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } - Map localVarHeaderParams = new HashMap(); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } - Map localVarFormParams = new HashMap(); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -673,14 +642,10 @@ private com.squareup.okhttp.Call deleteNamespacedCustomObjectValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling deleteNamespacedCustomObject(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedCustomObjectCall(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedCustomObjectCall(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, _callback); + return localVarCall; + } /** @@ -697,10 +662,16 @@ private com.squareup.okhttp.Call deleteNamespacedCustomObjectValidateBeforeCall( * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object deleteNamespacedCustomObject(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + ApiResponse localVarResp = deleteNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy); + return localVarResp.getData(); } /** @@ -717,11 +688,17 @@ public Object deleteNamespacedCustomObject(String group, String version, String * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse deleteNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + okhttp3.Call localVarCall = deleteNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -736,35 +713,22 @@ public ApiResponse deleteNamespacedCustomObjectWithHttpInfo(String group * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, V1DeleteOptions body, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, gracePeriodSeconds, orphanDependents, propagationPolicy, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getClusterCustomObject @@ -772,58 +736,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param version the custom resource's version (required) * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getClusterCustomObjectCall(String group, String version, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+ */ + public okhttp3.Call getClusterCustomObjectCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -845,14 +801,10 @@ private com.squareup.okhttp.Call getClusterCustomObjectValidateBeforeCall(String throw new ApiException("Missing the required parameter 'name' when calling getClusterCustomObject(Async)"); } - - com.squareup.okhttp.Call call = getClusterCustomObjectCall(group, version, plural, name, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getClusterCustomObjectCall(group, version, plural, name, _callback); + return localVarCall; + } /** @@ -864,10 +816,16 @@ private com.squareup.okhttp.Call getClusterCustomObjectValidateBeforeCall(String * @param name the custom object's name (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ public Object getClusterCustomObject(String group, String version, String plural, String name) throws ApiException { - ApiResponse resp = getClusterCustomObjectWithHttpInfo(group, version, plural, name); - return resp.getData(); + ApiResponse localVarResp = getClusterCustomObjectWithHttpInfo(group, version, plural, name); + return localVarResp.getData(); } /** @@ -879,11 +837,17 @@ public Object getClusterCustomObject(String group, String version, String plural * @param name the custom object's name (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ public ApiResponse getClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name) throws ApiException { - com.squareup.okhttp.Call call = getClusterCustomObjectValidateBeforeCall(group, version, plural, name, null, null); + okhttp3.Call localVarCall = getClusterCustomObjectValidateBeforeCall(group, version, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -893,35 +857,22 @@ public ApiResponse getClusterCustomObjectWithHttpInfo(String group, Stri * @param version the custom resource's version (required) * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getClusterCustomObjectAsync(String group, String version, String plural, String name, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call getClusterCustomObjectAsync(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getClusterCustomObjectValidateBeforeCall(group, version, plural, name, progressListener, progressRequestListener); + okhttp3.Call localVarCall = getClusterCustomObjectValidateBeforeCall(group, version, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getClusterCustomObjectScale @@ -929,58 +880,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param version the custom resource's version (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getClusterCustomObjectScaleCall(String group, String version, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getClusterCustomObjectScaleCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -1002,14 +945,10 @@ private com.squareup.okhttp.Call getClusterCustomObjectScaleValidateBeforeCall(S throw new ApiException("Missing the required parameter 'name' when calling getClusterCustomObjectScale(Async)"); } - - com.squareup.okhttp.Call call = getClusterCustomObjectScaleCall(group, version, plural, name, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getClusterCustomObjectScaleCall(group, version, plural, name, _callback); + return localVarCall; + } /** @@ -1021,10 +960,16 @@ private com.squareup.okhttp.Call getClusterCustomObjectScaleValidateBeforeCall(S * @param name the custom object's name (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object getClusterCustomObjectScale(String group, String version, String plural, String name) throws ApiException { - ApiResponse resp = getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name); - return resp.getData(); + ApiResponse localVarResp = getClusterCustomObjectScaleWithHttpInfo(group, version, plural, name); + return localVarResp.getData(); } /** @@ -1036,11 +981,17 @@ public Object getClusterCustomObjectScale(String group, String version, String p * @param name the custom object's name (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name) throws ApiException { - com.squareup.okhttp.Call call = getClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, null, null); + okhttp3.Call localVarCall = getClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1050,35 +1001,22 @@ public ApiResponse getClusterCustomObjectScaleWithHttpInfo(String group, * @param version the custom resource's version (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getClusterCustomObjectScaleAsync(String group, String version, String plural, String name, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getClusterCustomObjectScaleAsync(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, progressListener, progressRequestListener); + okhttp3.Call localVarCall = getClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getClusterCustomObjectStatus @@ -1086,58 +1024,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param version the custom resource's version (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getClusterCustomObjectStatusCall(String group, String version, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getClusterCustomObjectStatusCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -1159,14 +1089,10 @@ private com.squareup.okhttp.Call getClusterCustomObjectStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'name' when calling getClusterCustomObjectStatus(Async)"); } - - com.squareup.okhttp.Call call = getClusterCustomObjectStatusCall(group, version, plural, name, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getClusterCustomObjectStatusCall(group, version, plural, name, _callback); + return localVarCall; + } /** @@ -1178,10 +1104,16 @@ private com.squareup.okhttp.Call getClusterCustomObjectStatusValidateBeforeCall( * @param name the custom object's name (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object getClusterCustomObjectStatus(String group, String version, String plural, String name) throws ApiException { - ApiResponse resp = getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name); - return resp.getData(); + ApiResponse localVarResp = getClusterCustomObjectStatusWithHttpInfo(group, version, plural, name); + return localVarResp.getData(); } /** @@ -1193,11 +1125,17 @@ public Object getClusterCustomObjectStatus(String group, String version, String * @param name the custom object's name (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name) throws ApiException { - com.squareup.okhttp.Call call = getClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, null, null); + okhttp3.Call localVarCall = getClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1207,35 +1145,22 @@ public ApiResponse getClusterCustomObjectStatusWithHttpInfo(String group * @param version the custom resource's version (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getClusterCustomObjectStatusAsync(String group, String version, String plural, String name, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getClusterCustomObjectStatusAsync(String group, String version, String plural, String name, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, progressListener, progressRequestListener); + okhttp3.Call localVarCall = getClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getNamespacedCustomObject @@ -1244,59 +1169,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace The custom resource's namespace (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
+ */ + public okhttp3.Call getNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -1323,14 +1240,10 @@ private com.squareup.okhttp.Call getNamespacedCustomObjectValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'name' when calling getNamespacedCustomObject(Async)"); } - - com.squareup.okhttp.Call call = getNamespacedCustomObjectCall(group, version, namespace, plural, name, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getNamespacedCustomObjectCall(group, version, namespace, plural, name, _callback); + return localVarCall; + } /** @@ -1343,10 +1256,16 @@ private com.squareup.okhttp.Call getNamespacedCustomObjectValidateBeforeCall(Str * @param name the custom object's name (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ public Object getNamespacedCustomObject(String group, String version, String namespace, String plural, String name) throws ApiException { - ApiResponse resp = getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name); - return resp.getData(); + ApiResponse localVarResp = getNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name); + return localVarResp.getData(); } /** @@ -1359,11 +1278,17 @@ public Object getNamespacedCustomObject(String group, String version, String nam * @param name the custom object's name (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ public ApiResponse getNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name) throws ApiException { - com.squareup.okhttp.Call call = getNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, null, null); + okhttp3.Call localVarCall = getNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1374,35 +1299,22 @@ public ApiResponse getNamespacedCustomObjectWithHttpInfo(String group, S * @param namespace The custom resource's namespace (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 A single Resource -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call getNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, progressListener, progressRequestListener); + okhttp3.Call localVarCall = getNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getNamespacedCustomObjectScale @@ -1411,59 +1323,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace The custom resource's namespace (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -1490,14 +1394,10 @@ private com.squareup.okhttp.Call getNamespacedCustomObjectScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'name' when calling getNamespacedCustomObjectScale(Async)"); } - - com.squareup.okhttp.Call call = getNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, _callback); + return localVarCall; + } /** @@ -1510,10 +1410,16 @@ private com.squareup.okhttp.Call getNamespacedCustomObjectScaleValidateBeforeCal * @param name the custom object's name (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object getNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name) throws ApiException { - ApiResponse resp = getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name); - return resp.getData(); + ApiResponse localVarResp = getNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name); + return localVarResp.getData(); } /** @@ -1526,11 +1432,17 @@ public Object getNamespacedCustomObjectScale(String group, String version, Strin * @param name the custom object's name (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name) throws ApiException { - com.squareup.okhttp.Call call = getNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, null, null); + okhttp3.Call localVarCall = getNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1541,35 +1453,22 @@ public ApiResponse getNamespacedCustomObjectScaleWithHttpInfo(String gro * @param namespace The custom resource's namespace (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, progressListener, progressRequestListener); + okhttp3.Call localVarCall = getNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getNamespacedCustomObjectStatus @@ -1578,59 +1477,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param namespace The custom resource's namespace (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -1657,14 +1548,10 @@ private com.squareup.okhttp.Call getNamespacedCustomObjectStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'name' when calling getNamespacedCustomObjectStatus(Async)"); } - - com.squareup.okhttp.Call call = getNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, _callback); + return localVarCall; + } /** @@ -1677,10 +1564,16 @@ private com.squareup.okhttp.Call getNamespacedCustomObjectStatusValidateBeforeCa * @param name the custom object's name (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object getNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name) throws ApiException { - ApiResponse resp = getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name); - return resp.getData(); + ApiResponse localVarResp = getNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name); + return localVarResp.getData(); } /** @@ -1693,11 +1586,17 @@ public Object getNamespacedCustomObjectStatus(String group, String version, Stri * @param name the custom object's name (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name) throws ApiException { - com.squareup.okhttp.Call call = getNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, null, null); + okhttp3.Call localVarCall = getNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1708,35 +1607,22 @@ public ApiResponse getNamespacedCustomObjectStatusWithHttpInfo(String gr * @param namespace The custom resource's namespace (required) * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, progressListener, progressRequestListener); + okhttp3.Call localVarCall = getNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterCustomObject @@ -1749,69 +1635,73 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listClusterCustomObjectCall(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listClusterCustomObjectCall(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } - Map localVarFormParams = new HashMap(); + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/json;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -1828,14 +1718,10 @@ private com.squareup.okhttp.Call listClusterCustomObjectValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'plural' when calling listClusterCustomObject(Async)"); } - - com.squareup.okhttp.Call call = listClusterCustomObjectCall(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterCustomObjectCall(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -1852,10 +1738,16 @@ private com.squareup.okhttp.Call listClusterCustomObjectValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object listClusterCustomObject(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + ApiResponse localVarResp = listClusterCustomObjectWithHttpInfo(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -1872,11 +1764,17 @@ public Object listClusterCustomObject(String group, String version, String plura * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse listClusterCustomObjectWithHttpInfo(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, null, null); + okhttp3.Call localVarCall = listClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1891,35 +1789,22 @@ public ApiResponse listClusterCustomObjectWithHttpInfo(String group, Str * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterCustomObjectAsync(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listClusterCustomObjectAsync(String group, String version, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterCustomObjectValidateBeforeCall(group, version, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedCustomObject @@ -1933,70 +1818,74 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } - Map localVarFormParams = new HashMap(); + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/json;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2018,14 +1907,10 @@ private com.squareup.okhttp.Call listNamespacedCustomObjectValidateBeforeCall(St throw new ApiException("Missing the required parameter 'plural' when calling listNamespacedCustomObject(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedCustomObjectCall(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedCustomObjectCall(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2043,10 +1928,16 @@ private com.squareup.okhttp.Call listNamespacedCustomObjectValidateBeforeCall(St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object listNamespacedCustomObject(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + ApiResponse localVarResp = listNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2064,11 +1955,17 @@ public Object listNamespacedCustomObject(String group, String version, String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse listNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, null, null); + okhttp3.Call localVarCall = listNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2084,35 +1981,22 @@ public ApiResponse listNamespacedCustomObjectWithHttpInfo(String group, * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String pretty, String fieldSelector, String labelSelector, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, pretty, fieldSelector, labelSelector, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterCustomObject @@ -2121,58 +2005,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to patch. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchClusterCustomObjectCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterCustomObjectCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2199,14 +2075,10 @@ private com.squareup.okhttp.Call patchClusterCustomObjectValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchClusterCustomObject(Async)"); } - - com.squareup.okhttp.Call call = patchClusterCustomObjectCall(group, version, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterCustomObjectCall(group, version, plural, name, body, _callback); + return localVarCall; + } /** @@ -2219,10 +2091,16 @@ private com.squareup.okhttp.Call patchClusterCustomObjectValidateBeforeCall(Stri * @param body The JSON schema of the Resource to patch. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object patchClusterCustomObject(String group, String version, String plural, String name, Object body) throws ApiException { - ApiResponse resp = patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = patchClusterCustomObjectWithHttpInfo(group, version, plural, name, body); + return localVarResp.getData(); } /** @@ -2235,11 +2113,17 @@ public Object patchClusterCustomObject(String group, String version, String plur * @param body The JSON schema of the Resource to patch. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse patchClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, null, null); + okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2250,35 +2134,22 @@ public ApiResponse patchClusterCustomObjectWithHttpInfo(String group, St * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to patch. (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterCustomObjectScale @@ -2287,58 +2158,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2365,14 +2228,10 @@ private com.squareup.okhttp.Call patchClusterCustomObjectScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling patchClusterCustomObjectScale(Async)"); } - - com.squareup.okhttp.Call call = patchClusterCustomObjectScaleCall(group, version, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterCustomObjectScaleCall(group, version, plural, name, body, _callback); + return localVarCall; + } /** @@ -2385,10 +2244,16 @@ private com.squareup.okhttp.Call patchClusterCustomObjectScaleValidateBeforeCall * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object patchClusterCustomObjectScale(String group, String version, String plural, String name, Object body) throws ApiException { - ApiResponse resp = patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = patchClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body); + return localVarResp.getData(); } /** @@ -2401,11 +2266,17 @@ public Object patchClusterCustomObjectScale(String group, String version, String * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, null, null); + okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2416,35 +2287,22 @@ public ApiResponse patchClusterCustomObjectScaleWithHttpInfo(String grou * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterCustomObjectStatus @@ -2453,58 +2311,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2531,14 +2381,10 @@ private com.squareup.okhttp.Call patchClusterCustomObjectStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchClusterCustomObjectStatus(Async)"); } - - com.squareup.okhttp.Call call = patchClusterCustomObjectStatusCall(group, version, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterCustomObjectStatusCall(group, version, plural, name, body, _callback); + return localVarCall; + } /** @@ -2551,10 +2397,16 @@ private com.squareup.okhttp.Call patchClusterCustomObjectStatusValidateBeforeCal * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object patchClusterCustomObjectStatus(String group, String version, String plural, String name, Object body) throws ApiException { - ApiResponse resp = patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = patchClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body); + return localVarResp.getData(); } /** @@ -2567,11 +2419,17 @@ public Object patchClusterCustomObjectStatus(String group, String version, Strin * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, null, null); + okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2582,35 +2440,22 @@ public ApiResponse patchClusterCustomObjectStatusWithHttpInfo(String gro * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCustomObject @@ -2620,59 +2465,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to patch. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2704,14 +2541,10 @@ private com.squareup.okhttp.Call patchNamespacedCustomObjectValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCustomObject(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCustomObjectCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCustomObjectCall(group, version, namespace, plural, name, body, _callback); + return localVarCall; + } /** @@ -2725,10 +2558,16 @@ private com.squareup.okhttp.Call patchNamespacedCustomObjectValidateBeforeCall(S * @param body The JSON schema of the Resource to patch. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object patchNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - ApiResponse resp = patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = patchNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body); + return localVarResp.getData(); } /** @@ -2742,11 +2581,17 @@ public Object patchNamespacedCustomObject(String group, String version, String n * @param body The JSON schema of the Resource to patch. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, null, null); + okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2758,35 +2603,22 @@ public ApiResponse patchNamespacedCustomObjectWithHttpInfo(String group, * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to patch. (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCustomObjectScale @@ -2796,59 +2628,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -2880,14 +2704,10 @@ private com.squareup.okhttp.Call patchNamespacedCustomObjectScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCustomObjectScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, _callback); + return localVarCall; + } /** @@ -2901,10 +2721,16 @@ private com.squareup.okhttp.Call patchNamespacedCustomObjectScaleValidateBeforeC * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object patchNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - ApiResponse resp = patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = patchNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body); + return localVarResp.getData(); } /** @@ -2918,11 +2744,17 @@ public Object patchNamespacedCustomObjectScale(String group, String version, Str * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, null, null); + okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2934,35 +2766,22 @@ public ApiResponse patchNamespacedCustomObjectScaleWithHttpInfo(String g * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedCustomObjectStatus @@ -2972,59 +2791,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3056,14 +2867,10 @@ private com.squareup.okhttp.Call patchNamespacedCustomObjectStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedCustomObjectStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, _callback); + return localVarCall; + } /** @@ -3077,10 +2884,16 @@ private com.squareup.okhttp.Call patchNamespacedCustomObjectStatusValidateBefore * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object patchNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - ApiResponse resp = patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = patchNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body); + return localVarResp.getData(); } /** @@ -3094,11 +2907,17 @@ public Object patchNamespacedCustomObjectStatus(String group, String version, St * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, null, null); + okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3110,35 +2929,22 @@ public ApiResponse patchNamespacedCustomObjectStatusWithHttpInfo(String * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterCustomObject @@ -3147,58 +2953,50 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to replace. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceClusterCustomObjectCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call replaceClusterCustomObjectCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectValidateBeforeCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3225,14 +3023,10 @@ private com.squareup.okhttp.Call replaceClusterCustomObjectValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCustomObject(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterCustomObjectCall(group, version, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterCustomObjectCall(group, version, plural, name, body, _callback); + return localVarCall; + } /** @@ -3245,10 +3039,16 @@ private com.squareup.okhttp.Call replaceClusterCustomObjectValidateBeforeCall(St * @param body The JSON schema of the Resource to replace. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object replaceClusterCustomObject(String group, String version, String plural, String name, Object body) throws ApiException { - ApiResponse resp = replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = replaceClusterCustomObjectWithHttpInfo(group, version, plural, name, body); + return localVarResp.getData(); } /** @@ -3261,11 +3061,17 @@ public Object replaceClusterCustomObject(String group, String version, String pl * @param body The JSON schema of the Resource to replace. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, String version, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, null, null); + okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3276,35 +3082,22 @@ public ApiResponse replaceClusterCustomObjectWithHttpInfo(String group, * @param plural the custom object's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to replace. (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceClusterCustomObjectAsync(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterCustomObjectValidateBeforeCall(group, version, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterCustomObjectScale @@ -3313,58 +3106,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceClusterCustomObjectScaleCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectScaleValidateBeforeCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3391,14 +3177,10 @@ private com.squareup.okhttp.Call replaceClusterCustomObjectScaleValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCustomObjectScale(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterCustomObjectScaleCall(group, version, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterCustomObjectScaleCall(group, version, plural, name, body, _callback); + return localVarCall; + } /** @@ -3411,10 +3193,17 @@ private com.squareup.okhttp.Call replaceClusterCustomObjectScaleValidateBeforeCa * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public Object replaceClusterCustomObjectScale(String group, String version, String plural, String name, Object body) throws ApiException { - ApiResponse resp = replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = replaceClusterCustomObjectScaleWithHttpInfo(group, version, plural, name, body); + return localVarResp.getData(); } /** @@ -3427,11 +3216,18 @@ public Object replaceClusterCustomObjectScale(String group, String version, Stri * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String group, String version, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, null, null); + okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3442,35 +3238,23 @@ public ApiResponse replaceClusterCustomObjectScaleWithHttpInfo(String gr * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, final ApiCallback callback) throws ApiException { + public okhttp3.Call replaceClusterCustomObjectScaleAsync(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterCustomObjectScaleValidateBeforeCall(group, version, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterCustomObjectStatus @@ -3479,58 +3263,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceClusterCustomObjectStatusCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterCustomObjectStatusValidateBeforeCall(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3557,14 +3334,10 @@ private com.squareup.okhttp.Call replaceClusterCustomObjectStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceClusterCustomObjectStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterCustomObjectStatusCall(group, version, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterCustomObjectStatusCall(group, version, plural, name, body, _callback); + return localVarCall; + } /** @@ -3577,10 +3350,17 @@ private com.squareup.okhttp.Call replaceClusterCustomObjectStatusValidateBeforeC * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public Object replaceClusterCustomObjectStatus(String group, String version, String plural, String name, Object body) throws ApiException { - ApiResponse resp = replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = replaceClusterCustomObjectStatusWithHttpInfo(group, version, plural, name, body); + return localVarResp.getData(); } /** @@ -3593,11 +3373,18 @@ public Object replaceClusterCustomObjectStatus(String group, String version, Str * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String group, String version, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, null, null); + okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3608,35 +3395,23 @@ public ApiResponse replaceClusterCustomObjectStatusWithHttpInfo(String g * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceClusterCustomObjectStatusAsync(String group, String version, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterCustomObjectStatusValidateBeforeCall(group, version, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCustomObject @@ -3646,59 +3421,51 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to replace. (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedCustomObjectCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3730,14 +3497,10 @@ private com.squareup.okhttp.Call replaceNamespacedCustomObjectValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCustomObject(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCustomObjectCall(group, version, namespace, plural, name, body, _callback); + return localVarCall; + } /** @@ -3751,10 +3514,16 @@ private com.squareup.okhttp.Call replaceNamespacedCustomObjectValidateBeforeCall * @param body The JSON schema of the Resource to replace. (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public Object replaceNamespacedCustomObject(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - ApiResponse resp = replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCustomObjectWithHttpInfo(group, version, namespace, plural, name, body); + return localVarResp.getData(); } /** @@ -3768,11 +3537,17 @@ public Object replaceNamespacedCustomObject(String group, String version, String * @param body The JSON schema of the Resource to replace. (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, null, null); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3784,35 +3559,22 @@ public ApiResponse replaceNamespacedCustomObjectWithHttpInfo(String grou * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body The JSON schema of the Resource to replace. (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceNamespacedCustomObjectAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectValidateBeforeCall(group, version, namespace, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCustomObjectScale @@ -3822,59 +3584,52 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedCustomObjectScaleCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/scale" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectScaleValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -3906,14 +3661,10 @@ private com.squareup.okhttp.Call replaceNamespacedCustomObjectScaleValidateBefor throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCustomObjectScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleCall(group, version, namespace, plural, name, body, _callback); + return localVarCall; + } /** @@ -3927,10 +3678,17 @@ private com.squareup.okhttp.Call replaceNamespacedCustomObjectScaleValidateBefor * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public Object replaceNamespacedCustomObjectScale(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - ApiResponse resp = replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCustomObjectScaleWithHttpInfo(group, version, namespace, plural, name, body); + return localVarResp.getData(); } /** @@ -3944,11 +3702,18 @@ public Object replaceNamespacedCustomObjectScale(String group, String version, S * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, null, null); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3960,35 +3725,23 @@ public ApiResponse replaceNamespacedCustomObjectScaleWithHttpInfo(String * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedCustomObjectScaleAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectScaleValidateBeforeCall(group, version, namespace, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedCustomObjectStatus @@ -3998,59 +3751,52 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedCustomObjectStatusCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/{group}/{version}/namespaces/{namespace}/{plural}/{name}/status" - .replaceAll("\\{" + "group" + "\\}", apiClient.escapeString(group.toString())) - .replaceAll("\\{" + "version" + "\\}", apiClient.escapeString(version.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())) - .replaceAll("\\{" + "plural" + "\\}", apiClient.escapeString(plural.toString())) - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())) + .replaceAll("\\{" + "version" + "\\}", localVarApiClient.escapeString(version.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "plural" + "\\}", localVarApiClient.escapeString(plural.toString())) + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedCustomObjectStatusValidateBeforeCall(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'group' is set if (group == null) { @@ -4082,14 +3828,10 @@ private com.squareup.okhttp.Call replaceNamespacedCustomObjectStatusValidateBefo throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedCustomObjectStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusCall(group, version, namespace, plural, name, body, _callback); + return localVarCall; + } /** @@ -4103,10 +3845,17 @@ private com.squareup.okhttp.Call replaceNamespacedCustomObjectStatusValidateBefo * @param body (required) * @return Object * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public Object replaceNamespacedCustomObjectStatus(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - ApiResponse resp = replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedCustomObjectStatusWithHttpInfo(group, version, namespace, plural, name, body); + return localVarResp.getData(); } /** @@ -4120,11 +3869,18 @@ public Object replaceNamespacedCustomObjectStatus(String group, String version, * @param body (required) * @return ApiResponse<Object> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(String group, String version, String namespace, String plural, String name, Object body) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, null, null); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4136,34 +3892,22 @@ public ApiResponse replaceNamespacedCustomObjectStatusWithHttpInfo(Strin * @param plural the custom resource's plural name. For TPRs this would be lowercase plural kind. (required) * @param name the custom object's name (required) * @param body (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedCustomObjectStatusAsync(String group, String version, String namespace, String plural, String name, Object body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedCustomObjectStatusValidateBeforeCall(group, version, namespace, plural, name, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/EventsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/EventsApi.java index 4f5846c514..be99d41af4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/EventsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/EventsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class EventsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public EventsApi() { this(Configuration.getDefaultApiClient()); } public EventsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/EventsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/EventsV1beta1Api.java index 37f304c1e1..f45fe2cbda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/EventsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/EventsV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1Event; import io.kubernetes.client.models.V1beta1EventList; @@ -41,22 +40,22 @@ import java.util.Map; public class EventsV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public EventsV1beta1Api() { this(Configuration.getDefaultApiClient()); } public EventsV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedEventCall(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedEventCall(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedEventValidateBeforeCall(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedEventValidateBeforeCall(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedEventValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling createNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedEventCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedEventValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1Event createNamespacedEvent(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedEventWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1beta1Event createNamespacedEvent(String namespace, V1beta1Event body, S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedEventWithHttpInfo(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedEventWithHttpInfo(String namesp * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedEventAsync(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedEventAsync(String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedEventValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedEventCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedEventValidateBeforeCa * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedEvent(String namespace, String pretty, * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedEventWithHttpInfo(String * delete collection of Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedEvent * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedEventCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedEventCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedEventValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedEventCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedEventCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedEventValidateBeforeCall(String * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedEvent(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedEventWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedEvent(String name, String namespace, String pret * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedEventWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedEventWithHttpInfo(String name, Stri * @param name name of the Event (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedEventAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedEventValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listEventForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listEventForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listEventForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/events"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listEventForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listEventForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listEventForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listEventForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Event + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listEventForAllNamespacesValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1EventList listEventForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listEventForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1EventList listEventForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listEventForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Event + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public V1beta1EventList listEventForAllNamespaces(String _continue, String field * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listEventForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listEventForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listEventForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Event + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listEventForAllNamespacesWithHttpInfo(Strin * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listEventForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listEventForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listEventForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listEventForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedEvent * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedEventCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedEventCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedEventValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedEventCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedEventCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedEventValidateBeforeCall(String na * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedEventValidateBeforeCall(String na * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1EventList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1EventList listNamespacedEvent(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedEventWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1EventList listNamespacedEvent(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedEventWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public V1beta1EventList listNamespacedEvent(String namespace, String pretty, Str * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public V1beta1EventList listNamespacedEvent(String namespace, String pretty, Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1EventList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedEventWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedEventWithHttpInfo(String name * list or watch objects of kind Event * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedEventWithHttpInfo(String name * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedEventAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedEventAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedEventValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedEventValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedEvent @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedEventCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedEventCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedEventValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedEventValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedEventValidateBeforeCall(String n * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1Event patchNamespacedEvent(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1Event patchNamespacedEvent(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1beta1Event patchNamespacedEvent(String name, String namespace, V1Patch * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedEventWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedEventWithHttpInfo(String name, S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedEventAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedEventAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedEvent @@ -1193,62 +1245,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedEventCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedEventCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedEventValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1260,14 +1310,10 @@ private com.squareup.okhttp.Call readNamespacedEventValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedEventCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedEventCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1280,10 +1326,16 @@ private com.squareup.okhttp.Call readNamespacedEventValidateBeforeCall(String na * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1Event readNamespacedEvent(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedEventWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedEventWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1296,11 +1348,17 @@ public V1beta1Event readNamespacedEvent(String name, String namespace, String pr * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedEventWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1311,35 +1369,22 @@ public ApiResponse readNamespacedEventWithHttpInfo(String name, St * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedEventAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedEventAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedEventValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedEvent @@ -1349,62 +1394,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedEventCall(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedEventCall(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/events.k8s.io/v1beta1/namespaces/{namespace}/events/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedEventValidateBeforeCall(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1421,14 +1465,10 @@ private com.squareup.okhttp.Call replaceNamespacedEventValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedEvent(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedEventCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1442,10 +1482,17 @@ private com.squareup.okhttp.Call replaceNamespacedEventValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1Event * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1Event replaceNamespacedEvent(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedEventWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1459,11 +1506,18 @@ public V1beta1Event replaceNamespacedEvent(String name, String namespace, V1beta * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1Event> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedEventWithHttpInfo(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1475,34 +1529,22 @@ public ApiResponse replaceNamespacedEventWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedEventAsync(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedEventAsync(String name, String namespace, V1beta1Event body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedEventValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsApi.java index 6f17d088c4..82876383a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class ExtensionsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ExtensionsApi() { this(Configuration.getDefaultApiClient()); } public ExtensionsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsV1beta1Api.java index f92505637b..92048f229a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/ExtensionsV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -37,7 +37,6 @@ import io.kubernetes.client.models.ExtensionsV1beta1Scale; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1DaemonSet; import io.kubernetes.client.models.V1beta1DaemonSetList; @@ -53,22 +52,22 @@ import java.util.Map; public class ExtensionsV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public ExtensionsV1beta1Api() { this(Configuration.getDefaultApiClient()); } public ExtensionsV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -78,61 +77,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDaemonSetCall(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDaemonSetCall(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDaemonSetValidateBeforeCall(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -144,14 +143,10 @@ private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDaemonSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -164,10 +159,18 @@ private com.squareup.okhttp.Call createNamespacedDaemonSetValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1DaemonSet createNamespacedDaemonSet(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDaemonSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -180,11 +183,19 @@ public V1beta1DaemonSet createNamespacedDaemonSet(String namespace, V1beta1Daemo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDaemonSetWithHttpInfo(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -195,35 +206,24 @@ public ApiResponse createNamespacedDaemonSetWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDaemonSetAsync(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDaemonSetAsync(String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDaemonSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDeployment @@ -232,61 +232,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentCall(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentCall(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDeploymentValidateBeforeCall(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -298,14 +298,10 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDeploymentCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -318,10 +314,18 @@ private com.squareup.okhttp.Call createNamespacedDeploymentValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ExtensionsV1beta1Deployment createNamespacedDeployment(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDeploymentWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -334,11 +338,19 @@ public ExtensionsV1beta1Deployment createNamespacedDeployment(String namespace, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDeploymentWithHttpInfo(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -349,35 +361,24 @@ public ApiResponse createNamespacedDeploymentWithHt * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentAsync(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentAsync(String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDeploymentValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedDeploymentRollback @@ -387,62 +388,62 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentRollbackCall(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentRollbackCall(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/rollback" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarHeaderParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarFormParams = new HashMap(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedDeploymentRollbackValidateBeforeCall(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedDeploymentRollbackValidateBeforeCall(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -459,14 +460,10 @@ private com.squareup.okhttp.Call createNamespacedDeploymentRollbackValidateBefor throw new ApiException("Missing the required parameter 'body' when calling createNamespacedDeploymentRollback(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedDeploymentRollbackCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedDeploymentRollbackCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); + return localVarCall; + } /** @@ -480,10 +477,18 @@ private com.squareup.okhttp.Call createNamespacedDeploymentRollbackValidateBefor * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Status createNamespacedDeploymentRollback(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty) throws ApiException { - ApiResponse resp = createNamespacedDeploymentRollbackWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); - return resp.getData(); + ApiResponse localVarResp = createNamespacedDeploymentRollbackWithHttpInfo(name, namespace, body, dryRun, fieldManager, pretty); + return localVarResp.getData(); } /** @@ -497,11 +502,19 @@ public V1Status createNamespacedDeploymentRollback(String name, String namespace * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedDeploymentRollbackWithHttpInfo(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null, null); + okhttp3.Call localVarCall = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -513,35 +526,24 @@ public ApiResponse createNamespacedDeploymentRollbackWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedDeploymentRollbackAsync(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedDeploymentRollbackAsync(String name, String namespace, ExtensionsV1beta1DeploymentRollback body, String dryRun, String fieldManager, String pretty, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedDeploymentRollbackValidateBeforeCall(name, namespace, body, dryRun, fieldManager, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedIngress @@ -550,61 +552,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedIngressCall(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedIngressCall(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedIngressValidateBeforeCall(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -616,14 +618,10 @@ private com.squareup.okhttp.Call createNamespacedIngressValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -636,10 +634,18 @@ private com.squareup.okhttp.Call createNamespacedIngressValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ExtensionsV1beta1Ingress createNamespacedIngress(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -652,11 +658,19 @@ public ExtensionsV1beta1Ingress createNamespacedIngress(String namespace, Extens * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedIngressWithHttpInfo(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -667,35 +681,24 @@ public ApiResponse createNamespacedIngressWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedIngressAsync(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedIngressAsync(String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedNetworkPolicy @@ -704,61 +707,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedNetworkPolicyCall(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedNetworkPolicyValidateBeforeCall(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -770,14 +773,10 @@ private com.squareup.okhttp.Call createNamespacedNetworkPolicyValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling createNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -790,10 +789,18 @@ private com.squareup.okhttp.Call createNamespacedNetworkPolicyValidateBeforeCall * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1NetworkPolicy createNamespacedNetworkPolicy(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -806,11 +813,19 @@ public V1beta1NetworkPolicy createNamespacedNetworkPolicy(String namespace, V1be * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedNetworkPolicyWithHttpInfo(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -821,35 +836,24 @@ public ApiResponse createNamespacedNetworkPolicyWithHttpIn * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedNetworkPolicyAsync(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedReplicaSet @@ -858,61 +862,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicaSetCall(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicaSetCall(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedReplicaSetValidateBeforeCall(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -924,14 +928,10 @@ private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling createNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedReplicaSetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -944,10 +944,18 @@ private com.squareup.okhttp.Call createNamespacedReplicaSetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1ReplicaSet createNamespacedReplicaSet(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedReplicaSetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -960,11 +968,19 @@ public V1beta1ReplicaSet createNamespacedReplicaSet(String namespace, V1beta1Rep * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedReplicaSetWithHttpInfo(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -975,35 +991,24 @@ public ApiResponse createNamespacedReplicaSetWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedReplicaSetAsync(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedReplicaSetAsync(String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedReplicaSetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createPodSecurityPolicy @@ -1011,74 +1016,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createPodSecurityPolicyCall(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPodSecurityPolicyCall(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPodSecurityPolicyValidateBeforeCall(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createPodSecurityPolicyValidateBeforeCall(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = createPodSecurityPolicyCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createPodSecurityPolicyCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1090,10 +1091,18 @@ private com.squareup.okhttp.Call createPodSecurityPolicyValidateBeforeCall(Exten * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ExtensionsV1beta1PodSecurityPolicy createPodSecurityPolicy(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1105,11 +1114,19 @@ public ExtensionsV1beta1PodSecurityPolicy createPodSecurityPolicy(ExtensionsV1be * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createPodSecurityPolicyWithHttpInfo(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1119,126 +1136,145 @@ public ApiResponse createPodSecurityPolicyWi * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createPodSecurityPolicyAsync(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPodSecurityPolicyAsync(ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1246,19 +1282,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetValidateBefo * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1266,20 +1314,32 @@ public V1Status deleteCollectionNamespacedDaemonSet(String namespace, String pre * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1287,133 +1347,156 @@ public ApiResponse deleteCollectionNamespacedDaemonSetWithHttpInfo(Str * delete collection of DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1421,19 +1504,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentValidateBef * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1441,20 +1536,32 @@ public V1Status deleteCollectionNamespacedDeployment(String namespace, String pr * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1462,133 +1569,156 @@ public ApiResponse deleteCollectionNamespacedDeploymentWithHttpInfo(St * delete collection of Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedIngress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1596,19 +1726,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedIngressValidateBefore * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedIngress(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedIngress(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1616,20 +1758,32 @@ public V1Status deleteCollectionNamespacedIngress(String namespace, String prett * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1637,133 +1791,156 @@ public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(Strin * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedNetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1771,19 +1948,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyValidate * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1791,20 +1980,32 @@ public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1812,133 +2013,156 @@ public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1946,19 +2170,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetValidateBef * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1966,20 +2202,32 @@ public V1Status deleteCollectionNamespacedReplicaSet(String namespace, String pr * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1987,278 +2235,321 @@ public ApiResponse deleteCollectionNamespacedReplicaSetWithHttpInfo(St * delete collection of ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionPodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionPodSecurityPolicyCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionPodSecurityPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionPodSecurityPolicyValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionPodSecurityPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPodSecurityPolicyCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionPodSecurityPolicyCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionPodSecurityPolicy(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionPodSecurityPolicyWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionPodSecurityPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPodSecurityPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionPodSecurityPolicyWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionPodSecurityPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPodSecurityPolicyAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionPodSecurityPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDaemonSet * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDaemonSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2270,14 +2561,10 @@ private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDaemonSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2286,17 +2573,24 @@ private com.squareup.okhttp.Call deleteNamespacedDaemonSetValidateBeforeCall(Str * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDaemonSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2305,18 +2599,25 @@ public V1Status deleteNamespacedDaemonSet(String name, String namespace, String * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2325,111 +2626,102 @@ public ApiResponse deleteNamespacedDaemonSetWithHttpInfo(String name, * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDaemonSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedDeployment * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedDeploymentCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2441,14 +2733,10 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedDeploymentCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedDeploymentCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2457,17 +2745,24 @@ private com.squareup.okhttp.Call deleteNamespacedDeploymentValidateBeforeCall(St * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedDeployment(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedDeploymentWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2476,18 +2771,25 @@ public V1Status deleteNamespacedDeployment(String name, String namespace, String * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2496,111 +2798,102 @@ public ApiResponse deleteNamespacedDeploymentWithHttpInfo(String name, * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedDeploymentAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedIngress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2612,14 +2905,10 @@ private com.squareup.okhttp.Call deleteNamespacedIngressValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedIngressCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2628,17 +2917,24 @@ private com.squareup.okhttp.Call deleteNamespacedIngressValidateBeforeCall(Strin * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedIngress(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedIngress(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2647,18 +2943,25 @@ public V1Status deleteNamespacedIngress(String name, String namespace, String pr * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2667,111 +2970,102 @@ public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, St * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedNetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2783,14 +3077,10 @@ private com.squareup.okhttp.Call deleteNamespacedNetworkPolicyValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2799,17 +3089,24 @@ private com.squareup.okhttp.Call deleteNamespacedNetworkPolicyValidateBeforeCall * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2818,18 +3115,25 @@ public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, Str * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2838,111 +3142,102 @@ public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String na * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedReplicaSet * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedReplicaSetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2954,14 +3249,10 @@ private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedReplicaSetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -2970,17 +3261,24 @@ private com.squareup.okhttp.Call deleteNamespacedReplicaSetValidateBeforeCall(St * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedReplicaSet(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -2989,18 +3287,25 @@ public V1Status deleteNamespacedReplicaSet(String name, String namespace, String * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3009,123 +3314,110 @@ public ApiResponse deleteNamespacedReplicaSetWithHttpInfo(String name, * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteNamespacedReplicaSetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deletePodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deletePodSecurityPolicyCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deletePodSecurityPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePodSecurityPolicyValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deletePodSecurityPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = deletePodSecurityPolicyCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deletePodSecurityPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -3133,17 +3425,24 @@ private com.squareup.okhttp.Call deletePodSecurityPolicyValidateBeforeCall(Strin * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deletePodSecurityPolicy(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deletePodSecurityPolicyWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deletePodSecurityPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePodSecurityPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -3151,18 +3450,25 @@ public V1Status deletePodSecurityPolicy(String name, String pretty, V1DeleteOpti * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deletePodSecurityPolicyWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deletePodSecurityPolicyValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deletePodSecurityPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePodSecurityPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3170,100 +3476,76 @@ public ApiResponse deletePodSecurityPolicyWithHttpInfo(String name, St * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePodSecurityPolicyAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deletePodSecurityPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deletePodSecurityPolicyValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deletePodSecurityPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -3271,10 +3553,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -3282,48 +3570,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDaemonSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3332,84 +3614,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDaemonSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDaemonSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/daemonsets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDaemonSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listDaemonSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3420,15 +3711,22 @@ private com.squareup.okhttp.Call listDaemonSetForAllNamespacesValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1DaemonSetList listDaemonSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDaemonSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1DaemonSetList listDaemonSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDaemonSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3439,16 +3737,23 @@ public V1beta1DaemonSetList listDaemonSetForAllNamespaces(String _continue, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listDaemonSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind DaemonSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3457,38 +3762,26 @@ public ApiResponse listDaemonSetForAllNamespacesWithHttpIn * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDaemonSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listDaemonSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listDaemonSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDaemonSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listDeploymentForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3497,84 +3790,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listDeploymentForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/deployments"; - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } - Map localVarHeaderParams = new HashMap(); + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listDeploymentForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listDeploymentForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3585,15 +3887,22 @@ private com.squareup.okhttp.Call listDeploymentForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ExtensionsV1beta1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1DeploymentList listDeploymentForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listDeploymentForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public ExtensionsV1beta1DeploymentList listDeploymentForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listDeploymentForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3604,16 +3913,23 @@ public ExtensionsV1beta1DeploymentList listDeploymentForAllNamespaces(String _co * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<ExtensionsV1beta1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listDeploymentForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Deployment + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3622,38 +3938,26 @@ public ApiResponse listDeploymentForAllNamespac * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listDeploymentForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listDeploymentForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listDeploymentForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listDeploymentForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listIngressForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3662,84 +3966,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listIngressForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/ingresses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listIngressForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listIngressForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3750,15 +4063,22 @@ private com.squareup.okhttp.Call listIngressForAllNamespacesValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ExtensionsV1beta1IngressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1IngressList listIngressForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listIngressForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public ExtensionsV1beta1IngressList listIngressForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3769,16 +4089,23 @@ public ExtensionsV1beta1IngressList listIngressForAllNamespaces(String _continue * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<ExtensionsV1beta1IngressList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listIngressForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listIngressForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listIngressForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3787,40 +4114,28 @@ public ApiResponse listIngressForAllNamespacesWith * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listIngressForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listIngressForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3828,85 +4143,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDaemonSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDaemonSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDaemonSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDaemonSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDaemonSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -3914,6 +4237,7 @@ private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(Strin * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3923,10 +4247,16 @@ private com.squareup.okhttp.Call listNamespacedDaemonSetValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1DaemonSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1DaemonSetList listNamespacedDaemonSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDaemonSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -3934,6 +4264,7 @@ public V1beta1DaemonSetList listNamespacedDaemonSet(String namespace, String pre * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3943,11 +4274,17 @@ public V1beta1DaemonSetList listNamespacedDaemonSet(String namespace, String pre * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1DaemonSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedDaemonSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3955,6 +4292,7 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(Str * list or watch objects of kind DaemonSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3962,40 +4300,28 @@ public ApiResponse listNamespacedDaemonSetWithHttpInfo(Str * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDaemonSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedDaemonSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDaemonSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedDeployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4003,85 +4329,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedDeploymentCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedDeploymentCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedDeploymentValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedDeploymentCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedDeploymentCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -4089,6 +4423,7 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4098,10 +4433,16 @@ private com.squareup.okhttp.Call listNamespacedDeploymentValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ExtensionsV1beta1DeploymentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1DeploymentList listNamespacedDeployment(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public ExtensionsV1beta1DeploymentList listNamespacedDeployment(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedDeploymentWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -4109,6 +4450,7 @@ public ExtensionsV1beta1DeploymentList listNamespacedDeployment(String namespace * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4118,11 +4460,17 @@ public ExtensionsV1beta1DeploymentList listNamespacedDeployment(String namespace * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<ExtensionsV1beta1DeploymentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedDeploymentWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4130,6 +4478,7 @@ public ApiResponse listNamespacedDeploymentWith * list or watch objects of kind Deployment * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4137,40 +4486,28 @@ public ApiResponse listNamespacedDeploymentWith * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedDeploymentAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedDeploymentAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedDeploymentValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedIngress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4178,85 +4515,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedIngressCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedIngressCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -4264,6 +4609,7 @@ private com.squareup.okhttp.Call listNamespacedIngressValidateBeforeCall(String * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4273,10 +4619,16 @@ private com.squareup.okhttp.Call listNamespacedIngressValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ExtensionsV1beta1IngressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1IngressList listNamespacedIngress(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedIngressWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public ExtensionsV1beta1IngressList listNamespacedIngress(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -4284,6 +4636,7 @@ public ExtensionsV1beta1IngressList listNamespacedIngress(String namespace, Stri * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4293,11 +4646,17 @@ public ExtensionsV1beta1IngressList listNamespacedIngress(String namespace, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<ExtensionsV1beta1IngressList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4305,6 +4664,7 @@ public ApiResponse listNamespacedIngressWithHttpIn * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4312,40 +4672,28 @@ public ApiResponse listNamespacedIngressWithHttpIn * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedIngressAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedNetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4353,85 +4701,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedNetworkPolicyCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -4439,6 +4795,7 @@ private com.squareup.okhttp.Call listNamespacedNetworkPolicyValidateBeforeCall(S * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4448,10 +4805,16 @@ private com.squareup.okhttp.Call listNamespacedNetworkPolicyValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1NetworkPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -4459,6 +4822,7 @@ public V1beta1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, St * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4468,11 +4832,17 @@ public V1beta1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1NetworkPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4480,6 +4850,7 @@ public ApiResponse listNamespacedNetworkPolicyWithHttp * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4487,40 +4858,28 @@ public ApiResponse listNamespacedNetworkPolicyWithHttp * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4528,85 +4887,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedReplicaSetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedReplicaSetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedReplicaSetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedReplicaSetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedReplicaSetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -4614,6 +4981,7 @@ private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(Stri * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4623,10 +4991,16 @@ private com.squareup.okhttp.Call listNamespacedReplicaSetValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ReplicaSetList listNamespacedReplicaSet(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedReplicaSetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -4634,6 +5008,7 @@ public V1beta1ReplicaSetList listNamespacedReplicaSet(String namespace, String p * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4643,11 +5018,17 @@ public V1beta1ReplicaSetList listNamespacedReplicaSet(String namespace, String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedReplicaSetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4655,6 +5036,7 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(S * list or watch objects of kind ReplicaSet * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4662,38 +5044,26 @@ public ApiResponse listNamespacedReplicaSetWithHttpInfo(S * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedReplicaSetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedReplicaSetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedReplicaSetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNetworkPolicyForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4702,84 +5072,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/networkpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } + + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } - Map localVarHeaderParams = new HashMap(); + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listNetworkPolicyForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4790,15 +5169,22 @@ private com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesValidateBefore * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1NetworkPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1NetworkPolicyList listNetworkPolicyForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNetworkPolicyForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1NetworkPolicyList listNetworkPolicyForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4809,16 +5195,23 @@ public V1beta1NetworkPolicyList listNetworkPolicyForAllNamespaces(String _contin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1NetworkPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNetworkPolicyForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4827,39 +5220,27 @@ public ApiResponse listNetworkPolicyForAllNamespacesWi * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNetworkPolicyForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4867,85 +5248,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPodSecurityPolicyCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodSecurityPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPodSecurityPolicyValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listPodSecurityPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listPodSecurityPolicyCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPodSecurityPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4955,16 +5345,23 @@ private com.squareup.okhttp.Call listPodSecurityPolicyValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ExtensionsV1beta1PodSecurityPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1PodSecurityPolicyList listPodSecurityPolicy(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPodSecurityPolicyWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public ExtensionsV1beta1PodSecurityPolicyList listPodSecurityPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodSecurityPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4974,17 +5371,24 @@ public ExtensionsV1beta1PodSecurityPolicyList listPodSecurityPolicy(String prett * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<ExtensionsV1beta1PodSecurityPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPodSecurityPolicyWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPodSecurityPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -4992,38 +5396,26 @@ public ApiResponse listPodSecurityPolicy * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodSecurityPolicyAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listPodSecurityPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listReplicaSetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -5032,84 +5424,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listReplicaSetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listReplicaSetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/replicasets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listReplicaSetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listReplicaSetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -5120,15 +5521,22 @@ private com.squareup.okhttp.Call listReplicaSetForAllNamespacesValidateBeforeCal * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ReplicaSetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ReplicaSetList listReplicaSetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listReplicaSetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ReplicaSetList listReplicaSetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listReplicaSetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -5139,16 +5547,23 @@ public V1beta1ReplicaSetList listReplicaSetForAllNamespaces(String _continue, St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ReplicaSetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listReplicaSetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ReplicaSet + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -5157,35 +5572,22 @@ public ApiResponse listReplicaSetForAllNamespacesWithHttp * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listReplicaSetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listReplicaSetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listReplicaSetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listReplicaSetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDaemonSet @@ -5196,64 +5598,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDaemonSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDaemonSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5270,14 +5672,10 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5292,10 +5690,16 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1DaemonSet patchNamespacedDaemonSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1DaemonSet patchNamespacedDaemonSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5310,11 +5714,17 @@ public V1beta1DaemonSet patchNamespacedDaemonSet(String name, String namespace, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5327,35 +5737,22 @@ public ApiResponse patchNamespacedDaemonSetWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDaemonSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedDaemonSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDaemonSetStatus @@ -5366,64 +5763,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDaemonSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5440,14 +5837,10 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5462,10 +5855,16 @@ private com.squareup.okhttp.Call patchNamespacedDaemonSetStatusValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1DaemonSet patchNamespacedDaemonSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5480,11 +5879,17 @@ public V1beta1DaemonSet patchNamespacedDaemonSetStatus(String name, String names * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5497,35 +5902,22 @@ public ApiResponse patchNamespacedDaemonSetStatusWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedDaemonSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeployment @@ -5536,64 +5928,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5610,14 +6002,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5632,10 +6020,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Deployment patchNamespacedDeployment(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Deployment patchNamespacedDeployment(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5650,11 +6044,17 @@ public ExtensionsV1beta1Deployment patchNamespacedDeployment(String name, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedDeploymentWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5667,35 +6067,22 @@ public ApiResponse patchNamespacedDeploymentWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedDeploymentAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentScale @@ -5706,64 +6093,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5780,14 +6167,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5802,10 +6185,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Scale patchNamespacedDeploymentScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Scale patchNamespacedDeploymentScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5820,11 +6209,17 @@ public ExtensionsV1beta1Scale patchNamespacedDeploymentScale(String name, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -5837,35 +6232,22 @@ public ApiResponse patchNamespacedDeploymentScaleWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedDeploymentScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedDeploymentStatus @@ -5876,64 +6258,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedDeploymentStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -5950,14 +6332,10 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -5972,10 +6350,16 @@ private com.squareup.okhttp.Call patchNamespacedDeploymentStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Deployment patchNamespacedDeploymentStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Deployment patchNamespacedDeploymentStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -5990,11 +6374,17 @@ public ExtensionsV1beta1Deployment patchNamespacedDeploymentStatus(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6007,35 +6397,22 @@ public ApiResponse patchNamespacedDeploymentStatusW * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedDeploymentStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedIngress @@ -6046,64 +6423,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedIngressCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6120,14 +6497,10 @@ private com.squareup.okhttp.Call patchNamespacedIngressValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6142,10 +6515,16 @@ private com.squareup.okhttp.Call patchNamespacedIngressValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Ingress patchNamespacedIngress(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Ingress patchNamespacedIngress(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6160,11 +6539,17 @@ public ExtensionsV1beta1Ingress patchNamespacedIngress(String name, String names * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6177,35 +6562,22 @@ public ApiResponse patchNamespacedIngressWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedIngressAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedIngressStatus @@ -6216,64 +6588,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedIngressStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6290,14 +6662,10 @@ private com.squareup.okhttp.Call patchNamespacedIngressStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6312,10 +6680,16 @@ private com.squareup.okhttp.Call patchNamespacedIngressStatusValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Ingress patchNamespacedIngressStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Ingress patchNamespacedIngressStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6330,11 +6704,17 @@ public ExtensionsV1beta1Ingress patchNamespacedIngressStatus(String name, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6347,35 +6727,22 @@ public ApiResponse patchNamespacedIngressStatusWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedIngressStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedNetworkPolicy @@ -6386,64 +6753,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedNetworkPolicyCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6460,14 +6827,10 @@ private com.squareup.okhttp.Call patchNamespacedNetworkPolicyValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6482,10 +6845,16 @@ private com.squareup.okhttp.Call patchNamespacedNetworkPolicyValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6500,11 +6869,17 @@ public V1beta1NetworkPolicy patchNamespacedNetworkPolicy(String name, String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6517,35 +6892,22 @@ public ApiResponse patchNamespacedNetworkPolicyWithHttpInf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSet @@ -6556,64 +6918,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6630,14 +6992,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6652,10 +7010,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetValidateBeforeCall(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ReplicaSet patchNamespacedReplicaSet(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1ReplicaSet patchNamespacedReplicaSet(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6670,11 +7034,17 @@ public V1beta1ReplicaSet patchNamespacedReplicaSet(String name, String namespace * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicaSetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6687,35 +7057,22 @@ public ApiResponse patchNamespacedReplicaSetWithHttpInfo(Stri * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedReplicaSetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSetScale @@ -6726,64 +7083,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6800,14 +7157,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6822,10 +7175,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetScaleValidateBeforeCal * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Scale patchNamespacedReplicaSetScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Scale patchNamespacedReplicaSetScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -6840,11 +7199,17 @@ public ExtensionsV1beta1Scale patchNamespacedReplicaSetScale(String name, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -6857,35 +7222,22 @@ public ApiResponse patchNamespacedReplicaSetScaleWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedReplicaSetScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicaSetStatus @@ -6896,64 +7248,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicaSetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -6970,14 +7322,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCa throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -6992,10 +7340,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicaSetStatusValidateBeforeCa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1ReplicaSet patchNamespacedReplicaSetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -7010,11 +7364,17 @@ public V1beta1ReplicaSet patchNamespacedReplicaSetStatus(String name, String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7027,35 +7387,22 @@ public ApiResponse patchNamespacedReplicaSetStatusWithHttpInf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedReplicaSetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedReplicationControllerDummyScale @@ -7066,64 +7413,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerDummyScaleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedReplicationControllerDummyScaleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedReplicationControllerDummyScaleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedReplicationControllerDummyScaleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7140,14 +7487,10 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerDummyScaleV throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedReplicationControllerDummyScale(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerDummyScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedReplicationControllerDummyScaleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -7162,10 +7505,16 @@ private com.squareup.okhttp.Call patchNamespacedReplicationControllerDummyScaleV * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1Scale patchNamespacedReplicationControllerDummyScale(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedReplicationControllerDummyScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1Scale patchNamespacedReplicationControllerDummyScale(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedReplicationControllerDummyScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -7180,11 +7529,17 @@ public ExtensionsV1beta1Scale patchNamespacedReplicationControllerDummyScale(Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedReplicationControllerDummyScaleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedReplicationControllerDummyScaleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7197,35 +7552,22 @@ public ApiResponse patchNamespacedReplicationControllerD * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedReplicationControllerDummyScaleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedReplicationControllerDummyScaleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPodSecurityPolicy @@ -7235,63 +7577,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchPodSecurityPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchPodSecurityPolicyCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPodSecurityPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPodSecurityPolicyValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7303,14 +7645,10 @@ private com.squareup.okhttp.Call patchPodSecurityPolicyValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchPodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = patchPodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -7324,10 +7662,16 @@ private com.squareup.okhttp.Call patchPodSecurityPolicyValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ExtensionsV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ExtensionsV1beta1PodSecurityPolicy patchPodSecurityPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public ExtensionsV1beta1PodSecurityPolicy patchPodSecurityPolicy(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -7341,11 +7685,17 @@ public ExtensionsV1beta1PodSecurityPolicy patchPodSecurityPolicy(String name, V1 * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<ExtensionsV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchPodSecurityPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchPodSecurityPolicyWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7357,35 +7707,22 @@ public ApiResponse patchPodSecurityPolicyWit * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPodSecurityPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchPodSecurityPolicyAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDaemonSet @@ -7394,62 +7731,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDaemonSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7461,14 +7796,10 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDaemonSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -7481,10 +7812,16 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetValidateBeforeCall(Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1DaemonSet readNamespacedDaemonSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDaemonSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -7497,11 +7834,17 @@ public V1beta1DaemonSet readNamespacedDaemonSet(String name, String namespace, S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7512,93 +7855,74 @@ public ApiResponse readNamespacedDaemonSetWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDaemonSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDaemonSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDaemonSetStatus * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDaemonSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7610,14 +7934,10 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7628,10 +7948,16 @@ private com.squareup.okhttp.Call readNamespacedDaemonSetStatusValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1DaemonSet readNamespacedDaemonSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDaemonSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7642,11 +7968,17 @@ public V1beta1DaemonSet readNamespacedDaemonSetStatus(String name, String namesp * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7655,35 +7987,22 @@ public ApiResponse readNamespacedDaemonSetStatusWithHttpInfo(S * @param name name of the DaemonSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDaemonSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeployment @@ -7692,62 +8011,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7759,14 +8076,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -7779,10 +8092,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Deployment readNamespacedDeployment(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -7795,11 +8114,17 @@ public ExtensionsV1beta1Deployment readNamespacedDeployment(String name, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7810,93 +8135,74 @@ public ApiResponse readNamespacedDeploymentWithHttp * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -7908,14 +8214,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -7926,10 +8228,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Scale readNamespacedDeploymentScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -7940,11 +8248,17 @@ public ExtensionsV1beta1Scale readNamespacedDeploymentScale(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -7953,93 +8267,74 @@ public ApiResponse readNamespacedDeploymentScaleWithHttp * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedDeploymentScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedDeploymentStatus * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedDeploymentStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8051,14 +8346,10 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedDeploymentStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8069,10 +8360,16 @@ private com.squareup.okhttp.Call readNamespacedDeploymentStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Deployment readNamespacedDeploymentStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedDeploymentStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8083,11 +8380,17 @@ public ExtensionsV1beta1Deployment readNamespacedDeploymentStatus(String name, S * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8096,35 +8399,22 @@ public ApiResponse readNamespacedDeploymentStatusWi * @param name name of the Deployment (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedDeploymentStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedDeploymentStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedIngress @@ -8133,62 +8423,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedIngressCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedIngressCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8200,14 +8488,10 @@ private com.squareup.okhttp.Call readNamespacedIngressValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedIngressCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedIngressCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -8220,10 +8504,16 @@ private com.squareup.okhttp.Call readNamespacedIngressValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Ingress readNamespacedIngress(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedIngressWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -8236,11 +8526,17 @@ public ExtensionsV1beta1Ingress readNamespacedIngress(String name, String namesp * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8251,93 +8547,74 @@ public ApiResponse readNamespacedIngressWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedIngressAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedIngressAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedIngressStatus * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8349,14 +8626,10 @@ private com.squareup.okhttp.Call readNamespacedIngressStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedIngressStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedIngressStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8367,10 +8640,16 @@ private com.squareup.okhttp.Call readNamespacedIngressStatusValidateBeforeCall(S * @param pretty If 'true', then the output is pretty printed. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Ingress readNamespacedIngressStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8381,11 +8660,17 @@ public ExtensionsV1beta1Ingress readNamespacedIngressStatus(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedIngressStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8394,35 +8679,22 @@ public ApiResponse readNamespacedIngressStatusWithHttp * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedNetworkPolicy @@ -8431,62 +8703,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8498,14 +8768,10 @@ private com.squareup.okhttp.Call readNamespacedNetworkPolicyValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedNetworkPolicyCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -8518,10 +8784,16 @@ private com.squareup.okhttp.Call readNamespacedNetworkPolicyValidateBeforeCall(S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1NetworkPolicy readNamespacedNetworkPolicy(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -8534,11 +8806,17 @@ public V1beta1NetworkPolicy readNamespacedNetworkPolicy(String name, String name * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8549,35 +8827,22 @@ public ApiResponse readNamespacedNetworkPolicyWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSet @@ -8586,62 +8851,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8653,14 +8916,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -8673,10 +8932,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetValidateBeforeCall(Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1ReplicaSet readNamespacedReplicaSet(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -8689,11 +8954,17 @@ public V1beta1ReplicaSet readNamespacedReplicaSet(String name, String namespace, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8704,93 +8975,74 @@ public ApiResponse readNamespacedReplicaSetWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedReplicaSetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSetScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8802,14 +9054,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8820,10 +9068,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetScaleValidateBeforeCall * @param pretty If 'true', then the output is pretty printed. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Scale readNamespacedReplicaSetScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8834,11 +9088,17 @@ public ExtensionsV1beta1Scale readNamespacedReplicaSetScale(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8847,93 +9107,74 @@ public ApiResponse readNamespacedReplicaSetScaleWithHttp * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicaSetScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicaSetStatus * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicaSetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -8945,14 +9186,10 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -8963,10 +9200,16 @@ private com.squareup.okhttp.Call readNamespacedReplicaSetStatusValidateBeforeCal * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1ReplicaSet readNamespacedReplicaSetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicaSetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -8977,11 +9220,17 @@ public V1beta1ReplicaSet readNamespacedReplicaSetStatus(String name, String name * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -8990,93 +9239,74 @@ public ApiResponse readNamespacedReplicaSetStatusWithHttpInfo * @param name name of the ReplicaSet (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedReplicaSetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedReplicationControllerDummyScale * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedReplicationControllerDummyScaleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedReplicationControllerDummyScaleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedReplicationControllerDummyScaleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedReplicationControllerDummyScaleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9088,14 +9318,10 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerDummyScaleVa throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedReplicationControllerDummyScale(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedReplicationControllerDummyScaleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedReplicationControllerDummyScaleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -9106,10 +9332,16 @@ private com.squareup.okhttp.Call readNamespacedReplicationControllerDummyScaleVa * @param pretty If 'true', then the output is pretty printed. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1Scale readNamespacedReplicationControllerDummyScale(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedReplicationControllerDummyScaleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedReplicationControllerDummyScaleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -9120,11 +9352,17 @@ public ExtensionsV1beta1Scale readNamespacedReplicationControllerDummyScale(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedReplicationControllerDummyScaleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9133,35 +9371,22 @@ public ApiResponse readNamespacedReplicationControllerDu * @param name name of the Scale (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedReplicationControllerDummyScaleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedReplicationControllerDummyScaleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPodSecurityPolicy @@ -9169,75 +9394,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readPodSecurityPolicyCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPodSecurityPolicyCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPodSecurityPolicyValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPodSecurityPolicyValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = readPodSecurityPolicyCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPodSecurityPolicyCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -9249,10 +9468,16 @@ private com.squareup.okhttp.Call readPodSecurityPolicyValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ExtensionsV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ExtensionsV1beta1PodSecurityPolicy readPodSecurityPolicy(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readPodSecurityPolicyWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readPodSecurityPolicyWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -9264,11 +9489,17 @@ public ExtensionsV1beta1PodSecurityPolicy readPodSecurityPolicy(String name, Str * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<ExtensionsV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPodSecurityPolicyWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9278,35 +9509,22 @@ public ApiResponse readPodSecurityPolicyWith * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPodSecurityPolicyAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPodSecurityPolicyAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDaemonSet @@ -9316,62 +9534,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDaemonSetCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetValidateBeforeCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9388,14 +9605,10 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDaemonSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9409,10 +9622,17 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1DaemonSet replaceNamespacedDaemonSet(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDaemonSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9426,11 +9646,18 @@ public V1beta1DaemonSet replaceNamespacedDaemonSet(String name, String namespace * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9442,35 +9669,23 @@ public ApiResponse replaceNamespacedDaemonSetWithHttpInfo(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDaemonSetAsync(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDaemonSetStatus @@ -9480,62 +9695,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDaemonSetStatusCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/daemonsets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDaemonSetStatusValidateBeforeCall(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9552,14 +9766,10 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDaemonSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9573,10 +9783,17 @@ private com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1DaemonSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1DaemonSet replaceNamespacedDaemonSetStatus(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDaemonSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9590,11 +9807,18 @@ public V1beta1DaemonSet replaceNamespacedDaemonSetStatus(String name, String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1DaemonSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInfo(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9606,35 +9830,23 @@ public ApiResponse replaceNamespacedDaemonSetStatusWithHttpInf * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDaemonSetStatusAsync(String name, String namespace, V1beta1DaemonSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDaemonSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeployment @@ -9644,62 +9856,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9716,14 +9927,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeployment(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9737,10 +9944,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Deployment replaceNamespacedDeployment(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9754,11 +9968,18 @@ public ExtensionsV1beta1Deployment replaceNamespacedDeployment(String name, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentWithHttpInfo(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9770,35 +9991,23 @@ public ApiResponse replaceNamespacedDeploymentWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentAsync(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentAsync(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentScale @@ -9808,62 +10017,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentScaleCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentScaleValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -9880,14 +10088,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -9901,10 +10105,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Scale replaceNamespacedDeploymentScale(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -9918,11 +10129,18 @@ public ExtensionsV1beta1Scale replaceNamespacedDeploymentScale(String name, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentScaleWithHttpInfo(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -9934,35 +10152,23 @@ public ApiResponse replaceNamespacedDeploymentScaleWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentScaleAsync(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedDeploymentStatus @@ -9972,62 +10178,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedDeploymentStatusCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/deployments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedDeploymentStatusValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10044,14 +10249,10 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedDeploymentStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10065,10 +10266,17 @@ private com.squareup.okhttp.Call replaceNamespacedDeploymentStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Deployment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Deployment replaceNamespacedDeploymentStatus(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedDeploymentStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10082,11 +10290,18 @@ public ExtensionsV1beta1Deployment replaceNamespacedDeploymentStatus(String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Deployment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedDeploymentStatusWithHttpInfo(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10098,35 +10313,23 @@ public ApiResponse replaceNamespacedDeploymentStatu * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedDeploymentStatusAsync(String name, String namespace, ExtensionsV1beta1Deployment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedDeploymentStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedIngress @@ -10136,62 +10339,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedIngressCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10208,14 +10410,10 @@ private com.squareup.okhttp.Call replaceNamespacedIngressValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10229,10 +10427,17 @@ private com.squareup.okhttp.Call replaceNamespacedIngressValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Ingress replaceNamespacedIngress(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10246,11 +10451,18 @@ public ExtensionsV1beta1Ingress replaceNamespacedIngress(String name, String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedIngressWithHttpInfo(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10262,35 +10474,23 @@ public ApiResponse replaceNamespacedIngressWithHttpInf * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedIngressAsync(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedIngressStatus @@ -10300,62 +10500,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedIngressStatusCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10372,14 +10571,10 @@ private com.squareup.okhttp.Call replaceNamespacedIngressStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10393,10 +10588,17 @@ private com.squareup.okhttp.Call replaceNamespacedIngressStatusValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Ingress replaceNamespacedIngressStatus(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10410,11 +10612,18 @@ public ExtensionsV1beta1Ingress replaceNamespacedIngressStatus(String name, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedIngressStatusWithHttpInfo(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10426,35 +10635,23 @@ public ApiResponse replaceNamespacedIngressStatusWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedIngressStatusAsync(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String namespace, ExtensionsV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedNetworkPolicy @@ -10464,62 +10661,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10536,14 +10732,10 @@ private com.squareup.okhttp.Call replaceNamespacedNetworkPolicyValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10557,10 +10749,17 @@ private com.squareup.okhttp.Call replaceNamespacedNetworkPolicyValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10574,11 +10773,18 @@ public V1beta1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10590,35 +10796,23 @@ public ApiResponse replaceNamespacedNetworkPolicyWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1beta1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSet @@ -10628,62 +10822,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetValidateBeforeCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10700,14 +10893,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSet(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10721,10 +10910,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1ReplicaSet replaceNamespacedReplicaSet(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10738,11 +10934,18 @@ public V1beta1ReplicaSet replaceNamespacedReplicaSet(String name, String namespa * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10754,35 +10957,23 @@ public ApiResponse replaceNamespacedReplicaSetWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetAsync(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSetScale @@ -10792,62 +10983,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetScaleCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetScaleValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -10864,14 +11054,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeC throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -10885,10 +11071,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleValidateBeforeC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Scale replaceNamespacedReplicaSetScale(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -10902,11 +11095,18 @@ public ExtensionsV1beta1Scale replaceNamespacedReplicaSetScale(String name, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetScaleWithHttpInfo(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -10918,35 +11118,23 @@ public ApiResponse replaceNamespacedReplicaSetScaleWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetScaleAsync(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicaSetStatus @@ -10956,62 +11144,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicaSetStatusCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicasets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicaSetStatusValidateBeforeCall(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -11028,14 +11215,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBefore throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicaSetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -11049,10 +11232,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusValidateBefore * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ReplicaSet * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1ReplicaSet replaceNamespacedReplicaSetStatus(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicaSetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -11066,11 +11256,18 @@ public V1beta1ReplicaSet replaceNamespacedReplicaSetStatus(String name, String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ReplicaSet> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpInfo(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11082,35 +11279,23 @@ public ApiResponse replaceNamespacedReplicaSetStatusWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicaSetStatusAsync(String name, String namespace, V1beta1ReplicaSet body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicaSetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedReplicationControllerDummyScale @@ -11120,62 +11305,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerDummyScaleCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedReplicationControllerDummyScaleCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/namespaces/{namespace}/replicationcontrollers/{name}/scale" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedReplicationControllerDummyScaleValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedReplicationControllerDummyScaleValidateBeforeCall(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -11192,14 +11376,10 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerDummyScal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedReplicationControllerDummyScale(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerDummyScaleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerDummyScaleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -11213,10 +11393,17 @@ private com.squareup.okhttp.Call replaceNamespacedReplicationControllerDummyScal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1Scale * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1Scale replaceNamespacedReplicationControllerDummyScale(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedReplicationControllerDummyScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedReplicationControllerDummyScaleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -11230,11 +11417,18 @@ public ExtensionsV1beta1Scale replaceNamespacedReplicationControllerDummyScale(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1Scale> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedReplicationControllerDummyScaleWithHttpInfo(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11246,35 +11440,23 @@ public ApiResponse replaceNamespacedReplicationControlle * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedReplicationControllerDummyScaleAsync(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedReplicationControllerDummyScaleAsync(String name, String namespace, ExtensionsV1beta1Scale body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedReplicationControllerDummyScaleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePodSecurityPolicy @@ -11283,61 +11465,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replacePodSecurityPolicyCall(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePodSecurityPolicyCall(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/extensions/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePodSecurityPolicyValidateBeforeCall(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePodSecurityPolicyValidateBeforeCall(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -11349,14 +11530,10 @@ private com.squareup.okhttp.Call replacePodSecurityPolicyValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replacePodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = replacePodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -11369,10 +11546,17 @@ private com.squareup.okhttp.Call replacePodSecurityPolicyValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ExtensionsV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ExtensionsV1beta1PodSecurityPolicy replacePodSecurityPolicy(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -11385,11 +11569,18 @@ public ExtensionsV1beta1PodSecurityPolicy replacePodSecurityPolicy(String name, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<ExtensionsV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePodSecurityPolicyWithHttpInfo(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -11400,34 +11591,22 @@ public ApiResponse replacePodSecurityPolicyW * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePodSecurityPolicyAsync(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replacePodSecurityPolicyAsync(String name, ExtensionsV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/LogsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/LogsApi.java index 4335c6c79c..4c3a5bc707 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/LogsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/LogsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -35,90 +35,77 @@ import java.util.Map; public class LogsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public LogsApi() { this(Configuration.getDefaultApiClient()); } public LogsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for logFileHandler * @param logpath path to the log (required) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ - public com.squareup.okhttp.Call logFileHandlerCall(String logpath, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call logFileHandlerCall(String logpath, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/logs/{logpath}" - .replaceAll("\\{" + "logpath" + "\\}", apiClient.escapeString(logpath.toString())); + .replaceAll("\\{" + "logpath" + "\\}", localVarApiClient.escapeString(logpath.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call logFileHandlerValidateBeforeCall(String logpath, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call logFileHandlerValidateBeforeCall(String logpath, final ApiCallback _callback) throws ApiException { // verify the required parameter 'logpath' is set if (logpath == null) { throw new ApiException("Missing the required parameter 'logpath' when calling logFileHandler(Async)"); } - - com.squareup.okhttp.Call call = logFileHandlerCall(logpath, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = logFileHandlerCall(logpath, _callback); + return localVarCall; + } /** @@ -126,6 +113,11 @@ private com.squareup.okhttp.Call logFileHandlerValidateBeforeCall(String logpath * * @param logpath path to the log (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ public void logFileHandler(String logpath) throws ApiException { logFileHandlerWithHttpInfo(logpath); @@ -137,110 +129,93 @@ public void logFileHandler(String logpath) throws ApiException { * @param logpath path to the log (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ public ApiResponse logFileHandlerWithHttpInfo(String logpath) throws ApiException { - com.squareup.okhttp.Call call = logFileHandlerValidateBeforeCall(logpath, null, null); - return apiClient.execute(call); + okhttp3.Call localVarCall = logFileHandlerValidateBeforeCall(logpath, null); + return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * * @param logpath path to the log (required) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ - public com.squareup.okhttp.Call logFileHandlerAsync(String logpath, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call logFileHandlerAsync(String logpath, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = logFileHandlerValidateBeforeCall(logpath, progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; + okhttp3.Call localVarCall = logFileHandlerValidateBeforeCall(logpath, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } /** * Build call for logFileListHandler - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ - public com.squareup.okhttp.Call logFileListHandlerCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call logFileListHandlerCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/logs/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call logFileListHandlerValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call logFileListHandlerValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = logFileListHandlerCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = logFileListHandlerCall(_callback); + return localVarCall; + } /** * * * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ public void logFileListHandler() throws ApiException { logFileListHandlerWithHttpInfo(); @@ -251,42 +226,33 @@ public void logFileListHandler() throws ApiException { * * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ public ApiResponse logFileListHandlerWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = logFileListHandlerValidateBeforeCall(null, null); - return apiClient.execute(call); + okhttp3.Call localVarCall = logFileListHandlerValidateBeforeCall(null); + return localVarApiClient.execute(localVarCall); } /** * (asynchronously) * - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + +
Status Code Description Response Headers
401 Unauthorized -
*/ - public com.squareup.okhttp.Call logFileListHandlerAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call logFileListHandlerAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = logFileListHandlerValidateBeforeCall(progressListener, progressRequestListener); - apiClient.executeAsync(call, callback); - return call; + okhttp3.Call localVarCall = logFileListHandlerValidateBeforeCall(_callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingApi.java index e441fcfbef..b0f6e56bd9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class NetworkingApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public NetworkingApi() { this(Configuration.getDefaultApiClient()); } public NetworkingApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1Api.java index 0fc6801672..33f15c5fd3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1NetworkPolicy; import io.kubernetes.client.models.V1NetworkPolicyList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import java.lang.reflect.Type; @@ -41,22 +40,22 @@ import java.util.Map; public class NetworkingV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public NetworkingV1Api() { this(Configuration.getDefaultApiClient()); } public NetworkingV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedNetworkPolicyCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedNetworkPolicyCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedNetworkPolicyValidateBeforeCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedNetworkPolicyValidateBeforeCall(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedNetworkPolicyValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling createNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedNetworkPolicyCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedNetworkPolicyValidateBeforeCall * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1NetworkPolicy createNamespacedNetworkPolicy(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedNetworkPolicyWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1NetworkPolicy createNamespacedNetworkPolicy(String namespace, V1Network * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedNetworkPolicyWithHttpInfo(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedNetworkPolicyWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedNetworkPolicyAsync(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedNetworkPolicyAsync(String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedNetworkPolicyValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedNetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyValidate * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedNetworkPolicy(String namespace, String * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedNetworkPolicyWithHttpInfo * delete collection of NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedNetworkPolicy * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedNetworkPolicyCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedNetworkPolicyValidateBeforeCall throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedNetworkPolicyValidateBeforeCall * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedNetworkPolicy(String name, String namespace, Str * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedNetworkPolicyWithHttpInfo(String na * @param name name of the NetworkPolicy (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,50 +678,44 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedNetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -687,85 +723,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedNetworkPolicyCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedNetworkPolicyValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedNetworkPolicyCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedNetworkPolicyCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -773,6 +817,7 @@ private com.squareup.okhttp.Call listNamespacedNetworkPolicyValidateBeforeCall(S * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -782,10 +827,16 @@ private com.squareup.okhttp.Call listNamespacedNetworkPolicyValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1NetworkPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedNetworkPolicyWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -793,6 +844,7 @@ public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -802,11 +854,17 @@ public V1NetworkPolicyList listNamespacedNetworkPolicy(String namespace, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1NetworkPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedNetworkPolicyWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -814,6 +872,7 @@ public ApiResponse listNamespacedNetworkPolicyWithHttpInfo( * list or watch objects of kind NetworkPolicy * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -821,38 +880,26 @@ public ApiResponse listNamespacedNetworkPolicyWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedNetworkPolicyAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedNetworkPolicyValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNetworkPolicyForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -861,84 +908,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNetworkPolicyForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/networkpolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNetworkPolicyForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listNetworkPolicyForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -949,15 +1005,22 @@ private com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesValidateBefore * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1NetworkPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NetworkPolicyList listNetworkPolicyForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNetworkPolicyForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1NetworkPolicyList listNetworkPolicyForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNetworkPolicyForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -968,16 +1031,23 @@ public V1NetworkPolicyList listNetworkPolicyForAllNamespaces(String _continue, S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1NetworkPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNetworkPolicyForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNetworkPolicyForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind NetworkPolicy + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNetworkPolicyForAllNamespacesWithHtt * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNetworkPolicyForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNetworkPolicyForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNetworkPolicyForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNetworkPolicyForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedNetworkPolicy @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedNetworkPolicyCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedNetworkPolicyCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedNetworkPolicyValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedNetworkPolicyValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1NetworkPolicy patchNamespacedNetworkPolicy(String name, String namespac * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedNetworkPolicyWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedNetworkPolicyAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedNetworkPolicy @@ -1193,62 +1245,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedNetworkPolicyCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1260,14 +1310,10 @@ private com.squareup.okhttp.Call readNamespacedNetworkPolicyValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedNetworkPolicyCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedNetworkPolicyCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1280,10 +1326,16 @@ private com.squareup.okhttp.Call readNamespacedNetworkPolicyValidateBeforeCall(S * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1NetworkPolicy readNamespacedNetworkPolicy(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedNetworkPolicyWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1296,11 +1348,17 @@ public V1NetworkPolicy readNamespacedNetworkPolicy(String name, String namespace * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1311,35 +1369,22 @@ public ApiResponse readNamespacedNetworkPolicyWithHttpInfo(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedNetworkPolicyAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedNetworkPolicyValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedNetworkPolicy @@ -1349,62 +1394,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedNetworkPolicyCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1/namespaces/{namespace}/networkpolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedNetworkPolicyValidateBeforeCall(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1421,14 +1465,10 @@ private com.squareup.okhttp.Call replaceNamespacedNetworkPolicyValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedNetworkPolicy(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1442,10 +1482,17 @@ private com.squareup.okhttp.Call replaceNamespacedNetworkPolicyValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1NetworkPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedNetworkPolicyWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1459,11 +1506,18 @@ public V1NetworkPolicy replaceNamespacedNetworkPolicy(String name, String namesp * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1NetworkPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1475,34 +1529,22 @@ public ApiResponse replaceNamespacedNetworkPolicyWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedNetworkPolicyAsync(String name, String namespace, V1NetworkPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedNetworkPolicyValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1beta1Api.java index e753a22b00..605cbcd639 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/NetworkingV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.NetworkingV1beta1IngressList; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import java.lang.reflect.Type; @@ -41,22 +40,22 @@ import java.util.Map; public class NetworkingV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public NetworkingV1beta1Api() { this(Configuration.getDefaultApiClient()); } public NetworkingV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedIngressCall(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedIngressCall(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedIngressValidateBeforeCall(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedIngressValidateBeforeCall(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedIngressValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling createNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedIngressCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedIngressValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public NetworkingV1beta1Ingress createNamespacedIngress(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedIngressWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public NetworkingV1beta1Ingress createNamespacedIngress(String namespace, Networ * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedIngressWithHttpInfo(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedIngressWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedIngressAsync(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedIngressAsync(String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedIngressValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedIngress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedIngressCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedIngressValidateBefore * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedIngress(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedIngress(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedIngress(String namespace, String prett * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedIngressWithHttpInfo(Strin * delete collection of Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedIngress * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedIngressCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedIngressValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedIngressCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedIngressCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedIngressValidateBeforeCall(Strin * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedIngress(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedIngress(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedIngressWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedIngress(String name, String namespace, String pr * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedIngressWithHttpInfo(String name, St * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedIngressAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedIngressValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,48 +678,42 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listIngressForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -686,84 +722,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listIngressForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listIngressForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/ingresses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listIngressForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listIngressForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listIngressForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listIngressForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -774,15 +819,22 @@ private com.squareup.okhttp.Call listIngressForAllNamespacesValidateBeforeCall(S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return NetworkingV1beta1IngressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public NetworkingV1beta1IngressList listIngressForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listIngressForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public NetworkingV1beta1IngressList listIngressForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listIngressForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -793,16 +845,23 @@ public NetworkingV1beta1IngressList listIngressForAllNamespaces(String _continue * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<NetworkingV1beta1IngressList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listIngressForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listIngressForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listIngressForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Ingress + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -811,40 +870,28 @@ public ApiResponse listIngressForAllNamespacesWith * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listIngressForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listIngressForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listIngressForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listIngressForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedIngress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -852,85 +899,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedIngressCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedIngressCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedIngressValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedIngressCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedIngressCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -938,6 +993,7 @@ private com.squareup.okhttp.Call listNamespacedIngressValidateBeforeCall(String * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -947,10 +1003,16 @@ private com.squareup.okhttp.Call listNamespacedIngressValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return NetworkingV1beta1IngressList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public NetworkingV1beta1IngressList listNamespacedIngress(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedIngressWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public NetworkingV1beta1IngressList listNamespacedIngress(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedIngressWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -958,6 +1020,7 @@ public NetworkingV1beta1IngressList listNamespacedIngress(String namespace, Stri * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -967,11 +1030,17 @@ public NetworkingV1beta1IngressList listNamespacedIngress(String namespace, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<NetworkingV1beta1IngressList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedIngressWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -979,6 +1048,7 @@ public ApiResponse listNamespacedIngressWithHttpIn * list or watch objects of kind Ingress * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listNamespacedIngressWithHttpIn * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedIngressAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listNamespacedIngressAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedIngressValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedIngressValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedIngress @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedIngressCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedIngressCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedIngressValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedIngressValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedIngressValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public NetworkingV1beta1Ingress patchNamespacedIngress(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public NetworkingV1beta1Ingress patchNamespacedIngress(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public NetworkingV1beta1Ingress patchNamespacedIngress(String name, String names * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedIngressWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedIngressWithHttpInfo( * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedIngressAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedIngressAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedIngressStatus @@ -1195,64 +1247,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedIngressStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedIngressStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedIngressStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1269,14 +1321,10 @@ private com.squareup.okhttp.Call patchNamespacedIngressStatusValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedIngressStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1291,10 +1339,16 @@ private com.squareup.okhttp.Call patchNamespacedIngressStatusValidateBeforeCall( * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public NetworkingV1beta1Ingress patchNamespacedIngressStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public NetworkingV1beta1Ingress patchNamespacedIngressStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1309,11 +1363,17 @@ public NetworkingV1beta1Ingress patchNamespacedIngressStatus(String name, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedIngressStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1326,35 +1386,22 @@ public ApiResponse patchNamespacedIngressStatusWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedIngressStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchNamespacedIngressStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedIngress @@ -1363,62 +1410,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedIngressCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedIngressCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedIngressValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1430,14 +1475,10 @@ private com.squareup.okhttp.Call readNamespacedIngressValidateBeforeCall(String throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedIngressCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedIngressCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1450,10 +1491,16 @@ private com.squareup.okhttp.Call readNamespacedIngressValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public NetworkingV1beta1Ingress readNamespacedIngress(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedIngressWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedIngressWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1466,11 +1513,17 @@ public NetworkingV1beta1Ingress readNamespacedIngress(String name, String namesp * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedIngressWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1481,93 +1534,74 @@ public ApiResponse readNamespacedIngressWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedIngressAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedIngressAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedIngressValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedIngressStatus * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedIngressStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedIngressStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1579,14 +1613,10 @@ private com.squareup.okhttp.Call readNamespacedIngressStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedIngressStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedIngressStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedIngressStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -1597,10 +1627,16 @@ private com.squareup.okhttp.Call readNamespacedIngressStatusValidateBeforeCall(S * @param pretty If 'true', then the output is pretty printed. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public NetworkingV1beta1Ingress readNamespacedIngressStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedIngressStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -1611,11 +1647,17 @@ public NetworkingV1beta1Ingress readNamespacedIngressStatus(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedIngressStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1624,35 +1666,22 @@ public ApiResponse readNamespacedIngressStatusWithHttp * @param name name of the Ingress (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readNamespacedIngressStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedIngressStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedIngress @@ -1662,62 +1691,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedIngressCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedIngressCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedIngressValidateBeforeCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1734,14 +1762,10 @@ private com.squareup.okhttp.Call replaceNamespacedIngressValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngress(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedIngressCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1755,10 +1779,17 @@ private com.squareup.okhttp.Call replaceNamespacedIngressValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public NetworkingV1beta1Ingress replaceNamespacedIngress(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedIngressWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1772,11 +1803,18 @@ public NetworkingV1beta1Ingress replaceNamespacedIngress(String name, String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedIngressWithHttpInfo(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1788,35 +1826,23 @@ public ApiResponse replaceNamespacedIngressWithHttpInf * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedIngressAsync(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceNamespacedIngressAsync(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedIngressValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedIngressStatus @@ -1826,62 +1852,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedIngressStatusCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedIngressStatusCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/networking.k8s.io/v1beta1/namespaces/{namespace}/ingresses/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedIngressStatusValidateBeforeCall(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1898,14 +1923,10 @@ private com.squareup.okhttp.Call replaceNamespacedIngressStatusValidateBeforeCal throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedIngressStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedIngressStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1919,10 +1940,17 @@ private com.squareup.okhttp.Call replaceNamespacedIngressStatusValidateBeforeCal * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return NetworkingV1beta1Ingress * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public NetworkingV1beta1Ingress replaceNamespacedIngressStatus(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedIngressStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1936,11 +1964,18 @@ public NetworkingV1beta1Ingress replaceNamespacedIngressStatus(String name, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<NetworkingV1beta1Ingress> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedIngressStatusWithHttpInfo(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1952,34 +1987,22 @@ public ApiResponse replaceNamespacedIngressStatusWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedIngressStatusAsync(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedIngressStatusAsync(String name, String namespace, NetworkingV1beta1Ingress body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedIngressStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/NodeApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/NodeApi.java index ced0d33313..f6a40abca9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/NodeApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/NodeApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class NodeApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public NodeApi() { this(Configuration.getDefaultApiClient()); } public NodeApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1alpha1Api.java index 0bb6e0a05c..0d691d2186 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1RuntimeClass; import io.kubernetes.client.models.V1alpha1RuntimeClassList; @@ -41,22 +40,22 @@ import java.util.Map; public class NodeV1alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public NodeV1alpha1Api() { this(Configuration.getDefaultApiClient()); } public NodeV1alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createRuntimeClassCall(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createRuntimeClassCall(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createRuntimeClassValidateBeforeCall(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createRuntimeClassValidateBeforeCall(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = createRuntimeClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createRuntimeClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createRuntimeClassValidateBeforeCall(V1alpha1Ru * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1RuntimeClass createRuntimeClass(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1alpha1RuntimeClass createRuntimeClass(V1alpha1RuntimeClass body, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createRuntimeClassWithHttpInfo(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createRuntimeClassWithHttpInfo(V1alpha1 * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createRuntimeClassAsync(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createRuntimeClassAsync(V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionRuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionRuntimeClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionRuntimeClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionRuntimeClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionRuntimeClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionRuntimeClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionRuntimeClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteRuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteRuntimeClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = deleteRuntimeClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteRuntimeClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deleteRuntimeClassValidateBeforeCall(String nam * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteRuntimeClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteRuntimeClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteRuntimeClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deleteRuntimeClass(String name, String pretty, V1DeleteOptions b * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteRuntimeClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteRuntimeClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteRuntimeClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRuntimeClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRuntimeClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listRuntimeClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRuntimeClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listRuntimeClassValidateBeforeCall(String prett * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1RuntimeClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RuntimeClassList listRuntimeClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRuntimeClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1RuntimeClassList listRuntimeClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1alpha1RuntimeClassList listRuntimeClass(String pretty, String _continue * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1RuntimeClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRuntimeClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRuntimeClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listRuntimeClassWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRuntimeClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listRuntimeClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchRuntimeClass @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchRuntimeClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchRuntimeClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchRuntimeClassValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling patchRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = patchRuntimeClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchRuntimeClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchRuntimeClassValidateBeforeCall(String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RuntimeClass patchRuntimeClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1RuntimeClass patchRuntimeClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1alpha1RuntimeClass patchRuntimeClass(String name, V1Patch body, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchRuntimeClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchRuntimeClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchRuntimeClassWithHttpInfo(String na * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchRuntimeClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchRuntimeClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readRuntimeClass @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readRuntimeClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readRuntimeClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readRuntimeClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readRuntimeClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = readRuntimeClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readRuntimeClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readRuntimeClassValidateBeforeCall(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1alpha1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1RuntimeClass readRuntimeClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readRuntimeClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readRuntimeClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1alpha1RuntimeClass readRuntimeClass(String name, String pretty, Boolean * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1alpha1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readRuntimeClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readRuntimeClassWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readRuntimeClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readRuntimeClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceRuntimeClass @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceRuntimeClassCall(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceRuntimeClassCall(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1alpha1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceRuntimeClassValidateBeforeCall(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replaceRuntimeClassValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling replaceRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = replaceRuntimeClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceRuntimeClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replaceRuntimeClassValidateBeforeCall(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1RuntimeClass replaceRuntimeClass(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1alpha1RuntimeClass replaceRuntimeClass(String name, V1alpha1RuntimeClas * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceRuntimeClassWithHttpInfo(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replaceRuntimeClassWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceRuntimeClassAsync(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceRuntimeClassAsync(String name, V1alpha1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1beta1Api.java index e59451e905..fab0847f1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/NodeV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1RuntimeClass; import io.kubernetes.client.models.V1beta1RuntimeClassList; @@ -41,22 +40,22 @@ import java.util.Map; public class NodeV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public NodeV1beta1Api() { this(Configuration.getDefaultApiClient()); } public NodeV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createRuntimeClassCall(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createRuntimeClassCall(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createRuntimeClassValidateBeforeCall(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createRuntimeClassValidateBeforeCall(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = createRuntimeClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createRuntimeClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createRuntimeClassValidateBeforeCall(V1beta1Run * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1RuntimeClass createRuntimeClass(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createRuntimeClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1beta1RuntimeClass createRuntimeClass(V1beta1RuntimeClass body, String p * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createRuntimeClassWithHttpInfo(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createRuntimeClassWithHttpInfo(V1beta1Ru * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createRuntimeClassAsync(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createRuntimeClassAsync(V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createRuntimeClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionRuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionRuntimeClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionRuntimeClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionRuntimeClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionRuntimeClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionRuntimeClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionRuntimeClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionRuntimeClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionRuntimeClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionRuntimeClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionRuntimeClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionRuntimeClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteRuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteRuntimeClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteRuntimeClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteRuntimeClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = deleteRuntimeClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteRuntimeClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deleteRuntimeClassValidateBeforeCall(String nam * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteRuntimeClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteRuntimeClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteRuntimeClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteRuntimeClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deleteRuntimeClass(String name, String pretty, V1DeleteOptions b * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteRuntimeClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deleteRuntimeClassWithHttpInfo(String name, String * delete a RuntimeClass * @param name name of the RuntimeClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteRuntimeClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteRuntimeClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteRuntimeClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteRuntimeClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRuntimeClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRuntimeClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRuntimeClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listRuntimeClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRuntimeClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRuntimeClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listRuntimeClassValidateBeforeCall(String prett * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1RuntimeClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RuntimeClassList listRuntimeClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRuntimeClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1RuntimeClassList listRuntimeClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRuntimeClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1beta1RuntimeClassList listRuntimeClass(String pretty, String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1RuntimeClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRuntimeClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRuntimeClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind RuntimeClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listRuntimeClassWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRuntimeClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listRuntimeClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRuntimeClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRuntimeClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchRuntimeClass @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchRuntimeClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchRuntimeClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchRuntimeClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchRuntimeClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchRuntimeClassValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling patchRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = patchRuntimeClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchRuntimeClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchRuntimeClassValidateBeforeCall(String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RuntimeClass patchRuntimeClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1RuntimeClass patchRuntimeClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1beta1RuntimeClass patchRuntimeClass(String name, V1Patch body, String p * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchRuntimeClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchRuntimeClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchRuntimeClassWithHttpInfo(String nam * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchRuntimeClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchRuntimeClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readRuntimeClass @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readRuntimeClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readRuntimeClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readRuntimeClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readRuntimeClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = readRuntimeClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readRuntimeClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readRuntimeClassValidateBeforeCall(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1RuntimeClass readRuntimeClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readRuntimeClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readRuntimeClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1beta1RuntimeClass readRuntimeClass(String name, String pretty, Boolean * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readRuntimeClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readRuntimeClassWithHttpInfo(String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readRuntimeClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readRuntimeClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readRuntimeClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceRuntimeClass @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceRuntimeClassCall(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceRuntimeClassCall(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/node.k8s.io/v1beta1/runtimeclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceRuntimeClassValidateBeforeCall(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceRuntimeClassValidateBeforeCall(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replaceRuntimeClassValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling replaceRuntimeClass(Async)"); } - - com.squareup.okhttp.Call call = replaceRuntimeClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceRuntimeClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replaceRuntimeClassValidateBeforeCall(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1RuntimeClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1RuntimeClass replaceRuntimeClass(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceRuntimeClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1beta1RuntimeClass replaceRuntimeClass(String name, V1beta1RuntimeClass * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1RuntimeClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceRuntimeClassWithHttpInfo(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replaceRuntimeClassWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceRuntimeClassAsync(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceRuntimeClassAsync(String name, V1beta1RuntimeClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceRuntimeClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyApi.java index a665fef88b..54c486ffe7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class PolicyApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public PolicyApi() { this(Configuration.getDefaultApiClient()); } public PolicyApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyV1beta1Api.java index 9355abe35f..1882eff26f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/PolicyV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.PolicyV1beta1PodSecurityPolicyList; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1PodDisruptionBudget; import io.kubernetes.client.models.V1beta1PodDisruptionBudgetList; @@ -43,22 +42,22 @@ import java.util.Map; public class PolicyV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public PolicyV1beta1Api() { this(Configuration.getDefaultApiClient()); } public PolicyV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -68,61 +67,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodDisruptionBudgetCall(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -134,14 +133,10 @@ private com.squareup.okhttp.Call createNamespacedPodDisruptionBudgetValidateBefo throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPodDisruptionBudgetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPodDisruptionBudgetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -154,10 +149,18 @@ private com.squareup.okhttp.Call createNamespacedPodDisruptionBudgetValidateBefo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1PodDisruptionBudget createNamespacedPodDisruptionBudget(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPodDisruptionBudgetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -170,11 +173,19 @@ public V1beta1PodDisruptionBudget createNamespacedPodDisruptionBudget(String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -185,35 +196,24 @@ public ApiResponse createNamespacedPodDisruptionBudg * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createNamespacedPodDisruptionBudgetAsync(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createNamespacedPodDisruptionBudgetAsync(String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createPodSecurityPolicy @@ -221,74 +221,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createPodSecurityPolicyCall(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPodSecurityPolicyCall(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPodSecurityPolicyValidateBeforeCall(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createPodSecurityPolicyValidateBeforeCall(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = createPodSecurityPolicyCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createPodSecurityPolicyCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -300,10 +296,18 @@ private com.squareup.okhttp.Call createPodSecurityPolicyValidateBeforeCall(Polic * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return PolicyV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public PolicyV1beta1PodSecurityPolicy createPodSecurityPolicy(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createPodSecurityPolicyWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -315,11 +319,19 @@ public PolicyV1beta1PodSecurityPolicy createPodSecurityPolicy(PolicyV1beta1PodSe * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<PolicyV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createPodSecurityPolicyWithHttpInfo(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -329,126 +341,145 @@ public ApiResponse createPodSecurityPolicyWithHt * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createPodSecurityPolicyAsync(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createPodSecurityPolicyAsync(PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createPodSecurityPolicyValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedPodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -456,19 +487,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedPodDisruptionBudgetVa * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -476,20 +519,32 @@ public V1Status deleteCollectionNamespacedPodDisruptionBudget(String namespace, * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -497,278 +552,321 @@ public ApiResponse deleteCollectionNamespacedPodDisruptionBudgetWithHt * delete collection of PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionPodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionPodSecurityPolicyCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionPodSecurityPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionPodSecurityPolicyValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionPodSecurityPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionPodSecurityPolicyCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionPodSecurityPolicyCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionPodSecurityPolicy(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionPodSecurityPolicyWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionPodSecurityPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPodSecurityPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionPodSecurityPolicyWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionPodSecurityPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPodSecurityPolicyAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionPodSecurityPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedPodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -780,14 +878,10 @@ private com.squareup.okhttp.Call deleteNamespacedPodDisruptionBudgetValidateBefo throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedPodDisruptionBudgetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -796,17 +890,24 @@ private com.squareup.okhttp.Call deleteNamespacedPodDisruptionBudgetValidateBefo * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -815,18 +916,25 @@ public V1Status deleteNamespacedPodDisruptionBudget(String name, String namespac * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -835,123 +943,110 @@ public ApiResponse deleteNamespacedPodDisruptionBudgetWithHttpInfo(Str * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deletePodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deletePodSecurityPolicyCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deletePodSecurityPolicyCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePodSecurityPolicyValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deletePodSecurityPolicyValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = deletePodSecurityPolicyCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deletePodSecurityPolicyCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -959,17 +1054,24 @@ private com.squareup.okhttp.Call deletePodSecurityPolicyValidateBeforeCall(Strin * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deletePodSecurityPolicy(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deletePodSecurityPolicyWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deletePodSecurityPolicy(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePodSecurityPolicyWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -977,18 +1079,25 @@ public V1Status deletePodSecurityPolicy(String name, String pretty, V1DeleteOpti * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deletePodSecurityPolicyWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deletePodSecurityPolicyValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deletePodSecurityPolicyWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePodSecurityPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -996,100 +1105,76 @@ public ApiResponse deletePodSecurityPolicyWithHttpInfo(String name, St * delete a PodSecurityPolicy * @param name name of the PodSecurityPolicy (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePodSecurityPolicyAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deletePodSecurityPolicyAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deletePodSecurityPolicyValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deletePodSecurityPolicyValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -1097,10 +1182,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -1108,50 +1199,44 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedPodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1159,85 +1244,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listNamespacedPodDisruptionBudgetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listNamespacedPodDisruptionBudgetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedPodDisruptionBudgetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedPodDisruptionBudgetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -1245,6 +1338,7 @@ private com.squareup.okhttp.Call listNamespacedPodDisruptionBudgetValidateBefore * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1254,10 +1348,16 @@ private com.squareup.okhttp.Call listNamespacedPodDisruptionBudgetValidateBefore * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1PodDisruptionBudgetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedPodDisruptionBudgetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -1265,6 +1365,7 @@ public V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(String n * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1274,11 +1375,17 @@ public V1beta1PodDisruptionBudgetList listNamespacedPodDisruptionBudget(String n * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1PodDisruptionBudgetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listNamespacedPodDisruptionBudgetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1286,6 +1393,7 @@ public ApiResponse listNamespacedPodDisruptionBu * list or watch objects of kind PodDisruptionBudget * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1293,38 +1401,26 @@ public ApiResponse listNamespacedPodDisruptionBu * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedPodDisruptionBudgetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedPodDisruptionBudgetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPodDisruptionBudgetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1333,84 +1429,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPodDisruptionBudgetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodDisruptionBudgetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/poddisruptionbudgets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listPodDisruptionBudgetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PodDisruptionBudget + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1421,15 +1526,22 @@ private com.squareup.okhttp.Call listPodDisruptionBudgetForAllNamespacesValidate * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1PodDisruptionBudgetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPodDisruptionBudgetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodDisruptionBudgetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PodDisruptionBudget + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1440,16 +1552,23 @@ public V1beta1PodDisruptionBudgetList listPodDisruptionBudgetForAllNamespaces(St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1PodDisruptionBudgetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listPodDisruptionBudgetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listPodDisruptionBudgetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PodDisruptionBudget + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1458,39 +1577,27 @@ public ApiResponse listPodDisruptionBudgetForAll * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodDisruptionBudgetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listPodDisruptionBudgetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPodDisruptionBudgetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1498,85 +1605,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listPodSecurityPolicyCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listPodSecurityPolicyCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPodSecurityPolicyValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listPodSecurityPolicyValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listPodSecurityPolicyCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPodSecurityPolicyCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1586,16 +1702,23 @@ private com.squareup.okhttp.Call listPodSecurityPolicyValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return PolicyV1beta1PodSecurityPolicyList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public PolicyV1beta1PodSecurityPolicyList listPodSecurityPolicy(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPodSecurityPolicyWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public PolicyV1beta1PodSecurityPolicyList listPodSecurityPolicy(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodSecurityPolicyWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1605,17 +1728,24 @@ public PolicyV1beta1PodSecurityPolicyList listPodSecurityPolicy(String pretty, S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<PolicyV1beta1PodSecurityPolicyList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listPodSecurityPolicyWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listPodSecurityPolicyWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PodSecurityPolicy * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1623,35 +1753,22 @@ public ApiResponse listPodSecurityPolicyWith * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodSecurityPolicyAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listPodSecurityPolicyAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listPodSecurityPolicyValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPodSecurityPolicyValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPodDisruptionBudget @@ -1662,64 +1779,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodDisruptionBudgetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1736,14 +1853,10 @@ private com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetValidateBefor throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1758,10 +1871,16 @@ private com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetValidateBefor * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1776,11 +1895,17 @@ public V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudget(String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1793,35 +1918,22 @@ public ApiResponse patchNamespacedPodDisruptionBudge * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedPodDisruptionBudgetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPodDisruptionBudgetStatus @@ -1832,64 +1944,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1906,14 +2018,10 @@ private com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetStatusValidat throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodDisruptionBudgetStatus(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1928,10 +2036,16 @@ private com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetStatusValidat * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1946,11 +2060,17 @@ public V1beta1PodDisruptionBudget patchNamespacedPodDisruptionBudgetStatus(Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1963,35 +2083,22 @@ public ApiResponse patchNamespacedPodDisruptionBudge * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPodSecurityPolicy @@ -2001,63 +2108,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchPodSecurityPolicyCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchPodSecurityPolicyCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPodSecurityPolicyValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPodSecurityPolicyValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2069,14 +2176,10 @@ private com.squareup.okhttp.Call patchPodSecurityPolicyValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchPodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = patchPodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -2090,10 +2193,16 @@ private com.squareup.okhttp.Call patchPodSecurityPolicyValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return PolicyV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public PolicyV1beta1PodSecurityPolicy patchPodSecurityPolicy(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public PolicyV1beta1PodSecurityPolicy patchPodSecurityPolicy(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -2107,11 +2216,17 @@ public PolicyV1beta1PodSecurityPolicy patchPodSecurityPolicy(String name, V1Patc * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<PolicyV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchPodSecurityPolicyWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchPodSecurityPolicyWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2123,35 +2238,22 @@ public ApiResponse patchPodSecurityPolicyWithHtt * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPodSecurityPolicyAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchPodSecurityPolicyAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPodDisruptionBudget @@ -2160,62 +2262,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodDisruptionBudgetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2227,14 +2327,10 @@ private com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetValidateBefore throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodDisruptionBudgetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -2247,10 +2343,16 @@ private com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetValidateBefore * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudget(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -2263,11 +2365,17 @@ public V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudget(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2278,93 +2386,74 @@ public ApiResponse readNamespacedPodDisruptionBudget * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedPodDisruptionBudgetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPodDisruptionBudgetStatus * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2376,14 +2465,10 @@ private com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetStatusValidate throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodDisruptionBudgetStatus(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodDisruptionBudgetStatusCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetStatusCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -2394,10 +2479,16 @@ private com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetStatusValidate * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -2408,11 +2499,17 @@ public V1beta1PodDisruptionBudget readNamespacedPodDisruptionBudgetStatus(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2421,35 +2518,22 @@ public ApiResponse readNamespacedPodDisruptionBudget * @param name name of the PodDisruptionBudget (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPodSecurityPolicy @@ -2457,75 +2541,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readPodSecurityPolicyCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readPodSecurityPolicyCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPodSecurityPolicyValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPodSecurityPolicyValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = readPodSecurityPolicyCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPodSecurityPolicyCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -2537,10 +2615,16 @@ private com.squareup.okhttp.Call readPodSecurityPolicyValidateBeforeCall(String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return PolicyV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public PolicyV1beta1PodSecurityPolicy readPodSecurityPolicy(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readPodSecurityPolicyWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readPodSecurityPolicyWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -2552,11 +2636,17 @@ public PolicyV1beta1PodSecurityPolicy readPodSecurityPolicy(String name, String * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<PolicyV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPodSecurityPolicyWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2566,35 +2656,22 @@ public ApiResponse readPodSecurityPolicyWithHttp * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPodSecurityPolicyAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPodSecurityPolicyAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPodSecurityPolicyValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPodDisruptionBudget @@ -2604,62 +2681,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodDisruptionBudgetCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetValidateBeforeCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2676,14 +2752,10 @@ private com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetValidateBef throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudget(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2697,10 +2769,17 @@ private com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetValidateBef * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPodDisruptionBudgetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2714,11 +2793,18 @@ public V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudget(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPodDisruptionBudgetWithHttpInfo(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2730,35 +2816,23 @@ public ApiResponse replaceNamespacedPodDisruptionBud * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetAsync(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedPodDisruptionBudgetAsync(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPodDisruptionBudgetStatus @@ -2768,62 +2842,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/namespaces/{namespace}/poddisruptionbudgets/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2840,14 +2913,10 @@ private com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetStatusValid throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodDisruptionBudgetStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetStatusCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2861,10 +2930,17 @@ private com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetStatusValid * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1PodDisruptionBudget * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2878,11 +2954,18 @@ public V1beta1PodDisruptionBudget replaceNamespacedPodDisruptionBudgetStatus(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1PodDisruptionBudget> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPodDisruptionBudgetStatusWithHttpInfo(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2894,35 +2977,23 @@ public ApiResponse replaceNamespacedPodDisruptionBud * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedPodDisruptionBudgetStatusAsync(String name, String namespace, V1beta1PodDisruptionBudget body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPodDisruptionBudgetStatusValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePodSecurityPolicy @@ -2931,61 +3002,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replacePodSecurityPolicyCall(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replacePodSecurityPolicyCall(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/policy/v1beta1/podsecuritypolicies/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePodSecurityPolicyValidateBeforeCall(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePodSecurityPolicyValidateBeforeCall(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2997,14 +3067,10 @@ private com.squareup.okhttp.Call replacePodSecurityPolicyValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling replacePodSecurityPolicy(Async)"); } - - com.squareup.okhttp.Call call = replacePodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePodSecurityPolicyCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -3017,10 +3083,17 @@ private com.squareup.okhttp.Call replacePodSecurityPolicyValidateBeforeCall(Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return PolicyV1beta1PodSecurityPolicy * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public PolicyV1beta1PodSecurityPolicy replacePodSecurityPolicy(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePodSecurityPolicyWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -3033,11 +3106,18 @@ public PolicyV1beta1PodSecurityPolicy replacePodSecurityPolicy(String name, Poli * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<PolicyV1beta1PodSecurityPolicy> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePodSecurityPolicyWithHttpInfo(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3048,34 +3128,22 @@ public ApiResponse replacePodSecurityPolicyWithH * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePodSecurityPolicyAsync(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replacePodSecurityPolicyAsync(String name, PolicyV1beta1PodSecurityPolicy body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePodSecurityPolicyValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationApi.java index 0a9390bbb6..2e6714322a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class RbacAuthorizationApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public RbacAuthorizationApi() { this(Configuration.getDefaultApiClient()); } public RbacAuthorizationApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1Api.java index 3dbc91326b..b868a23591 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -33,7 +33,6 @@ import io.kubernetes.client.models.V1ClusterRoleBindingList; import io.kubernetes.client.models.V1ClusterRoleList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Role; import io.kubernetes.client.models.V1RoleBinding; import io.kubernetes.client.models.V1RoleBindingList; @@ -47,22 +46,22 @@ import java.util.Map; public class RbacAuthorizationV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public RbacAuthorizationV1Api() { this(Configuration.getDefaultApiClient()); } public RbacAuthorizationV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -71,74 +70,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createClusterRoleCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterRoleValidateBeforeCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterRoleValidateBeforeCall(V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRole(Async)"); } - - com.squareup.okhttp.Call call = createClusterRoleCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterRoleCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -150,10 +145,18 @@ private com.squareup.okhttp.Call createClusterRoleValidateBeforeCall(V1ClusterRo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ClusterRole createClusterRole(V1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -165,11 +168,19 @@ public V1ClusterRole createClusterRole(V1ClusterRole body, String pretty, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createClusterRoleWithHttpInfo(V1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -179,35 +190,24 @@ public ApiResponse createClusterRoleWithHttpInfo(V1ClusterRole bo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleAsync(V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createClusterRoleAsync(V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createClusterRoleBinding @@ -215,74 +215,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createClusterRoleBindingCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterRoleBindingValidateBeforeCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -294,10 +290,18 @@ private com.squareup.okhttp.Call createClusterRoleBindingValidateBeforeCall(V1Cl * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1ClusterRoleBinding createClusterRoleBinding(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -309,11 +313,19 @@ public V1ClusterRoleBinding createClusterRoleBinding(V1ClusterRoleBinding body, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createClusterRoleBindingWithHttpInfo(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -323,35 +335,24 @@ public ApiResponse createClusterRoleBindingWithHttpInfo(V1 * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleBindingAsync(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createClusterRoleBindingAsync(V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedRole @@ -360,61 +361,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedRoleCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -426,14 +427,10 @@ private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -446,10 +443,18 @@ private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1Role createNamespacedRole(String namespace, V1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -462,11 +467,19 @@ public V1Role createNamespacedRole(String namespace, V1Role body, String pretty, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedRoleWithHttpInfo(String namespace, V1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -477,35 +490,24 @@ public ApiResponse createNamespacedRoleWithHttpInfo(String namespace, V1 * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleAsync(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedRoleAsync(String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedRoleBinding @@ -514,61 +516,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleBindingCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -580,14 +582,10 @@ private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -600,10 +598,18 @@ private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1RoleBinding createNamespacedRoleBinding(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -616,11 +622,19 @@ public V1RoleBinding createNamespacedRoleBinding(String namespace, V1RoleBinding * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedRoleBindingWithHttpInfo(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -631,118 +645,106 @@ public ApiResponse createNamespacedRoleBindingWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRole(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterRoleCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -750,17 +752,24 @@ private com.squareup.okhttp.Call deleteClusterRoleValidateBeforeCall(String name * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteClusterRole(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterRoleWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteClusterRole(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -768,18 +777,25 @@ public V1Status deleteClusterRole(String name, String pretty, V1DeleteOptions bo * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterRoleValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -787,123 +803,110 @@ public ApiResponse deleteClusterRoleWithHttpInfo(String name, String p * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterRoleValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleBindingCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterRoleBindingCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -911,17 +914,24 @@ private com.squareup.okhttp.Call deleteClusterRoleBindingValidateBeforeCall(Stri * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteClusterRoleBinding(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterRoleBindingWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteClusterRoleBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -929,18 +939,25 @@ public V1Status deleteClusterRoleBinding(String name, String pretty, V1DeleteOpt * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterRoleBindingValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -948,461 +965,573 @@ public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, S * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleBindingAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterRoleBindingValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionClusterRoleCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionClusterRole(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionClusterRole(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionClusterRoleBinding(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionClusterRoleBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleBindingAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1410,19 +1539,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedRoleValidateBeforeCal * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1430,20 +1571,32 @@ public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1451,133 +1604,156 @@ public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String n * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1585,19 +1761,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingValidateBe * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1605,20 +1793,32 @@ public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String p * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1626,113 +1826,109 @@ public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(S * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1744,14 +1940,10 @@ private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedRoleCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1760,17 +1952,24 @@ private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String n * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedRole(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedRole(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1779,18 +1978,25 @@ public V1Status deleteNamespacedRole(String name, String namespace, String prett * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1799,111 +2005,102 @@ public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, Strin * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1912,17 +2109,13 @@ private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(S // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); - } - - - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); + } + + okhttp3.Call localVarCall = deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1931,17 +2124,24 @@ private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(S * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1950,18 +2150,25 @@ public V1Status deleteNamespacedRoleBinding(String name, String namespace, Strin * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1970,100 +2177,76 @@ public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -2071,10 +2254,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -2082,49 +2271,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2132,85 +2315,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterRoleValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2220,16 +2412,23 @@ private com.squareup.okhttp.Call listClusterRoleValidateBeforeCall(String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ClusterRoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ClusterRoleList listClusterRole(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterRoleWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ClusterRoleList listClusterRole(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2239,17 +2438,24 @@ public V1ClusterRoleList listClusterRole(String pretty, String _continue, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ClusterRoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listClusterRoleWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2257,39 +2463,27 @@ public ApiResponse listClusterRoleWithHttpInfo(String pretty, * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2297,85 +2491,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleBindingCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listClusterRoleBindingCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2385,16 +2588,23 @@ private com.squareup.okhttp.Call listClusterRoleBindingValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1ClusterRoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ClusterRoleBindingList listClusterRoleBinding(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterRoleBindingWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1ClusterRoleBindingList listClusterRoleBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2404,17 +2614,24 @@ public V1ClusterRoleBindingList listClusterRoleBinding(String pretty, String _co * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1ClusterRoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2422,40 +2639,28 @@ public ApiResponse listClusterRoleBindingWithHttpInfo( * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleBindingAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2463,85 +2668,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedRoleCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2549,6 +2762,7 @@ private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String nam * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2558,10 +2772,16 @@ private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String nam * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1RoleList listNamespacedRole(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedRoleWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1RoleList listNamespacedRole(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2569,6 +2789,7 @@ public V1RoleList listNamespacedRole(String namespace, String pretty, String _co * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2578,11 +2799,17 @@ public V1RoleList listNamespacedRole(String namespace, String pretty, String _co * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2590,6 +2817,7 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2597,40 +2825,28 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2638,85 +2854,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedRoleBindingCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2724,6 +2948,7 @@ private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(Str * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2733,10 +2958,16 @@ private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1RoleBindingList listNamespacedRoleBinding(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1RoleBindingList listNamespacedRoleBinding(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2744,6 +2975,7 @@ public V1RoleBindingList listNamespacedRoleBinding(String namespace, String pret * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2753,11 +2985,17 @@ public V1RoleBindingList listNamespacedRoleBinding(String namespace, String pret * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2765,6 +3003,7 @@ public ApiResponse listNamespacedRoleBindingWithHttpInfo(Stri * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2772,38 +3011,26 @@ public ApiResponse listNamespacedRoleBindingWithHttpInfo(Stri * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRoleBindingForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2812,84 +3039,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleBindingForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/rolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRoleBindingForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2900,15 +3136,22 @@ private com.squareup.okhttp.Call listRoleBindingForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1RoleBindingList listRoleBindingForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRoleBindingForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1RoleBindingList listRoleBindingForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2919,16 +3162,23 @@ public V1RoleBindingList listRoleBindingForAllNamespaces(String _continue, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2937,38 +3187,26 @@ public ApiResponse listRoleBindingForAllNamespacesWithHttpInf * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleBindingForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRoleForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2977,84 +3215,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/roles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRoleForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listRoleForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3065,15 +3312,22 @@ private com.squareup.okhttp.Call listRoleForAllNamespacesValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1RoleList listRoleForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRoleForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1RoleList listRoleForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3084,16 +3338,23 @@ public V1RoleList listRoleForAllNamespaces(String _continue, String fieldSelecto * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRoleForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRoleForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRoleForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3102,35 +3363,22 @@ public ApiResponse listRoleForAllNamespacesWithHttpInfo(String _cont * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listRoleForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterRole @@ -3140,63 +3388,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchClusterRoleCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3208,14 +3456,10 @@ private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchClusterRole(Async)"); } - - com.squareup.okhttp.Call call = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3229,10 +3473,16 @@ private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ClusterRole patchClusterRole(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ClusterRole patchClusterRole(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3246,11 +3496,17 @@ public V1ClusterRole patchClusterRole(String name, V1Patch body, String pretty, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchClusterRoleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchClusterRoleWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3262,35 +3518,22 @@ public ApiResponse patchClusterRoleWithHttpInfo(String name, V1Pa * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchClusterRoleAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterRoleBinding @@ -3300,63 +3543,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchClusterRoleBindingCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3368,14 +3611,10 @@ private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling patchClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3389,10 +3628,16 @@ private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1ClusterRoleBinding patchClusterRoleBinding(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3406,11 +3651,17 @@ public V1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch body, S * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchClusterRoleBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchClusterRoleBindingWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3422,35 +3673,22 @@ public ApiResponse patchClusterRoleBindingWithHttpInfo(Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchClusterRoleBindingAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedRole @@ -3461,64 +3699,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3535,14 +3773,10 @@ private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3557,10 +3791,16 @@ private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String na * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Role patchNamespacedRole(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1Role patchNamespacedRole(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3575,11 +3815,17 @@ public V1Role patchNamespacedRole(String name, String namespace, V1Patch body, S * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3592,35 +3838,22 @@ public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String n * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedRoleBinding @@ -3631,64 +3864,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleBindingCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3705,14 +3938,10 @@ private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3727,10 +3956,16 @@ private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1RoleBinding patchNamespacedRoleBinding(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1RoleBinding patchNamespacedRoleBinding(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3745,11 +3980,17 @@ public V1RoleBinding patchNamespacedRoleBinding(String name, String namespace, V * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3762,105 +4003,82 @@ public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleBindingAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRole(Async)"); } - - com.squareup.okhttp.Call call = readClusterRoleCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readClusterRoleCall(name, pretty, _callback); + return localVarCall; + } /** @@ -3870,10 +4088,16 @@ private com.squareup.okhttp.Call readClusterRoleValidateBeforeCall(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ClusterRole readClusterRole(String name, String pretty) throws ApiException { - ApiResponse resp = readClusterRoleWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readClusterRoleWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -3883,11 +4107,17 @@ public V1ClusterRole readClusterRole(String name, String pretty) throws ApiExcep * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readClusterRoleWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readClusterRoleValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3895,105 +4125,82 @@ public ApiResponse readClusterRoleWithHttpInfo(String name, Strin * read the specified ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readClusterRoleValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleBindingCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = readClusterRoleBindingCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readClusterRoleBindingCall(name, pretty, _callback); + return localVarCall; + } /** @@ -4003,10 +4210,16 @@ private com.squareup.okhttp.Call readClusterRoleBindingValidateBeforeCall(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1ClusterRoleBinding readClusterRoleBinding(String name, String pretty) throws ApiException { - ApiResponse resp = readClusterRoleBindingWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readClusterRoleBindingWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -4016,11 +4229,17 @@ public V1ClusterRoleBinding readClusterRoleBinding(String name, String pretty) t * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readClusterRoleBindingWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readClusterRoleBindingValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4028,93 +4247,74 @@ public ApiResponse readClusterRoleBindingWithHttpInfo(Stri * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readClusterRoleBindingValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4126,14 +4326,10 @@ private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedRoleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedRoleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4144,10 +4340,16 @@ private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1Role readNamespacedRole(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedRoleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedRoleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4158,11 +4360,17 @@ public V1Role readNamespacedRole(String name, String namespace, String pretty) t * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedRoleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4171,93 +4379,74 @@ public ApiResponse readNamespacedRoleWithHttpInfo(String name, String na * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4269,14 +4458,10 @@ private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedRoleBindingCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedRoleBindingCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4287,10 +4472,16 @@ private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1RoleBinding readNamespacedRoleBinding(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4301,11 +4492,17 @@ public V1RoleBinding readNamespacedRoleBinding(String name, String namespace, St * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4314,35 +4511,22 @@ public ApiResponse readNamespacedRoleBindingWithHttpInfo(String n * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterRole @@ -4351,61 +4535,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceClusterRoleCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4417,14 +4600,10 @@ private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRole(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4437,10 +4616,17 @@ private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ClusterRole replaceClusterRole(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4453,11 +4639,18 @@ public V1ClusterRole replaceClusterRole(String name, V1ClusterRole body, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterRoleWithHttpInfo(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4468,35 +4661,23 @@ public ApiResponse replaceClusterRoleWithHttpInfo(String name, V1 * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleAsync(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceClusterRoleAsync(String name, V1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterRoleBinding @@ -4505,61 +4686,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceClusterRoleBindingCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4571,14 +4751,10 @@ private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4591,10 +4767,17 @@ private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1ClusterRoleBinding replaceClusterRoleBinding(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4607,11 +4790,18 @@ public V1ClusterRoleBinding replaceClusterRoleBinding(String name, V1ClusterRole * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterRoleBindingWithHttpInfo(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4622,35 +4812,23 @@ public ApiResponse replaceClusterRoleBindingWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleBindingAsync(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceClusterRoleBindingAsync(String name, V1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedRole @@ -4660,62 +4838,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4732,14 +4909,10 @@ private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4753,10 +4926,17 @@ private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1Role replaceNamespacedRole(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4770,11 +4950,18 @@ public V1Role replaceNamespacedRole(String name, String namespace, V1Role body, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4786,35 +4973,23 @@ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleAsync(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedRoleBinding @@ -4824,62 +4999,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4896,14 +5070,10 @@ private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4917,10 +5087,17 @@ private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1RoleBinding replaceNamespacedRoleBinding(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4934,11 +5111,18 @@ public V1RoleBinding replaceNamespacedRoleBinding(String name, String namespace, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4950,34 +5134,22 @@ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1Api.java index 08070ea072..c8c97b7251 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1ClusterRole; import io.kubernetes.client.models.V1alpha1ClusterRoleBinding; @@ -47,22 +46,22 @@ import java.util.Map; public class RbacAuthorizationV1alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public RbacAuthorizationV1alpha1Api() { this(Configuration.getDefaultApiClient()); } public RbacAuthorizationV1alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -71,74 +70,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleCall(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createClusterRoleCall(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterRoleValidateBeforeCall(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterRoleValidateBeforeCall(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRole(Async)"); } - - com.squareup.okhttp.Call call = createClusterRoleCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterRoleCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -150,10 +145,18 @@ private com.squareup.okhttp.Call createClusterRoleValidateBeforeCall(V1alpha1Clu * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1ClusterRole createClusterRole(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -165,11 +168,19 @@ public V1alpha1ClusterRole createClusterRole(V1alpha1ClusterRole body, String pr * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createClusterRoleWithHttpInfo(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -179,35 +190,24 @@ public ApiResponse createClusterRoleWithHttpInfo(V1alpha1Cl * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleAsync(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createClusterRoleAsync(V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createClusterRoleBinding @@ -215,74 +215,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleBindingCall(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createClusterRoleBindingCall(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterRoleBindingValidateBeforeCall(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -294,10 +290,18 @@ private com.squareup.okhttp.Call createClusterRoleBindingValidateBeforeCall(V1al * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1ClusterRoleBinding createClusterRoleBinding(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -309,11 +313,19 @@ public V1alpha1ClusterRoleBinding createClusterRoleBinding(V1alpha1ClusterRoleBi * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createClusterRoleBindingWithHttpInfo(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -323,35 +335,24 @@ public ApiResponse createClusterRoleBindingWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleBindingAsync(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createClusterRoleBindingAsync(V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedRole @@ -360,61 +361,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleCall(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedRoleCall(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -426,14 +427,10 @@ private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -446,10 +443,18 @@ private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1Role createNamespacedRole(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -462,11 +467,19 @@ public V1alpha1Role createNamespacedRole(String namespace, V1alpha1Role body, St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedRoleWithHttpInfo(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -477,35 +490,24 @@ public ApiResponse createNamespacedRoleWithHttpInfo(String namespa * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleAsync(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedRoleAsync(String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedRoleBinding @@ -514,61 +516,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleBindingCall(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -580,14 +582,10 @@ private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -600,10 +598,18 @@ private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1RoleBinding createNamespacedRoleBinding(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -616,11 +622,19 @@ public V1alpha1RoleBinding createNamespacedRoleBinding(String namespace, V1alpha * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedRoleBindingWithHttpInfo(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -631,118 +645,106 @@ public ApiResponse createNamespacedRoleBindingWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleBindingAsync(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRole(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterRoleCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -750,17 +752,24 @@ private com.squareup.okhttp.Call deleteClusterRoleValidateBeforeCall(String name * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteClusterRole(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterRoleWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteClusterRole(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -768,18 +777,25 @@ public V1Status deleteClusterRole(String name, String pretty, V1DeleteOptions bo * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterRoleValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -787,123 +803,110 @@ public ApiResponse deleteClusterRoleWithHttpInfo(String name, String p * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterRoleValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleBindingCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterRoleBindingCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -911,17 +914,24 @@ private com.squareup.okhttp.Call deleteClusterRoleBindingValidateBeforeCall(Stri * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteClusterRoleBinding(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterRoleBindingWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteClusterRoleBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -929,18 +939,25 @@ public V1Status deleteClusterRoleBinding(String name, String pretty, V1DeleteOpt * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterRoleBindingValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -948,461 +965,573 @@ public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, S * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleBindingAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterRoleBindingValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionClusterRoleCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionClusterRole(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionClusterRole(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionClusterRoleBinding(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionClusterRoleBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleBindingAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1410,19 +1539,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedRoleValidateBeforeCal * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1430,20 +1571,32 @@ public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1451,133 +1604,156 @@ public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String n * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1585,19 +1761,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingValidateBe * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1605,20 +1793,32 @@ public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String p * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1626,113 +1826,109 @@ public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(S * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1744,14 +1940,10 @@ private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedRoleCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1760,17 +1952,24 @@ private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String n * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedRole(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedRole(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1779,18 +1978,25 @@ public V1Status deleteNamespacedRole(String name, String namespace, String prett * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1799,111 +2005,102 @@ public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, Strin * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1912,17 +2109,13 @@ private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(S // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); - } - - - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); + } + + okhttp3.Call localVarCall = deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1931,17 +2124,24 @@ private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(S * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1950,18 +2150,25 @@ public V1Status deleteNamespacedRoleBinding(String name, String namespace, Strin * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1970,100 +2177,76 @@ public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -2071,10 +2254,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -2082,49 +2271,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2132,85 +2315,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterRoleValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2220,16 +2412,23 @@ private com.squareup.okhttp.Call listClusterRoleValidateBeforeCall(String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1ClusterRoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ClusterRoleList listClusterRole(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterRoleWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1ClusterRoleList listClusterRole(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2239,17 +2438,24 @@ public V1alpha1ClusterRoleList listClusterRole(String pretty, String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1ClusterRoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listClusterRoleWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2257,39 +2463,27 @@ public ApiResponse listClusterRoleWithHttpInfo(String p * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2297,85 +2491,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleBindingCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listClusterRoleBindingCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2385,16 +2588,23 @@ private com.squareup.okhttp.Call listClusterRoleBindingValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1ClusterRoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ClusterRoleBindingList listClusterRoleBinding(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterRoleBindingWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1ClusterRoleBindingList listClusterRoleBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2404,17 +2614,24 @@ public V1alpha1ClusterRoleBindingList listClusterRoleBinding(String pretty, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1ClusterRoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2422,40 +2639,28 @@ public ApiResponse listClusterRoleBindingWithHtt * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleBindingAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2463,85 +2668,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedRoleCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2549,6 +2762,7 @@ private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String nam * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2558,10 +2772,16 @@ private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String nam * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RoleList listNamespacedRole(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedRoleWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1RoleList listNamespacedRole(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2569,6 +2789,7 @@ public V1alpha1RoleList listNamespacedRole(String namespace, String pretty, Stri * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2578,11 +2799,17 @@ public V1alpha1RoleList listNamespacedRole(String namespace, String pretty, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2590,6 +2817,7 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String names * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2597,40 +2825,28 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String names * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2638,85 +2854,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedRoleBindingCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2724,6 +2948,7 @@ private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(Str * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2733,10 +2958,16 @@ private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RoleBindingList listNamespacedRoleBinding(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1RoleBindingList listNamespacedRoleBinding(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2744,6 +2975,7 @@ public V1alpha1RoleBindingList listNamespacedRoleBinding(String namespace, Strin * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2753,11 +2985,17 @@ public V1alpha1RoleBindingList listNamespacedRoleBinding(String namespace, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2765,6 +3003,7 @@ public ApiResponse listNamespacedRoleBindingWithHttpInf * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2772,38 +3011,26 @@ public ApiResponse listNamespacedRoleBindingWithHttpInf * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRoleBindingForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2812,84 +3039,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleBindingForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/rolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRoleBindingForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2900,15 +3136,22 @@ private com.squareup.okhttp.Call listRoleBindingForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RoleBindingList listRoleBindingForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRoleBindingForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1RoleBindingList listRoleBindingForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2919,16 +3162,23 @@ public V1alpha1RoleBindingList listRoleBindingForAllNamespaces(String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2937,38 +3187,26 @@ public ApiResponse listRoleBindingForAllNamespacesWithH * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleBindingForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRoleForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2977,84 +3215,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/roles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRoleForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listRoleForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3065,15 +3312,22 @@ private com.squareup.okhttp.Call listRoleForAllNamespacesValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RoleList listRoleForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRoleForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1RoleList listRoleForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3084,16 +3338,23 @@ public V1alpha1RoleList listRoleForAllNamespaces(String _continue, String fieldS * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRoleForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRoleForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRoleForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3102,35 +3363,22 @@ public ApiResponse listRoleForAllNamespacesWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listRoleForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterRole @@ -3140,63 +3388,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchClusterRoleCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3208,14 +3456,10 @@ private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchClusterRole(Async)"); } - - com.squareup.okhttp.Call call = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3229,10 +3473,16 @@ private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ClusterRole patchClusterRole(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1ClusterRole patchClusterRole(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3246,11 +3496,17 @@ public V1alpha1ClusterRole patchClusterRole(String name, V1Patch body, String pr * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchClusterRoleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchClusterRoleWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3262,35 +3518,22 @@ public ApiResponse patchClusterRoleWithHttpInfo(String name * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchClusterRoleAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterRoleBinding @@ -3300,63 +3543,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchClusterRoleBindingCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3368,14 +3611,10 @@ private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling patchClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3389,10 +3628,16 @@ private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1ClusterRoleBinding patchClusterRoleBinding(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3406,11 +3651,17 @@ public V1alpha1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch b * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchClusterRoleBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchClusterRoleBindingWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3422,35 +3673,22 @@ public ApiResponse patchClusterRoleBindingWithHttpIn * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchClusterRoleBindingAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedRole @@ -3461,64 +3699,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3535,14 +3773,10 @@ private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3557,10 +3791,16 @@ private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String na * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1Role patchNamespacedRole(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1Role patchNamespacedRole(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3575,11 +3815,17 @@ public V1alpha1Role patchNamespacedRole(String name, String namespace, V1Patch b * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3592,35 +3838,22 @@ public ApiResponse patchNamespacedRoleWithHttpInfo(String name, St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedRoleBinding @@ -3631,64 +3864,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleBindingCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3705,14 +3938,10 @@ private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3727,10 +3956,16 @@ private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1RoleBinding patchNamespacedRoleBinding(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1RoleBinding patchNamespacedRoleBinding(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3745,11 +3980,17 @@ public V1alpha1RoleBinding patchNamespacedRoleBinding(String name, String namesp * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3762,105 +4003,82 @@ public ApiResponse patchNamespacedRoleBindingWithHttpInfo(S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleBindingAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRole(Async)"); } - - com.squareup.okhttp.Call call = readClusterRoleCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readClusterRoleCall(name, pretty, _callback); + return localVarCall; + } /** @@ -3870,10 +4088,16 @@ private com.squareup.okhttp.Call readClusterRoleValidateBeforeCall(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1alpha1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1ClusterRole readClusterRole(String name, String pretty) throws ApiException { - ApiResponse resp = readClusterRoleWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readClusterRoleWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -3883,11 +4107,17 @@ public V1alpha1ClusterRole readClusterRole(String name, String pretty) throws Ap * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1alpha1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readClusterRoleWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readClusterRoleValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3895,105 +4125,82 @@ public ApiResponse readClusterRoleWithHttpInfo(String name, * read the specified ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readClusterRoleValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleBindingCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = readClusterRoleBindingCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readClusterRoleBindingCall(name, pretty, _callback); + return localVarCall; + } /** @@ -4003,10 +4210,16 @@ private com.squareup.okhttp.Call readClusterRoleBindingValidateBeforeCall(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1alpha1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1ClusterRoleBinding readClusterRoleBinding(String name, String pretty) throws ApiException { - ApiResponse resp = readClusterRoleBindingWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readClusterRoleBindingWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -4016,11 +4229,17 @@ public V1alpha1ClusterRoleBinding readClusterRoleBinding(String name, String pre * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1alpha1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readClusterRoleBindingWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readClusterRoleBindingValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4028,93 +4247,74 @@ public ApiResponse readClusterRoleBindingWithHttpInf * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readClusterRoleBindingValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4126,14 +4326,10 @@ private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedRoleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedRoleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4144,10 +4340,16 @@ private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1alpha1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1Role readNamespacedRole(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedRoleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedRoleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4158,11 +4360,17 @@ public V1alpha1Role readNamespacedRole(String name, String namespace, String pre * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1alpha1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedRoleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4171,93 +4379,74 @@ public ApiResponse readNamespacedRoleWithHttpInfo(String name, Str * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4269,14 +4458,10 @@ private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedRoleBindingCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedRoleBindingCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4287,10 +4472,16 @@ private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1alpha1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1RoleBinding readNamespacedRoleBinding(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4301,11 +4492,17 @@ public V1alpha1RoleBinding readNamespacedRoleBinding(String name, String namespa * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1alpha1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4314,35 +4511,22 @@ public ApiResponse readNamespacedRoleBindingWithHttpInfo(St * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterRole @@ -4351,61 +4535,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleCall(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceClusterRoleCall(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4417,14 +4600,10 @@ private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRole(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4437,10 +4616,17 @@ private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1ClusterRole replaceClusterRole(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4453,11 +4639,18 @@ public V1alpha1ClusterRole replaceClusterRole(String name, V1alpha1ClusterRole b * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterRoleWithHttpInfo(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4468,35 +4661,23 @@ public ApiResponse replaceClusterRoleWithHttpInfo(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleAsync(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceClusterRoleAsync(String name, V1alpha1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterRoleBinding @@ -4505,61 +4686,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleBindingCall(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceClusterRoleBindingCall(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4571,14 +4751,10 @@ private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4591,10 +4767,17 @@ private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1ClusterRoleBinding replaceClusterRoleBinding(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4607,11 +4790,18 @@ public V1alpha1ClusterRoleBinding replaceClusterRoleBinding(String name, V1alpha * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterRoleBindingWithHttpInfo(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4622,35 +4812,23 @@ public ApiResponse replaceClusterRoleBindingWithHttp * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleBindingAsync(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceClusterRoleBindingAsync(String name, V1alpha1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedRole @@ -4660,62 +4838,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleCall(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4732,14 +4909,10 @@ private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4753,10 +4926,17 @@ private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1Role replaceNamespacedRole(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4770,11 +4950,18 @@ public V1alpha1Role replaceNamespacedRole(String name, String namespace, V1alpha * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4786,35 +4973,23 @@ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleAsync(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V1alpha1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedRoleBinding @@ -4824,62 +4999,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1alpha1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4896,14 +5070,10 @@ private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4917,10 +5087,17 @@ private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1RoleBinding replaceNamespacedRoleBinding(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4934,11 +5111,18 @@ public V1alpha1RoleBinding replaceNamespacedRoleBinding(String name, String name * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4950,34 +5134,22 @@ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1alpha1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1Api.java index 28d6d9d320..e3298294fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1ClusterRole; import io.kubernetes.client.models.V1beta1ClusterRoleBinding; @@ -47,22 +46,22 @@ import java.util.Map; public class RbacAuthorizationV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public RbacAuthorizationV1beta1Api() { this(Configuration.getDefaultApiClient()); } public RbacAuthorizationV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -71,74 +70,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleCall(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createClusterRoleCall(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterRoleValidateBeforeCall(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterRoleValidateBeforeCall(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRole(Async)"); } - - com.squareup.okhttp.Call call = createClusterRoleCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterRoleCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -150,10 +145,18 @@ private com.squareup.okhttp.Call createClusterRoleValidateBeforeCall(V1beta1Clus * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1ClusterRole createClusterRole(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createClusterRoleWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -165,11 +168,19 @@ public V1beta1ClusterRole createClusterRole(V1beta1ClusterRole body, String pret * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createClusterRoleWithHttpInfo(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -179,35 +190,24 @@ public ApiResponse createClusterRoleWithHttpInfo(V1beta1Clus * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleAsync(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createClusterRoleAsync(V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterRoleValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createClusterRoleBinding @@ -215,74 +215,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleBindingCall(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createClusterRoleBindingCall(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createClusterRoleBindingValidateBeforeCall(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createClusterRoleBindingValidateBeforeCall(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createClusterRoleBindingCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -294,10 +290,18 @@ private com.squareup.okhttp.Call createClusterRoleBindingValidateBeforeCall(V1be * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1ClusterRoleBinding createClusterRoleBinding(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createClusterRoleBindingWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -309,11 +313,19 @@ public V1beta1ClusterRoleBinding createClusterRoleBinding(V1beta1ClusterRoleBind * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createClusterRoleBindingWithHttpInfo(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -323,35 +335,24 @@ public ApiResponse createClusterRoleBindingWithHttpIn * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createClusterRoleBindingAsync(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createClusterRoleBindingAsync(V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createClusterRoleBindingValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedRole @@ -360,61 +361,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleCall(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedRoleCall(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedRoleValidateBeforeCall(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -426,14 +427,10 @@ private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedRoleCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -446,10 +443,18 @@ private com.squareup.okhttp.Call createNamespacedRoleValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1Role createNamespacedRole(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedRoleWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -462,11 +467,19 @@ public V1beta1Role createNamespacedRole(String namespace, V1beta1Role body, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedRoleWithHttpInfo(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -477,35 +490,24 @@ public ApiResponse createNamespacedRoleWithHttpInfo(String namespac * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleAsync(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedRoleAsync(String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedRoleValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createNamespacedRoleBinding @@ -514,61 +516,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleBindingCall(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedRoleBindingCall(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedRoleBindingValidateBeforeCall(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -580,14 +582,10 @@ private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling createNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedRoleBindingCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -600,10 +598,18 @@ private com.squareup.okhttp.Call createNamespacedRoleBindingValidateBeforeCall(S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1RoleBinding createNamespacedRoleBinding(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedRoleBindingWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -616,11 +622,19 @@ public V1beta1RoleBinding createNamespacedRoleBinding(String namespace, V1beta1R * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedRoleBindingWithHttpInfo(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -631,118 +645,106 @@ public ApiResponse createNamespacedRoleBindingWithHttpInfo(S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedRoleBindingAsync(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedRoleBindingAsync(String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedRoleBindingValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteClusterRoleCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterRoleValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRole(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterRoleCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterRoleCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -750,17 +752,24 @@ private com.squareup.okhttp.Call deleteClusterRoleValidateBeforeCall(String name * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteClusterRole(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterRoleWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteClusterRole(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -768,18 +777,25 @@ public V1Status deleteClusterRole(String name, String pretty, V1DeleteOptions bo * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterRoleValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteClusterRoleWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -787,123 +803,110 @@ public ApiResponse deleteClusterRoleWithHttpInfo(String name, String p * delete a ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterRoleAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterRoleValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterRoleValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleBindingCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteClusterRoleBindingCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteClusterRoleBindingValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = deleteClusterRoleBindingCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteClusterRoleBindingCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -911,17 +914,24 @@ private com.squareup.okhttp.Call deleteClusterRoleBindingValidateBeforeCall(Stri * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteClusterRoleBinding(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteClusterRoleBindingWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteClusterRoleBinding(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteClusterRoleBindingWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -929,18 +939,25 @@ public V1Status deleteClusterRoleBinding(String name, String pretty, V1DeleteOpt * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteClusterRoleBindingValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -948,461 +965,573 @@ public ApiResponse deleteClusterRoleBindingWithHttpInfo(String name, S * delete a ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteClusterRoleBindingAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteClusterRoleBindingAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteClusterRoleBindingValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteClusterRoleBindingValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionClusterRoleCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionClusterRole(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionClusterRoleWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionClusterRole(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleBindingCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionClusterRoleBinding(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionClusterRoleBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionClusterRoleBindingAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1410,19 +1539,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedRoleValidateBeforeCal * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1430,20 +1571,32 @@ public V1Status deleteCollectionNamespacedRole(String namespace, String pretty, * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1451,133 +1604,156 @@ public ApiResponse deleteCollectionNamespacedRoleWithHttpInfo(String n * delete collection of Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -1585,19 +1761,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingValidateBe * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -1605,20 +1793,32 @@ public V1Status deleteCollectionNamespacedRoleBinding(String namespace, String p * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1626,113 +1826,109 @@ public ApiResponse deleteCollectionNamespacedRoleBindingWithHttpInfo(S * delete collection of RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedRoleCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1744,14 +1940,10 @@ private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedRoleCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedRoleCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1760,17 +1952,24 @@ private com.squareup.okhttp.Call deleteNamespacedRoleValidateBeforeCall(String n * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedRole(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedRole(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1779,18 +1978,25 @@ public V1Status deleteNamespacedRole(String name, String namespace, String prett * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1799,111 +2005,102 @@ public ApiResponse deleteNamespacedRoleWithHttpInfo(String name, Strin * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteNamespacedRoleAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedRoleValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedRoleBindingCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1912,17 +2109,13 @@ private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(S // verify the required parameter 'namespace' is set if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); - } - - - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedRoleBinding(Async)"); + } + + okhttp3.Call localVarCall = deleteNamespacedRoleBindingCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1931,17 +2124,24 @@ private com.squareup.okhttp.Call deleteNamespacedRoleBindingValidateBeforeCall(S * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedRoleBinding(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedRoleBindingWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1950,18 +2150,25 @@ public V1Status deleteNamespacedRoleBinding(String name, String namespace, Strin * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1970,100 +2177,76 @@ public ApiResponse deleteNamespacedRoleBindingWithHttpInfo(String name * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedRoleBindingAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -2071,10 +2254,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -2082,49 +2271,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2132,85 +2315,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listClusterRoleCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterRoleValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listClusterRoleValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterRoleCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2220,16 +2412,23 @@ private com.squareup.okhttp.Call listClusterRoleValidateBeforeCall(String pretty * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ClusterRoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ClusterRoleList listClusterRole(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterRoleWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ClusterRoleList listClusterRole(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterRoleWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2239,17 +2438,24 @@ public V1beta1ClusterRoleList listClusterRole(String pretty, String _continue, S * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ClusterRoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listClusterRoleWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listClusterRoleWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ClusterRole * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2257,39 +2463,27 @@ public ApiResponse listClusterRoleWithHttpInfo(String pr * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listClusterRoleAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterRoleValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2297,85 +2491,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleBindingCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listClusterRoleBindingCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listClusterRoleBindingValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listClusterRoleBindingValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listClusterRoleBindingCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listClusterRoleBindingCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2385,16 +2588,23 @@ private com.squareup.okhttp.Call listClusterRoleBindingValidateBeforeCall(String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1ClusterRoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ClusterRoleBindingList listClusterRoleBinding(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listClusterRoleBindingWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1ClusterRoleBindingList listClusterRoleBinding(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listClusterRoleBindingWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2404,17 +2614,24 @@ public V1beta1ClusterRoleBindingList listClusterRoleBinding(String pretty, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1ClusterRoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listClusterRoleBindingWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind ClusterRoleBinding * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2422,40 +2639,28 @@ public ApiResponse listClusterRoleBindingWithHttp * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listClusterRoleBindingAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listClusterRoleBindingAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listClusterRoleBindingValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listClusterRoleBindingValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedRole * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2463,85 +2668,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedRoleCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedRoleValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedRoleCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedRoleCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2549,6 +2762,7 @@ private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String nam * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2558,10 +2772,16 @@ private com.squareup.okhttp.Call listNamespacedRoleValidateBeforeCall(String nam * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RoleList listNamespacedRole(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedRoleWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1RoleList listNamespacedRole(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedRoleWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2569,6 +2789,7 @@ public V1beta1RoleList listNamespacedRole(String namespace, String pretty, Strin * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2578,11 +2799,17 @@ public V1beta1RoleList listNamespacedRole(String namespace, String pretty, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedRoleWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2590,6 +2817,7 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String namesp * list or watch objects of kind Role * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2597,40 +2825,28 @@ public ApiResponse listNamespacedRoleWithHttpInfo(String namesp * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listNamespacedRoleAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedRoleValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedRoleValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedRoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2638,85 +2854,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleBindingCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedRoleBindingCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedRoleBindingValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedRoleBindingCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedRoleBindingCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -2724,6 +2948,7 @@ private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(Str * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2733,10 +2958,16 @@ private com.squareup.okhttp.Call listNamespacedRoleBindingValidateBeforeCall(Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RoleBindingList listNamespacedRoleBinding(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1RoleBindingList listNamespacedRoleBinding(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedRoleBindingWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -2744,6 +2975,7 @@ public V1beta1RoleBindingList listNamespacedRoleBinding(String namespace, String * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2753,11 +2985,17 @@ public V1beta1RoleBindingList listNamespacedRoleBinding(String namespace, String * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedRoleBindingWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2765,6 +3003,7 @@ public ApiResponse listNamespacedRoleBindingWithHttpInfo * list or watch objects of kind RoleBinding * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2772,38 +3011,26 @@ public ApiResponse listNamespacedRoleBindingWithHttpInfo * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedRoleBindingAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listNamespacedRoleBindingAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedRoleBindingValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRoleBindingForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2812,84 +3039,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleBindingForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRoleBindingForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/rolebindings"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRoleBindingForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listRoleBindingForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2900,15 +3136,22 @@ private com.squareup.okhttp.Call listRoleBindingForAllNamespacesValidateBeforeCa * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1RoleBindingList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RoleBindingList listRoleBindingForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRoleBindingForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1RoleBindingList listRoleBindingForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRoleBindingForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2919,16 +3162,23 @@ public V1beta1RoleBindingList listRoleBindingForAllNamespaces(String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1RoleBindingList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRoleBindingForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind RoleBinding + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2937,38 +3187,26 @@ public ApiResponse listRoleBindingForAllNamespacesWithHt * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleBindingForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listRoleBindingForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listRoleBindingForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRoleBindingForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listRoleForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2977,84 +3215,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listRoleForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/roles"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listRoleForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listRoleForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listRoleForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listRoleForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3065,15 +3312,22 @@ private com.squareup.okhttp.Call listRoleForAllNamespacesValidateBeforeCall(Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1RoleList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RoleList listRoleForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listRoleForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1RoleList listRoleForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listRoleForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3084,16 +3338,23 @@ public V1beta1RoleList listRoleForAllNamespaces(String _continue, String fieldSe * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1RoleList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listRoleForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listRoleForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listRoleForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind Role + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -3102,35 +3363,22 @@ public ApiResponse listRoleForAllNamespacesWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listRoleForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call listRoleForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listRoleForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listRoleForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterRole @@ -3140,63 +3388,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchClusterRoleCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterRoleValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3208,14 +3456,10 @@ private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling patchClusterRole(Async)"); } - - com.squareup.okhttp.Call call = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterRoleCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3229,10 +3473,16 @@ private com.squareup.okhttp.Call patchClusterRoleValidateBeforeCall(String name, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ClusterRole patchClusterRole(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1ClusterRole patchClusterRole(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3246,11 +3496,17 @@ public V1beta1ClusterRole patchClusterRole(String name, V1Patch body, String pre * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchClusterRoleWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchClusterRoleWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3262,35 +3518,22 @@ public ApiResponse patchClusterRoleWithHttpInfo(String name, * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchClusterRoleAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchClusterRoleBinding @@ -3300,63 +3543,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleBindingCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchClusterRoleBindingCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchClusterRoleBindingValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3368,14 +3611,10 @@ private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling patchClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3389,10 +3628,16 @@ private com.squareup.okhttp.Call patchClusterRoleBindingValidateBeforeCall(Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1ClusterRoleBinding patchClusterRoleBinding(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3406,11 +3651,17 @@ public V1beta1ClusterRoleBinding patchClusterRoleBinding(String name, V1Patch bo * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchClusterRoleBindingWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchClusterRoleBindingWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3422,35 +3673,22 @@ public ApiResponse patchClusterRoleBindingWithHttpInf * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchClusterRoleBindingAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchClusterRoleBindingAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedRole @@ -3461,64 +3699,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedRoleCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedRoleValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3535,14 +3773,10 @@ private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3557,10 +3791,16 @@ private com.squareup.okhttp.Call patchNamespacedRoleValidateBeforeCall(String na * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1Role patchNamespacedRole(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1Role patchNamespacedRole(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3575,11 +3815,17 @@ public V1beta1Role patchNamespacedRole(String name, String namespace, V1Patch bo * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedRoleWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3592,35 +3838,22 @@ public ApiResponse patchNamespacedRoleWithHttpInfo(String name, Str * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchNamespacedRoleAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedRoleBinding @@ -3631,64 +3864,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleBindingCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedRoleBindingCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedRoleBindingValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3705,14 +3938,10 @@ private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3727,10 +3956,16 @@ private com.squareup.okhttp.Call patchNamespacedRoleBindingValidateBeforeCall(St * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1RoleBinding patchNamespacedRoleBinding(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1RoleBinding patchNamespacedRoleBinding(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3745,11 +3980,17 @@ public V1beta1RoleBinding patchNamespacedRoleBinding(String name, String namespa * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedRoleBindingWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3762,105 +4003,82 @@ public ApiResponse patchNamespacedRoleBindingWithHttpInfo(St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedRoleBindingAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchNamespacedRoleBindingAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readClusterRoleCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readClusterRoleValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRole(Async)"); } - - com.squareup.okhttp.Call call = readClusterRoleCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readClusterRoleCall(name, pretty, _callback); + return localVarCall; + } /** @@ -3870,10 +4088,16 @@ private com.squareup.okhttp.Call readClusterRoleValidateBeforeCall(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1ClusterRole readClusterRole(String name, String pretty) throws ApiException { - ApiResponse resp = readClusterRoleWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readClusterRoleWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -3883,11 +4107,17 @@ public V1beta1ClusterRole readClusterRole(String name, String pretty) throws Api * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readClusterRoleWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readClusterRoleValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3895,105 +4125,82 @@ public ApiResponse readClusterRoleWithHttpInfo(String name, * read the specified ClusterRole * @param name name of the ClusterRole (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readClusterRoleAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readClusterRoleValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readClusterRoleValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleBindingCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readClusterRoleBindingCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readClusterRoleBindingValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = readClusterRoleBindingCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readClusterRoleBindingCall(name, pretty, _callback); + return localVarCall; + } /** @@ -4003,10 +4210,16 @@ private com.squareup.okhttp.Call readClusterRoleBindingValidateBeforeCall(String * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1ClusterRoleBinding readClusterRoleBinding(String name, String pretty) throws ApiException { - ApiResponse resp = readClusterRoleBindingWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readClusterRoleBindingWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -4016,11 +4229,17 @@ public V1beta1ClusterRoleBinding readClusterRoleBinding(String name, String pret * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readClusterRoleBindingWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readClusterRoleBindingValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4028,93 +4247,74 @@ public ApiResponse readClusterRoleBindingWithHttpInfo * read the specified ClusterRoleBinding * @param name name of the ClusterRoleBinding (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readClusterRoleBindingAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readClusterRoleBindingValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readClusterRoleBindingValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedRole * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedRoleCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedRoleValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4126,14 +4326,10 @@ private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedRoleCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedRoleCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4144,10 +4340,16 @@ private com.squareup.okhttp.Call readNamespacedRoleValidateBeforeCall(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1Role readNamespacedRole(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedRoleWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedRoleWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4158,11 +4360,17 @@ public V1beta1Role readNamespacedRole(String name, String namespace, String pret * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedRoleWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4171,93 +4379,74 @@ public ApiResponse readNamespacedRoleWithHttpInfo(String name, Stri * @param name name of the Role (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readNamespacedRoleAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedRoleValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedRoleBinding * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedRoleBindingCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedRoleBindingValidateBeforeCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4269,14 +4458,10 @@ private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedRoleBindingCall(name, namespace, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedRoleBindingCall(name, namespace, pretty, _callback); + return localVarCall; + } /** @@ -4287,10 +4472,16 @@ private com.squareup.okhttp.Call readNamespacedRoleBindingValidateBeforeCall(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1beta1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1RoleBinding readNamespacedRoleBinding(String name, String namespace, String pretty) throws ApiException { - ApiResponse resp = readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty); - return resp.getData(); + ApiResponse localVarResp = readNamespacedRoleBindingWithHttpInfo(name, namespace, pretty); + return localVarResp.getData(); } /** @@ -4301,11 +4492,17 @@ public V1beta1RoleBinding readNamespacedRoleBinding(String name, String namespac * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1beta1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedRoleBindingWithHttpInfo(String name, String namespace, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null, null); + okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4314,35 +4511,22 @@ public ApiResponse readNamespacedRoleBindingWithHttpInfo(Str * @param name name of the RoleBinding (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback callback) throws ApiException { + public okhttp3.Call readNamespacedRoleBindingAsync(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedRoleBindingValidateBeforeCall(name, namespace, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterRole @@ -4351,61 +4535,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleCall(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceClusterRoleCall(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterroles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterRoleValidateBeforeCall(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4417,14 +4600,10 @@ private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRole(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterRoleCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4437,10 +4616,17 @@ private com.squareup.okhttp.Call replaceClusterRoleValidateBeforeCall(String nam * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ClusterRole * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1ClusterRole replaceClusterRole(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceClusterRoleWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4453,11 +4639,18 @@ public V1beta1ClusterRole replaceClusterRole(String name, V1beta1ClusterRole bod * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ClusterRole> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterRoleWithHttpInfo(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4468,35 +4661,23 @@ public ApiResponse replaceClusterRoleWithHttpInfo(String nam * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleAsync(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceClusterRoleAsync(String name, V1beta1ClusterRole body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterRoleValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceClusterRoleBinding @@ -4505,61 +4686,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleBindingCall(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceClusterRoleBindingCall(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/clusterrolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceClusterRoleBindingValidateBeforeCall(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4571,14 +4751,10 @@ private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling replaceClusterRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceClusterRoleBindingCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4591,10 +4767,17 @@ private com.squareup.okhttp.Call replaceClusterRoleBindingValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1ClusterRoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1ClusterRoleBinding replaceClusterRoleBinding(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceClusterRoleBindingWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4607,11 +4790,18 @@ public V1beta1ClusterRoleBinding replaceClusterRoleBinding(String name, V1beta1C * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1ClusterRoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceClusterRoleBindingWithHttpInfo(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4622,35 +4812,23 @@ public ApiResponse replaceClusterRoleBindingWithHttpI * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceClusterRoleBindingAsync(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceClusterRoleBindingAsync(String name, V1beta1ClusterRoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceClusterRoleBindingValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedRole @@ -4660,62 +4838,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleCall(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedRoleCall(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/roles/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedRoleValidateBeforeCall(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4732,14 +4909,10 @@ private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRole(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedRoleCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4753,10 +4926,17 @@ private com.squareup.okhttp.Call replaceNamespacedRoleValidateBeforeCall(String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1Role * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1Role replaceNamespacedRole(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedRoleWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4770,11 +4950,18 @@ public V1beta1Role replaceNamespacedRole(String name, String namespace, V1beta1R * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1Role> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4786,35 +4973,23 @@ public ApiResponse replaceNamespacedRoleWithHttpInfo(String name, S * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleAsync(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedRoleAsync(String name, String namespace, V1beta1Role body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedRoleValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedRoleBinding @@ -4824,62 +4999,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedRoleBindingCall(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/rbac.authorization.k8s.io/v1beta1/namespaces/{namespace}/rolebindings/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedRoleBindingValidateBeforeCall(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4896,14 +5070,10 @@ private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall( throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedRoleBinding(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedRoleBindingCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4917,10 +5087,17 @@ private com.squareup.okhttp.Call replaceNamespacedRoleBindingValidateBeforeCall( * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1RoleBinding * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1RoleBinding replaceNamespacedRoleBinding(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedRoleBindingWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4934,11 +5111,18 @@ public V1beta1RoleBinding replaceNamespacedRoleBinding(String name, String names * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1RoleBinding> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4950,34 +5134,22 @@ public ApiResponse replaceNamespacedRoleBindingWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedRoleBindingAsync(String name, String namespace, V1beta1RoleBinding body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedRoleBindingValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingApi.java index 433d9bc560..94eaf61d28 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class SchedulingApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public SchedulingApi() { this(Configuration.getDefaultApiClient()); } public SchedulingApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1Api.java index d2e88a56ce..a1232a027a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1PriorityClass; import io.kubernetes.client.models.V1PriorityClassList; import io.kubernetes.client.models.V1Status; @@ -41,22 +40,22 @@ import java.util.Map; public class SchedulingV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public SchedulingV1Api() { this(Configuration.getDefaultApiClient()); } public SchedulingV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createPriorityClassCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createPriorityClassCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPriorityClassValidateBeforeCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createPriorityClassValidateBeforeCall(V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = createPriorityClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createPriorityClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createPriorityClassValidateBeforeCall(V1Priorit * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1PriorityClass createPriorityClass(V1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1PriorityClass createPriorityClass(V1PriorityClass body, String pretty, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createPriorityClassWithHttpInfo(V1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createPriorityClassWithHttpInfo(V1PriorityCl * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createPriorityClassAsync(V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createPriorityClassAsync(V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionPriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionPriorityClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionPriorityClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionPriorityClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPriorityClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deletePriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePriorityClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePriorityClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityClass(Async)"); } - - com.squareup.okhttp.Call call = deletePriorityClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deletePriorityClassValidateBeforeCall(String na * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deletePriorityClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deletePriorityClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deletePriorityClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deletePriorityClass(String name, String pretty, V1DeleteOptions * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deletePriorityClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deletePriorityClassWithHttpInfo(String name, String * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePriorityClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deletePriorityClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deletePriorityClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPriorityClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPriorityClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listPriorityClassValidateBeforeCall(String pret * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1PriorityClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PriorityClassList listPriorityClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPriorityClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1PriorityClassList listPriorityClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1PriorityClassList listPriorityClass(String pretty, String _continue, St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1PriorityClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPriorityClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listPriorityClassWithHttpInfo(String pre * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPriorityClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPriorityClass @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPriorityClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchPriorityClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1PriorityClass patchPriorityClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1PriorityClass patchPriorityClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1PriorityClass patchPriorityClass(String name, V1Patch body, String pret * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchPriorityClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchPriorityClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchPriorityClassWithHttpInfo(String name, * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPriorityClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchPriorityClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPriorityClass @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPriorityClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readPriorityClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPriorityClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = readPriorityClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPriorityClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readPriorityClassValidateBeforeCall(String name * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1PriorityClass readPriorityClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readPriorityClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readPriorityClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1PriorityClass readPriorityClass(String name, String pretty, Boolean exa * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPriorityClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readPriorityClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readPriorityClassWithHttpInfo(String name, S * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPriorityClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPriorityClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPriorityClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePriorityClass @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePriorityClassCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replacePriorityClassCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replacePriorityClass(Async)"); } - - com.squareup.okhttp.Call call = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1PriorityClass replacePriorityClass(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1PriorityClass replacePriorityClass(String name, V1PriorityClass body, S * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePriorityClassWithHttpInfo(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replacePriorityClassWithHttpInfo(String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePriorityClassAsync(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replacePriorityClassAsync(String name, V1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1alpha1Api.java index ee7f7db93c..5201e30ac1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1PriorityClass; import io.kubernetes.client.models.V1alpha1PriorityClassList; @@ -41,22 +40,22 @@ import java.util.Map; public class SchedulingV1alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public SchedulingV1alpha1Api() { this(Configuration.getDefaultApiClient()); } public SchedulingV1alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createPriorityClassCall(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createPriorityClassCall(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPriorityClassValidateBeforeCall(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createPriorityClassValidateBeforeCall(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = createPriorityClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createPriorityClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createPriorityClassValidateBeforeCall(V1alpha1P * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1PriorityClass createPriorityClass(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1alpha1PriorityClass createPriorityClass(V1alpha1PriorityClass body, Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createPriorityClassWithHttpInfo(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createPriorityClassWithHttpInfo(V1alph * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createPriorityClassAsync(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createPriorityClassAsync(V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionPriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionPriorityClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionPriorityClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionPriorityClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPriorityClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deletePriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePriorityClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePriorityClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityClass(Async)"); } - - com.squareup.okhttp.Call call = deletePriorityClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deletePriorityClassValidateBeforeCall(String na * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deletePriorityClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deletePriorityClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deletePriorityClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deletePriorityClass(String name, String pretty, V1DeleteOptions * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deletePriorityClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deletePriorityClassWithHttpInfo(String name, String * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePriorityClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deletePriorityClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deletePriorityClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPriorityClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPriorityClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listPriorityClassValidateBeforeCall(String pret * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1PriorityClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1PriorityClassList listPriorityClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPriorityClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1PriorityClassList listPriorityClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1alpha1PriorityClassList listPriorityClass(String pretty, String _contin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1PriorityClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPriorityClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listPriorityClassWithHttpInfo(Stri * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPriorityClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPriorityClass @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPriorityClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchPriorityClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1PriorityClass patchPriorityClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1PriorityClass patchPriorityClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1alpha1PriorityClass patchPriorityClass(String name, V1Patch body, Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchPriorityClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchPriorityClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchPriorityClassWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPriorityClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchPriorityClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPriorityClass @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPriorityClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readPriorityClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPriorityClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = readPriorityClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPriorityClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readPriorityClassValidateBeforeCall(String name * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1alpha1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1PriorityClass readPriorityClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readPriorityClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readPriorityClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1alpha1PriorityClass readPriorityClass(String name, String pretty, Boole * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1alpha1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPriorityClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readPriorityClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readPriorityClassWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPriorityClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPriorityClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPriorityClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePriorityClass @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePriorityClassCall(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replacePriorityClassCall(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1alpha1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replacePriorityClass(Async)"); } - - com.squareup.okhttp.Call call = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1PriorityClass replacePriorityClass(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1alpha1PriorityClass replacePriorityClass(String name, V1alpha1PriorityC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePriorityClassWithHttpInfo(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replacePriorityClassWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePriorityClassAsync(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replacePriorityClassAsync(String name, V1alpha1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1beta1Api.java index eee3123536..bbcedb0a25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/SchedulingV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1PriorityClass; import io.kubernetes.client.models.V1beta1PriorityClassList; @@ -41,22 +40,22 @@ import java.util.Map; public class SchedulingV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public SchedulingV1beta1Api() { this(Configuration.getDefaultApiClient()); } public SchedulingV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createPriorityClassCall(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createPriorityClassCall(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createPriorityClassValidateBeforeCall(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createPriorityClassValidateBeforeCall(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = createPriorityClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createPriorityClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createPriorityClassValidateBeforeCall(V1beta1Pr * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1PriorityClass createPriorityClass(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createPriorityClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1beta1PriorityClass createPriorityClass(V1beta1PriorityClass body, Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createPriorityClassWithHttpInfo(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createPriorityClassWithHttpInfo(V1beta1 * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createPriorityClassAsync(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createPriorityClassAsync(V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createPriorityClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionPriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPriorityClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionPriorityClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionPriorityClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionPriorityClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionPriorityClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionPriorityClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deletePriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePriorityClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deletePriorityClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deletePriorityClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deletePriorityClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deletePriorityClass(Async)"); } - - com.squareup.okhttp.Call call = deletePriorityClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deletePriorityClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deletePriorityClassValidateBeforeCall(String na * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deletePriorityClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deletePriorityClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deletePriorityClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deletePriorityClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deletePriorityClass(String name, String pretty, V1DeleteOptions * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deletePriorityClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deletePriorityClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deletePriorityClassWithHttpInfo(String name, String * delete a PriorityClass * @param name name of the PriorityClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deletePriorityClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deletePriorityClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deletePriorityClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deletePriorityClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPriorityClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listPriorityClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPriorityClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listPriorityClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPriorityClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listPriorityClassValidateBeforeCall(String pret * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1PriorityClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1PriorityClassList listPriorityClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPriorityClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1PriorityClassList listPriorityClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPriorityClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1beta1PriorityClassList listPriorityClass(String pretty, String _continu * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1PriorityClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPriorityClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPriorityClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PriorityClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listPriorityClassWithHttpInfo(Strin * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPriorityClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listPriorityClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPriorityClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPriorityClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchPriorityClass @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPriorityClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchPriorityClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchPriorityClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String nam throw new ApiException("Missing the required parameter 'body' when calling patchPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchPriorityClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchPriorityClassValidateBeforeCall(String nam * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1PriorityClass patchPriorityClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1PriorityClass patchPriorityClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchPriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1beta1PriorityClass patchPriorityClass(String name, V1Patch body, String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchPriorityClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchPriorityClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchPriorityClassWithHttpInfo(String n * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchPriorityClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchPriorityClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchPriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readPriorityClass @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPriorityClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readPriorityClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readPriorityClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readPriorityClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readPriorityClass(Async)"); } - - com.squareup.okhttp.Call call = readPriorityClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readPriorityClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readPriorityClassValidateBeforeCall(String name * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1PriorityClass readPriorityClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readPriorityClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readPriorityClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1beta1PriorityClass readPriorityClass(String name, String pretty, Boolea * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readPriorityClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readPriorityClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readPriorityClassWithHttpInfo(String na * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readPriorityClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readPriorityClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readPriorityClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readPriorityClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replacePriorityClass @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePriorityClassCall(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replacePriorityClassCall(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/scheduling.k8s.io/v1beta1/priorityclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replacePriorityClassValidateBeforeCall(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String n throw new ApiException("Missing the required parameter 'body' when calling replacePriorityClass(Async)"); } - - com.squareup.okhttp.Call call = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replacePriorityClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replacePriorityClassValidateBeforeCall(String n * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1PriorityClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1PriorityClass replacePriorityClass(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replacePriorityClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1beta1PriorityClass replacePriorityClass(String name, V1beta1PriorityCla * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1PriorityClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replacePriorityClassWithHttpInfo(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replacePriorityClassWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replacePriorityClassAsync(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replacePriorityClassAsync(String name, V1beta1PriorityClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replacePriorityClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsApi.java index 208566d470..b24f85ef27 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class SettingsApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public SettingsApi() { this(Configuration.getDefaultApiClient()); } public SettingsApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsV1alpha1Api.java index f10b722714..32441d9fd3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/SettingsV1alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1PodPreset; import io.kubernetes.client.models.V1alpha1PodPresetList; @@ -41,22 +40,22 @@ import java.util.Map; public class SettingsV1alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public SettingsV1alpha1Api() { this(Configuration.getDefaultApiClient()); } public SettingsV1alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -66,61 +65,61 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedPodPresetCall(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createNamespacedPodPresetCall(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createNamespacedPodPresetValidateBeforeCall(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createNamespacedPodPresetValidateBeforeCall(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { @@ -132,14 +131,10 @@ private com.squareup.okhttp.Call createNamespacedPodPresetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'body' when calling createNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = createNamespacedPodPresetCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createNamespacedPodPresetCall(namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -152,10 +147,18 @@ private com.squareup.okhttp.Call createNamespacedPodPresetValidateBeforeCall(Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1PodPreset * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1PodPreset createNamespacedPodPreset(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createNamespacedPodPresetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createNamespacedPodPresetWithHttpInfo(namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -168,11 +171,19 @@ public V1alpha1PodPreset createNamespacedPodPreset(String namespace, V1alpha1Pod * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1PodPreset> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createNamespacedPodPresetWithHttpInfo(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodPresetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createNamespacedPodPresetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -183,126 +194,145 @@ public ApiResponse createNamespacedPodPresetWithHttpInfo(Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createNamespacedPodPresetAsync(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createNamespacedPodPresetAsync(String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createNamespacedPodPresetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createNamespacedPodPresetValidateBeforeCall(namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionNamespacedPodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodPresetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionNamespacedPodPresetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionNamespacedPodPresetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionNamespacedPodPresetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling deleteCollectionNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodPresetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionNamespacedPodPresetCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** @@ -310,19 +340,31 @@ private com.squareup.okhttp.Call deleteCollectionNamespacedPodPresetValidateBefo * delete collection of PodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionNamespacedPodPreset(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionNamespacedPodPresetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionNamespacedPodPreset(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionNamespacedPodPresetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** @@ -330,20 +372,32 @@ public V1Status deleteCollectionNamespacedPodPreset(String namespace, String pre * delete collection of PodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionNamespacedPodPresetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodPresetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionNamespacedPodPresetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionNamespacedPodPresetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -351,113 +405,109 @@ public ApiResponse deleteCollectionNamespacedPodPresetWithHttpInfo(Str * delete collection of PodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionNamespacedPodPresetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionNamespacedPodPresetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionNamespacedPodPresetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionNamespacedPodPresetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteNamespacedPodPreset * @param name name of the PodPreset (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedPodPresetCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteNamespacedPodPresetCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteNamespacedPodPresetValidateBeforeCall(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteNamespacedPodPresetValidateBeforeCall(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -469,14 +519,10 @@ private com.squareup.okhttp.Call deleteNamespacedPodPresetValidateBeforeCall(Str throw new ApiException("Missing the required parameter 'namespace' when calling deleteNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = deleteNamespacedPodPresetCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteNamespacedPodPresetCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -485,17 +531,24 @@ private com.squareup.okhttp.Call deleteNamespacedPodPresetValidateBeforeCall(Str * @param name name of the PodPreset (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteNamespacedPodPreset(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteNamespacedPodPresetWithHttpInfo(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteNamespacedPodPreset(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteNamespacedPodPresetWithHttpInfo(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -504,18 +557,25 @@ public V1Status deleteNamespacedPodPreset(String name, String namespace, String * @param name name of the PodPreset (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteNamespacedPodPresetWithHttpInfo(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteNamespacedPodPresetWithHttpInfo(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -524,100 +584,76 @@ public ApiResponse deleteNamespacedPodPresetWithHttpInfo(String name, * @param name name of the PodPreset (required) * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteNamespacedPodPresetAsync(String name, String namespace, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteNamespacedPodPresetAsync(String name, String namespace, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -625,10 +661,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -636,50 +678,44 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listNamespacedPodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -687,85 +723,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedPodPresetCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listNamespacedPodPresetCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets" - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listNamespacedPodPresetValidateBeforeCall(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listNamespacedPodPresetValidateBeforeCall(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { // verify the required parameter 'namespace' is set if (namespace == null) { throw new ApiException("Missing the required parameter 'namespace' when calling listNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = listNamespacedPodPresetCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listNamespacedPodPresetCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** @@ -773,6 +817,7 @@ private com.squareup.okhttp.Call listNamespacedPodPresetValidateBeforeCall(Strin * list or watch objects of kind PodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -782,10 +827,16 @@ private com.squareup.okhttp.Call listNamespacedPodPresetValidateBeforeCall(Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1PodPresetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1PodPresetList listNamespacedPodPreset(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listNamespacedPodPresetWithHttpInfo(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1PodPresetList listNamespacedPodPreset(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listNamespacedPodPresetWithHttpInfo(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** @@ -793,6 +844,7 @@ public V1alpha1PodPresetList listNamespacedPodPreset(String namespace, String pr * list or watch objects of kind PodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -802,11 +854,17 @@ public V1alpha1PodPresetList listNamespacedPodPreset(String namespace, String pr * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1PodPresetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listNamespacedPodPresetWithHttpInfo(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPodPresetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listNamespacedPodPresetWithHttpInfo(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listNamespacedPodPresetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -814,6 +872,7 @@ public ApiResponse listNamespacedPodPresetWithHttpInfo(St * list or watch objects of kind PodPreset * @param namespace object name and auth scope, such as for teams and projects (required) * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -821,38 +880,26 @@ public ApiResponse listNamespacedPodPresetWithHttpInfo(St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listNamespacedPodPresetAsync(String namespace, String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listNamespacedPodPresetAsync(String namespace, String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listNamespacedPodPresetValidateBeforeCall(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listNamespacedPodPresetValidateBeforeCall(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listPodPresetForAllNamespaces + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -861,84 +908,93 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodPresetForAllNamespacesCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listPodPresetForAllNamespacesCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/podpresets"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarHeaderParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } - Map localVarFormParams = new HashMap(); + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listPodPresetForAllNamespacesValidateBeforeCall(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listPodPresetForAllNamespacesValidateBeforeCall(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listPodPresetForAllNamespacesCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listPodPresetForAllNamespacesCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind PodPreset + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -949,15 +1005,22 @@ private com.squareup.okhttp.Call listPodPresetForAllNamespacesValidateBeforeCall * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1PodPresetList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1PodPresetList listPodPresetForAllNamespaces(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listPodPresetForAllNamespacesWithHttpInfo(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1PodPresetList listPodPresetForAllNamespaces(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listPodPresetForAllNamespacesWithHttpInfo(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind PodPreset + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -968,16 +1031,23 @@ public V1alpha1PodPresetList listPodPresetForAllNamespaces(String _continue, Str * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1PodPresetList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listPodPresetForAllNamespacesWithHttpInfo(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listPodPresetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listPodPresetForAllNamespacesWithHttpInfo(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listPodPresetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind PodPreset + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -986,35 +1056,22 @@ public ApiResponse listPodPresetForAllNamespacesWithHttpI * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listPodPresetForAllNamespacesAsync(String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listPodPresetForAllNamespacesAsync(Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String pretty, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listPodPresetForAllNamespacesValidateBeforeCall(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listPodPresetForAllNamespacesValidateBeforeCall(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchNamespacedPodPreset @@ -1025,64 +1082,64 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodPresetCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchNamespacedPodPresetCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchNamespacedPodPresetValidateBeforeCall(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchNamespacedPodPresetValidateBeforeCall(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1099,14 +1156,10 @@ private com.squareup.okhttp.Call patchNamespacedPodPresetValidateBeforeCall(Stri throw new ApiException("Missing the required parameter 'body' when calling patchNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = patchNamespacedPodPresetCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchNamespacedPodPresetCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1121,10 +1174,16 @@ private com.squareup.okhttp.Call patchNamespacedPodPresetValidateBeforeCall(Stri * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1PodPreset * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1PodPreset patchNamespacedPodPreset(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchNamespacedPodPresetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1PodPreset patchNamespacedPodPreset(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchNamespacedPodPresetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1139,11 +1198,17 @@ public V1alpha1PodPreset patchNamespacedPodPreset(String name, String namespace, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1PodPreset> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchNamespacedPodPresetWithHttpInfo(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchNamespacedPodPresetWithHttpInfo(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1156,35 +1221,22 @@ public ApiResponse patchNamespacedPodPresetWithHttpInfo(Strin * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchNamespacedPodPresetAsync(String name, String namespace, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchNamespacedPodPresetAsync(String name, String namespace, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readNamespacedPodPreset @@ -1193,62 +1245,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodPresetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readNamespacedPodPresetCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readNamespacedPodPresetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readNamespacedPodPresetValidateBeforeCall(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1260,14 +1310,10 @@ private com.squareup.okhttp.Call readNamespacedPodPresetValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'namespace' when calling readNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = readNamespacedPodPresetCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readNamespacedPodPresetCall(name, namespace, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1280,10 +1326,16 @@ private com.squareup.okhttp.Call readNamespacedPodPresetValidateBeforeCall(Strin * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1alpha1PodPreset * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1PodPreset readNamespacedPodPreset(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readNamespacedPodPresetWithHttpInfo(name, namespace, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readNamespacedPodPresetWithHttpInfo(name, namespace, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1296,11 +1348,17 @@ public V1alpha1PodPreset readNamespacedPodPreset(String name, String namespace, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1alpha1PodPreset> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readNamespacedPodPresetWithHttpInfo(String name, String namespace, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1311,35 +1369,22 @@ public ApiResponse readNamespacedPodPresetWithHttpInfo(String * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readNamespacedPodPresetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readNamespacedPodPresetAsync(String name, String namespace, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readNamespacedPodPresetValidateBeforeCall(name, namespace, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceNamespacedPodPreset @@ -1349,62 +1394,61 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodPresetCall(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceNamespacedPodPresetCall(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/settings.k8s.io/v1alpha1/namespaces/{namespace}/podpresets/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())) - .replaceAll("\\{" + "namespace" + "\\}", apiClient.escapeString(namespace.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())) + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceNamespacedPodPresetValidateBeforeCall(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceNamespacedPodPresetValidateBeforeCall(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1421,14 +1465,10 @@ private com.squareup.okhttp.Call replaceNamespacedPodPresetValidateBeforeCall(St throw new ApiException("Missing the required parameter 'body' when calling replaceNamespacedPodPreset(Async)"); } - - com.squareup.okhttp.Call call = replaceNamespacedPodPresetCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceNamespacedPodPresetCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1442,10 +1482,17 @@ private com.squareup.okhttp.Call replaceNamespacedPodPresetValidateBeforeCall(St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1PodPreset * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1PodPreset replaceNamespacedPodPreset(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceNamespacedPodPresetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceNamespacedPodPresetWithHttpInfo(name, namespace, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1459,11 +1506,18 @@ public V1alpha1PodPreset replaceNamespacedPodPreset(String name, String namespac * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1PodPreset> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceNamespacedPodPresetWithHttpInfo(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1475,34 +1529,22 @@ public ApiResponse replaceNamespacedPodPresetWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceNamespacedPodPresetAsync(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceNamespacedPodPresetAsync(String name, String namespace, V1alpha1PodPreset body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceNamespacedPodPresetValidateBeforeCall(name, namespace, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageApi.java index a81994c404..e7de560131 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class StorageApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public StorageApi() { this(Configuration.getDefaultApiClient()); } public StorageApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getAPIGroup - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIGroupCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIGroupValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIGroupCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getAPIGroupValidateBeforeCall(final ProgressRes * get information of a group * @return V1APIGroup * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIGroup getAPIGroup() throws ApiException { - ApiResponse resp = getAPIGroupWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIGroupWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public V1APIGroup getAPIGroup() throws ApiException { * get information of a group * @return ApiResponse<V1APIGroup> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIGroupWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get information of a group - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIGroupAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIGroupAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIGroupValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIGroupValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1Api.java index 9b0c38c3cc..211241b0ef 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1StorageClass; import io.kubernetes.client.models.V1StorageClassList; @@ -43,22 +42,22 @@ import java.util.Map; public class StorageV1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public StorageV1Api() { this(Configuration.getDefaultApiClient()); } public StorageV1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -67,74 +66,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createStorageClassCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createStorageClassCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createStorageClassValidateBeforeCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createStorageClassValidateBeforeCall(V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageClass(Async)"); } - - com.squareup.okhttp.Call call = createStorageClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createStorageClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -146,10 +141,18 @@ private com.squareup.okhttp.Call createStorageClassValidateBeforeCall(V1StorageC * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1StorageClass createStorageClass(V1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -161,11 +164,19 @@ public V1StorageClass createStorageClass(V1StorageClass body, String pretty, Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createStorageClassWithHttpInfo(V1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -175,35 +186,24 @@ public ApiResponse createStorageClassWithHttpInfo(V1StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createStorageClassAsync(V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createStorageClassAsync(V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createVolumeAttachment @@ -211,74 +211,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call createVolumeAttachmentCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttachmentCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createVolumeAttachmentValidateBeforeCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -290,10 +286,18 @@ private com.squareup.okhttp.Call createVolumeAttachmentValidateBeforeCall(V1Volu * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1VolumeAttachment createVolumeAttachment(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -305,11 +309,19 @@ public V1VolumeAttachment createVolumeAttachment(V1VolumeAttachment body, String * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createVolumeAttachmentWithHttpInfo(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -319,448 +331,530 @@ public ApiResponse createVolumeAttachmentWithHttpInfo(V1Volu * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object - */ - public com.squareup.okhttp.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call createVolumeAttachmentAsync(V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionStorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionStorageClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionStorageClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionStorageClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionStorageClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionStorageClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionStorageClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionStorageClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionVolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionVolumeAttachment(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionVolumeAttachmentAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteStorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteStorageClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteStorageClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); } - - com.squareup.okhttp.Call call = deleteStorageClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -768,17 +862,24 @@ private com.squareup.okhttp.Call deleteStorageClassValidateBeforeCall(String nam * delete a StorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteStorageClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteStorageClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteStorageClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -786,18 +887,25 @@ public V1Status deleteStorageClass(String name, String pretty, V1DeleteOptions b * delete a StorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteStorageClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -805,123 +913,110 @@ public ApiResponse deleteStorageClassWithHttpInfo(String name, String * delete a StorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteStorageClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteStorageClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteVolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call deleteVolumeAttachmentCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = deleteVolumeAttachmentCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -929,17 +1024,24 @@ private com.squareup.okhttp.Call deleteVolumeAttachmentValidateBeforeCall(String * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteVolumeAttachment(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteVolumeAttachmentWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -947,18 +1049,25 @@ public V1Status deleteVolumeAttachment(String name, String pretty, V1DeleteOptio * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeAttachmentValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
+ */ + public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -966,100 +1075,76 @@ public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, Str * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteVolumeAttachmentAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeAttachmentValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -1067,10 +1152,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -1078,49 +1169,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listStorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1128,85 +1213,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listStorageClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listStorageClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listStorageClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1216,16 +1310,23 @@ private com.squareup.okhttp.Call listStorageClassValidateBeforeCall(String prett * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1StorageClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1StorageClassList listStorageClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listStorageClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1StorageClassList listStorageClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1235,17 +1336,24 @@ public V1StorageClassList listStorageClass(String pretty, String _continue, Stri * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1StorageClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listStorageClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1253,39 +1361,27 @@ public ApiResponse listStorageClassWithHttpInfo(String prett * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listStorageClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listVolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1293,85 +1389,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call listVolumeAttachmentCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listVolumeAttachmentCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1381,16 +1486,23 @@ private com.squareup.okhttp.Call listVolumeAttachmentValidateBeforeCall(String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1VolumeAttachmentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1VolumeAttachmentList listVolumeAttachment(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listVolumeAttachmentWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1400,17 +1512,24 @@ public V1VolumeAttachmentList listVolumeAttachment(String pretty, String _contin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1VolumeAttachmentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -1418,35 +1537,22 @@ public ApiResponse listVolumeAttachmentWithHttpInfo(Stri * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listVolumeAttachmentAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchStorageClass @@ -1456,63 +1562,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchStorageClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchStorageClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchStorageClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchStorageClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1524,14 +1630,10 @@ private com.squareup.okhttp.Call patchStorageClassValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling patchStorageClass(Async)"); } - - com.squareup.okhttp.Call call = patchStorageClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchStorageClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1545,10 +1647,16 @@ private com.squareup.okhttp.Call patchStorageClassValidateBeforeCall(String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1StorageClass patchStorageClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1StorageClass patchStorageClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1562,11 +1670,17 @@ public V1StorageClass patchStorageClass(String name, V1Patch body, String pretty * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchStorageClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchStorageClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1578,35 +1692,22 @@ public ApiResponse patchStorageClassWithHttpInfo(String name, V1 * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchStorageClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchStorageClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchVolumeAttachment @@ -1616,63 +1717,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchVolumeAttachmentCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttachmentCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1684,14 +1785,10 @@ private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1705,10 +1802,16 @@ private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1VolumeAttachment patchVolumeAttachment(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1722,11 +1825,17 @@ public V1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, Strin * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchVolumeAttachmentWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchVolumeAttachmentWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1738,35 +1847,22 @@ public ApiResponse patchVolumeAttachmentWithHttpInfo(String * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchVolumeAttachmentAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchVolumeAttachmentAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchVolumeAttachmentStatus @@ -1776,63 +1872,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call patchVolumeAttachmentStatusCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call patchVolumeAttachmentStatusCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchVolumeAttachmentStatusValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1844,14 +1940,10 @@ private com.squareup.okhttp.Call patchVolumeAttachmentStatusValidateBeforeCall(S throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachmentStatus(Async)"); } - - com.squareup.okhttp.Call call = patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -1865,10 +1957,16 @@ private com.squareup.okhttp.Call patchVolumeAttachmentStatusValidateBeforeCall(S * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1VolumeAttachment patchVolumeAttachmentStatus(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1VolumeAttachment patchVolumeAttachmentStatus(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -1882,11 +1980,17 @@ public V1VolumeAttachment patchVolumeAttachmentStatus(String name, V1Patch body, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body - */ - public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1898,35 +2002,22 @@ public ApiResponse patchVolumeAttachmentStatusWithHttpInfo(S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchVolumeAttachmentStatusAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { + public okhttp3.Call patchVolumeAttachmentStatusAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readStorageClass @@ -1934,75 +2025,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readStorageClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readStorageClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readStorageClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readStorageClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageClass(Async)"); } - - com.squareup.okhttp.Call call = readStorageClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readStorageClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -2014,10 +2099,16 @@ private com.squareup.okhttp.Call readStorageClassValidateBeforeCall(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1StorageClass readStorageClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readStorageClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readStorageClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -2029,11 +2120,17 @@ public V1StorageClass readStorageClass(String name, String pretty, Boolean exact * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readStorageClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readStorageClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readStorageClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2043,35 +2140,22 @@ public ApiResponse readStorageClassWithHttpInfo(String name, Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readStorageClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readStorageClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readStorageClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readStorageClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readVolumeAttachment @@ -2079,75 +2163,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readVolumeAttachmentCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttachmentCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = readVolumeAttachmentCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readVolumeAttachmentCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -2159,10 +2237,16 @@ private com.squareup.okhttp.Call readVolumeAttachmentValidateBeforeCall(String n * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1VolumeAttachment readVolumeAttachment(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readVolumeAttachmentWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readVolumeAttachmentWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -2174,11 +2258,17 @@ public V1VolumeAttachment readVolumeAttachment(String name, String pretty, Boole * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readVolumeAttachmentWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2188,105 +2278,82 @@ public ApiResponse readVolumeAttachmentWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readVolumeAttachmentAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readVolumeAttachmentStatus * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call readVolumeAttachmentStatusCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
+ */ + public okhttp3.Call readVolumeAttachmentStatusCall(String name, String pretty, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readVolumeAttachmentStatusValidateBeforeCall(String name, String pretty, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readVolumeAttachmentStatusValidateBeforeCall(String name, String pretty, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachmentStatus(Async)"); } - - com.squareup.okhttp.Call call = readVolumeAttachmentStatusCall(name, pretty, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readVolumeAttachmentStatusCall(name, pretty, _callback); + return localVarCall; + } /** @@ -2296,10 +2363,16 @@ private com.squareup.okhttp.Call readVolumeAttachmentStatusValidateBeforeCall(St * @param pretty If 'true', then the output is pretty printed. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1VolumeAttachment readVolumeAttachmentStatus(String name, String pretty) throws ApiException { - ApiResponse resp = readVolumeAttachmentStatusWithHttpInfo(name, pretty); - return resp.getData(); + ApiResponse localVarResp = readVolumeAttachmentStatusWithHttpInfo(name, pretty); + return localVarResp.getData(); } /** @@ -2309,11 +2382,17 @@ public V1VolumeAttachment readVolumeAttachmentStatus(String name, String pretty) * @param pretty If 'true', then the output is pretty printed. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readVolumeAttachmentStatusWithHttpInfo(String name, String pretty) throws ApiException { - com.squareup.okhttp.Call call = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, null, null); + okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2321,35 +2400,22 @@ public ApiResponse readVolumeAttachmentStatusWithHttpInfo(St * read status of the specified VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readVolumeAttachmentStatusAsync(String name, String pretty, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readVolumeAttachmentStatusAsync(String name, String pretty, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readVolumeAttachmentStatusValidateBeforeCall(name, pretty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceStorageClass @@ -2358,61 +2424,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceStorageClassCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceStorageClassCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceStorageClassValidateBeforeCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2424,14 +2489,10 @@ private com.squareup.okhttp.Call replaceStorageClassValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling replaceStorageClass(Async)"); } - - com.squareup.okhttp.Call call = replaceStorageClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceStorageClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2444,10 +2505,17 @@ private com.squareup.okhttp.Call replaceStorageClassValidateBeforeCall(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1StorageClass replaceStorageClass(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2460,11 +2528,18 @@ public V1StorageClass replaceStorageClass(String name, V1StorageClass body, Stri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceStorageClassWithHttpInfo(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2475,35 +2550,23 @@ public ApiResponse replaceStorageClassWithHttpInfo(String name, * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceStorageClassAsync(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceStorageClassAsync(String name, V1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceVolumeAttachment @@ -2512,61 +2575,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttachmentCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2578,14 +2640,10 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2598,10 +2656,17 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1VolumeAttachment replaceVolumeAttachment(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2614,11 +2679,18 @@ public V1VolumeAttachment replaceVolumeAttachment(String name, V1VolumeAttachmen * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceVolumeAttachmentWithHttpInfo(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2629,35 +2701,23 @@ public ApiResponse replaceVolumeAttachmentWithHttpInfo(Strin * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceVolumeAttachmentAsync(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceVolumeAttachmentAsync(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceVolumeAttachmentStatus @@ -2666,61 +2726,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object - */ - public com.squareup.okhttp.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
+ */ + public okhttp3.Call replaceVolumeAttachmentStatusCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1/volumeattachments/{name}/status" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentStatusValidateBeforeCall(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2732,14 +2791,10 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentStatusValidateBeforeCall throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttachmentStatus(Async)"); } - - com.squareup.okhttp.Call call = replaceVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceVolumeAttachmentStatusCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -2752,10 +2807,17 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentStatusValidateBeforeCall * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1VolumeAttachment replaceVolumeAttachmentStatus(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceVolumeAttachmentStatusWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -2768,11 +2830,18 @@ public V1VolumeAttachment replaceVolumeAttachmentStatus(String name, V1VolumeAtt * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceVolumeAttachmentStatusWithHttpInfo(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2783,34 +2852,22 @@ public ApiResponse replaceVolumeAttachmentStatusWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceVolumeAttachmentStatusAsync(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceVolumeAttachmentStatusAsync(String name, V1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceVolumeAttachmentStatusValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1alpha1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1alpha1Api.java index c90c18f4ef..0d18bf825d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1alpha1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1alpha1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1VolumeAttachment; import io.kubernetes.client.models.V1alpha1VolumeAttachmentList; @@ -41,22 +40,22 @@ import java.util.Map; public class StorageV1alpha1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public StorageV1alpha1Api() { this(Configuration.getDefaultApiClient()); } public StorageV1alpha1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -65,74 +64,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createVolumeAttachmentCall(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createVolumeAttachmentCall(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createVolumeAttachmentValidateBeforeCall(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -144,10 +139,18 @@ private com.squareup.okhttp.Call createVolumeAttachmentValidateBeforeCall(V1alph * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1alpha1VolumeAttachment createVolumeAttachment(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -159,11 +162,19 @@ public V1alpha1VolumeAttachment createVolumeAttachment(V1alpha1VolumeAttachment * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createVolumeAttachmentWithHttpInfo(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -173,283 +184,318 @@ public ApiResponse createVolumeAttachmentWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createVolumeAttachmentAsync(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call createVolumeAttachmentAsync(V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionVolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionVolumeAttachment(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionVolumeAttachmentAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteVolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteVolumeAttachmentCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = deleteVolumeAttachmentCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -457,17 +503,24 @@ private com.squareup.okhttp.Call deleteVolumeAttachmentValidateBeforeCall(String * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteVolumeAttachment(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteVolumeAttachmentWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -475,18 +528,25 @@ public V1Status deleteVolumeAttachment(String name, String pretty, V1DeleteOptio * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeAttachmentValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -494,100 +554,76 @@ public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, Str * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteVolumeAttachmentAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeAttachmentValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -595,10 +631,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -606,49 +648,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listVolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -656,85 +692,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listVolumeAttachmentCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listVolumeAttachmentCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -744,16 +789,23 @@ private com.squareup.okhttp.Call listVolumeAttachmentValidateBeforeCall(String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1alpha1VolumeAttachmentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1VolumeAttachmentList listVolumeAttachment(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listVolumeAttachmentWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1alpha1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -763,17 +815,24 @@ public V1alpha1VolumeAttachmentList listVolumeAttachment(String pretty, String _ * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1alpha1VolumeAttachmentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -781,35 +840,22 @@ public ApiResponse listVolumeAttachmentWithHttpInf * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listVolumeAttachmentAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchVolumeAttachment @@ -819,63 +865,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchVolumeAttachmentCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchVolumeAttachmentCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -887,14 +933,10 @@ private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -908,10 +950,16 @@ private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1alpha1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1alpha1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1alpha1VolumeAttachment patchVolumeAttachment(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -925,11 +973,17 @@ public V1alpha1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1alpha1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchVolumeAttachmentWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchVolumeAttachmentWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -941,35 +995,22 @@ public ApiResponse patchVolumeAttachmentWithHttpInfo(S * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchVolumeAttachmentAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchVolumeAttachmentAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readVolumeAttachment @@ -977,75 +1018,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readVolumeAttachmentCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readVolumeAttachmentCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = readVolumeAttachmentCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readVolumeAttachmentCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -1057,10 +1092,16 @@ private com.squareup.okhttp.Call readVolumeAttachmentValidateBeforeCall(String n * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1alpha1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1alpha1VolumeAttachment readVolumeAttachment(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readVolumeAttachmentWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readVolumeAttachmentWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -1072,11 +1113,17 @@ public V1alpha1VolumeAttachment readVolumeAttachment(String name, String pretty, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1alpha1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readVolumeAttachmentWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1086,35 +1133,22 @@ public ApiResponse readVolumeAttachmentWithHttpInfo(St * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readVolumeAttachmentAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceVolumeAttachment @@ -1123,61 +1157,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceVolumeAttachmentCall(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceVolumeAttachmentCall(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1alpha1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -1189,14 +1222,10 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -1209,10 +1238,17 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1alpha1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1alpha1VolumeAttachment replaceVolumeAttachment(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -1225,11 +1261,18 @@ public V1alpha1VolumeAttachment replaceVolumeAttachment(String name, V1alpha1Vol * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1alpha1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceVolumeAttachmentWithHttpInfo(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1240,34 +1283,22 @@ public ApiResponse replaceVolumeAttachmentWithHttpInfo * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceVolumeAttachmentAsync(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceVolumeAttachmentAsync(String name, V1alpha1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1beta1Api.java b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1beta1Api.java index 79820113cc..a60154fc62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1beta1Api.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/StorageV1beta1Api.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -29,7 +29,6 @@ import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CSIDriver; import io.kubernetes.client.models.V1beta1CSIDriverList; @@ -47,22 +46,22 @@ import java.util.Map; public class StorageV1beta1Api { - private ApiClient apiClient; + private ApiClient localVarApiClient; public StorageV1beta1Api() { this(Configuration.getDefaultApiClient()); } public StorageV1beta1Api(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** @@ -71,74 +70,70 @@ public void setApiClient(ApiClient apiClient) { * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCSIDriverCall(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createCSIDriverCall(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createCSIDriverValidateBeforeCall(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createCSIDriverValidateBeforeCall(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCSIDriver(Async)"); } - - com.squareup.okhttp.Call call = createCSIDriverCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createCSIDriverCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -150,10 +145,18 @@ private com.squareup.okhttp.Call createCSIDriverValidateBeforeCall(V1beta1CSIDri * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1CSIDriver createCSIDriver(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createCSIDriverWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -165,11 +168,19 @@ public V1beta1CSIDriver createCSIDriver(V1beta1CSIDriver body, String pretty, St * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createCSIDriverWithHttpInfo(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createCSIDriverValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createCSIDriverValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -179,35 +190,24 @@ public ApiResponse createCSIDriverWithHttpInfo(V1beta1CSIDrive * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCSIDriverAsync(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call createCSIDriverAsync(V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createCSIDriverValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createCSIDriverValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createCSINode @@ -215,74 +215,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCSINodeCall(V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createCSINodeCall(V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createCSINodeValidateBeforeCall(V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createCSINodeValidateBeforeCall(V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createCSINode(Async)"); } - - com.squareup.okhttp.Call call = createCSINodeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createCSINodeCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -294,10 +290,18 @@ private com.squareup.okhttp.Call createCSINodeValidateBeforeCall(V1beta1CSINode * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1CSINode createCSINode(V1beta1CSINode body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createCSINodeWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -309,11 +313,19 @@ public V1beta1CSINode createCSINode(V1beta1CSINode body, String pretty, String d * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createCSINodeWithHttpInfo(V1beta1CSINode body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createCSINodeValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createCSINodeValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -323,35 +335,24 @@ public ApiResponse createCSINodeWithHttpInfo(V1beta1CSINode body * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createCSINodeAsync(V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call createCSINodeAsync(V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createCSINodeValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createCSINodeValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createStorageClass @@ -359,74 +360,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createStorageClassCall(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createStorageClassCall(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createStorageClassValidateBeforeCall(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createStorageClassValidateBeforeCall(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createStorageClass(Async)"); } - - com.squareup.okhttp.Call call = createStorageClassCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createStorageClassCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -438,10 +435,18 @@ private com.squareup.okhttp.Call createStorageClassValidateBeforeCall(V1beta1Sto * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1StorageClass createStorageClass(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createStorageClassWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -453,11 +458,19 @@ public V1beta1StorageClass createStorageClass(V1beta1StorageClass body, String p * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createStorageClassWithHttpInfo(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -467,35 +480,24 @@ public ApiResponse createStorageClassWithHttpInfo(V1beta1St * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createStorageClassAsync(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { + public okhttp3.Call createStorageClassAsync(V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createStorageClassValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for createVolumeAttachment @@ -503,74 +505,70 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createVolumeAttachmentCall(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call createVolumeAttachmentCall(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call createVolumeAttachmentValidateBeforeCall(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call createVolumeAttachmentValidateBeforeCall(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'body' is set if (body == null) { throw new ApiException("Missing the required parameter 'body' when calling createVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = createVolumeAttachmentCall(body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -582,10 +580,18 @@ private com.squareup.okhttp.Call createVolumeAttachmentValidateBeforeCall(V1beta * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public V1beta1VolumeAttachment createVolumeAttachment(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = createVolumeAttachmentWithHttpInfo(body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -597,11 +603,19 @@ public V1beta1VolumeAttachment createVolumeAttachment(V1beta1VolumeAttachment bo * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ public ApiResponse createVolumeAttachmentWithHttpInfo(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -611,118 +625,106 @@ public ApiResponse createVolumeAttachmentWithHttpInfo(V * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call createVolumeAttachmentAsync(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { + public okhttp3.Call createVolumeAttachmentAsync(V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = createVolumeAttachmentValidateBeforeCall(body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCSIDriver * @param name name of the CSIDriver (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCSIDriverCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteCSIDriverCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCSIDriverValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCSIDriverValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCSIDriver(Async)"); } - - com.squareup.okhttp.Call call = deleteCSIDriverCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCSIDriverCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -730,17 +732,24 @@ private com.squareup.okhttp.Call deleteCSIDriverValidateBeforeCall(String name, * delete a CSIDriver * @param name name of the CSIDriver (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCSIDriver(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteCSIDriverWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteCSIDriver(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCSIDriverWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -748,18 +757,25 @@ public V1Status deleteCSIDriver(String name, String pretty, V1DeleteOptions body * delete a CSIDriver * @param name name of the CSIDriver (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCSIDriverWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteCSIDriverValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteCSIDriverWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -767,123 +783,110 @@ public ApiResponse deleteCSIDriverWithHttpInfo(String name, String pre * delete a CSIDriver * @param name name of the CSIDriver (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCSIDriverAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCSIDriverAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCSIDriverValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCSIDriverValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCSINode * @param name name of the CSINode (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCSINodeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteCSINodeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCSINodeValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCSINodeValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteCSINode(Async)"); } - - com.squareup.okhttp.Call call = deleteCSINodeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCSINodeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -891,17 +894,24 @@ private com.squareup.okhttp.Call deleteCSINodeValidateBeforeCall(String name, St * delete a CSINode * @param name name of the CSINode (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteCSINode(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteCSINodeWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteCSINode(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCSINodeWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -909,18 +919,25 @@ public V1Status deleteCSINode(String name, String pretty, V1DeleteOptions body, * delete a CSINode * @param name name of the CSINode (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteCSINodeWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteCSINodeValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteCSINodeWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -928,783 +945,958 @@ public ApiResponse deleteCSINodeWithHttpInfo(String name, String prett * delete a CSINode * @param name name of the CSINode (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCSINodeAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteCSINodeAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCSINodeValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCSINodeValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionCSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCSIDriverCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionCSIDriverCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionCSIDriverValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCSIDriverCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionCSIDriverCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of CSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionCSIDriver(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionCSIDriverWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionCSIDriver(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of CSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionCSIDriverWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of CSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCSIDriverAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionCSIDriverAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionCSIDriverValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionCSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCSINodeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionCSINodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteCollectionCSINodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = deleteCollectionCSINodeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionCSINodeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of CSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionCSINode(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionCSINodeWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionCSINode(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of CSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionCSINodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of CSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionCSINodeAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { + public okhttp3.Call deleteCollectionCSINodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionCSINodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionStorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionStorageClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionStorageClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionStorageClassCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionStorageClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionStorageClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionStorageClass(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionStorageClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call deleteCollectionStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteCollectionVolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionVolumeAttachmentCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - Object localVarPostBody = null; - + public okhttp3.Call deleteCollectionVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { + Object localVarPostBody = body; + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call deleteCollectionVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); + return localVarCall; + } /** * * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1Status deleteCollectionVolumeAttachment(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1Status deleteCollectionVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteCollectionVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); + return localVarResp.getData(); } /** * * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse deleteCollectionVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * delete collection of VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) + * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) + * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) * @param limit limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) + * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) + * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteCollectionVolumeAttachmentAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call deleteCollectionVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String dryRun, String fieldSelector, Integer gracePeriodSeconds, String labelSelector, Integer limit, Boolean orphanDependents, String propagationPolicy, String resourceVersion, Integer timeoutSeconds, Boolean watch, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteCollectionVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteStorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteStorageClassCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteStorageClassCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } - Map localVarHeaderParams = new HashMap(); + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } - Map localVarFormParams = new HashMap(); + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteStorageClassValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteStorageClassValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteStorageClass(Async)"); } - - com.squareup.okhttp.Call call = deleteStorageClassCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteStorageClassCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1712,17 +1904,24 @@ private com.squareup.okhttp.Call deleteStorageClassValidateBeforeCall(String nam * delete a StorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteStorageClass(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteStorageClassWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteStorageClass(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteStorageClassWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1730,18 +1929,25 @@ public V1Status deleteStorageClass(String name, String pretty, V1DeleteOptions b * delete a StorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteStorageClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteStorageClassWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1749,123 +1955,110 @@ public ApiResponse deleteStorageClassWithHttpInfo(String name, String * delete a StorageClass * @param name name of the StorageClass (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteStorageClassAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteStorageClassAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteStorageClassValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteStorageClassValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for deleteVolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param body (optional) + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteVolumeAttachmentCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call deleteVolumeAttachmentCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (gracePeriodSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); - if (orphanDependents != null) - localVarQueryParams.addAll(apiClient.parameterToPair("orphanDependents", orphanDependents)); - if (propagationPolicy != null) - localVarQueryParams.addAll(apiClient.parameterToPair("propagationPolicy", propagationPolicy)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (gracePeriodSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("gracePeriodSeconds", gracePeriodSeconds)); + } + + if (orphanDependents != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("orphanDependents", orphanDependents)); + } + if (propagationPolicy != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("propagationPolicy", propagationPolicy)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call deleteVolumeAttachmentValidateBeforeCall(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling deleteVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = deleteVolumeAttachmentCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = deleteVolumeAttachmentCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); + return localVarCall; + } /** @@ -1873,17 +2066,24 @@ private com.squareup.okhttp.Call deleteVolumeAttachmentValidateBeforeCall(String * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return V1Status * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public V1Status deleteVolumeAttachment(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - ApiResponse resp = deleteVolumeAttachmentWithHttpInfo(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); - return resp.getData(); + public V1Status deleteVolumeAttachment(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + ApiResponse localVarResp = deleteVolumeAttachmentWithHttpInfo(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); + return localVarResp.getData(); } /** @@ -1891,18 +2091,25 @@ public V1Status deleteVolumeAttachment(String name, String pretty, V1DeleteOptio * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + * @param body (optional) * @return ApiResponse<V1Status> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeAttachmentValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, null, null); + public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body) throws ApiException { + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -1910,100 +2117,76 @@ public ApiResponse deleteVolumeAttachmentWithHttpInfo(String name, Str * delete a VolumeAttachment * @param name name of the VolumeAttachment (required) * @param pretty If 'true', then the output is pretty printed. (optional) - * @param body (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param gracePeriodSeconds The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) * @param orphanDependents Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) * @param propagationPolicy Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) - * @param callback The callback to be executed when the API call finishes + * @param body (optional) + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
202 Accepted -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call deleteVolumeAttachmentAsync(String name, String pretty, V1DeleteOptions body, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call deleteVolumeAttachmentAsync(String name, String pretty, String dryRun, Integer gracePeriodSeconds, Boolean orphanDependents, String propagationPolicy, V1DeleteOptions body, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = deleteVolumeAttachmentValidateBeforeCall(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, progressListener, progressRequestListener); + okhttp3.Call localVarCall = deleteVolumeAttachmentValidateBeforeCall(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for getAPIResources - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getAPIResourcesCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call getAPIResourcesValidateBeforeCall(final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = getAPIResourcesCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getAPIResourcesCall(_callback); + return localVarCall; + } /** @@ -2011,10 +2194,16 @@ private com.squareup.okhttp.Call getAPIResourcesValidateBeforeCall(final Progres * get available resources * @return V1APIResourceList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1APIResourceList getAPIResources() throws ApiException { - ApiResponse resp = getAPIResourcesWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getAPIResourcesWithHttpInfo(); + return localVarResp.getData(); } /** @@ -2022,49 +2211,43 @@ public V1APIResourceList getAPIResources() throws ApiException { * get available resources * @return ApiResponse<V1APIResourceList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getAPIResourcesWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get available resources - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getAPIResourcesAsync(final ApiCallback callback) throws ApiException { + public okhttp3.Call getAPIResourcesAsync(final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = getAPIResourcesValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getAPIResourcesValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listCSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2072,85 +2255,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCSIDriverCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listCSIDriverCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listCSIDriverValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listCSIDriverValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listCSIDriverCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listCSIDriverCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind CSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2160,16 +2352,23 @@ private com.squareup.okhttp.Call listCSIDriverValidateBeforeCall(String pretty, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1CSIDriverList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CSIDriverList listCSIDriver(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listCSIDriverWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1CSIDriverList listCSIDriver(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listCSIDriverWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind CSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2179,17 +2378,24 @@ public V1beta1CSIDriverList listCSIDriver(String pretty, String _continue, Strin * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1CSIDriverList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listCSIDriverWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listCSIDriverValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listCSIDriverWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind CSIDriver * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2197,39 +2403,27 @@ public ApiResponse listCSIDriverWithHttpInfo(String pretty * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCSIDriverAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call listCSIDriverAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listCSIDriverValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listCSIDriverValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listCSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2237,85 +2431,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCSINodeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listCSINodeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listCSINodeValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listCSINodeValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listCSINodeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listCSINodeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind CSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2325,16 +2528,23 @@ private com.squareup.okhttp.Call listCSINodeValidateBeforeCall(String pretty, St * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1CSINodeList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CSINodeList listCSINode(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listCSINodeWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1CSINodeList listCSINode(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listCSINodeWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind CSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2344,17 +2554,24 @@ public V1beta1CSINodeList listCSINode(String pretty, String _continue, String fi * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1CSINodeList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listCSINodeWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listCSINodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listCSINodeWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind CSINode * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2362,39 +2579,27 @@ public ApiResponse listCSINodeWithHttpInfo(String pretty, St * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listCSINodeAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call listCSINodeAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = listCSINodeValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listCSINodeValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listStorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2402,85 +2607,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listStorageClassCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listStorageClassCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listStorageClassValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call listStorageClassValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listStorageClassCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listStorageClassCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2490,16 +2704,23 @@ private com.squareup.okhttp.Call listStorageClassValidateBeforeCall(String prett * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1StorageClassList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1StorageClassList listStorageClass(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listStorageClassWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1StorageClassList listStorageClass(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listStorageClassWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2509,17 +2730,24 @@ public V1beta1StorageClassList listStorageClass(String pretty, String _continue, * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1StorageClassList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listStorageClassWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listStorageClassWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind StorageClass * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2527,39 +2755,27 @@ public ApiResponse listStorageClassWithHttpInfo(String * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listStorageClassAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listStorageClassAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listStorageClassValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listStorageClassValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for listVolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2567,85 +2783,94 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listVolumeAttachmentCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call listVolumeAttachmentCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (_continue != null) - localVarQueryParams.addAll(apiClient.parameterToPair("continue", _continue)); - if (fieldSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldSelector", fieldSelector)); - if (labelSelector != null) - localVarQueryParams.addAll(apiClient.parameterToPair("labelSelector", labelSelector)); - if (limit != null) - localVarQueryParams.addAll(apiClient.parameterToPair("limit", limit)); - if (resourceVersion != null) - localVarQueryParams.addAll(apiClient.parameterToPair("resourceVersion", resourceVersion)); - if (timeoutSeconds != null) - localVarQueryParams.addAll(apiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); - if (watch != null) - localVarQueryParams.addAll(apiClient.parameterToPair("watch", watch)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (allowWatchBookmarks != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("allowWatchBookmarks", allowWatchBookmarks)); + } - Map localVarFormParams = new HashMap(); + if (_continue != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("continue", _continue)); + } + + if (fieldSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldSelector", fieldSelector)); + } + + if (labelSelector != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("labelSelector", labelSelector)); + } + + if (limit != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("limit", limit)); + } + + if (resourceVersion != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("resourceVersion", resourceVersion)); + } + + if (timeoutSeconds != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("timeoutSeconds", timeoutSeconds)); + } + + if (watch != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("watch", watch)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf", "application/json;stream=watch", "application/vnd.kubernetes.protobuf;stream=watch" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call listVolumeAttachmentValidateBeforeCall(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call listVolumeAttachmentValidateBeforeCall(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - - com.squareup.okhttp.Call call = listVolumeAttachmentCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = listVolumeAttachmentCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); + return localVarCall; + } /** * * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2655,16 +2880,23 @@ private com.squareup.okhttp.Call listVolumeAttachmentValidateBeforeCall(String p * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return V1beta1VolumeAttachmentList * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1VolumeAttachmentList listVolumeAttachment(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - ApiResponse resp = listVolumeAttachmentWithHttpInfo(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); - return resp.getData(); + public V1beta1VolumeAttachmentList listVolumeAttachment(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + ApiResponse localVarResp = listVolumeAttachmentWithHttpInfo(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + return localVarResp.getData(); } /** * * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2674,17 +2906,24 @@ public V1beta1VolumeAttachmentList listVolumeAttachment(String pretty, String _c * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) * @return ApiResponse<V1beta1VolumeAttachmentList> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { - com.squareup.okhttp.Call call = listVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null, null); + public ApiResponse listVolumeAttachmentWithHttpInfo(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch) throws ApiException { + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * list or watch objects of kind VolumeAttachment * @param pretty If 'true', then the output is pretty printed. (optional) + * @param allowWatchBookmarks allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored. This field is alpha and can be changed or removed without notice. (optional) * @param _continue The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) * @param fieldSelector A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) * @param labelSelector A selector to restrict the list of returned objects by their labels. Defaults to everything. (optional) @@ -2692,35 +2931,22 @@ public ApiResponse listVolumeAttachmentWithHttpInfo * @param resourceVersion When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv. (optional) * @param timeoutSeconds Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. (optional) * @param watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call listVolumeAttachmentAsync(String pretty, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call listVolumeAttachmentAsync(String pretty, Boolean allowWatchBookmarks, String _continue, String fieldSelector, String labelSelector, Integer limit, String resourceVersion, Integer timeoutSeconds, Boolean watch, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = listVolumeAttachmentValidateBeforeCall(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, progressListener, progressRequestListener); + okhttp3.Call localVarCall = listVolumeAttachmentValidateBeforeCall(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchCSIDriver @@ -2730,63 +2956,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCSIDriverCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchCSIDriverCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchCSIDriverValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchCSIDriverValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2798,14 +3024,10 @@ private com.squareup.okhttp.Call patchCSIDriverValidateBeforeCall(String name, V throw new ApiException("Missing the required parameter 'body' when calling patchCSIDriver(Async)"); } - - com.squareup.okhttp.Call call = patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchCSIDriverCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -2819,10 +3041,16 @@ private com.squareup.okhttp.Call patchCSIDriverValidateBeforeCall(String name, V * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CSIDriver patchCSIDriver(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CSIDriver patchCSIDriver(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -2836,11 +3064,17 @@ public V1beta1CSIDriver patchCSIDriver(String name, V1Patch body, String pretty, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchCSIDriverWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchCSIDriverWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -2852,35 +3086,22 @@ public ApiResponse patchCSIDriverWithHttpInfo(String name, V1P * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCSIDriverAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchCSIDriverAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchCSINode @@ -2890,63 +3111,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCSINodeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchCSINodeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } + + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - List localVarQueryParams = new ArrayList(); - List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } - Map localVarHeaderParams = new HashMap(); + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchCSINodeValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchCSINodeValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -2958,14 +3179,10 @@ private com.squareup.okhttp.Call patchCSINodeValidateBeforeCall(String name, V1P throw new ApiException("Missing the required parameter 'body' when calling patchCSINode(Async)"); } - - com.squareup.okhttp.Call call = patchCSINodeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchCSINodeCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -2979,10 +3196,16 @@ private com.squareup.okhttp.Call patchCSINodeValidateBeforeCall(String name, V1P * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1CSINode patchCSINode(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1CSINode patchCSINode(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -2996,11 +3219,17 @@ public V1beta1CSINode patchCSINode(String name, V1Patch body, String pretty, Str * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchCSINodeWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchCSINodeWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3012,35 +3241,22 @@ public ApiResponse patchCSINodeWithHttpInfo(String name, V1Patch * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchCSINodeAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call patchCSINodeAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchStorageClass @@ -3050,63 +3266,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchStorageClassCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchStorageClassCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchStorageClassValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchStorageClassValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3118,14 +3334,10 @@ private com.squareup.okhttp.Call patchStorageClassValidateBeforeCall(String name throw new ApiException("Missing the required parameter 'body' when calling patchStorageClass(Async)"); } - - com.squareup.okhttp.Call call = patchStorageClassCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchStorageClassCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3139,10 +3351,16 @@ private com.squareup.okhttp.Call patchStorageClassValidateBeforeCall(String name * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1StorageClass patchStorageClass(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1StorageClass patchStorageClass(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3156,11 +3374,17 @@ public V1beta1StorageClass patchStorageClass(String name, V1Patch body, String p * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchStorageClassWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchStorageClassWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3172,35 +3396,22 @@ public ApiResponse patchStorageClassWithHttpInfo(String nam * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchStorageClassAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call patchStorageClassAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for patchVolumeAttachment @@ -3210,63 +3421,63 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchVolumeAttachmentCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call patchVolumeAttachmentCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); - if (force != null) - localVarQueryParams.addAll(apiClient.parameterToPair("force", force)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + + if (force != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("force", force)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { "application/json-patch+json", "application/merge-patch+json", "application/strategic-merge-patch+json" }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call patchVolumeAttachmentValidateBeforeCall(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -3278,14 +3489,10 @@ private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String throw new ApiException("Missing the required parameter 'body' when calling patchVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = patchVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, force, _callback); + return localVarCall; + } /** @@ -3299,10 +3506,16 @@ private com.squareup.okhttp.Call patchVolumeAttachmentValidateBeforeCall(String * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return V1beta1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public V1beta1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - ApiResponse resp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); - return resp.getData(); + public V1beta1VolumeAttachment patchVolumeAttachment(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + ApiResponse localVarResp = patchVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager, force); + return localVarResp.getData(); } /** @@ -3316,11 +3529,17 @@ public V1beta1VolumeAttachment patchVolumeAttachment(String name, V1Patch body, * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) * @return ApiResponse<V1beta1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public ApiResponse patchVolumeAttachmentWithHttpInfo(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null, null); + public ApiResponse patchVolumeAttachmentWithHttpInfo(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force) throws ApiException { + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3332,35 +3551,22 @@ public ApiResponse patchVolumeAttachmentWithHttpInfo(St * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). (optional) * @param force Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call patchVolumeAttachmentAsync(String name, V1Patch body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call patchVolumeAttachmentAsync(String name, Object body, String pretty, String dryRun, String fieldManager, Boolean force, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, progressListener, progressRequestListener); + okhttp3.Call localVarCall = patchVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, force, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readCSIDriver @@ -3368,75 +3574,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCSIDriverCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readCSIDriverCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readCSIDriverValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readCSIDriverValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCSIDriver(Async)"); } - - com.squareup.okhttp.Call call = readCSIDriverCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readCSIDriverCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -3448,10 +3648,16 @@ private com.squareup.okhttp.Call readCSIDriverValidateBeforeCall(String name, St * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CSIDriver readCSIDriver(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readCSIDriverWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readCSIDriverWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -3463,11 +3669,17 @@ public V1beta1CSIDriver readCSIDriver(String name, String pretty, Boolean exact, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readCSIDriverWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readCSIDriverValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readCSIDriverValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3477,35 +3689,22 @@ public ApiResponse readCSIDriverWithHttpInfo(String name, Stri * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCSIDriverAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call readCSIDriverAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readCSIDriverValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readCSIDriverValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readCSINode @@ -3513,75 +3712,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCSINodeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readCSINodeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readCSINodeValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readCSINodeValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readCSINode(Async)"); } - - com.squareup.okhttp.Call call = readCSINodeCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readCSINodeCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -3593,10 +3786,16 @@ private com.squareup.okhttp.Call readCSINodeValidateBeforeCall(String name, Stri * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1CSINode readCSINode(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readCSINodeWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readCSINodeWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -3608,11 +3807,17 @@ public V1beta1CSINode readCSINode(String name, String pretty, Boolean exact, Boo * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readCSINodeWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readCSINodeValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readCSINodeValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3622,35 +3827,22 @@ public ApiResponse readCSINodeWithHttpInfo(String name, String p * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readCSINodeAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call readCSINodeAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readCSINodeValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readCSINodeValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readStorageClass @@ -3658,75 +3850,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readStorageClassCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readStorageClassCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readStorageClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readStorageClassValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readStorageClass(Async)"); } - - com.squareup.okhttp.Call call = readStorageClassCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readStorageClassCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -3738,10 +3924,16 @@ private com.squareup.okhttp.Call readStorageClassValidateBeforeCall(String name, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1StorageClass readStorageClass(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readStorageClassWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readStorageClassWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -3753,11 +3945,17 @@ public V1beta1StorageClass readStorageClass(String name, String pretty, Boolean * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readStorageClassWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readStorageClassValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readStorageClassValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3767,35 +3965,22 @@ public ApiResponse readStorageClassWithHttpInfo(String name * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readStorageClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call readStorageClassAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = readStorageClassValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readStorageClassValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for readVolumeAttachment @@ -3803,75 +3988,69 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readVolumeAttachmentCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call readVolumeAttachmentCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (exact != null) - localVarQueryParams.addAll(apiClient.parameterToPair("exact", exact)); - if (export != null) - localVarQueryParams.addAll(apiClient.parameterToPair("export", export)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (exact != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("exact", exact)); + } - Map localVarFormParams = new HashMap(); + if (export != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("export", export)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call readVolumeAttachmentValidateBeforeCall(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { throw new ApiException("Missing the required parameter 'name' when calling readVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = readVolumeAttachmentCall(name, pretty, exact, export, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = readVolumeAttachmentCall(name, pretty, exact, export, _callback); + return localVarCall; + } /** @@ -3883,10 +4062,16 @@ private com.squareup.okhttp.Call readVolumeAttachmentValidateBeforeCall(String n * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return V1beta1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public V1beta1VolumeAttachment readVolumeAttachment(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - ApiResponse resp = readVolumeAttachmentWithHttpInfo(name, pretty, exact, export); - return resp.getData(); + ApiResponse localVarResp = readVolumeAttachmentWithHttpInfo(name, pretty, exact, export); + return localVarResp.getData(); } /** @@ -3898,11 +4083,17 @@ public V1beta1VolumeAttachment readVolumeAttachment(String name, String pretty, * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) * @return ApiResponse<V1beta1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse readVolumeAttachmentWithHttpInfo(String name, String pretty, Boolean exact, Boolean export) throws ApiException { - com.squareup.okhttp.Call call = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, null, null); + okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -3912,35 +4103,22 @@ public ApiResponse readVolumeAttachmentWithHttpInfo(Str * @param pretty If 'true', then the output is pretty printed. (optional) * @param exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. Deprecated. Planned for removal in 1.18. (optional) * @param export Should this value be exported. Export strips fields that a user can not specify. Deprecated. Planned for removal in 1.18. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call readVolumeAttachmentAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback callback) throws ApiException { + public okhttp3.Call readVolumeAttachmentAsync(String name, String pretty, Boolean exact, Boolean export, final ApiCallback _callback) throws ApiException { - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, progressListener, progressRequestListener); + okhttp3.Call localVarCall = readVolumeAttachmentValidateBeforeCall(name, pretty, exact, export, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCSIDriver @@ -3949,61 +4127,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCSIDriverCall(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCSIDriverCall(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csidrivers/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCSIDriverValidateBeforeCall(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCSIDriverValidateBeforeCall(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4015,14 +4192,10 @@ private com.squareup.okhttp.Call replaceCSIDriverValidateBeforeCall(String name, throw new ApiException("Missing the required parameter 'body' when calling replaceCSIDriver(Async)"); } - - com.squareup.okhttp.Call call = replaceCSIDriverCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCSIDriverCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4035,10 +4208,17 @@ private com.squareup.okhttp.Call replaceCSIDriverValidateBeforeCall(String name, * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CSIDriver * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CSIDriver replaceCSIDriver(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceCSIDriverWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4051,11 +4231,18 @@ public V1beta1CSIDriver replaceCSIDriver(String name, V1beta1CSIDriver body, Str * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CSIDriver> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCSIDriverWithHttpInfo(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4066,35 +4253,23 @@ public ApiResponse replaceCSIDriverWithHttpInfo(String name, V * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCSIDriverAsync(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; + public okhttp3.Call replaceCSIDriverAsync(String name, V1beta1CSIDriver body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCSIDriverValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceCSINode @@ -4103,61 +4278,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCSINodeCall(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceCSINodeCall(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/csinodes/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceCSINodeValidateBeforeCall(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceCSINodeValidateBeforeCall(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4169,14 +4343,10 @@ private com.squareup.okhttp.Call replaceCSINodeValidateBeforeCall(String name, V throw new ApiException("Missing the required parameter 'body' when calling replaceCSINode(Async)"); } - - com.squareup.okhttp.Call call = replaceCSINodeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceCSINodeCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4189,10 +4359,17 @@ private com.squareup.okhttp.Call replaceCSINodeValidateBeforeCall(String name, V * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1CSINode * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1CSINode replaceCSINode(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceCSINodeWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4205,11 +4382,18 @@ public V1beta1CSINode replaceCSINode(String name, V1beta1CSINode body, String pr * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1CSINode> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceCSINodeWithHttpInfo(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4220,35 +4404,23 @@ public ApiResponse replaceCSINodeWithHttpInfo(String name, V1bet * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceCSINodeAsync(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; + public okhttp3.Call replaceCSINodeAsync(String name, V1beta1CSINode body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } - - com.squareup.okhttp.Call call = replaceCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceCSINodeValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceStorageClass @@ -4257,61 +4429,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceStorageClassCall(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceStorageClassCall(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/storageclasses/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceStorageClassValidateBeforeCall(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceStorageClassValidateBeforeCall(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4323,14 +4494,10 @@ private com.squareup.okhttp.Call replaceStorageClassValidateBeforeCall(String na throw new ApiException("Missing the required parameter 'body' when calling replaceStorageClass(Async)"); } - - com.squareup.okhttp.Call call = replaceStorageClassCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceStorageClassCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4343,10 +4510,17 @@ private com.squareup.okhttp.Call replaceStorageClassValidateBeforeCall(String na * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1StorageClass * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1StorageClass replaceStorageClass(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceStorageClassWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4359,11 +4533,18 @@ public V1beta1StorageClass replaceStorageClass(String name, V1beta1StorageClass * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1StorageClass> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceStorageClassWithHttpInfo(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4374,35 +4555,23 @@ public ApiResponse replaceStorageClassWithHttpInfo(String n * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceStorageClassAsync(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceStorageClassAsync(String name, V1beta1StorageClass body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceStorageClassValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } /** * Build call for replaceVolumeAttachment @@ -4411,61 +4580,60 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceVolumeAttachmentCall(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call replaceVolumeAttachmentCall(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { Object localVarPostBody = body; - + // create path and map variables String localVarPath = "/apis/storage.k8s.io/v1beta1/volumeattachments/{name}" - .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + .replaceAll("\\{" + "name" + "\\}", localVarApiClient.escapeString(name.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - if (pretty != null) - localVarQueryParams.addAll(apiClient.parameterToPair("pretty", pretty)); - if (dryRun != null) - localVarQueryParams.addAll(apiClient.parameterToPair("dryRun", dryRun)); - if (fieldManager != null) - localVarQueryParams.addAll(apiClient.parameterToPair("fieldManager", fieldManager)); + if (pretty != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pretty", pretty)); + } - Map localVarHeaderParams = new HashMap(); + if (dryRun != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("dryRun", dryRun)); + } - Map localVarFormParams = new HashMap(); + if (fieldManager != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("fieldManager", fieldManager)); + } + Map localVarHeaderParams = new HashMap(); + Map localVarFormParams = new HashMap(); final String[] localVarAccepts = { "application/json", "application/yaml", "application/vnd.kubernetes.protobuf" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "*/*" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + private okhttp3.Call replaceVolumeAttachmentValidateBeforeCall(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { // verify the required parameter 'name' is set if (name == null) { @@ -4477,14 +4645,10 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(Strin throw new ApiException("Missing the required parameter 'body' when calling replaceVolumeAttachment(Async)"); } - - com.squareup.okhttp.Call call = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = replaceVolumeAttachmentCall(name, body, pretty, dryRun, fieldManager, _callback); + return localVarCall; + } /** @@ -4497,10 +4661,17 @@ private com.squareup.okhttp.Call replaceVolumeAttachmentValidateBeforeCall(Strin * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return V1beta1VolumeAttachment * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public V1beta1VolumeAttachment replaceVolumeAttachment(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - ApiResponse resp = replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager); - return resp.getData(); + ApiResponse localVarResp = replaceVolumeAttachmentWithHttpInfo(name, body, pretty, dryRun, fieldManager); + return localVarResp.getData(); } /** @@ -4513,11 +4684,18 @@ public V1beta1VolumeAttachment replaceVolumeAttachment(String name, V1beta1Volum * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) * @return ApiResponse<V1beta1VolumeAttachment> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ public ApiResponse replaceVolumeAttachmentWithHttpInfo(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null, null); + okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -4528,34 +4706,22 @@ public ApiResponse replaceVolumeAttachmentWithHttpInfo( * @param pretty If 'true', then the output is pretty printed. (optional) * @param dryRun When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed (optional) * @param fieldManager fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. (optional) - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 OK -
201 Created -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call replaceVolumeAttachmentAsync(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call replaceVolumeAttachmentAsync(String name, V1beta1VolumeAttachment body, String pretty, String dryRun, String fieldManager, final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, progressListener, progressRequestListener); + okhttp3.Call localVarCall = replaceVolumeAttachmentValidateBeforeCall(name, body, pretty, dryRun, fieldManager, _callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/apis/VersionApi.java b/kubernetes/src/main/java/io/kubernetes/client/apis/VersionApi.java index cc42d800e5..8f00489b03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/apis/VersionApi.java +++ b/kubernetes/src/main/java/io/kubernetes/client/apis/VersionApi.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -36,83 +36,71 @@ import java.util.Map; public class VersionApi { - private ApiClient apiClient; + private ApiClient localVarApiClient; public VersionApi() { this(Configuration.getDefaultApiClient()); } public VersionApi(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } public ApiClient getApiClient() { - return apiClient; + return localVarApiClient; } public void setApiClient(ApiClient apiClient) { - this.apiClient = apiClient; + this.localVarApiClient = apiClient; } /** * Build call for getCode - * @param progressListener Progress listener - * @param progressRequestListener Progress request listener + * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getCodeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { + public okhttp3.Call getCodeCall(final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; - + // create path and map variables String localVarPath = "/version/"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarFormParams = new HashMap(); - final String[] localVarAccepts = { "application/json" }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept); + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } final String[] localVarContentTypes = { - "application/json" + }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); localVarHeaderParams.put("Content-Type", localVarContentType); - if(progressListener != null) { - apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() { - @Override - public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException { - com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request()); - return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), progressListener)) - .build(); - } - }); - } - String[] localVarAuthNames = new String[] { "BearerToken" }; - return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener); + return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, _callback); } - + @SuppressWarnings("rawtypes") - private com.squareup.okhttp.Call getCodeValidateBeforeCall(final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException { - + private okhttp3.Call getCodeValidateBeforeCall(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getCodeCall(progressListener, progressRequestListener); - return call; - - - - + okhttp3.Call localVarCall = getCodeCall(_callback); + return localVarCall; + } /** @@ -120,10 +108,16 @@ private com.squareup.okhttp.Call getCodeValidateBeforeCall(final ProgressRespons * get the code version * @return VersionInfo * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public VersionInfo getCode() throws ApiException { - ApiResponse resp = getCodeWithHttpInfo(); - return resp.getData(); + ApiResponse localVarResp = getCodeWithHttpInfo(); + return localVarResp.getData(); } /** @@ -131,44 +125,37 @@ public VersionInfo getCode() throws ApiException { * get the code version * @return ApiResponse<VersionInfo> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ public ApiResponse getCodeWithHttpInfo() throws ApiException { - com.squareup.okhttp.Call call = getCodeValidateBeforeCall(null, null); + okhttp3.Call localVarCall = getCodeValidateBeforeCall(null); Type localVarReturnType = new TypeToken(){}.getType(); - return apiClient.execute(call, localVarReturnType); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) * get the code version - * @param callback The callback to be executed when the API call finishes + * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 OK -
401 Unauthorized -
*/ - public com.squareup.okhttp.Call getCodeAsync(final ApiCallback callback) throws ApiException { - - ProgressResponseBody.ProgressListener progressListener = null; - ProgressRequestBody.ProgressRequestListener progressRequestListener = null; - - if (callback != null) { - progressListener = new ProgressResponseBody.ProgressListener() { - @Override - public void update(long bytesRead, long contentLength, boolean done) { - callback.onDownloadProgress(bytesRead, contentLength, done); - } - }; - - progressRequestListener = new ProgressRequestBody.ProgressRequestListener() { - @Override - public void onRequestProgress(long bytesWritten, long contentLength, boolean done) { - callback.onUploadProgress(bytesWritten, contentLength, done); - } - }; - } + public okhttp3.Call getCodeAsync(final ApiCallback _callback) throws ApiException { - com.squareup.okhttp.Call call = getCodeValidateBeforeCall(progressListener, progressRequestListener); + okhttp3.Call localVarCall = getCodeValidateBeforeCall(_callback); Type localVarReturnType = new TypeToken(){}.getType(); - apiClient.executeAsync(call, localVarReturnType, callback); - return call; + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; } } diff --git a/kubernetes/src/main/java/io/kubernetes/client/auth/ApiKeyAuth.java b/kubernetes/src/main/java/io/kubernetes/client/auth/ApiKeyAuth.java index 149567d723..eab770227a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/auth/ApiKeyAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/auth/ApiKeyAuth.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,7 @@ import java.util.Map; import java.util.List; - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/kubernetes/src/main/java/io/kubernetes/client/auth/Authentication.java b/kubernetes/src/main/java/io/kubernetes/client/auth/Authentication.java index 5756aed8d5..d8203a738f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/auth/Authentication.java +++ b/kubernetes/src/main/java/io/kubernetes/client/auth/Authentication.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBasicAuth.java b/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBasicAuth.java index 4de4b1711f..8d956f3e61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBasicAuth.java +++ b/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBasicAuth.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -15,7 +15,7 @@ import io.kubernetes.client.Pair; -import com.squareup.okhttp.Credentials; +import okhttp3.Credentials; import java.util.Map; import java.util.List; diff --git a/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBearerAuth.java b/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBearerAuth.java new file mode 100644 index 0000000000..d74b11ec41 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/auth/HttpBearerAuth.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.auth; + +import io.kubernetes.client.Pair; + +import java.util.Map; +import java.util.List; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") +public class HttpBearerAuth implements Authentication { + private final String scheme; + private String bearerToken; + + public HttpBearerAuth(String scheme) { + this.scheme = scheme; + } + + /** + * Gets the token, which together with the scheme, will be sent as the value of the Authorization header. + * + * @return The bearer token + */ + public String getBearerToken() { + return bearerToken; + } + + /** + * Sets the token, which together with the scheme, will be sent as the value of the Authorization header. + * + * @param bearerToken The bearer token to send in the Authorization header + */ + public void setBearerToken(String bearerToken) { + this.bearerToken = bearerToken; + } + + @Override + public void applyToParams(List queryParams, Map headerParams) { + if(bearerToken == null) { + return; + } + + headerParams.put("Authorization", (scheme != null ? upperCaseBearer(scheme) + " " : "") + bearerToken); + } + + private static String upperCaseBearer(String scheme) { + return ("bearer".equalsIgnoreCase(scheme)) ? "Bearer" : scheme; + } +} diff --git a/kubernetes/src/main/java/io/kubernetes/client/auth/OAuth.java b/kubernetes/src/main/java/io/kubernetes/client/auth/OAuth.java deleted file mode 100644 index 8020fecb3f..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/auth/OAuth.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.14.2 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.kubernetes.client.auth; - -import io.kubernetes.client.Pair; - -import java.util.Map; -import java.util.List; - - -public class OAuth implements Authentication { - private String accessToken; - - public String getAccessToken() { - return accessToken; - } - - public void setAccessToken(String accessToken) { - this.accessToken = accessToken; - } - - @Override - public void applyToParams(List queryParams, Map headerParams) { - if (accessToken != null) { - headerParams.put("Authorization", "Bearer " + accessToken); - } - } -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/auth/OAuthFlow.java b/kubernetes/src/main/java/io/kubernetes/client/auth/OAuthFlow.java deleted file mode 100644 index bc736d4c28..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/auth/OAuthFlow.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.14.2 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.kubernetes.client.auth; - -public enum OAuthFlow { - accessCode, implicit, password, application -} diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReference.java index a30d1a7702..56a033ced6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,27 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AdmissionregistrationV1beta1ServiceReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("path") - private String path = null; public AdmissionregistrationV1beta1ServiceReference name(String name) { + this.name = name; return this; } @@ -48,15 +60,20 @@ public AdmissionregistrationV1beta1ServiceReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public AdmissionregistrationV1beta1ServiceReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -66,15 +83,20 @@ public AdmissionregistrationV1beta1ServiceReference namespace(String namespace) * @return namespace **/ @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public AdmissionregistrationV1beta1ServiceReference path(String path) { + this.path = path; return this; } @@ -83,33 +105,52 @@ public AdmissionregistrationV1beta1ServiceReference path(String path) { * `path` is an optional URL path which will be sent in any request to this service. * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public AdmissionregistrationV1beta1ServiceReference port(Integer port) { + + this.port = port; + return this; + } + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @return port + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") + + public Integer getPort() { + return port; + } + + + + public void setPort(Integer port) { + this.port = port; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdmissionregistrationV1beta1ServiceReference admissionregistrationV1beta1ServiceReference = (AdmissionregistrationV1beta1ServiceReference) o; - return Objects.equals(this.name, admissionregistrationV1beta1ServiceReference.name) && - Objects.equals(this.namespace, admissionregistrationV1beta1ServiceReference.namespace) && - Objects.equals(this.path, admissionregistrationV1beta1ServiceReference.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, namespace, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,10 +158,10 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdmissionregistrationV1beta1ServiceReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfig.java index 8f8a12454c..afceb1d3e4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AdmissionregistrationV1beta1WebhookClientConfig { - @SerializedName("caBundle") - private byte[] caBundle = null; + public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; + @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + private byte[] caBundle; + + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private AdmissionregistrationV1beta1ServiceReference service; - @SerializedName("service") - private AdmissionregistrationV1beta1ServiceReference service = null; + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; - @SerializedName("url") - private String url = null; public AdmissionregistrationV1beta1WebhookClientConfig caBundle(byte[] caBundle) { + this.caBundle = caBundle; return this; } @@ -48,34 +56,46 @@ public AdmissionregistrationV1beta1WebhookClientConfig caBundle(byte[] caBundle) * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") + public byte[] getCaBundle() { return caBundle; } + + public void setCaBundle(byte[] caBundle) { this.caBundle = caBundle; } + public AdmissionregistrationV1beta1WebhookClientConfig service(AdmissionregistrationV1beta1ServiceReference service) { + this.service = service; return this; } /** - * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + * Get service * @return service **/ - @ApiModelProperty(value = "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AdmissionregistrationV1beta1ServiceReference getService() { return service; } + + public void setService(AdmissionregistrationV1beta1ServiceReference service) { this.service = service; } + public AdmissionregistrationV1beta1WebhookClientConfig url(String url) { + this.url = url; return this; } @@ -84,11 +104,15 @@ public AdmissionregistrationV1beta1WebhookClientConfig url(String url) { * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") + public String getUrl() { return url; } + + public void setUrl(String url) { this.url = url; } @@ -96,21 +120,12 @@ public void setUrl(String url) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AdmissionregistrationV1beta1WebhookClientConfig admissionregistrationV1beta1WebhookClientConfig = (AdmissionregistrationV1beta1WebhookClientConfig) o; - return Objects.equals(this.caBundle, admissionregistrationV1beta1WebhookClientConfig.caBundle) && - Objects.equals(this.service, admissionregistrationV1beta1WebhookClientConfig.service) && - Objects.equals(this.url, admissionregistrationV1beta1WebhookClientConfig.url); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(caBundle, service, url); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +133,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdmissionregistrationV1beta1WebhookClientConfig {\n"); - sb.append(" caBundle: ").append(toIndentedString(caBundle)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReference.java index 175dce3467..95464c5ccc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,27 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ApiextensionsV1beta1ServiceReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("path") - private String path = null; public ApiextensionsV1beta1ServiceReference name(String name) { + this.name = name; return this; } @@ -48,15 +60,20 @@ public ApiextensionsV1beta1ServiceReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public ApiextensionsV1beta1ServiceReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -66,15 +83,20 @@ public ApiextensionsV1beta1ServiceReference namespace(String namespace) { * @return namespace **/ @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public ApiextensionsV1beta1ServiceReference path(String path) { + this.path = path; return this; } @@ -83,33 +105,52 @@ public ApiextensionsV1beta1ServiceReference path(String path) { * `path` is an optional URL path which will be sent in any request to this service. * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public ApiextensionsV1beta1ServiceReference port(Integer port) { + + this.port = port; + return this; + } + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @return port + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") + + public Integer getPort() { + return port; + } + + + + public void setPort(Integer port) { + this.port = port; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiextensionsV1beta1ServiceReference apiextensionsV1beta1ServiceReference = (ApiextensionsV1beta1ServiceReference) o; - return Objects.equals(this.name, apiextensionsV1beta1ServiceReference.name) && - Objects.equals(this.namespace, apiextensionsV1beta1ServiceReference.namespace) && - Objects.equals(this.path, apiextensionsV1beta1ServiceReference.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, namespace, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,10 +158,10 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiextensionsV1beta1ServiceReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfig.java index a8e430c73a..250344f2b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * WebhookClientConfig contains the information to make a TLS connection with the webhook. It has the same field as admissionregistration.v1beta1.WebhookClientConfig. */ @ApiModel(description = "WebhookClientConfig contains the information to make a TLS connection with the webhook. It has the same field as admissionregistration.v1beta1.WebhookClientConfig.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ApiextensionsV1beta1WebhookClientConfig { - @SerializedName("caBundle") - private byte[] caBundle = null; + public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; + @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + private byte[] caBundle; + + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private ApiextensionsV1beta1ServiceReference service; - @SerializedName("service") - private ApiextensionsV1beta1ServiceReference service = null; + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; - @SerializedName("url") - private String url = null; public ApiextensionsV1beta1WebhookClientConfig caBundle(byte[] caBundle) { + this.caBundle = caBundle; return this; } @@ -48,34 +56,46 @@ public ApiextensionsV1beta1WebhookClientConfig caBundle(byte[] caBundle) { * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") + public byte[] getCaBundle() { return caBundle; } + + public void setCaBundle(byte[] caBundle) { this.caBundle = caBundle; } + public ApiextensionsV1beta1WebhookClientConfig service(ApiextensionsV1beta1ServiceReference service) { + this.service = service; return this; } /** - * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + * Get service * @return service **/ - @ApiModelProperty(value = "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ApiextensionsV1beta1ServiceReference getService() { return service; } + + public void setService(ApiextensionsV1beta1ServiceReference service) { this.service = service; } + public ApiextensionsV1beta1WebhookClientConfig url(String url) { + this.url = url; return this; } @@ -84,11 +104,15 @@ public ApiextensionsV1beta1WebhookClientConfig url(String url) { * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") + public String getUrl() { return url; } + + public void setUrl(String url) { this.url = url; } @@ -96,21 +120,12 @@ public void setUrl(String url) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiextensionsV1beta1WebhookClientConfig apiextensionsV1beta1WebhookClientConfig = (ApiextensionsV1beta1WebhookClientConfig) o; - return Objects.equals(this.caBundle, apiextensionsV1beta1WebhookClientConfig.caBundle) && - Objects.equals(this.service, apiextensionsV1beta1WebhookClientConfig.service) && - Objects.equals(this.url, apiextensionsV1beta1WebhookClientConfig.url); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(caBundle, service, url); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +133,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiextensionsV1beta1WebhookClientConfig {\n"); - sb.append(" caBundle: ").append(toIndentedString(caBundle)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReference.java index 6e17b03d9e..78cda05226 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,23 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ApiregistrationV1beta1ServiceReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("namespace") - private String namespace = null; public ApiregistrationV1beta1ServiceReference name(String name) { + this.name = name; return this; } @@ -44,16 +55,22 @@ public ApiregistrationV1beta1ServiceReference name(String name) { * Name is the name of the service * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name is the name of the service") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public ApiregistrationV1beta1ServiceReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -62,32 +79,52 @@ public ApiregistrationV1beta1ServiceReference namespace(String namespace) { * Namespace is the namespace of the service * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of the service") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public ApiregistrationV1beta1ServiceReference port(Integer port) { + + this.port = port; + return this; + } + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @return port + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") + + public Integer getPort() { + return port; + } + + + + public void setPort(Integer port) { + this.port = port; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ApiregistrationV1beta1ServiceReference apiregistrationV1beta1ServiceReference = (ApiregistrationV1beta1ServiceReference) o; - return Objects.equals(this.name, apiregistrationV1beta1ServiceReference.name) && - Objects.equals(this.namespace, apiregistrationV1beta1ServiceReference.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,9 +132,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ApiregistrationV1beta1ServiceReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Deployment.java index 0d4553a7de..01a940bd44 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Deployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1Deployment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private AppsV1beta1DeploymentSpec spec; - @SerializedName("spec") - private AppsV1beta1DeploymentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private AppsV1beta1DeploymentStatus status; - @SerializedName("status") - private AppsV1beta1DeploymentStatus status = null; public AppsV1beta1Deployment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public AppsV1beta1Deployment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public AppsV1beta1Deployment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public AppsV1beta1Deployment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public AppsV1beta1Deployment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public AppsV1beta1Deployment spec(AppsV1beta1DeploymentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the Deployment. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1DeploymentSpec getSpec() { return spec; } + + public void setSpec(AppsV1beta1DeploymentSpec spec) { this.spec = spec; } + public AppsV1beta1Deployment status(AppsV1beta1DeploymentStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the Deployment. + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1DeploymentStatus getStatus() { return status; } + + public void setStatus(AppsV1beta1DeploymentStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(AppsV1beta1DeploymentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1Deployment appsV1beta1Deployment = (AppsV1beta1Deployment) o; - return Objects.equals(this.apiVersion, appsV1beta1Deployment.apiVersion) && - Objects.equals(this.kind, appsV1beta1Deployment.kind) && - Objects.equals(this.metadata, appsV1beta1Deployment.metadata) && - Objects.equals(this.spec, appsV1beta1Deployment.spec) && - Objects.equals(this.status, appsV1beta1Deployment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1Deployment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentCondition.java index f062adbc99..227342a1ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1DeploymentCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + private DateTime lastUpdateTime; - @SerializedName("lastUpdateTime") - private DateTime lastUpdateTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public AppsV1beta1DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -57,16 +68,22 @@ public AppsV1beta1DeploymentCondition lastTransitionTime(DateTime lastTransition * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public AppsV1beta1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @@ -75,16 +92,22 @@ public AppsV1beta1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { * The last time this condition was updated. * @return lastUpdateTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") + public DateTime getLastUpdateTime() { return lastUpdateTime; } + + public void setLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + public AppsV1beta1DeploymentCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public AppsV1beta1DeploymentCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public AppsV1beta1DeploymentCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public AppsV1beta1DeploymentCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public AppsV1beta1DeploymentCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public AppsV1beta1DeploymentCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public AppsV1beta1DeploymentCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public AppsV1beta1DeploymentCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of deployment condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1DeploymentCondition appsV1beta1DeploymentCondition = (AppsV1beta1DeploymentCondition) o; - return Objects.equals(this.lastTransitionTime, appsV1beta1DeploymentCondition.lastTransitionTime) && - Objects.equals(this.lastUpdateTime, appsV1beta1DeploymentCondition.lastUpdateTime) && - Objects.equals(this.message, appsV1beta1DeploymentCondition.message) && - Objects.equals(this.reason, appsV1beta1DeploymentCondition.reason) && - Objects.equals(this.status, appsV1beta1DeploymentCondition.status) && - Objects.equals(this.type, appsV1beta1DeploymentCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1DeploymentCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentList.java index c700aada11..ba39db80c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1DeploymentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public AppsV1beta1DeploymentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public AppsV1beta1DeploymentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public AppsV1beta1DeploymentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public AppsV1beta1DeploymentList addItemsItem(AppsV1beta1Deployment itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Deployments.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public AppsV1beta1DeploymentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public AppsV1beta1DeploymentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public AppsV1beta1DeploymentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1DeploymentList appsV1beta1DeploymentList = (AppsV1beta1DeploymentList) o; - return Objects.equals(this.apiVersion, appsV1beta1DeploymentList.apiVersion) && - Objects.equals(this.items, appsV1beta1DeploymentList.items) && - Objects.equals(this.kind, appsV1beta1DeploymentList.kind) && - Objects.equals(this.metadata, appsV1beta1DeploymentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1DeploymentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollback.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollback.java index 9569e69a46..3ffc8e7c2a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollback.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * DEPRECATED. DeploymentRollback stores the information required to rollback a deployment. */ @ApiModel(description = "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1DeploymentRollback { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("rollbackTo") - private AppsV1beta1RollbackConfig rollbackTo = null; + public static final String SERIALIZED_NAME_ROLLBACK_TO = "rollbackTo"; + @SerializedName(SERIALIZED_NAME_ROLLBACK_TO) + private AppsV1beta1RollbackConfig rollbackTo; - @SerializedName("updatedAnnotations") + public static final String SERIALIZED_NAME_UPDATED_ANNOTATIONS = "updatedAnnotations"; + @SerializedName(SERIALIZED_NAME_UPDATED_ANNOTATIONS) private Map updatedAnnotations = null; + public AppsV1beta1DeploymentRollback apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,16 +67,22 @@ public AppsV1beta1DeploymentRollback apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public AppsV1beta1DeploymentRollback kind(String kind) { + this.kind = kind; return this; } @@ -75,16 +91,22 @@ public AppsV1beta1DeploymentRollback kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public AppsV1beta1DeploymentRollback name(String name) { + this.name = name; return this; } @@ -94,33 +116,43 @@ public AppsV1beta1DeploymentRollback name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Required: This must match the Name of a deployment.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public AppsV1beta1DeploymentRollback rollbackTo(AppsV1beta1RollbackConfig rollbackTo) { + this.rollbackTo = rollbackTo; return this; } /** - * The config of this deployment rollback. + * Get rollbackTo * @return rollbackTo **/ - @ApiModelProperty(required = true, value = "The config of this deployment rollback.") + @ApiModelProperty(required = true, value = "") + public AppsV1beta1RollbackConfig getRollbackTo() { return rollbackTo; } + + public void setRollbackTo(AppsV1beta1RollbackConfig rollbackTo) { this.rollbackTo = rollbackTo; } + public AppsV1beta1DeploymentRollback updatedAnnotations(Map updatedAnnotations) { + this.updatedAnnotations = updatedAnnotations; return this; } @@ -137,11 +169,15 @@ public AppsV1beta1DeploymentRollback putUpdatedAnnotationsItem(String key, Strin * The annotations to be updated to a deployment * @return updatedAnnotations **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The annotations to be updated to a deployment") + public Map getUpdatedAnnotations() { return updatedAnnotations; } + + public void setUpdatedAnnotations(Map updatedAnnotations) { this.updatedAnnotations = updatedAnnotations; } @@ -149,23 +185,12 @@ public void setUpdatedAnnotations(Map updatedAnnotations) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1DeploymentRollback appsV1beta1DeploymentRollback = (AppsV1beta1DeploymentRollback) o; - return Objects.equals(this.apiVersion, appsV1beta1DeploymentRollback.apiVersion) && - Objects.equals(this.kind, appsV1beta1DeploymentRollback.kind) && - Objects.equals(this.name, appsV1beta1DeploymentRollback.name) && - Objects.equals(this.rollbackTo, appsV1beta1DeploymentRollback.rollbackTo) && - Objects.equals(this.updatedAnnotations, appsV1beta1DeploymentRollback.updatedAnnotations); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name, rollbackTo, updatedAnnotations); + return HashCodeBuilder.reflectionHashCode(this); } @@ -173,7 +198,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1DeploymentRollback {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpec.java index be1ffa7920..2d52014b2e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,36 +34,47 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1DeploymentSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_PAUSED = "paused"; + @SerializedName(SERIALIZED_NAME_PAUSED) + private Boolean paused; - @SerializedName("paused") - private Boolean paused = null; + public static final String SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS = "progressDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS) + private Integer progressDeadlineSeconds; - @SerializedName("progressDeadlineSeconds") - private Integer progressDeadlineSeconds = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_ROLLBACK_TO = "rollbackTo"; + @SerializedName(SERIALIZED_NAME_ROLLBACK_TO) + private AppsV1beta1RollbackConfig rollbackTo; - @SerializedName("rollbackTo") - private AppsV1beta1RollbackConfig rollbackTo = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private AppsV1beta1DeploymentStrategy strategy; - @SerializedName("strategy") - private AppsV1beta1DeploymentStrategy strategy = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public AppsV1beta1DeploymentSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -69,16 +83,22 @@ public AppsV1beta1DeploymentSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public AppsV1beta1DeploymentSpec paused(Boolean paused) { + this.paused = paused; return this; } @@ -87,16 +107,22 @@ public AppsV1beta1DeploymentSpec paused(Boolean paused) { * Indicates that the deployment is paused. * @return paused **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates that the deployment is paused.") - public Boolean isPaused() { + + public Boolean getPaused() { return paused; } + + public void setPaused(Boolean paused) { this.paused = paused; } + public AppsV1beta1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @@ -105,16 +131,22 @@ public AppsV1beta1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlin * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. * @return progressDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.") + public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } + + public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; } + public AppsV1beta1DeploymentSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -123,16 +155,22 @@ public AppsV1beta1DeploymentSpec replicas(Integer replicas) { * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public AppsV1beta1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -141,83 +179,110 @@ public AppsV1beta1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLim * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 2.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public AppsV1beta1DeploymentSpec rollbackTo(AppsV1beta1RollbackConfig rollbackTo) { + this.rollbackTo = rollbackTo; return this; } /** - * DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * Get rollbackTo * @return rollbackTo **/ - @ApiModelProperty(value = "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1RollbackConfig getRollbackTo() { return rollbackTo; } + + public void setRollbackTo(AppsV1beta1RollbackConfig rollbackTo) { this.rollbackTo = rollbackTo; } + public AppsV1beta1DeploymentSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * Get selector * @return selector **/ - @ApiModelProperty(value = "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public AppsV1beta1DeploymentSpec strategy(AppsV1beta1DeploymentStrategy strategy) { + this.strategy = strategy; return this; } /** - * The deployment strategy to use to replace existing pods with new ones. + * Get strategy * @return strategy **/ - @ApiModelProperty(value = "The deployment strategy to use to replace existing pods with new ones.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1DeploymentStrategy getStrategy() { return strategy; } + + public void setStrategy(AppsV1beta1DeploymentStrategy strategy) { this.strategy = strategy; } + public AppsV1beta1DeploymentSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template describes the pods that will be created. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "Template describes the pods that will be created.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -225,27 +290,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1DeploymentSpec appsV1beta1DeploymentSpec = (AppsV1beta1DeploymentSpec) o; - return Objects.equals(this.minReadySeconds, appsV1beta1DeploymentSpec.minReadySeconds) && - Objects.equals(this.paused, appsV1beta1DeploymentSpec.paused) && - Objects.equals(this.progressDeadlineSeconds, appsV1beta1DeploymentSpec.progressDeadlineSeconds) && - Objects.equals(this.replicas, appsV1beta1DeploymentSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, appsV1beta1DeploymentSpec.revisionHistoryLimit) && - Objects.equals(this.rollbackTo, appsV1beta1DeploymentSpec.rollbackTo) && - Objects.equals(this.selector, appsV1beta1DeploymentSpec.selector) && - Objects.equals(this.strategy, appsV1beta1DeploymentSpec.strategy) && - Objects.equals(this.template, appsV1beta1DeploymentSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, rollbackTo, selector, strategy, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -253,7 +303,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1DeploymentSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" paused: ").append(toIndentedString(paused)).append("\n"); sb.append(" progressDeadlineSeconds: ").append(toIndentedString(progressDeadlineSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatus.java index d9e0459312..17464e1e02 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1DeploymentStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UNAVAILABLE_REPLICAS = "unavailableReplicas"; + @SerializedName(SERIALIZED_NAME_UNAVAILABLE_REPLICAS) + private Integer unavailableReplicas; - @SerializedName("unavailableReplicas") - private Integer unavailableReplicas = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public AppsV1beta1DeploymentStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -65,16 +78,22 @@ public AppsV1beta1DeploymentStatus availableReplicas(Integer availableReplicas) * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public AppsV1beta1DeploymentStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -83,16 +102,22 @@ public AppsV1beta1DeploymentStatus collisionCount(Integer collisionCount) { * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public AppsV1beta1DeploymentStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -109,16 +134,22 @@ public AppsV1beta1DeploymentStatus addConditionsItem(AppsV1beta1DeploymentCondit * Represents the latest available observations of a deployment's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public AppsV1beta1DeploymentStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -127,16 +158,22 @@ public AppsV1beta1DeploymentStatus observedGeneration(Long observedGeneration) { * The generation observed by the deployment controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The generation observed by the deployment controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public AppsV1beta1DeploymentStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -145,16 +182,22 @@ public AppsV1beta1DeploymentStatus readyReplicas(Integer readyReplicas) { * Total number of ready pods targeted by this deployment. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of ready pods targeted by this deployment.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public AppsV1beta1DeploymentStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -163,16 +206,22 @@ public AppsV1beta1DeploymentStatus replicas(Integer replicas) { * Total number of non-terminated pods targeted by this deployment (their labels match the selector). * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public AppsV1beta1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @@ -181,16 +230,22 @@ public AppsV1beta1DeploymentStatus unavailableReplicas(Integer unavailableReplic * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. * @return unavailableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.") + public Integer getUnavailableReplicas() { return unavailableReplicas; } + + public void setUnavailableReplicas(Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; } + public AppsV1beta1DeploymentStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -199,11 +254,15 @@ public AppsV1beta1DeploymentStatus updatedReplicas(Integer updatedReplicas) { * Total number of non-terminated pods targeted by this deployment that have the desired template spec. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -211,26 +270,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1DeploymentStatus appsV1beta1DeploymentStatus = (AppsV1beta1DeploymentStatus) o; - return Objects.equals(this.availableReplicas, appsV1beta1DeploymentStatus.availableReplicas) && - Objects.equals(this.collisionCount, appsV1beta1DeploymentStatus.collisionCount) && - Objects.equals(this.conditions, appsV1beta1DeploymentStatus.conditions) && - Objects.equals(this.observedGeneration, appsV1beta1DeploymentStatus.observedGeneration) && - Objects.equals(this.readyReplicas, appsV1beta1DeploymentStatus.readyReplicas) && - Objects.equals(this.replicas, appsV1beta1DeploymentStatus.replicas) && - Objects.equals(this.unavailableReplicas, appsV1beta1DeploymentStatus.unavailableReplicas) && - Objects.equals(this.updatedReplicas, appsV1beta1DeploymentStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -238,7 +283,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1DeploymentStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategy.java index 191afda4ac..06eaa2034b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1DeploymentStrategy { - @SerializedName("rollingUpdate") - private AppsV1beta1RollingUpdateDeployment rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private AppsV1beta1RollingUpdateDeployment rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public AppsV1beta1DeploymentStrategy rollingUpdate(AppsV1beta1RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(AppsV1beta1RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public AppsV1beta1DeploymentStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public AppsV1beta1DeploymentStrategy type(String type) { * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1DeploymentStrategy appsV1beta1DeploymentStrategy = (AppsV1beta1DeploymentStrategy) o; - return Objects.equals(this.rollingUpdate, appsV1beta1DeploymentStrategy.rollingUpdate) && - Objects.equals(this.type, appsV1beta1DeploymentStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1DeploymentStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollbackConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollbackConfig.java index 990ee81f8a..6a49d826fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollbackConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollbackConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * DEPRECATED. */ @ApiModel(description = "DEPRECATED.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1RollbackConfig { - @SerializedName("revision") - private Long revision = null; + public static final String SERIALIZED_NAME_REVISION = "revision"; + @SerializedName(SERIALIZED_NAME_REVISION) + private Long revision; + public AppsV1beta1RollbackConfig revision(Long revision) { + this.revision = revision; return this; } @@ -41,11 +47,15 @@ public AppsV1beta1RollbackConfig revision(Long revision) { * The revision to rollback to. If set to 0, rollback to the last revision. * @return revision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The revision to rollback to. If set to 0, rollback to the last revision.") + public Long getRevision() { return revision; } + + public void setRevision(Long revision) { this.revision = revision; } @@ -53,19 +63,12 @@ public void setRevision(Long revision) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1RollbackConfig appsV1beta1RollbackConfig = (AppsV1beta1RollbackConfig) o; - return Objects.equals(this.revision, appsV1beta1RollbackConfig.revision); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(revision); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1RollbackConfig {\n"); - sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeployment.java index 4e76f60b32..404a2fc5de 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,46 +31,60 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1RollingUpdateDeployment { - @SerializedName("maxSurge") - private IntOrString maxSurge = null; + public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; + @SerializedName(SERIALIZED_NAME_MAX_SURGE) + private IntOrString maxSurge; + + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; - @SerializedName("maxUnavailable") - private IntOrString maxUnavailable = null; public AppsV1beta1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; return this; } /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxSurge **/ - @ApiModelProperty(value = "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxSurge() { return maxSurge; } + + public void setMaxSurge(IntOrString maxSurge) { this.maxSurge = maxSurge; } + public AppsV1beta1RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxUnavailable() { return maxUnavailable; } + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -75,20 +92,12 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1RollingUpdateDeployment appsV1beta1RollingUpdateDeployment = (AppsV1beta1RollingUpdateDeployment) o; - return Objects.equals(this.maxSurge, appsV1beta1RollingUpdateDeployment.maxSurge) && - Objects.equals(this.maxUnavailable, appsV1beta1RollingUpdateDeployment.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxSurge, maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1RollingUpdateDeployment {\n"); - sb.append(" maxSurge: ").append(toIndentedString(maxSurge)).append("\n"); sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Scale.java index 309cfda944..c532f103b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1Scale.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1Scale { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private AppsV1beta1ScaleSpec spec; - @SerializedName("spec") - private AppsV1beta1ScaleSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private AppsV1beta1ScaleStatus status; - @SerializedName("status") - private AppsV1beta1ScaleStatus status = null; public AppsV1beta1Scale apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public AppsV1beta1Scale apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public AppsV1beta1Scale kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public AppsV1beta1Scale kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public AppsV1beta1Scale metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public AppsV1beta1Scale spec(AppsV1beta1ScaleSpec spec) { + this.spec = spec; return this; } /** - * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1ScaleSpec getSpec() { return spec; } + + public void setSpec(AppsV1beta1ScaleSpec spec) { this.spec = spec; } + public AppsV1beta1Scale status(AppsV1beta1ScaleStatus status) { + this.status = status; return this; } /** - * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + * Get status * @return status **/ - @ApiModelProperty(value = "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public AppsV1beta1ScaleStatus getStatus() { return status; } + + public void setStatus(AppsV1beta1ScaleStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(AppsV1beta1ScaleStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1Scale appsV1beta1Scale = (AppsV1beta1Scale) o; - return Objects.equals(this.apiVersion, appsV1beta1Scale.apiVersion) && - Objects.equals(this.kind, appsV1beta1Scale.kind) && - Objects.equals(this.metadata, appsV1beta1Scale.metadata) && - Objects.equals(this.spec, appsV1beta1Scale.spec) && - Objects.equals(this.status, appsV1beta1Scale.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1Scale {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleSpec.java index cffdd5e84e..e0d282ed74 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * ScaleSpec describes the attributes of a scale subresource */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1ScaleSpec { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + public AppsV1beta1ScaleSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -41,11 +47,15 @@ public AppsV1beta1ScaleSpec replicas(Integer replicas) { * desired number of instances for the scaled object. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "desired number of instances for the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -53,19 +63,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1ScaleSpec appsV1beta1ScaleSpec = (AppsV1beta1ScaleSpec) o; - return Objects.equals(this.replicas, appsV1beta1ScaleSpec.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1ScaleSpec {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleStatus.java index ddcfdd3f7f..ca298c208f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/AppsV1beta1ScaleStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class AppsV1beta1ScaleStatus { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("selector") + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) private Map selector = null; - @SerializedName("targetSelector") - private String targetSelector = null; + public static final String SERIALIZED_NAME_TARGET_SELECTOR = "targetSelector"; + @SerializedName(SERIALIZED_NAME_TARGET_SELECTOR) + private String targetSelector; + public AppsV1beta1ScaleStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -51,15 +59,20 @@ public AppsV1beta1ScaleStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "actual number of observed instances of the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public AppsV1beta1ScaleStatus selector(Map selector) { + this.selector = selector; return this; } @@ -76,16 +89,22 @@ public AppsV1beta1ScaleStatus putSelectorItem(String key, String selectorItem) { * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors * @return selector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors") + public Map getSelector() { return selector; } + + public void setSelector(Map selector) { this.selector = selector; } + public AppsV1beta1ScaleStatus targetSelector(String targetSelector) { + this.targetSelector = targetSelector; return this; } @@ -94,11 +113,15 @@ public AppsV1beta1ScaleStatus targetSelector(String targetSelector) { * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors * @return targetSelector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + public String getTargetSelector() { return targetSelector; } + + public void setTargetSelector(String targetSelector) { this.targetSelector = targetSelector; } @@ -106,21 +129,12 @@ public void setTargetSelector(String targetSelector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AppsV1beta1ScaleStatus appsV1beta1ScaleStatus = (AppsV1beta1ScaleStatus) o; - return Objects.equals(this.replicas, appsV1beta1ScaleStatus.replicas) && - Objects.equals(this.selector, appsV1beta1ScaleStatus.selector) && - Objects.equals(this.targetSelector, appsV1beta1ScaleStatus.targetSelector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas, selector, targetSelector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +142,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AppsV1beta1ScaleStatus {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" targetSelector: ").append(toIndentedString(targetSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriver.java index a85eb81d10..a7bb32b59e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriver.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. */ @ApiModel(description = "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1AllowedCSIDriver { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + public ExtensionsV1beta1AllowedCSIDriver name(String name) { + this.name = name; return this; } @@ -42,10 +48,13 @@ public ExtensionsV1beta1AllowedCSIDriver name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the registered name of the CSI driver") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -53,19 +62,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1AllowedCSIDriver extensionsV1beta1AllowedCSIDriver = (ExtensionsV1beta1AllowedCSIDriver) o; - return Objects.equals(this.name, extensionsV1beta1AllowedCSIDriver.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1AllowedCSIDriver {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolume.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolume.java index ebb618035c..fc8867b8ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolume.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * AllowedFlexVolume represents a single Flexvolume that is allowed to be used. Deprecated: use AllowedFlexVolume from policy API Group instead. */ @ApiModel(description = "AllowedFlexVolume represents a single Flexvolume that is allowed to be used. Deprecated: use AllowedFlexVolume from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1AllowedFlexVolume { - @SerializedName("driver") - private String driver = null; + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; + public ExtensionsV1beta1AllowedFlexVolume driver(String driver) { + this.driver = driver; return this; } @@ -42,10 +48,13 @@ public ExtensionsV1beta1AllowedFlexVolume driver(String driver) { * @return driver **/ @ApiModelProperty(required = true, value = "driver is the name of the Flexvolume driver.") + public String getDriver() { return driver; } + + public void setDriver(String driver) { this.driver = driver; } @@ -53,19 +62,12 @@ public void setDriver(String driver) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1AllowedFlexVolume extensionsV1beta1AllowedFlexVolume = (ExtensionsV1beta1AllowedFlexVolume) o; - return Objects.equals(this.driver, extensionsV1beta1AllowedFlexVolume.driver); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(driver); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1AllowedFlexVolume {\n"); - sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPath.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPath.java index 21630893ee..6df65e49e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPath.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead. */ @ApiModel(description = "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. Deprecated: use AllowedHostPath from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1AllowedHostPath { - @SerializedName("pathPrefix") - private String pathPrefix = null; + public static final String SERIALIZED_NAME_PATH_PREFIX = "pathPrefix"; + @SerializedName(SERIALIZED_NAME_PATH_PREFIX) + private String pathPrefix; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public ExtensionsV1beta1AllowedHostPath pathPrefix(String pathPrefix) { + this.pathPrefix = pathPrefix; return this; } @@ -44,16 +51,22 @@ public ExtensionsV1beta1AllowedHostPath pathPrefix(String pathPrefix) { * pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` * @return pathPrefix **/ + @javax.annotation.Nullable @ApiModelProperty(value = "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`") + public String getPathPrefix() { return pathPrefix; } + + public void setPathPrefix(String pathPrefix) { this.pathPrefix = pathPrefix; } + public ExtensionsV1beta1AllowedHostPath readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -62,11 +75,15 @@ public ExtensionsV1beta1AllowedHostPath readOnly(Boolean readOnly) { * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -74,20 +91,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1AllowedHostPath extensionsV1beta1AllowedHostPath = (ExtensionsV1beta1AllowedHostPath) o; - return Objects.equals(this.pathPrefix, extensionsV1beta1AllowedHostPath.pathPrefix) && - Objects.equals(this.readOnly, extensionsV1beta1AllowedHostPath.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(pathPrefix, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1AllowedHostPath {\n"); - sb.append(" pathPrefix: ").append(toIndentedString(pathPrefix)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Deployment.java index 62633b7caa..fb1d6ed941 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Deployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1Deployment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private ExtensionsV1beta1DeploymentSpec spec; - @SerializedName("spec") - private ExtensionsV1beta1DeploymentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private ExtensionsV1beta1DeploymentStatus status; - @SerializedName("status") - private ExtensionsV1beta1DeploymentStatus status = null; public ExtensionsV1beta1Deployment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public ExtensionsV1beta1Deployment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1Deployment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public ExtensionsV1beta1Deployment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1Deployment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public ExtensionsV1beta1Deployment spec(ExtensionsV1beta1DeploymentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the Deployment. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1DeploymentSpec getSpec() { return spec; } + + public void setSpec(ExtensionsV1beta1DeploymentSpec spec) { this.spec = spec; } + public ExtensionsV1beta1Deployment status(ExtensionsV1beta1DeploymentStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the Deployment. + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1DeploymentStatus getStatus() { return status; } + + public void setStatus(ExtensionsV1beta1DeploymentStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(ExtensionsV1beta1DeploymentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1Deployment extensionsV1beta1Deployment = (ExtensionsV1beta1Deployment) o; - return Objects.equals(this.apiVersion, extensionsV1beta1Deployment.apiVersion) && - Objects.equals(this.kind, extensionsV1beta1Deployment.kind) && - Objects.equals(this.metadata, extensionsV1beta1Deployment.metadata) && - Objects.equals(this.spec, extensionsV1beta1Deployment.spec) && - Objects.equals(this.status, extensionsV1beta1Deployment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1Deployment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentCondition.java index 7dbdedbbad..6ba2ba7c69 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1DeploymentCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + private DateTime lastUpdateTime; - @SerializedName("lastUpdateTime") - private DateTime lastUpdateTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public ExtensionsV1beta1DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -57,16 +68,22 @@ public ExtensionsV1beta1DeploymentCondition lastTransitionTime(DateTime lastTran * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public ExtensionsV1beta1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @@ -75,16 +92,22 @@ public ExtensionsV1beta1DeploymentCondition lastUpdateTime(DateTime lastUpdateTi * The last time this condition was updated. * @return lastUpdateTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") + public DateTime getLastUpdateTime() { return lastUpdateTime; } + + public void setLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + public ExtensionsV1beta1DeploymentCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public ExtensionsV1beta1DeploymentCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public ExtensionsV1beta1DeploymentCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public ExtensionsV1beta1DeploymentCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public ExtensionsV1beta1DeploymentCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public ExtensionsV1beta1DeploymentCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public ExtensionsV1beta1DeploymentCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public ExtensionsV1beta1DeploymentCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of deployment condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1DeploymentCondition extensionsV1beta1DeploymentCondition = (ExtensionsV1beta1DeploymentCondition) o; - return Objects.equals(this.lastTransitionTime, extensionsV1beta1DeploymentCondition.lastTransitionTime) && - Objects.equals(this.lastUpdateTime, extensionsV1beta1DeploymentCondition.lastUpdateTime) && - Objects.equals(this.message, extensionsV1beta1DeploymentCondition.message) && - Objects.equals(this.reason, extensionsV1beta1DeploymentCondition.reason) && - Objects.equals(this.status, extensionsV1beta1DeploymentCondition.status) && - Objects.equals(this.type, extensionsV1beta1DeploymentCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1DeploymentCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentList.java index 04056f4cc8..d60954a9f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1DeploymentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public ExtensionsV1beta1DeploymentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public ExtensionsV1beta1DeploymentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1DeploymentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public ExtensionsV1beta1DeploymentList addItemsItem(ExtensionsV1beta1Deployment * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Deployments.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public ExtensionsV1beta1DeploymentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public ExtensionsV1beta1DeploymentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1DeploymentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1DeploymentList extensionsV1beta1DeploymentList = (ExtensionsV1beta1DeploymentList) o; - return Objects.equals(this.apiVersion, extensionsV1beta1DeploymentList.apiVersion) && - Objects.equals(this.items, extensionsV1beta1DeploymentList.items) && - Objects.equals(this.kind, extensionsV1beta1DeploymentList.kind) && - Objects.equals(this.metadata, extensionsV1beta1DeploymentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1DeploymentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollback.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollback.java index 51fe987d14..b2694841c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollback.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollback.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * DEPRECATED. DeploymentRollback stores the information required to rollback a deployment. */ @ApiModel(description = "DEPRECATED. DeploymentRollback stores the information required to rollback a deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1DeploymentRollback { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("rollbackTo") - private ExtensionsV1beta1RollbackConfig rollbackTo = null; + public static final String SERIALIZED_NAME_ROLLBACK_TO = "rollbackTo"; + @SerializedName(SERIALIZED_NAME_ROLLBACK_TO) + private ExtensionsV1beta1RollbackConfig rollbackTo; - @SerializedName("updatedAnnotations") + public static final String SERIALIZED_NAME_UPDATED_ANNOTATIONS = "updatedAnnotations"; + @SerializedName(SERIALIZED_NAME_UPDATED_ANNOTATIONS) private Map updatedAnnotations = null; + public ExtensionsV1beta1DeploymentRollback apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,16 +67,22 @@ public ExtensionsV1beta1DeploymentRollback apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1DeploymentRollback kind(String kind) { + this.kind = kind; return this; } @@ -75,16 +91,22 @@ public ExtensionsV1beta1DeploymentRollback kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1DeploymentRollback name(String name) { + this.name = name; return this; } @@ -94,33 +116,43 @@ public ExtensionsV1beta1DeploymentRollback name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Required: This must match the Name of a deployment.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public ExtensionsV1beta1DeploymentRollback rollbackTo(ExtensionsV1beta1RollbackConfig rollbackTo) { + this.rollbackTo = rollbackTo; return this; } /** - * The config of this deployment rollback. + * Get rollbackTo * @return rollbackTo **/ - @ApiModelProperty(required = true, value = "The config of this deployment rollback.") + @ApiModelProperty(required = true, value = "") + public ExtensionsV1beta1RollbackConfig getRollbackTo() { return rollbackTo; } + + public void setRollbackTo(ExtensionsV1beta1RollbackConfig rollbackTo) { this.rollbackTo = rollbackTo; } + public ExtensionsV1beta1DeploymentRollback updatedAnnotations(Map updatedAnnotations) { + this.updatedAnnotations = updatedAnnotations; return this; } @@ -137,11 +169,15 @@ public ExtensionsV1beta1DeploymentRollback putUpdatedAnnotationsItem(String key, * The annotations to be updated to a deployment * @return updatedAnnotations **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The annotations to be updated to a deployment") + public Map getUpdatedAnnotations() { return updatedAnnotations; } + + public void setUpdatedAnnotations(Map updatedAnnotations) { this.updatedAnnotations = updatedAnnotations; } @@ -149,23 +185,12 @@ public void setUpdatedAnnotations(Map updatedAnnotations) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1DeploymentRollback extensionsV1beta1DeploymentRollback = (ExtensionsV1beta1DeploymentRollback) o; - return Objects.equals(this.apiVersion, extensionsV1beta1DeploymentRollback.apiVersion) && - Objects.equals(this.kind, extensionsV1beta1DeploymentRollback.kind) && - Objects.equals(this.name, extensionsV1beta1DeploymentRollback.name) && - Objects.equals(this.rollbackTo, extensionsV1beta1DeploymentRollback.rollbackTo) && - Objects.equals(this.updatedAnnotations, extensionsV1beta1DeploymentRollback.updatedAnnotations); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name, rollbackTo, updatedAnnotations); + return HashCodeBuilder.reflectionHashCode(this); } @@ -173,7 +198,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1DeploymentRollback {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpec.java index 57a64dc3ff..6168080c80 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,36 +34,47 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1DeploymentSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_PAUSED = "paused"; + @SerializedName(SERIALIZED_NAME_PAUSED) + private Boolean paused; - @SerializedName("paused") - private Boolean paused = null; + public static final String SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS = "progressDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS) + private Integer progressDeadlineSeconds; - @SerializedName("progressDeadlineSeconds") - private Integer progressDeadlineSeconds = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_ROLLBACK_TO = "rollbackTo"; + @SerializedName(SERIALIZED_NAME_ROLLBACK_TO) + private ExtensionsV1beta1RollbackConfig rollbackTo; - @SerializedName("rollbackTo") - private ExtensionsV1beta1RollbackConfig rollbackTo = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private ExtensionsV1beta1DeploymentStrategy strategy; - @SerializedName("strategy") - private ExtensionsV1beta1DeploymentStrategy strategy = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public ExtensionsV1beta1DeploymentSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -69,16 +83,22 @@ public ExtensionsV1beta1DeploymentSpec minReadySeconds(Integer minReadySeconds) * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public ExtensionsV1beta1DeploymentSpec paused(Boolean paused) { + this.paused = paused; return this; } @@ -87,16 +107,22 @@ public ExtensionsV1beta1DeploymentSpec paused(Boolean paused) { * Indicates that the deployment is paused and will not be processed by the deployment controller. * @return paused **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates that the deployment is paused and will not be processed by the deployment controller.") - public Boolean isPaused() { + + public Boolean getPaused() { return paused; } + + public void setPaused(Boolean paused) { this.paused = paused; } + public ExtensionsV1beta1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @@ -105,16 +131,22 @@ public ExtensionsV1beta1DeploymentSpec progressDeadlineSeconds(Integer progressD * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\". * @return progressDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"no deadline\".") + public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } + + public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; } + public ExtensionsV1beta1DeploymentSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -123,16 +155,22 @@ public ExtensionsV1beta1DeploymentSpec replicas(Integer replicas) { * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public ExtensionsV1beta1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -141,83 +179,110 @@ public ExtensionsV1beta1DeploymentSpec revisionHistoryLimit(Integer revisionHist * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\". * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. This is set to the max value of int32 (i.e. 2147483647) by default, which means \"retaining all old RelicaSets\".") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public ExtensionsV1beta1DeploymentSpec rollbackTo(ExtensionsV1beta1RollbackConfig rollbackTo) { + this.rollbackTo = rollbackTo; return this; } /** - * DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done. + * Get rollbackTo * @return rollbackTo **/ - @ApiModelProperty(value = "DEPRECATED. The config this deployment is rolling back to. Will be cleared after rollback is done.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1RollbackConfig getRollbackTo() { return rollbackTo; } + + public void setRollbackTo(ExtensionsV1beta1RollbackConfig rollbackTo) { this.rollbackTo = rollbackTo; } + public ExtensionsV1beta1DeploymentSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. + * Get selector * @return selector **/ - @ApiModelProperty(value = "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public ExtensionsV1beta1DeploymentSpec strategy(ExtensionsV1beta1DeploymentStrategy strategy) { + this.strategy = strategy; return this; } /** - * The deployment strategy to use to replace existing pods with new ones. + * Get strategy * @return strategy **/ - @ApiModelProperty(value = "The deployment strategy to use to replace existing pods with new ones.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1DeploymentStrategy getStrategy() { return strategy; } + + public void setStrategy(ExtensionsV1beta1DeploymentStrategy strategy) { this.strategy = strategy; } + public ExtensionsV1beta1DeploymentSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template describes the pods that will be created. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "Template describes the pods that will be created.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -225,27 +290,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1DeploymentSpec extensionsV1beta1DeploymentSpec = (ExtensionsV1beta1DeploymentSpec) o; - return Objects.equals(this.minReadySeconds, extensionsV1beta1DeploymentSpec.minReadySeconds) && - Objects.equals(this.paused, extensionsV1beta1DeploymentSpec.paused) && - Objects.equals(this.progressDeadlineSeconds, extensionsV1beta1DeploymentSpec.progressDeadlineSeconds) && - Objects.equals(this.replicas, extensionsV1beta1DeploymentSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, extensionsV1beta1DeploymentSpec.revisionHistoryLimit) && - Objects.equals(this.rollbackTo, extensionsV1beta1DeploymentSpec.rollbackTo) && - Objects.equals(this.selector, extensionsV1beta1DeploymentSpec.selector) && - Objects.equals(this.strategy, extensionsV1beta1DeploymentSpec.strategy) && - Objects.equals(this.template, extensionsV1beta1DeploymentSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, rollbackTo, selector, strategy, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -253,7 +303,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1DeploymentSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" paused: ").append(toIndentedString(paused)).append("\n"); sb.append(" progressDeadlineSeconds: ").append(toIndentedString(progressDeadlineSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatus.java index c1f95940e2..a4a9b407e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1DeploymentStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UNAVAILABLE_REPLICAS = "unavailableReplicas"; + @SerializedName(SERIALIZED_NAME_UNAVAILABLE_REPLICAS) + private Integer unavailableReplicas; - @SerializedName("unavailableReplicas") - private Integer unavailableReplicas = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public ExtensionsV1beta1DeploymentStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -65,16 +78,22 @@ public ExtensionsV1beta1DeploymentStatus availableReplicas(Integer availableRepl * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public ExtensionsV1beta1DeploymentStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -83,16 +102,22 @@ public ExtensionsV1beta1DeploymentStatus collisionCount(Integer collisionCount) * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public ExtensionsV1beta1DeploymentStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -109,16 +134,22 @@ public ExtensionsV1beta1DeploymentStatus addConditionsItem(ExtensionsV1beta1Depl * Represents the latest available observations of a deployment's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public ExtensionsV1beta1DeploymentStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -127,16 +158,22 @@ public ExtensionsV1beta1DeploymentStatus observedGeneration(Long observedGenerat * The generation observed by the deployment controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The generation observed by the deployment controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public ExtensionsV1beta1DeploymentStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -145,16 +182,22 @@ public ExtensionsV1beta1DeploymentStatus readyReplicas(Integer readyReplicas) { * Total number of ready pods targeted by this deployment. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of ready pods targeted by this deployment.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public ExtensionsV1beta1DeploymentStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -163,16 +206,22 @@ public ExtensionsV1beta1DeploymentStatus replicas(Integer replicas) { * Total number of non-terminated pods targeted by this deployment (their labels match the selector). * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public ExtensionsV1beta1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @@ -181,16 +230,22 @@ public ExtensionsV1beta1DeploymentStatus unavailableReplicas(Integer unavailable * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. * @return unavailableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.") + public Integer getUnavailableReplicas() { return unavailableReplicas; } + + public void setUnavailableReplicas(Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; } + public ExtensionsV1beta1DeploymentStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -199,11 +254,15 @@ public ExtensionsV1beta1DeploymentStatus updatedReplicas(Integer updatedReplicas * Total number of non-terminated pods targeted by this deployment that have the desired template spec. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -211,26 +270,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1DeploymentStatus extensionsV1beta1DeploymentStatus = (ExtensionsV1beta1DeploymentStatus) o; - return Objects.equals(this.availableReplicas, extensionsV1beta1DeploymentStatus.availableReplicas) && - Objects.equals(this.collisionCount, extensionsV1beta1DeploymentStatus.collisionCount) && - Objects.equals(this.conditions, extensionsV1beta1DeploymentStatus.conditions) && - Objects.equals(this.observedGeneration, extensionsV1beta1DeploymentStatus.observedGeneration) && - Objects.equals(this.readyReplicas, extensionsV1beta1DeploymentStatus.readyReplicas) && - Objects.equals(this.replicas, extensionsV1beta1DeploymentStatus.replicas) && - Objects.equals(this.unavailableReplicas, extensionsV1beta1DeploymentStatus.unavailableReplicas) && - Objects.equals(this.updatedReplicas, extensionsV1beta1DeploymentStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -238,7 +283,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1DeploymentStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategy.java index 80f6fd704f..b6bb176c38 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1DeploymentStrategy { - @SerializedName("rollingUpdate") - private ExtensionsV1beta1RollingUpdateDeployment rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private ExtensionsV1beta1RollingUpdateDeployment rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public ExtensionsV1beta1DeploymentStrategy rollingUpdate(ExtensionsV1beta1RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(ExtensionsV1beta1RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public ExtensionsV1beta1DeploymentStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public ExtensionsV1beta1DeploymentStrategy type(String type) { * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1DeploymentStrategy extensionsV1beta1DeploymentStrategy = (ExtensionsV1beta1DeploymentStrategy) o; - return Objects.equals(this.rollingUpdate, extensionsV1beta1DeploymentStrategy.rollingUpdate) && - Objects.equals(this.type, extensionsV1beta1DeploymentStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1DeploymentStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptions.java index 4e6578a202..9f63e625df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * FSGroupStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use FSGroupStrategyOptions from policy API Group instead. */ @ApiModel(description = "FSGroupStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use FSGroupStrategyOptions from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1FSGroupStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public ExtensionsV1beta1FSGroupStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public ExtensionsV1beta1FSGroupStrategyOptions addRangesItem(ExtensionsV1beta1ID * ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public ExtensionsV1beta1FSGroupStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -73,11 +86,15 @@ public ExtensionsV1beta1FSGroupStrategyOptions rule(String rule) { * rule is the strategy that will dictate what FSGroup is used in the SecurityContext. * @return rule **/ + @javax.annotation.Nullable @ApiModelProperty(value = "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +102,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1FSGroupStrategyOptions extensionsV1beta1FSGroupStrategyOptions = (ExtensionsV1beta1FSGroupStrategyOptions) o; - return Objects.equals(this.ranges, extensionsV1beta1FSGroupStrategyOptions.ranges) && - Objects.equals(this.rule, extensionsV1beta1FSGroupStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +115,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1FSGroupStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPath.java index a0ff16c1d7..f2725ca866 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPath.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,42 @@ * HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend. */ @ApiModel(description = "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1HTTPIngressPath { - @SerializedName("backend") - private ExtensionsV1beta1IngressBackend backend = null; + public static final String SERIALIZED_NAME_BACKEND = "backend"; + @SerializedName(SERIALIZED_NAME_BACKEND) + private ExtensionsV1beta1IngressBackend backend; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; public ExtensionsV1beta1HTTPIngressPath backend(ExtensionsV1beta1IngressBackend backend) { + this.backend = backend; return this; } /** - * Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * Get backend * @return backend **/ - @ApiModelProperty(required = true, value = "Backend defines the referenced service endpoint to which the traffic will be forwarded to.") + @ApiModelProperty(required = true, value = "") + public ExtensionsV1beta1IngressBackend getBackend() { return backend; } + + public void setBackend(ExtensionsV1beta1IngressBackend backend) { this.backend = backend; } + public ExtensionsV1beta1HTTPIngressPath path(String path) { + this.path = path; return this; } @@ -63,11 +75,15 @@ public ExtensionsV1beta1HTTPIngressPath path(String path) { * Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } @@ -75,20 +91,12 @@ public void setPath(String path) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1HTTPIngressPath extensionsV1beta1HTTPIngressPath = (ExtensionsV1beta1HTTPIngressPath) o; - return Objects.equals(this.backend, extensionsV1beta1HTTPIngressPath.backend) && - Objects.equals(this.path, extensionsV1beta1HTTPIngressPath.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(backend, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1HTTPIngressPath {\n"); - sb.append(" backend: ").append(toIndentedString(backend)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValue.java index 912f9cea1c..98a59194d3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValue.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. */ @ApiModel(description = "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1HTTPIngressRuleValue { - @SerializedName("paths") + public static final String SERIALIZED_NAME_PATHS = "paths"; + @SerializedName(SERIALIZED_NAME_PATHS) private List paths = new ArrayList(); + public ExtensionsV1beta1HTTPIngressRuleValue paths(List paths) { + this.paths = paths; return this; } @@ -50,10 +56,13 @@ public ExtensionsV1beta1HTTPIngressRuleValue addPathsItem(ExtensionsV1beta1HTTPI * @return paths **/ @ApiModelProperty(required = true, value = "A collection of paths that map requests to backends.") + public List getPaths() { return paths; } + + public void setPaths(List paths) { this.paths = paths; } @@ -61,19 +70,12 @@ public void setPaths(List paths) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1HTTPIngressRuleValue extensionsV1beta1HTTPIngressRuleValue = (ExtensionsV1beta1HTTPIngressRuleValue) o; - return Objects.equals(this.paths, extensionsV1beta1HTTPIngressRuleValue.paths); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(paths); + return HashCodeBuilder.reflectionHashCode(this); } @@ -81,7 +83,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1HTTPIngressRuleValue {\n"); - sb.append(" paths: ").append(toIndentedString(paths)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRange.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRange.java index 9f778a7a7f..ad32962719 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRange.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. Deprecated: use HostPortRange from policy API Group instead. */ @ApiModel(description = "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. Deprecated: use HostPortRange from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1HostPortRange { - @SerializedName("max") - private Integer max = null; + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Integer max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Integer min; - @SerializedName("min") - private Integer min = null; public ExtensionsV1beta1HostPortRange max(Integer max) { + this.max = max; return this; } @@ -45,15 +52,20 @@ public ExtensionsV1beta1HostPortRange max(Integer max) { * @return max **/ @ApiModelProperty(required = true, value = "max is the end of the range, inclusive.") + public Integer getMax() { return max; } + + public void setMax(Integer max) { this.max = max; } + public ExtensionsV1beta1HostPortRange min(Integer min) { + this.min = min; return this; } @@ -63,10 +75,13 @@ public ExtensionsV1beta1HostPortRange min(Integer min) { * @return min **/ @ApiModelProperty(required = true, value = "min is the start of the range, inclusive.") + public Integer getMin() { return min; } + + public void setMin(Integer min) { this.min = min; } @@ -74,20 +89,12 @@ public void setMin(Integer min) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1HostPortRange extensionsV1beta1HostPortRange = (ExtensionsV1beta1HostPortRange) o; - return Objects.equals(this.max, extensionsV1beta1HostPortRange.max) && - Objects.equals(this.min, extensionsV1beta1HostPortRange.min); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(max, min); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1HostPortRange {\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IDRange.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IDRange.java index b83e179f04..68cfc0f7fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IDRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IDRange.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * IDRange provides a min/max of an allowed range of IDs. Deprecated: use IDRange from policy API Group instead. */ @ApiModel(description = "IDRange provides a min/max of an allowed range of IDs. Deprecated: use IDRange from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IDRange { - @SerializedName("max") - private Long max = null; + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Long max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Long min; - @SerializedName("min") - private Long min = null; public ExtensionsV1beta1IDRange max(Long max) { + this.max = max; return this; } @@ -45,15 +52,20 @@ public ExtensionsV1beta1IDRange max(Long max) { * @return max **/ @ApiModelProperty(required = true, value = "max is the end of the range, inclusive.") + public Long getMax() { return max; } + + public void setMax(Long max) { this.max = max; } + public ExtensionsV1beta1IDRange min(Long min) { + this.min = min; return this; } @@ -63,10 +75,13 @@ public ExtensionsV1beta1IDRange min(Long min) { * @return min **/ @ApiModelProperty(required = true, value = "min is the start of the range, inclusive.") + public Long getMin() { return min; } + + public void setMin(Long min) { this.min = min; } @@ -74,20 +89,12 @@ public void setMin(Long min) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IDRange extensionsV1beta1IDRange = (ExtensionsV1beta1IDRange) o; - return Objects.equals(this.max, extensionsV1beta1IDRange.max) && - Objects.equals(this.min, extensionsV1beta1IDRange.min); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(max, min); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IDRange {\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Ingress.java index b7a01d2b86..3048d298ac 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Ingress.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information. */ @ApiModel(description = "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. DEPRECATED - This group version of Ingress is deprecated by networking.k8s.io/v1beta1 Ingress. See the release notes for more information.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1Ingress { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private ExtensionsV1beta1IngressSpec spec; - @SerializedName("spec") - private ExtensionsV1beta1IngressSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private ExtensionsV1beta1IngressStatus status; - @SerializedName("status") - private ExtensionsV1beta1IngressStatus status = null; public ExtensionsV1beta1Ingress apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public ExtensionsV1beta1Ingress apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1Ingress kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public ExtensionsV1beta1Ingress kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1Ingress metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public ExtensionsV1beta1Ingress spec(ExtensionsV1beta1IngressSpec spec) { + this.spec = spec; return this; } /** - * Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1IngressSpec getSpec() { return spec; } + + public void setSpec(ExtensionsV1beta1IngressSpec spec) { this.spec = spec; } + public ExtensionsV1beta1Ingress status(ExtensionsV1beta1IngressStatus status) { + this.status = status; return this; } /** - * Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1IngressStatus getStatus() { return status; } + + public void setStatus(ExtensionsV1beta1IngressStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(ExtensionsV1beta1IngressStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1Ingress extensionsV1beta1Ingress = (ExtensionsV1beta1Ingress) o; - return Objects.equals(this.apiVersion, extensionsV1beta1Ingress.apiVersion) && - Objects.equals(this.kind, extensionsV1beta1Ingress.kind) && - Objects.equals(this.metadata, extensionsV1beta1Ingress.metadata) && - Objects.equals(this.spec, extensionsV1beta1Ingress.spec) && - Objects.equals(this.status, extensionsV1beta1Ingress.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1Ingress {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackend.java index e5c2360882..0b6a4a369a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackend.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IngressBackend { - @SerializedName("serviceName") - private String serviceName = null; + public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; + @SerializedName(SERIALIZED_NAME_SERVICE_NAME) + private String serviceName; + + public static final String SERIALIZED_NAME_SERVICE_PORT = "servicePort"; + @SerializedName(SERIALIZED_NAME_SERVICE_PORT) + private IntOrString servicePort; - @SerializedName("servicePort") - private IntOrString servicePort = null; public ExtensionsV1beta1IngressBackend serviceName(String serviceName) { + this.serviceName = serviceName; return this; } @@ -46,28 +53,36 @@ public ExtensionsV1beta1IngressBackend serviceName(String serviceName) { * @return serviceName **/ @ApiModelProperty(required = true, value = "Specifies the name of the referenced service.") + public String getServiceName() { return serviceName; } + + public void setServiceName(String serviceName) { this.serviceName = serviceName; } + public ExtensionsV1beta1IngressBackend servicePort(IntOrString servicePort) { + this.servicePort = servicePort; return this; } /** - * Specifies the port of the referenced service. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return servicePort **/ - @ApiModelProperty(required = true, value = "Specifies the port of the referenced service.") + @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getServicePort() { return servicePort; } + + public void setServicePort(IntOrString servicePort) { this.servicePort = servicePort; } @@ -75,20 +90,12 @@ public void setServicePort(IntOrString servicePort) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IngressBackend extensionsV1beta1IngressBackend = (ExtensionsV1beta1IngressBackend) o; - return Objects.equals(this.serviceName, extensionsV1beta1IngressBackend.serviceName) && - Objects.equals(this.servicePort, extensionsV1beta1IngressBackend.servicePort); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(serviceName, servicePort); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IngressBackend {\n"); - sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); sb.append(" servicePort: ").append(toIndentedString(servicePort)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressList.java index 4d2903c4ce..b9e9dfa720 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IngressList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public ExtensionsV1beta1IngressList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public ExtensionsV1beta1IngressList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1IngressList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public ExtensionsV1beta1IngressList addItemsItem(ExtensionsV1beta1Ingress itemsI * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Ingress.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public ExtensionsV1beta1IngressList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public ExtensionsV1beta1IngressList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1IngressList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IngressList extensionsV1beta1IngressList = (ExtensionsV1beta1IngressList) o; - return Objects.equals(this.apiVersion, extensionsV1beta1IngressList.apiVersion) && - Objects.equals(this.items, extensionsV1beta1IngressList.items) && - Objects.equals(this.kind, extensionsV1beta1IngressList.kind) && - Objects.equals(this.metadata, extensionsV1beta1IngressList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IngressList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRule.java index 035b6ec962..5c4680b622 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. */ @ApiModel(description = "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IngressRule { - @SerializedName("host") - private String host = null; + public static final String SERIALIZED_NAME_HOST = "host"; + @SerializedName(SERIALIZED_NAME_HOST) + private String host; + + public static final String SERIALIZED_NAME_HTTP = "http"; + @SerializedName(SERIALIZED_NAME_HTTP) + private ExtensionsV1beta1HTTPIngressRuleValue http; - @SerializedName("http") - private ExtensionsV1beta1HTTPIngressRuleValue http = null; public ExtensionsV1beta1IngressRule host(String host) { + this.host = host; return this; } @@ -45,16 +52,22 @@ public ExtensionsV1beta1IngressRule host(String host) { * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. * @return host **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.") + public String getHost() { return host; } + + public void setHost(String host) { this.host = host; } + public ExtensionsV1beta1IngressRule http(ExtensionsV1beta1HTTPIngressRuleValue http) { + this.http = http; return this; } @@ -63,11 +76,15 @@ public ExtensionsV1beta1IngressRule http(ExtensionsV1beta1HTTPIngressRuleValue h * Get http * @return http **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public ExtensionsV1beta1HTTPIngressRuleValue getHttp() { return http; } + + public void setHttp(ExtensionsV1beta1HTTPIngressRuleValue http) { this.http = http; } @@ -75,20 +92,12 @@ public void setHttp(ExtensionsV1beta1HTTPIngressRuleValue http) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IngressRule extensionsV1beta1IngressRule = (ExtensionsV1beta1IngressRule) o; - return Objects.equals(this.host, extensionsV1beta1IngressRule.host) && - Objects.equals(this.http, extensionsV1beta1IngressRule.http); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(host, http); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IngressRule {\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" http: ").append(toIndentedString(http)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpec.java index a48df01466..67b37fc651 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,36 +35,47 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IngressSpec { - @SerializedName("backend") - private ExtensionsV1beta1IngressBackend backend = null; + public static final String SERIALIZED_NAME_BACKEND = "backend"; + @SerializedName(SERIALIZED_NAME_BACKEND) + private ExtensionsV1beta1IngressBackend backend; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; - @SerializedName("tls") + public static final String SERIALIZED_NAME_TLS = "tls"; + @SerializedName(SERIALIZED_NAME_TLS) private List tls = null; + public ExtensionsV1beta1IngressSpec backend(ExtensionsV1beta1IngressBackend backend) { + this.backend = backend; return this; } /** - * A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * Get backend * @return backend **/ - @ApiModelProperty(value = "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1IngressBackend getBackend() { return backend; } + + public void setBackend(ExtensionsV1beta1IngressBackend backend) { this.backend = backend; } + public ExtensionsV1beta1IngressSpec rules(List rules) { + this.rules = rules; return this; } @@ -78,16 +92,22 @@ public ExtensionsV1beta1IngressSpec addRulesItem(ExtensionsV1beta1IngressRule ru * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } + public ExtensionsV1beta1IngressSpec tls(List tls) { + this.tls = tls; return this; } @@ -104,11 +124,15 @@ public ExtensionsV1beta1IngressSpec addTlsItem(ExtensionsV1beta1IngressTLS tlsIt * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. * @return tls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.") + public List getTls() { return tls; } + + public void setTls(List tls) { this.tls = tls; } @@ -116,21 +140,12 @@ public void setTls(List tls) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IngressSpec extensionsV1beta1IngressSpec = (ExtensionsV1beta1IngressSpec) o; - return Objects.equals(this.backend, extensionsV1beta1IngressSpec.backend) && - Objects.equals(this.rules, extensionsV1beta1IngressSpec.rules) && - Objects.equals(this.tls, extensionsV1beta1IngressSpec.tls); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(backend, rules, tls); + return HashCodeBuilder.reflectionHashCode(this); } @@ -138,7 +153,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IngressSpec {\n"); - sb.append(" backend: ").append(toIndentedString(backend)).append("\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); sb.append(" tls: ").append(toIndentedString(tls)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatus.java index ea5b91c49f..c84c4ddfbf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IngressStatus { - @SerializedName("loadBalancer") - private V1LoadBalancerStatus loadBalancer = null; + public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; + @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) + private V1LoadBalancerStatus loadBalancer; + public ExtensionsV1beta1IngressStatus loadBalancer(V1LoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } /** - * LoadBalancer contains the current status of the load-balancer. + * Get loadBalancer * @return loadBalancer **/ - @ApiModelProperty(value = "LoadBalancer contains the current status of the load-balancer.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LoadBalancerStatus getLoadBalancer() { return loadBalancer; } + + public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; } @@ -54,19 +64,12 @@ public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IngressStatus extensionsV1beta1IngressStatus = (ExtensionsV1beta1IngressStatus) o; - return Objects.equals(this.loadBalancer, extensionsV1beta1IngressStatus.loadBalancer); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(loadBalancer); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IngressStatus {\n"); - sb.append(" loadBalancer: ").append(toIndentedString(loadBalancer)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLS.java index 28711abe31..125967ea4d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLS.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * IngressTLS describes the transport layer security associated with an Ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an Ingress.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1IngressTLS { - @SerializedName("hosts") + public static final String SERIALIZED_NAME_HOSTS = "hosts"; + @SerializedName(SERIALIZED_NAME_HOSTS) private List hosts = null; - @SerializedName("secretName") - private String secretName = null; + public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; + @SerializedName(SERIALIZED_NAME_SECRET_NAME) + private String secretName; + public ExtensionsV1beta1IngressTLS hosts(List hosts) { + this.hosts = hosts; return this; } @@ -54,16 +61,22 @@ public ExtensionsV1beta1IngressTLS addHostsItem(String hostsItem) { * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. * @return hosts **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.") + public List getHosts() { return hosts; } + + public void setHosts(List hosts) { this.hosts = hosts; } + public ExtensionsV1beta1IngressTLS secretName(String secretName) { + this.secretName = secretName; return this; } @@ -72,11 +85,15 @@ public ExtensionsV1beta1IngressTLS secretName(String secretName) { * SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. * @return secretName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.") + public String getSecretName() { return secretName; } + + public void setSecretName(String secretName) { this.secretName = secretName; } @@ -84,20 +101,12 @@ public void setSecretName(String secretName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1IngressTLS extensionsV1beta1IngressTLS = (ExtensionsV1beta1IngressTLS) o; - return Objects.equals(this.hosts, extensionsV1beta1IngressTLS.hosts) && - Objects.equals(this.secretName, extensionsV1beta1IngressTLS.secretName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hosts, secretName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1IngressTLS {\n"); - sb.append(" hosts: ").append(toIndentedString(hosts)).append("\n"); sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicy.java index 03c580d83a..99e53cedc9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead. */ @ApiModel(description = "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. Deprecated: use PodSecurityPolicy from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1PodSecurityPolicy { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private ExtensionsV1beta1PodSecurityPolicySpec spec; - @SerializedName("spec") - private ExtensionsV1beta1PodSecurityPolicySpec spec = null; public ExtensionsV1beta1PodSecurityPolicy apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public ExtensionsV1beta1PodSecurityPolicy apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1PodSecurityPolicy kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public ExtensionsV1beta1PodSecurityPolicy kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1PodSecurityPolicy metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public ExtensionsV1beta1PodSecurityPolicy spec(ExtensionsV1beta1PodSecurityPolicySpec spec) { + this.spec = spec; return this; } /** - * spec defines the policy enforced. + * Get spec * @return spec **/ - @ApiModelProperty(value = "spec defines the policy enforced.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1PodSecurityPolicySpec getSpec() { return spec; } + + public void setSpec(ExtensionsV1beta1PodSecurityPolicySpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(ExtensionsV1beta1PodSecurityPolicySpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1PodSecurityPolicy extensionsV1beta1PodSecurityPolicy = (ExtensionsV1beta1PodSecurityPolicy) o; - return Objects.equals(this.apiVersion, extensionsV1beta1PodSecurityPolicy.apiVersion) && - Objects.equals(this.kind, extensionsV1beta1PodSecurityPolicy.kind) && - Objects.equals(this.metadata, extensionsV1beta1PodSecurityPolicy.metadata) && - Objects.equals(this.spec, extensionsV1beta1PodSecurityPolicy.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1PodSecurityPolicy {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyList.java index 6e54ecf1ae..70620cbd76 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead. */ @ApiModel(description = "PodSecurityPolicyList is a list of PodSecurityPolicy objects. Deprecated: use PodSecurityPolicyList from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1PodSecurityPolicyList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public ExtensionsV1beta1PodSecurityPolicyList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public ExtensionsV1beta1PodSecurityPolicyList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1PodSecurityPolicyList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public ExtensionsV1beta1PodSecurityPolicyList addItemsItem(ExtensionsV1beta1PodS * @return items **/ @ApiModelProperty(required = true, value = "items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public ExtensionsV1beta1PodSecurityPolicyList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public ExtensionsV1beta1PodSecurityPolicyList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1PodSecurityPolicyList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1PodSecurityPolicyList extensionsV1beta1PodSecurityPolicyList = (ExtensionsV1beta1PodSecurityPolicyList) o; - return Objects.equals(this.apiVersion, extensionsV1beta1PodSecurityPolicyList.apiVersion) && - Objects.equals(this.items, extensionsV1beta1PodSecurityPolicyList.items) && - Objects.equals(this.kind, extensionsV1beta1PodSecurityPolicyList.kind) && - Objects.equals(this.metadata, extensionsV1beta1PodSecurityPolicyList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1PodSecurityPolicyList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpec.java index 37195b1245..7e2b8e17db 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,6 +29,7 @@ import io.kubernetes.client.models.ExtensionsV1beta1HostPortRange; import io.kubernetes.client.models.ExtensionsV1beta1RunAsGroupStrategyOptions; import io.kubernetes.client.models.ExtensionsV1beta1RunAsUserStrategyOptions; +import io.kubernetes.client.models.ExtensionsV1beta1RuntimeClassStrategyOptions; import io.kubernetes.client.models.ExtensionsV1beta1SELinuxStrategyOptions; import io.kubernetes.client.models.ExtensionsV1beta1SupplementalGroupsStrategyOptions; import io.swagger.annotations.ApiModel; @@ -38,78 +42,107 @@ * PodSecurityPolicySpec defines the policy enforced. Deprecated: use PodSecurityPolicySpec from policy API Group instead. */ @ApiModel(description = "PodSecurityPolicySpec defines the policy enforced. Deprecated: use PodSecurityPolicySpec from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1PodSecurityPolicySpec { - @SerializedName("allowPrivilegeEscalation") - private Boolean allowPrivilegeEscalation = null; + public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; + @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) + private Boolean allowPrivilegeEscalation; - @SerializedName("allowedCSIDrivers") + public static final String SERIALIZED_NAME_ALLOWED_C_S_I_DRIVERS = "allowedCSIDrivers"; + @SerializedName(SERIALIZED_NAME_ALLOWED_C_S_I_DRIVERS) private List allowedCSIDrivers = null; - @SerializedName("allowedCapabilities") + public static final String SERIALIZED_NAME_ALLOWED_CAPABILITIES = "allowedCapabilities"; + @SerializedName(SERIALIZED_NAME_ALLOWED_CAPABILITIES) private List allowedCapabilities = null; - @SerializedName("allowedFlexVolumes") + public static final String SERIALIZED_NAME_ALLOWED_FLEX_VOLUMES = "allowedFlexVolumes"; + @SerializedName(SERIALIZED_NAME_ALLOWED_FLEX_VOLUMES) private List allowedFlexVolumes = null; - @SerializedName("allowedHostPaths") + public static final String SERIALIZED_NAME_ALLOWED_HOST_PATHS = "allowedHostPaths"; + @SerializedName(SERIALIZED_NAME_ALLOWED_HOST_PATHS) private List allowedHostPaths = null; - @SerializedName("allowedProcMountTypes") + public static final String SERIALIZED_NAME_ALLOWED_PROC_MOUNT_TYPES = "allowedProcMountTypes"; + @SerializedName(SERIALIZED_NAME_ALLOWED_PROC_MOUNT_TYPES) private List allowedProcMountTypes = null; - @SerializedName("allowedUnsafeSysctls") + public static final String SERIALIZED_NAME_ALLOWED_UNSAFE_SYSCTLS = "allowedUnsafeSysctls"; + @SerializedName(SERIALIZED_NAME_ALLOWED_UNSAFE_SYSCTLS) private List allowedUnsafeSysctls = null; - @SerializedName("defaultAddCapabilities") + public static final String SERIALIZED_NAME_DEFAULT_ADD_CAPABILITIES = "defaultAddCapabilities"; + @SerializedName(SERIALIZED_NAME_DEFAULT_ADD_CAPABILITIES) private List defaultAddCapabilities = null; - @SerializedName("defaultAllowPrivilegeEscalation") - private Boolean defaultAllowPrivilegeEscalation = null; + public static final String SERIALIZED_NAME_DEFAULT_ALLOW_PRIVILEGE_ESCALATION = "defaultAllowPrivilegeEscalation"; + @SerializedName(SERIALIZED_NAME_DEFAULT_ALLOW_PRIVILEGE_ESCALATION) + private Boolean defaultAllowPrivilegeEscalation; - @SerializedName("forbiddenSysctls") + public static final String SERIALIZED_NAME_FORBIDDEN_SYSCTLS = "forbiddenSysctls"; + @SerializedName(SERIALIZED_NAME_FORBIDDEN_SYSCTLS) private List forbiddenSysctls = null; - @SerializedName("fsGroup") - private ExtensionsV1beta1FSGroupStrategyOptions fsGroup = null; + public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; + @SerializedName(SERIALIZED_NAME_FS_GROUP) + private ExtensionsV1beta1FSGroupStrategyOptions fsGroup; - @SerializedName("hostIPC") - private Boolean hostIPC = null; + public static final String SERIALIZED_NAME_HOST_I_P_C = "hostIPC"; + @SerializedName(SERIALIZED_NAME_HOST_I_P_C) + private Boolean hostIPC; - @SerializedName("hostNetwork") - private Boolean hostNetwork = null; + public static final String SERIALIZED_NAME_HOST_NETWORK = "hostNetwork"; + @SerializedName(SERIALIZED_NAME_HOST_NETWORK) + private Boolean hostNetwork; - @SerializedName("hostPID") - private Boolean hostPID = null; + public static final String SERIALIZED_NAME_HOST_P_I_D = "hostPID"; + @SerializedName(SERIALIZED_NAME_HOST_P_I_D) + private Boolean hostPID; - @SerializedName("hostPorts") + public static final String SERIALIZED_NAME_HOST_PORTS = "hostPorts"; + @SerializedName(SERIALIZED_NAME_HOST_PORTS) private List hostPorts = null; - @SerializedName("privileged") - private Boolean privileged = null; + public static final String SERIALIZED_NAME_PRIVILEGED = "privileged"; + @SerializedName(SERIALIZED_NAME_PRIVILEGED) + private Boolean privileged; - @SerializedName("readOnlyRootFilesystem") - private Boolean readOnlyRootFilesystem = null; + public static final String SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM = "readOnlyRootFilesystem"; + @SerializedName(SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM) + private Boolean readOnlyRootFilesystem; - @SerializedName("requiredDropCapabilities") + public static final String SERIALIZED_NAME_REQUIRED_DROP_CAPABILITIES = "requiredDropCapabilities"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DROP_CAPABILITIES) private List requiredDropCapabilities = null; - @SerializedName("runAsGroup") - private ExtensionsV1beta1RunAsGroupStrategyOptions runAsGroup = null; + public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; + @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) + private ExtensionsV1beta1RunAsGroupStrategyOptions runAsGroup; + + public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; + @SerializedName(SERIALIZED_NAME_RUN_AS_USER) + private ExtensionsV1beta1RunAsUserStrategyOptions runAsUser; - @SerializedName("runAsUser") - private ExtensionsV1beta1RunAsUserStrategyOptions runAsUser = null; + public static final String SERIALIZED_NAME_RUNTIME_CLASS = "runtimeClass"; + @SerializedName(SERIALIZED_NAME_RUNTIME_CLASS) + private ExtensionsV1beta1RuntimeClassStrategyOptions runtimeClass; - @SerializedName("seLinux") - private ExtensionsV1beta1SELinuxStrategyOptions seLinux = null; + public static final String SERIALIZED_NAME_SE_LINUX = "seLinux"; + @SerializedName(SERIALIZED_NAME_SE_LINUX) + private ExtensionsV1beta1SELinuxStrategyOptions seLinux; - @SerializedName("supplementalGroups") - private ExtensionsV1beta1SupplementalGroupsStrategyOptions supplementalGroups = null; + public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) + private ExtensionsV1beta1SupplementalGroupsStrategyOptions supplementalGroups; - @SerializedName("volumes") + public static final String SERIALIZED_NAME_VOLUMES = "volumes"; + @SerializedName(SERIALIZED_NAME_VOLUMES) private List volumes = null; + public ExtensionsV1beta1PodSecurityPolicySpec allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @@ -118,16 +151,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec allowPrivilegeEscalation(Boolean a * allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. * @return allowPrivilegeEscalation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.") - public Boolean isAllowPrivilegeEscalation() { + + public Boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation; } + + public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { this.allowPrivilegeEscalation = allowPrivilegeEscalation; } + public ExtensionsV1beta1PodSecurityPolicySpec allowedCSIDrivers(List allowedCSIDrivers) { + this.allowedCSIDrivers = allowedCSIDrivers; return this; } @@ -141,19 +180,25 @@ public ExtensionsV1beta1PodSecurityPolicySpec addAllowedCSIDriversItem(Extension } /** - * AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. + * AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. * @return allowedCSIDrivers **/ - @ApiModelProperty(value = "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.") + @javax.annotation.Nullable + @ApiModelProperty(value = "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.") + public List getAllowedCSIDrivers() { return allowedCSIDrivers; } + + public void setAllowedCSIDrivers(List allowedCSIDrivers) { this.allowedCSIDrivers = allowedCSIDrivers; } + public ExtensionsV1beta1PodSecurityPolicySpec allowedCapabilities(List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -170,16 +215,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addAllowedCapabilitiesItem(String * allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. * @return allowedCapabilities **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.") + public List getAllowedCapabilities() { return allowedCapabilities; } + + public void setAllowedCapabilities(List allowedCapabilities) { this.allowedCapabilities = allowedCapabilities; } + public ExtensionsV1beta1PodSecurityPolicySpec allowedFlexVolumes(List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -196,16 +247,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addAllowedFlexVolumesItem(Extensio * allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. * @return allowedFlexVolumes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.") + public List getAllowedFlexVolumes() { return allowedFlexVolumes; } + + public void setAllowedFlexVolumes(List allowedFlexVolumes) { this.allowedFlexVolumes = allowedFlexVolumes; } + public ExtensionsV1beta1PodSecurityPolicySpec allowedHostPaths(List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -222,16 +279,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addAllowedHostPathsItem(Extensions * allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. * @return allowedHostPaths **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.") + public List getAllowedHostPaths() { return allowedHostPaths; } + + public void setAllowedHostPaths(List allowedHostPaths) { this.allowedHostPaths = allowedHostPaths; } + public ExtensionsV1beta1PodSecurityPolicySpec allowedProcMountTypes(List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -248,16 +311,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addAllowedProcMountTypesItem(Strin * AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. * @return allowedProcMountTypes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.") + public List getAllowedProcMountTypes() { return allowedProcMountTypes; } + + public void setAllowedProcMountTypes(List allowedProcMountTypes) { this.allowedProcMountTypes = allowedProcMountTypes; } + public ExtensionsV1beta1PodSecurityPolicySpec allowedUnsafeSysctls(List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -274,16 +343,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addAllowedUnsafeSysctlsItem(String * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. * @return allowedUnsafeSysctls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.") + public List getAllowedUnsafeSysctls() { return allowedUnsafeSysctls; } + + public void setAllowedUnsafeSysctls(List allowedUnsafeSysctls) { this.allowedUnsafeSysctls = allowedUnsafeSysctls; } + public ExtensionsV1beta1PodSecurityPolicySpec defaultAddCapabilities(List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -300,16 +375,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addDefaultAddCapabilitiesItem(Stri * defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. * @return defaultAddCapabilities **/ + @javax.annotation.Nullable @ApiModelProperty(value = "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.") + public List getDefaultAddCapabilities() { return defaultAddCapabilities; } + + public void setDefaultAddCapabilities(List defaultAddCapabilities) { this.defaultAddCapabilities = defaultAddCapabilities; } + public ExtensionsV1beta1PodSecurityPolicySpec defaultAllowPrivilegeEscalation(Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @@ -318,16 +399,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec defaultAllowPrivilegeEscalation(Bo * defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. * @return defaultAllowPrivilegeEscalation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.") - public Boolean isDefaultAllowPrivilegeEscalation() { + + public Boolean getDefaultAllowPrivilegeEscalation() { return defaultAllowPrivilegeEscalation; } + + public void setDefaultAllowPrivilegeEscalation(Boolean defaultAllowPrivilegeEscalation) { this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; } + public ExtensionsV1beta1PodSecurityPolicySpec forbiddenSysctls(List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -344,34 +431,45 @@ public ExtensionsV1beta1PodSecurityPolicySpec addForbiddenSysctlsItem(String for * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. * @return forbiddenSysctls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.") + public List getForbiddenSysctls() { return forbiddenSysctls; } + + public void setForbiddenSysctls(List forbiddenSysctls) { this.forbiddenSysctls = forbiddenSysctls; } + public ExtensionsV1beta1PodSecurityPolicySpec fsGroup(ExtensionsV1beta1FSGroupStrategyOptions fsGroup) { + this.fsGroup = fsGroup; return this; } /** - * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * Get fsGroup * @return fsGroup **/ - @ApiModelProperty(required = true, value = "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.") + @ApiModelProperty(required = true, value = "") + public ExtensionsV1beta1FSGroupStrategyOptions getFsGroup() { return fsGroup; } + + public void setFsGroup(ExtensionsV1beta1FSGroupStrategyOptions fsGroup) { this.fsGroup = fsGroup; } + public ExtensionsV1beta1PodSecurityPolicySpec hostIPC(Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @@ -380,16 +478,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec hostIPC(Boolean hostIPC) { * hostIPC determines if the policy allows the use of HostIPC in the pod spec. * @return hostIPC **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostIPC determines if the policy allows the use of HostIPC in the pod spec.") - public Boolean isHostIPC() { + + public Boolean getHostIPC() { return hostIPC; } + + public void setHostIPC(Boolean hostIPC) { this.hostIPC = hostIPC; } + public ExtensionsV1beta1PodSecurityPolicySpec hostNetwork(Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @@ -398,16 +502,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec hostNetwork(Boolean hostNetwork) { * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. * @return hostNetwork **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.") - public Boolean isHostNetwork() { + + public Boolean getHostNetwork() { return hostNetwork; } + + public void setHostNetwork(Boolean hostNetwork) { this.hostNetwork = hostNetwork; } + public ExtensionsV1beta1PodSecurityPolicySpec hostPID(Boolean hostPID) { + this.hostPID = hostPID; return this; } @@ -416,16 +526,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec hostPID(Boolean hostPID) { * hostPID determines if the policy allows the use of HostPID in the pod spec. * @return hostPID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostPID determines if the policy allows the use of HostPID in the pod spec.") - public Boolean isHostPID() { + + public Boolean getHostPID() { return hostPID; } + + public void setHostPID(Boolean hostPID) { this.hostPID = hostPID; } + public ExtensionsV1beta1PodSecurityPolicySpec hostPorts(List hostPorts) { + this.hostPorts = hostPorts; return this; } @@ -442,16 +558,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec addHostPortsItem(ExtensionsV1beta1 * hostPorts determines which host port ranges are allowed to be exposed. * @return hostPorts **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostPorts determines which host port ranges are allowed to be exposed.") + public List getHostPorts() { return hostPorts; } + + public void setHostPorts(List hostPorts) { this.hostPorts = hostPorts; } + public ExtensionsV1beta1PodSecurityPolicySpec privileged(Boolean privileged) { + this.privileged = privileged; return this; } @@ -460,16 +582,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec privileged(Boolean privileged) { * privileged determines if a pod can request to be run as privileged. * @return privileged **/ + @javax.annotation.Nullable @ApiModelProperty(value = "privileged determines if a pod can request to be run as privileged.") - public Boolean isPrivileged() { + + public Boolean getPrivileged() { return privileged; } + + public void setPrivileged(Boolean privileged) { this.privileged = privileged; } + public ExtensionsV1beta1PodSecurityPolicySpec readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @@ -478,16 +606,22 @@ public ExtensionsV1beta1PodSecurityPolicySpec readOnlyRootFilesystem(Boolean rea * readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. * @return readOnlyRootFilesystem **/ + @javax.annotation.Nullable @ApiModelProperty(value = "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.") - public Boolean isReadOnlyRootFilesystem() { + + public Boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem; } + + public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { this.readOnlyRootFilesystem = readOnlyRootFilesystem; } + public ExtensionsV1beta1PodSecurityPolicySpec requiredDropCapabilities(List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -504,88 +638,139 @@ public ExtensionsV1beta1PodSecurityPolicySpec addRequiredDropCapabilitiesItem(St * requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. * @return requiredDropCapabilities **/ + @javax.annotation.Nullable @ApiModelProperty(value = "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.") + public List getRequiredDropCapabilities() { return requiredDropCapabilities; } + + public void setRequiredDropCapabilities(List requiredDropCapabilities) { this.requiredDropCapabilities = requiredDropCapabilities; } + public ExtensionsV1beta1PodSecurityPolicySpec runAsGroup(ExtensionsV1beta1RunAsGroupStrategyOptions runAsGroup) { + this.runAsGroup = runAsGroup; return this; } /** - * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * Get runAsGroup * @return runAsGroup **/ - @ApiModelProperty(value = "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1RunAsGroupStrategyOptions getRunAsGroup() { return runAsGroup; } + + public void setRunAsGroup(ExtensionsV1beta1RunAsGroupStrategyOptions runAsGroup) { this.runAsGroup = runAsGroup; } + public ExtensionsV1beta1PodSecurityPolicySpec runAsUser(ExtensionsV1beta1RunAsUserStrategyOptions runAsUser) { + this.runAsUser = runAsUser; return this; } /** - * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * Get runAsUser * @return runAsUser **/ - @ApiModelProperty(required = true, value = "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.") + @ApiModelProperty(required = true, value = "") + public ExtensionsV1beta1RunAsUserStrategyOptions getRunAsUser() { return runAsUser; } + + public void setRunAsUser(ExtensionsV1beta1RunAsUserStrategyOptions runAsUser) { this.runAsUser = runAsUser; } + + public ExtensionsV1beta1PodSecurityPolicySpec runtimeClass(ExtensionsV1beta1RuntimeClassStrategyOptions runtimeClass) { + + this.runtimeClass = runtimeClass; + return this; + } + + /** + * Get runtimeClass + * @return runtimeClass + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ExtensionsV1beta1RuntimeClassStrategyOptions getRuntimeClass() { + return runtimeClass; + } + + + + public void setRuntimeClass(ExtensionsV1beta1RuntimeClassStrategyOptions runtimeClass) { + this.runtimeClass = runtimeClass; + } + + public ExtensionsV1beta1PodSecurityPolicySpec seLinux(ExtensionsV1beta1SELinuxStrategyOptions seLinux) { + this.seLinux = seLinux; return this; } /** - * seLinux is the strategy that will dictate the allowable labels that may be set. + * Get seLinux * @return seLinux **/ - @ApiModelProperty(required = true, value = "seLinux is the strategy that will dictate the allowable labels that may be set.") + @ApiModelProperty(required = true, value = "") + public ExtensionsV1beta1SELinuxStrategyOptions getSeLinux() { return seLinux; } + + public void setSeLinux(ExtensionsV1beta1SELinuxStrategyOptions seLinux) { this.seLinux = seLinux; } + public ExtensionsV1beta1PodSecurityPolicySpec supplementalGroups(ExtensionsV1beta1SupplementalGroupsStrategyOptions supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } /** - * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * Get supplementalGroups * @return supplementalGroups **/ - @ApiModelProperty(required = true, value = "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.") + @ApiModelProperty(required = true, value = "") + public ExtensionsV1beta1SupplementalGroupsStrategyOptions getSupplementalGroups() { return supplementalGroups; } + + public void setSupplementalGroups(ExtensionsV1beta1SupplementalGroupsStrategyOptions supplementalGroups) { this.supplementalGroups = supplementalGroups; } + public ExtensionsV1beta1PodSecurityPolicySpec volumes(List volumes) { + this.volumes = volumes; return this; } @@ -602,11 +787,15 @@ public ExtensionsV1beta1PodSecurityPolicySpec addVolumesItem(String volumesItem) * volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. * @return volumes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.") + public List getVolumes() { return volumes; } + + public void setVolumes(List volumes) { this.volumes = volumes; } @@ -614,41 +803,12 @@ public void setVolumes(List volumes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1PodSecurityPolicySpec extensionsV1beta1PodSecurityPolicySpec = (ExtensionsV1beta1PodSecurityPolicySpec) o; - return Objects.equals(this.allowPrivilegeEscalation, extensionsV1beta1PodSecurityPolicySpec.allowPrivilegeEscalation) && - Objects.equals(this.allowedCSIDrivers, extensionsV1beta1PodSecurityPolicySpec.allowedCSIDrivers) && - Objects.equals(this.allowedCapabilities, extensionsV1beta1PodSecurityPolicySpec.allowedCapabilities) && - Objects.equals(this.allowedFlexVolumes, extensionsV1beta1PodSecurityPolicySpec.allowedFlexVolumes) && - Objects.equals(this.allowedHostPaths, extensionsV1beta1PodSecurityPolicySpec.allowedHostPaths) && - Objects.equals(this.allowedProcMountTypes, extensionsV1beta1PodSecurityPolicySpec.allowedProcMountTypes) && - Objects.equals(this.allowedUnsafeSysctls, extensionsV1beta1PodSecurityPolicySpec.allowedUnsafeSysctls) && - Objects.equals(this.defaultAddCapabilities, extensionsV1beta1PodSecurityPolicySpec.defaultAddCapabilities) && - Objects.equals(this.defaultAllowPrivilegeEscalation, extensionsV1beta1PodSecurityPolicySpec.defaultAllowPrivilegeEscalation) && - Objects.equals(this.forbiddenSysctls, extensionsV1beta1PodSecurityPolicySpec.forbiddenSysctls) && - Objects.equals(this.fsGroup, extensionsV1beta1PodSecurityPolicySpec.fsGroup) && - Objects.equals(this.hostIPC, extensionsV1beta1PodSecurityPolicySpec.hostIPC) && - Objects.equals(this.hostNetwork, extensionsV1beta1PodSecurityPolicySpec.hostNetwork) && - Objects.equals(this.hostPID, extensionsV1beta1PodSecurityPolicySpec.hostPID) && - Objects.equals(this.hostPorts, extensionsV1beta1PodSecurityPolicySpec.hostPorts) && - Objects.equals(this.privileged, extensionsV1beta1PodSecurityPolicySpec.privileged) && - Objects.equals(this.readOnlyRootFilesystem, extensionsV1beta1PodSecurityPolicySpec.readOnlyRootFilesystem) && - Objects.equals(this.requiredDropCapabilities, extensionsV1beta1PodSecurityPolicySpec.requiredDropCapabilities) && - Objects.equals(this.runAsGroup, extensionsV1beta1PodSecurityPolicySpec.runAsGroup) && - Objects.equals(this.runAsUser, extensionsV1beta1PodSecurityPolicySpec.runAsUser) && - Objects.equals(this.seLinux, extensionsV1beta1PodSecurityPolicySpec.seLinux) && - Objects.equals(this.supplementalGroups, extensionsV1beta1PodSecurityPolicySpec.supplementalGroups) && - Objects.equals(this.volumes, extensionsV1beta1PodSecurityPolicySpec.volumes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowPrivilegeEscalation, allowedCSIDrivers, allowedCapabilities, allowedFlexVolumes, allowedHostPaths, allowedProcMountTypes, allowedUnsafeSysctls, defaultAddCapabilities, defaultAllowPrivilegeEscalation, forbiddenSysctls, fsGroup, hostIPC, hostNetwork, hostPID, hostPorts, privileged, readOnlyRootFilesystem, requiredDropCapabilities, runAsGroup, runAsUser, seLinux, supplementalGroups, volumes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -656,7 +816,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1PodSecurityPolicySpec {\n"); - sb.append(" allowPrivilegeEscalation: ").append(toIndentedString(allowPrivilegeEscalation)).append("\n"); sb.append(" allowedCSIDrivers: ").append(toIndentedString(allowedCSIDrivers)).append("\n"); sb.append(" allowedCapabilities: ").append(toIndentedString(allowedCapabilities)).append("\n"); @@ -677,6 +836,7 @@ public String toString() { sb.append(" requiredDropCapabilities: ").append(toIndentedString(requiredDropCapabilities)).append("\n"); sb.append(" runAsGroup: ").append(toIndentedString(runAsGroup)).append("\n"); sb.append(" runAsUser: ").append(toIndentedString(runAsUser)).append("\n"); + sb.append(" runtimeClass: ").append(toIndentedString(runtimeClass)).append("\n"); sb.append(" seLinux: ").append(toIndentedString(seLinux)).append("\n"); sb.append(" supplementalGroups: ").append(toIndentedString(supplementalGroups)).append("\n"); sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfig.java index 69fdb04319..7a5b63ed01 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * DEPRECATED. */ @ApiModel(description = "DEPRECATED.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1RollbackConfig { - @SerializedName("revision") - private Long revision = null; + public static final String SERIALIZED_NAME_REVISION = "revision"; + @SerializedName(SERIALIZED_NAME_REVISION) + private Long revision; + public ExtensionsV1beta1RollbackConfig revision(Long revision) { + this.revision = revision; return this; } @@ -41,11 +47,15 @@ public ExtensionsV1beta1RollbackConfig revision(Long revision) { * The revision to rollback to. If set to 0, rollback to the last revision. * @return revision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The revision to rollback to. If set to 0, rollback to the last revision.") + public Long getRevision() { return revision; } + + public void setRevision(Long revision) { this.revision = revision; } @@ -53,19 +63,12 @@ public void setRevision(Long revision) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1RollbackConfig extensionsV1beta1RollbackConfig = (ExtensionsV1beta1RollbackConfig) o; - return Objects.equals(this.revision, extensionsV1beta1RollbackConfig.revision); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(revision); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1RollbackConfig {\n"); - sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeployment.java index 6125a9cc1d..47e505d7a6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeployment.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.IntOrString; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,67 +31,73 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1RollingUpdateDeployment { - @SerializedName("maxSurge") - private String maxSurge = null; + public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; + @SerializedName(SERIALIZED_NAME_MAX_SURGE) + private IntOrString maxSurge; + + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; - @SerializedName("maxUnavailable") - private String maxUnavailable = null; - public ExtensionsV1beta1RollingUpdateDeployment maxSurge(String maxSurge) { + public ExtensionsV1beta1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; return this; } /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxSurge **/ - @ApiModelProperty(value = "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. By default, a value of 1 is used. Example: when this is set to 30%, the new RC can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new RC can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.") - public String getMaxSurge() { + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + + public IntOrString getMaxSurge() { return maxSurge; } - public void setMaxSurge(String maxSurge) { + + + public void setMaxSurge(IntOrString maxSurge) { this.maxSurge = maxSurge; } - public ExtensionsV1beta1RollingUpdateDeployment maxUnavailable(String maxUnavailable) { + + public ExtensionsV1beta1RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. By default, a fixed value of 1 is used. Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old RC can be scaled down further, followed by scaling up the new RC, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.") - public String getMaxUnavailable() { + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + + public IntOrString getMaxUnavailable() { return maxUnavailable; } - public void setMaxUnavailable(String maxUnavailable) { + + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1RollingUpdateDeployment extensionsV1beta1RollingUpdateDeployment = (ExtensionsV1beta1RollingUpdateDeployment) o; - return Objects.equals(this.maxSurge, extensionsV1beta1RollingUpdateDeployment.maxSurge) && - Objects.equals(this.maxUnavailable, extensionsV1beta1RollingUpdateDeployment.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxSurge, maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1RollingUpdateDeployment {\n"); - sb.append(" maxSurge: ").append(toIndentedString(maxSurge)).append("\n"); sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptions.java index cb61bf1563..043d9c98dc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsGroupStrategyOptions from policy API Group instead. */ @ApiModel(description = "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsGroupStrategyOptions from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1RunAsGroupStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public ExtensionsV1beta1RunAsGroupStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public ExtensionsV1beta1RunAsGroupStrategyOptions addRangesItem(ExtensionsV1beta * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public ExtensionsV1beta1RunAsGroupStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -74,10 +87,13 @@ public ExtensionsV1beta1RunAsGroupStrategyOptions rule(String rule) { * @return rule **/ @ApiModelProperty(required = true, value = "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +101,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1RunAsGroupStrategyOptions extensionsV1beta1RunAsGroupStrategyOptions = (ExtensionsV1beta1RunAsGroupStrategyOptions) o; - return Objects.equals(this.ranges, extensionsV1beta1RunAsGroupStrategyOptions.ranges) && - Objects.equals(this.rule, extensionsV1beta1RunAsGroupStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1RunAsGroupStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptions.java index 312af7bb43..0012fa186f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsUserStrategyOptions from policy API Group instead. */ @ApiModel(description = "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use RunAsUserStrategyOptions from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1RunAsUserStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public ExtensionsV1beta1RunAsUserStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public ExtensionsV1beta1RunAsUserStrategyOptions addRangesItem(ExtensionsV1beta1 * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public ExtensionsV1beta1RunAsUserStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -74,10 +87,13 @@ public ExtensionsV1beta1RunAsUserStrategyOptions rule(String rule) { * @return rule **/ @ApiModelProperty(required = true, value = "rule is the strategy that will dictate the allowable RunAsUser values that may be set.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +101,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1RunAsUserStrategyOptions extensionsV1beta1RunAsUserStrategyOptions = (ExtensionsV1beta1RunAsUserStrategyOptions) o; - return Objects.equals(this.ranges, extensionsV1beta1RunAsUserStrategyOptions.ranges) && - Objects.equals(this.rule, extensionsV1beta1RunAsUserStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1RunAsUserStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RuntimeClassStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RuntimeClassStrategyOptions.java new file mode 100644 index 0000000000..aceeb5f35d --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1RuntimeClassStrategyOptions.java @@ -0,0 +1,131 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. + */ +@ApiModel(description = "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") +public class ExtensionsV1beta1RuntimeClassStrategyOptions { + public static final String SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES = "allowedRuntimeClassNames"; + @SerializedName(SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES) + private List allowedRuntimeClassNames = new ArrayList(); + + public static final String SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME = "defaultRuntimeClassName"; + @SerializedName(SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME) + private String defaultRuntimeClassName; + + + public ExtensionsV1beta1RuntimeClassStrategyOptions allowedRuntimeClassNames(List allowedRuntimeClassNames) { + + this.allowedRuntimeClassNames = allowedRuntimeClassNames; + return this; + } + + public ExtensionsV1beta1RuntimeClassStrategyOptions addAllowedRuntimeClassNamesItem(String allowedRuntimeClassNamesItem) { + this.allowedRuntimeClassNames.add(allowedRuntimeClassNamesItem); + return this; + } + + /** + * allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * @return allowedRuntimeClassNames + **/ + @ApiModelProperty(required = true, value = "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.") + + public List getAllowedRuntimeClassNames() { + return allowedRuntimeClassNames; + } + + + + public void setAllowedRuntimeClassNames(List allowedRuntimeClassNames) { + this.allowedRuntimeClassNames = allowedRuntimeClassNames; + } + + + public ExtensionsV1beta1RuntimeClassStrategyOptions defaultRuntimeClassName(String defaultRuntimeClassName) { + + this.defaultRuntimeClassName = defaultRuntimeClassName; + return this; + } + + /** + * defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + * @return defaultRuntimeClassName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.") + + public String getDefaultRuntimeClassName() { + return defaultRuntimeClassName; + } + + + + public void setDefaultRuntimeClassName(String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; + } + + + @Override + public boolean equals(java.lang.Object o) { + return EqualsBuilder.reflectionEquals(this, o); + } + + @Override + public int hashCode() { + return HashCodeBuilder.reflectionHashCode(this); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExtensionsV1beta1RuntimeClassStrategyOptions {\n"); + sb.append(" allowedRuntimeClassNames: ").append(toIndentedString(allowedRuntimeClassNames)).append("\n"); + sb.append(" defaultRuntimeClassName: ").append(toIndentedString(defaultRuntimeClassName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptions.java index cf1b24d543..58b94b30c5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use SELinuxStrategyOptions from policy API Group instead. */ @ApiModel(description = "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. Deprecated: use SELinuxStrategyOptions from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1SELinuxStrategyOptions { - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + + public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; + @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) + private V1SELinuxOptions seLinuxOptions; - @SerializedName("seLinuxOptions") - private V1SELinuxOptions seLinuxOptions = null; public ExtensionsV1beta1SELinuxStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -46,28 +53,37 @@ public ExtensionsV1beta1SELinuxStrategyOptions rule(String rule) { * @return rule **/ @ApiModelProperty(required = true, value = "rule is the strategy that will dictate the allowable labels that may be set.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } + public ExtensionsV1beta1SELinuxStrategyOptions seLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } /** - * seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * Get seLinuxOptions * @return seLinuxOptions **/ - @ApiModelProperty(value = "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } + + public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; } @@ -75,20 +91,12 @@ public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1SELinuxStrategyOptions extensionsV1beta1SELinuxStrategyOptions = (ExtensionsV1beta1SELinuxStrategyOptions) o; - return Objects.equals(this.rule, extensionsV1beta1SELinuxStrategyOptions.rule) && - Objects.equals(this.seLinuxOptions, extensionsV1beta1SELinuxStrategyOptions.seLinuxOptions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rule, seLinuxOptions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1SELinuxStrategyOptions {\n"); - sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append(" seLinuxOptions: ").append(toIndentedString(seLinuxOptions)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Scale.java index 71abb45672..410b543779 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1Scale.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * represents a scaling request for a resource. */ @ApiModel(description = "represents a scaling request for a resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1Scale { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private ExtensionsV1beta1ScaleSpec spec; - @SerializedName("spec") - private ExtensionsV1beta1ScaleSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private ExtensionsV1beta1ScaleStatus status; - @SerializedName("status") - private ExtensionsV1beta1ScaleStatus status = null; public ExtensionsV1beta1Scale apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public ExtensionsV1beta1Scale apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public ExtensionsV1beta1Scale kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public ExtensionsV1beta1Scale kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public ExtensionsV1beta1Scale metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public ExtensionsV1beta1Scale spec(ExtensionsV1beta1ScaleSpec spec) { + this.spec = spec; return this; } /** - * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1ScaleSpec getSpec() { return spec; } + + public void setSpec(ExtensionsV1beta1ScaleSpec spec) { this.spec = spec; } + public ExtensionsV1beta1Scale status(ExtensionsV1beta1ScaleStatus status) { + this.status = status; return this; } /** - * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. + * Get status * @return status **/ - @ApiModelProperty(value = "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ExtensionsV1beta1ScaleStatus getStatus() { return status; } + + public void setStatus(ExtensionsV1beta1ScaleStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(ExtensionsV1beta1ScaleStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1Scale extensionsV1beta1Scale = (ExtensionsV1beta1Scale) o; - return Objects.equals(this.apiVersion, extensionsV1beta1Scale.apiVersion) && - Objects.equals(this.kind, extensionsV1beta1Scale.kind) && - Objects.equals(this.metadata, extensionsV1beta1Scale.metadata) && - Objects.equals(this.spec, extensionsV1beta1Scale.spec) && - Objects.equals(this.status, extensionsV1beta1Scale.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1Scale {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpec.java index 600e03a616..250232e17a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * describes the attributes of a scale subresource */ @ApiModel(description = "describes the attributes of a scale subresource") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1ScaleSpec { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + public ExtensionsV1beta1ScaleSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -41,11 +47,15 @@ public ExtensionsV1beta1ScaleSpec replicas(Integer replicas) { * desired number of instances for the scaled object. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "desired number of instances for the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -53,19 +63,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1ScaleSpec extensionsV1beta1ScaleSpec = (ExtensionsV1beta1ScaleSpec) o; - return Objects.equals(this.replicas, extensionsV1beta1ScaleSpec.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1ScaleSpec {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatus.java index 13f781647b..063c634c8a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * represents the current status of a scale subresource. */ @ApiModel(description = "represents the current status of a scale subresource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1ScaleStatus { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("selector") + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) private Map selector = null; - @SerializedName("targetSelector") - private String targetSelector = null; + public static final String SERIALIZED_NAME_TARGET_SELECTOR = "targetSelector"; + @SerializedName(SERIALIZED_NAME_TARGET_SELECTOR) + private String targetSelector; + public ExtensionsV1beta1ScaleStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -51,15 +59,20 @@ public ExtensionsV1beta1ScaleStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "actual number of observed instances of the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public ExtensionsV1beta1ScaleStatus selector(Map selector) { + this.selector = selector; return this; } @@ -76,16 +89,22 @@ public ExtensionsV1beta1ScaleStatus putSelectorItem(String key, String selectorI * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors * @return selector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors") + public Map getSelector() { return selector; } + + public void setSelector(Map selector) { this.selector = selector; } + public ExtensionsV1beta1ScaleStatus targetSelector(String targetSelector) { + this.targetSelector = targetSelector; return this; } @@ -94,11 +113,15 @@ public ExtensionsV1beta1ScaleStatus targetSelector(String targetSelector) { * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors * @return targetSelector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + public String getTargetSelector() { return targetSelector; } + + public void setTargetSelector(String targetSelector) { this.targetSelector = targetSelector; } @@ -106,21 +129,12 @@ public void setTargetSelector(String targetSelector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1ScaleStatus extensionsV1beta1ScaleStatus = (ExtensionsV1beta1ScaleStatus) o; - return Objects.equals(this.replicas, extensionsV1beta1ScaleStatus.replicas) && - Objects.equals(this.selector, extensionsV1beta1ScaleStatus.selector) && - Objects.equals(this.targetSelector, extensionsV1beta1ScaleStatus.targetSelector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas, selector, targetSelector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +142,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1ScaleStatus {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" targetSelector: ").append(toIndentedString(targetSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptions.java index b80af7d3ec..bc4845808a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead. */ @ApiModel(description = "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. Deprecated: use SupplementalGroupsStrategyOptions from policy API Group instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class ExtensionsV1beta1SupplementalGroupsStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public ExtensionsV1beta1SupplementalGroupsStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public ExtensionsV1beta1SupplementalGroupsStrategyOptions addRangesItem(Extensio * ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public ExtensionsV1beta1SupplementalGroupsStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -73,11 +86,15 @@ public ExtensionsV1beta1SupplementalGroupsStrategyOptions rule(String rule) { * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. * @return rule **/ + @javax.annotation.Nullable @ApiModelProperty(value = "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +102,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ExtensionsV1beta1SupplementalGroupsStrategyOptions extensionsV1beta1SupplementalGroupsStrategyOptions = (ExtensionsV1beta1SupplementalGroupsStrategyOptions) o; - return Objects.equals(this.ranges, extensionsV1beta1SupplementalGroupsStrategyOptions.ranges) && - Objects.equals(this.rule, extensionsV1beta1SupplementalGroupsStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +115,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ExtensionsV1beta1SupplementalGroupsStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPath.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPath.java index 1170645f1f..a278c3907a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPath.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,42 @@ * HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend. */ @ApiModel(description = "HTTPIngressPath associates a path regex with a backend. Incoming urls matching the path are forwarded to the backend.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1HTTPIngressPath { - @SerializedName("backend") - private NetworkingV1beta1IngressBackend backend = null; + public static final String SERIALIZED_NAME_BACKEND = "backend"; + @SerializedName(SERIALIZED_NAME_BACKEND) + private NetworkingV1beta1IngressBackend backend; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; public NetworkingV1beta1HTTPIngressPath backend(NetworkingV1beta1IngressBackend backend) { + this.backend = backend; return this; } /** - * Backend defines the referenced service endpoint to which the traffic will be forwarded to. + * Get backend * @return backend **/ - @ApiModelProperty(required = true, value = "Backend defines the referenced service endpoint to which the traffic will be forwarded to.") + @ApiModelProperty(required = true, value = "") + public NetworkingV1beta1IngressBackend getBackend() { return backend; } + + public void setBackend(NetworkingV1beta1IngressBackend backend) { this.backend = backend; } + public NetworkingV1beta1HTTPIngressPath path(String path) { + this.path = path; return this; } @@ -63,11 +75,15 @@ public NetworkingV1beta1HTTPIngressPath path(String path) { * Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend. * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Path is an extended POSIX regex as defined by IEEE Std 1003.1, (i.e this follows the egrep/unix syntax, not the perl syntax) matched against the path of an incoming request. Currently it can contain characters disallowed from the conventional \"path\" part of a URL as defined by RFC 3986. Paths must begin with a '/'. If unspecified, the path defaults to a catch all sending traffic to the backend.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } @@ -75,20 +91,12 @@ public void setPath(String path) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1HTTPIngressPath networkingV1beta1HTTPIngressPath = (NetworkingV1beta1HTTPIngressPath) o; - return Objects.equals(this.backend, networkingV1beta1HTTPIngressPath.backend) && - Objects.equals(this.path, networkingV1beta1HTTPIngressPath.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(backend, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1HTTPIngressPath {\n"); - sb.append(" backend: ").append(toIndentedString(backend)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValue.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValue.java index b3c29768f5..8a4b69b259 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValue.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValue.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http://<host>/<path>?<searchpart> -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'. */ @ApiModel(description = "HTTPIngressRuleValue is a list of http selectors pointing to backends. In the example: http:///? -> backend where where parts of the url correspond to RFC 3986, this resource will be used to match against everything after the last '/' and before the first '?' or '#'.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1HTTPIngressRuleValue { - @SerializedName("paths") + public static final String SERIALIZED_NAME_PATHS = "paths"; + @SerializedName(SERIALIZED_NAME_PATHS) private List paths = new ArrayList(); + public NetworkingV1beta1HTTPIngressRuleValue paths(List paths) { + this.paths = paths; return this; } @@ -50,10 +56,13 @@ public NetworkingV1beta1HTTPIngressRuleValue addPathsItem(NetworkingV1beta1HTTPI * @return paths **/ @ApiModelProperty(required = true, value = "A collection of paths that map requests to backends.") + public List getPaths() { return paths; } + + public void setPaths(List paths) { this.paths = paths; } @@ -61,19 +70,12 @@ public void setPaths(List paths) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1HTTPIngressRuleValue networkingV1beta1HTTPIngressRuleValue = (NetworkingV1beta1HTTPIngressRuleValue) o; - return Objects.equals(this.paths, networkingV1beta1HTTPIngressRuleValue.paths); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(paths); + return HashCodeBuilder.reflectionHashCode(this); } @@ -81,7 +83,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1HTTPIngressRuleValue {\n"); - sb.append(" paths: ").append(toIndentedString(paths)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1Ingress.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1Ingress.java index ba027637fa..9b74669690 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1Ingress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1Ingress.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc. */ @ApiModel(description = "Ingress is a collection of rules that allow inbound connections to reach the endpoints defined by a backend. An Ingress can be configured to give services externally-reachable urls, load balance traffic, terminate SSL, offer name based virtual hosting etc.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1Ingress { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private NetworkingV1beta1IngressSpec spec; - @SerializedName("spec") - private NetworkingV1beta1IngressSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private NetworkingV1beta1IngressStatus status; - @SerializedName("status") - private NetworkingV1beta1IngressStatus status = null; public NetworkingV1beta1Ingress apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public NetworkingV1beta1Ingress apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public NetworkingV1beta1Ingress kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public NetworkingV1beta1Ingress kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public NetworkingV1beta1Ingress metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public NetworkingV1beta1Ingress spec(NetworkingV1beta1IngressSpec spec) { + this.spec = spec; return this; } /** - * Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec is the desired state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public NetworkingV1beta1IngressSpec getSpec() { return spec; } + + public void setSpec(NetworkingV1beta1IngressSpec spec) { this.spec = spec; } + public NetworkingV1beta1Ingress status(NetworkingV1beta1IngressStatus status) { + this.status = status; return this; } /** - * Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the current state of the Ingress. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public NetworkingV1beta1IngressStatus getStatus() { return status; } + + public void setStatus(NetworkingV1beta1IngressStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(NetworkingV1beta1IngressStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1Ingress networkingV1beta1Ingress = (NetworkingV1beta1Ingress) o; - return Objects.equals(this.apiVersion, networkingV1beta1Ingress.apiVersion) && - Objects.equals(this.kind, networkingV1beta1Ingress.kind) && - Objects.equals(this.metadata, networkingV1beta1Ingress.metadata) && - Objects.equals(this.spec, networkingV1beta1Ingress.spec) && - Objects.equals(this.status, networkingV1beta1Ingress.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1Ingress {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackend.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackend.java index 45ca9f7e76..8e6885ae5e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackend.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackend.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * IngressBackend describes all endpoints for a given service and port. */ @ApiModel(description = "IngressBackend describes all endpoints for a given service and port.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1IngressBackend { - @SerializedName("serviceName") - private String serviceName = null; + public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; + @SerializedName(SERIALIZED_NAME_SERVICE_NAME) + private String serviceName; + + public static final String SERIALIZED_NAME_SERVICE_PORT = "servicePort"; + @SerializedName(SERIALIZED_NAME_SERVICE_PORT) + private IntOrString servicePort; - @SerializedName("servicePort") - private IntOrString servicePort = null; public NetworkingV1beta1IngressBackend serviceName(String serviceName) { + this.serviceName = serviceName; return this; } @@ -46,28 +53,36 @@ public NetworkingV1beta1IngressBackend serviceName(String serviceName) { * @return serviceName **/ @ApiModelProperty(required = true, value = "Specifies the name of the referenced service.") + public String getServiceName() { return serviceName; } + + public void setServiceName(String serviceName) { this.serviceName = serviceName; } + public NetworkingV1beta1IngressBackend servicePort(IntOrString servicePort) { + this.servicePort = servicePort; return this; } /** - * Specifies the port of the referenced service. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return servicePort **/ - @ApiModelProperty(required = true, value = "Specifies the port of the referenced service.") + @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getServicePort() { return servicePort; } + + public void setServicePort(IntOrString servicePort) { this.servicePort = servicePort; } @@ -75,20 +90,12 @@ public void setServicePort(IntOrString servicePort) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1IngressBackend networkingV1beta1IngressBackend = (NetworkingV1beta1IngressBackend) o; - return Objects.equals(this.serviceName, networkingV1beta1IngressBackend.serviceName) && - Objects.equals(this.servicePort, networkingV1beta1IngressBackend.servicePort); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(serviceName, servicePort); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1IngressBackend {\n"); - sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); sb.append(" servicePort: ").append(toIndentedString(servicePort)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressList.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressList.java index 6b930504d9..cd6f5e40b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * IngressList is a collection of Ingress. */ @ApiModel(description = "IngressList is a collection of Ingress.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1IngressList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public NetworkingV1beta1IngressList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public NetworkingV1beta1IngressList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public NetworkingV1beta1IngressList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public NetworkingV1beta1IngressList addItemsItem(NetworkingV1beta1Ingress itemsI * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Ingress.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public NetworkingV1beta1IngressList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public NetworkingV1beta1IngressList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public NetworkingV1beta1IngressList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1IngressList networkingV1beta1IngressList = (NetworkingV1beta1IngressList) o; - return Objects.equals(this.apiVersion, networkingV1beta1IngressList.apiVersion) && - Objects.equals(this.items, networkingV1beta1IngressList.items) && - Objects.equals(this.kind, networkingV1beta1IngressList.kind) && - Objects.equals(this.metadata, networkingV1beta1IngressList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1IngressList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressRule.java index e810be1656..3ec16830dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue. */ @ApiModel(description = "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1IngressRule { - @SerializedName("host") - private String host = null; + public static final String SERIALIZED_NAME_HOST = "host"; + @SerializedName(SERIALIZED_NAME_HOST) + private String host; + + public static final String SERIALIZED_NAME_HTTP = "http"; + @SerializedName(SERIALIZED_NAME_HTTP) + private NetworkingV1beta1HTTPIngressRuleValue http; - @SerializedName("http") - private NetworkingV1beta1HTTPIngressRuleValue http = null; public NetworkingV1beta1IngressRule host(String host) { + this.host = host; return this; } @@ -45,16 +52,22 @@ public NetworkingV1beta1IngressRule host(String host) { * Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue. * @return host **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Host is the fully qualified domain name of a network host, as defined by RFC 3986. Note the following deviations from the \"host\" part of the URI as defined in the RFC: 1. IPs are not allowed. Currently an IngressRuleValue can only apply to the IP in the Spec of the parent Ingress. 2. The `:` delimiter is not respected because ports are not allowed. Currently the port of an Ingress is implicitly :80 for http and :443 for https. Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.") + public String getHost() { return host; } + + public void setHost(String host) { this.host = host; } + public NetworkingV1beta1IngressRule http(NetworkingV1beta1HTTPIngressRuleValue http) { + this.http = http; return this; } @@ -63,11 +76,15 @@ public NetworkingV1beta1IngressRule http(NetworkingV1beta1HTTPIngressRuleValue h * Get http * @return http **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public NetworkingV1beta1HTTPIngressRuleValue getHttp() { return http; } + + public void setHttp(NetworkingV1beta1HTTPIngressRuleValue http) { this.http = http; } @@ -75,20 +92,12 @@ public void setHttp(NetworkingV1beta1HTTPIngressRuleValue http) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1IngressRule networkingV1beta1IngressRule = (NetworkingV1beta1IngressRule) o; - return Objects.equals(this.host, networkingV1beta1IngressRule.host) && - Objects.equals(this.http, networkingV1beta1IngressRule.http); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(host, http); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1IngressRule {\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" http: ").append(toIndentedString(http)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpec.java index 4447fc2789..630283af46 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,36 +35,47 @@ * IngressSpec describes the Ingress the user wishes to exist. */ @ApiModel(description = "IngressSpec describes the Ingress the user wishes to exist.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1IngressSpec { - @SerializedName("backend") - private NetworkingV1beta1IngressBackend backend = null; + public static final String SERIALIZED_NAME_BACKEND = "backend"; + @SerializedName(SERIALIZED_NAME_BACKEND) + private NetworkingV1beta1IngressBackend backend; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; - @SerializedName("tls") + public static final String SERIALIZED_NAME_TLS = "tls"; + @SerializedName(SERIALIZED_NAME_TLS) private List tls = null; + public NetworkingV1beta1IngressSpec backend(NetworkingV1beta1IngressBackend backend) { + this.backend = backend; return this; } /** - * A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default. + * Get backend * @return backend **/ - @ApiModelProperty(value = "A default backend capable of servicing requests that don't match any rule. At least one of 'backend' or 'rules' must be specified. This field is optional to allow the loadbalancer controller or defaulting logic to specify a global default.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public NetworkingV1beta1IngressBackend getBackend() { return backend; } + + public void setBackend(NetworkingV1beta1IngressBackend backend) { this.backend = backend; } + public NetworkingV1beta1IngressSpec rules(List rules) { + this.rules = rules; return this; } @@ -78,16 +92,22 @@ public NetworkingV1beta1IngressSpec addRulesItem(NetworkingV1beta1IngressRule ru * A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend. * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of host rules used to configure the Ingress. If unspecified, or no rule matches, all traffic is sent to the default backend.") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } + public NetworkingV1beta1IngressSpec tls(List tls) { + this.tls = tls; return this; } @@ -104,11 +124,15 @@ public NetworkingV1beta1IngressSpec addTlsItem(NetworkingV1beta1IngressTLS tlsIt * TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI. * @return tls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "TLS configuration. Currently the Ingress only supports a single TLS port, 443. If multiple members of this list specify different hosts, they will be multiplexed on the same port according to the hostname specified through the SNI TLS extension, if the ingress controller fulfilling the ingress supports SNI.") + public List getTls() { return tls; } + + public void setTls(List tls) { this.tls = tls; } @@ -116,21 +140,12 @@ public void setTls(List tls) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1IngressSpec networkingV1beta1IngressSpec = (NetworkingV1beta1IngressSpec) o; - return Objects.equals(this.backend, networkingV1beta1IngressSpec.backend) && - Objects.equals(this.rules, networkingV1beta1IngressSpec.rules) && - Objects.equals(this.tls, networkingV1beta1IngressSpec.tls); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(backend, rules, tls); + return HashCodeBuilder.reflectionHashCode(this); } @@ -138,7 +153,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1IngressSpec {\n"); - sb.append(" backend: ").append(toIndentedString(backend)).append("\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); sb.append(" tls: ").append(toIndentedString(tls)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatus.java index 8764258977..9154081f54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * IngressStatus describe the current state of the Ingress. */ @ApiModel(description = "IngressStatus describe the current state of the Ingress.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1IngressStatus { - @SerializedName("loadBalancer") - private V1LoadBalancerStatus loadBalancer = null; + public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; + @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) + private V1LoadBalancerStatus loadBalancer; + public NetworkingV1beta1IngressStatus loadBalancer(V1LoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } /** - * LoadBalancer contains the current status of the load-balancer. + * Get loadBalancer * @return loadBalancer **/ - @ApiModelProperty(value = "LoadBalancer contains the current status of the load-balancer.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LoadBalancerStatus getLoadBalancer() { return loadBalancer; } + + public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; } @@ -54,19 +64,12 @@ public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1IngressStatus networkingV1beta1IngressStatus = (NetworkingV1beta1IngressStatus) o; - return Objects.equals(this.loadBalancer, networkingV1beta1IngressStatus.loadBalancer); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(loadBalancer); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1IngressStatus {\n"); - sb.append(" loadBalancer: ").append(toIndentedString(loadBalancer)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLS.java b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLS.java index fa5b68d682..c938b2965e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLS.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLS.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * IngressTLS describes the transport layer security associated with an Ingress. */ @ApiModel(description = "IngressTLS describes the transport layer security associated with an Ingress.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class NetworkingV1beta1IngressTLS { - @SerializedName("hosts") + public static final String SERIALIZED_NAME_HOSTS = "hosts"; + @SerializedName(SERIALIZED_NAME_HOSTS) private List hosts = null; - @SerializedName("secretName") - private String secretName = null; + public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; + @SerializedName(SERIALIZED_NAME_SECRET_NAME) + private String secretName; + public NetworkingV1beta1IngressTLS hosts(List hosts) { + this.hosts = hosts; return this; } @@ -54,16 +61,22 @@ public NetworkingV1beta1IngressTLS addHostsItem(String hostsItem) { * Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified. * @return hosts **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Hosts are a list of hosts included in the TLS certificate. The values in this list must match the name/s used in the tlsSecret. Defaults to the wildcard host setting for the loadbalancer controller fulfilling this Ingress, if left unspecified.") + public List getHosts() { return hosts; } + + public void setHosts(List hosts) { this.hosts = hosts; } + public NetworkingV1beta1IngressTLS secretName(String secretName) { + this.secretName = secretName; return this; } @@ -72,11 +85,15 @@ public NetworkingV1beta1IngressTLS secretName(String secretName) { * SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing. * @return secretName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "SecretName is the name of the secret used to terminate SSL traffic on 443. Field is left optional to allow SSL routing based on SNI hostname alone. If the SNI host in a listener conflicts with the \"Host\" header field used by an IngressRule, the SNI host is used for termination and value of the Host header is used for routing.") + public String getSecretName() { return secretName; } + + public void setSecretName(String secretName) { this.secretName = secretName; } @@ -84,20 +101,12 @@ public void setSecretName(String secretName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - NetworkingV1beta1IngressTLS networkingV1beta1IngressTLS = (NetworkingV1beta1IngressTLS) o; - return Objects.equals(this.hosts, networkingV1beta1IngressTLS.hosts) && - Objects.equals(this.secretName, networkingV1beta1IngressTLS.secretName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hosts, secretName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class NetworkingV1beta1IngressTLS {\n"); - sb.append(" hosts: ").append(toIndentedString(hosts)).append("\n"); sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriver.java index a4461e94cd..fb9aeeb7bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriver.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used. */ @ApiModel(description = "AllowedCSIDriver represents a single inline CSI Driver that is allowed to be used.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1AllowedCSIDriver { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + public PolicyV1beta1AllowedCSIDriver name(String name) { + this.name = name; return this; } @@ -42,10 +48,13 @@ public PolicyV1beta1AllowedCSIDriver name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the registered name of the CSI driver") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -53,19 +62,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1AllowedCSIDriver policyV1beta1AllowedCSIDriver = (PolicyV1beta1AllowedCSIDriver) o; - return Objects.equals(this.name, policyV1beta1AllowedCSIDriver.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1AllowedCSIDriver {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolume.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolume.java index 8584b5d2b6..b889bcd48c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolume.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * AllowedFlexVolume represents a single Flexvolume that is allowed to be used. */ @ApiModel(description = "AllowedFlexVolume represents a single Flexvolume that is allowed to be used.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1AllowedFlexVolume { - @SerializedName("driver") - private String driver = null; + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; + public PolicyV1beta1AllowedFlexVolume driver(String driver) { + this.driver = driver; return this; } @@ -42,10 +48,13 @@ public PolicyV1beta1AllowedFlexVolume driver(String driver) { * @return driver **/ @ApiModelProperty(required = true, value = "driver is the name of the Flexvolume driver.") + public String getDriver() { return driver; } + + public void setDriver(String driver) { this.driver = driver; } @@ -53,19 +62,12 @@ public void setDriver(String driver) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1AllowedFlexVolume policyV1beta1AllowedFlexVolume = (PolicyV1beta1AllowedFlexVolume) o; - return Objects.equals(this.driver, policyV1beta1AllowedFlexVolume.driver); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(driver); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1AllowedFlexVolume {\n"); - sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPath.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPath.java index 2754456477..a7fb37285f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPath.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined. */ @ApiModel(description = "AllowedHostPath defines the host volume conditions that will be enabled by a policy for pods to use. It requires the path prefix to be defined.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1AllowedHostPath { - @SerializedName("pathPrefix") - private String pathPrefix = null; + public static final String SERIALIZED_NAME_PATH_PREFIX = "pathPrefix"; + @SerializedName(SERIALIZED_NAME_PATH_PREFIX) + private String pathPrefix; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public PolicyV1beta1AllowedHostPath pathPrefix(String pathPrefix) { + this.pathPrefix = pathPrefix; return this; } @@ -44,16 +51,22 @@ public PolicyV1beta1AllowedHostPath pathPrefix(String pathPrefix) { * pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo` * @return pathPrefix **/ + @javax.annotation.Nullable @ApiModelProperty(value = "pathPrefix is the path prefix that the host volume must match. It does not support `*`. Trailing slashes are trimmed when validating the path prefix with a host path. Examples: `/foo` would allow `/foo`, `/foo/` and `/foo/bar` `/foo` would not allow `/food` or `/etc/foo`") + public String getPathPrefix() { return pathPrefix; } + + public void setPathPrefix(String pathPrefix) { this.pathPrefix = pathPrefix; } + public PolicyV1beta1AllowedHostPath readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -62,11 +75,15 @@ public PolicyV1beta1AllowedHostPath readOnly(Boolean readOnly) { * when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "when set to true, will allow host volumes matching the pathPrefix only if all volume mounts are readOnly.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -74,20 +91,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1AllowedHostPath policyV1beta1AllowedHostPath = (PolicyV1beta1AllowedHostPath) o; - return Objects.equals(this.pathPrefix, policyV1beta1AllowedHostPath.pathPrefix) && - Objects.equals(this.readOnly, policyV1beta1AllowedHostPath.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(pathPrefix, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1AllowedHostPath {\n"); - sb.append(" pathPrefix: ").append(toIndentedString(pathPrefix)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptions.java index 4cc4e4b12a..186ea59ae4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * FSGroupStrategyOptions defines the strategy type and options used to create the strategy. */ @ApiModel(description = "FSGroupStrategyOptions defines the strategy type and options used to create the strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1FSGroupStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public PolicyV1beta1FSGroupStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public PolicyV1beta1FSGroupStrategyOptions addRangesItem(PolicyV1beta1IDRange ra * ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of fs groups. If you would like to force a single fs group then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public PolicyV1beta1FSGroupStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -73,11 +86,15 @@ public PolicyV1beta1FSGroupStrategyOptions rule(String rule) { * rule is the strategy that will dictate what FSGroup is used in the SecurityContext. * @return rule **/ + @javax.annotation.Nullable @ApiModelProperty(value = "rule is the strategy that will dictate what FSGroup is used in the SecurityContext.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +102,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1FSGroupStrategyOptions policyV1beta1FSGroupStrategyOptions = (PolicyV1beta1FSGroupStrategyOptions) o; - return Objects.equals(this.ranges, policyV1beta1FSGroupStrategyOptions.ranges) && - Objects.equals(this.rule, policyV1beta1FSGroupStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +115,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1FSGroupStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1HostPortRange.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1HostPortRange.java index 3977b84c8c..4c8f2f9935 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1HostPortRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1HostPortRange.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined. */ @ApiModel(description = "HostPortRange defines a range of host ports that will be enabled by a policy for pods to use. It requires both the start and end to be defined.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1HostPortRange { - @SerializedName("max") - private Integer max = null; + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Integer max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Integer min; - @SerializedName("min") - private Integer min = null; public PolicyV1beta1HostPortRange max(Integer max) { + this.max = max; return this; } @@ -45,15 +52,20 @@ public PolicyV1beta1HostPortRange max(Integer max) { * @return max **/ @ApiModelProperty(required = true, value = "max is the end of the range, inclusive.") + public Integer getMax() { return max; } + + public void setMax(Integer max) { this.max = max; } + public PolicyV1beta1HostPortRange min(Integer min) { + this.min = min; return this; } @@ -63,10 +75,13 @@ public PolicyV1beta1HostPortRange min(Integer min) { * @return min **/ @ApiModelProperty(required = true, value = "min is the start of the range, inclusive.") + public Integer getMin() { return min; } + + public void setMin(Integer min) { this.min = min; } @@ -74,20 +89,12 @@ public void setMin(Integer min) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1HostPortRange policyV1beta1HostPortRange = (PolicyV1beta1HostPortRange) o; - return Objects.equals(this.max, policyV1beta1HostPortRange.max) && - Objects.equals(this.min, policyV1beta1HostPortRange.min); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(max, min); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1HostPortRange {\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1IDRange.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1IDRange.java index cf16237f6d..0737f43a06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1IDRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1IDRange.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * IDRange provides a min/max of an allowed range of IDs. */ @ApiModel(description = "IDRange provides a min/max of an allowed range of IDs.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1IDRange { - @SerializedName("max") - private Long max = null; + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) + private Long max; + + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) + private Long min; - @SerializedName("min") - private Long min = null; public PolicyV1beta1IDRange max(Long max) { + this.max = max; return this; } @@ -45,15 +52,20 @@ public PolicyV1beta1IDRange max(Long max) { * @return max **/ @ApiModelProperty(required = true, value = "max is the end of the range, inclusive.") + public Long getMax() { return max; } + + public void setMax(Long max) { this.max = max; } + public PolicyV1beta1IDRange min(Long min) { + this.min = min; return this; } @@ -63,10 +75,13 @@ public PolicyV1beta1IDRange min(Long min) { * @return min **/ @ApiModelProperty(required = true, value = "min is the start of the range, inclusive.") + public Long getMin() { return min; } + + public void setMin(Long min) { this.min = min; } @@ -74,20 +89,12 @@ public void setMin(Long min) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1IDRange policyV1beta1IDRange = (PolicyV1beta1IDRange) o; - return Objects.equals(this.max, policyV1beta1IDRange.max) && - Objects.equals(this.min, policyV1beta1IDRange.min); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(max, min); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1IDRange {\n"); - sb.append(" max: ").append(toIndentedString(max)).append("\n"); sb.append(" min: ").append(toIndentedString(min)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicy.java index e5afffdbe3..530ced65bc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container. */ @ApiModel(description = "PodSecurityPolicy governs the ability to make requests that affect the Security Context that will be applied to a pod and container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1PodSecurityPolicy { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private PolicyV1beta1PodSecurityPolicySpec spec; - @SerializedName("spec") - private PolicyV1beta1PodSecurityPolicySpec spec = null; public PolicyV1beta1PodSecurityPolicy apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public PolicyV1beta1PodSecurityPolicy apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public PolicyV1beta1PodSecurityPolicy kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public PolicyV1beta1PodSecurityPolicy kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public PolicyV1beta1PodSecurityPolicy metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public PolicyV1beta1PodSecurityPolicy spec(PolicyV1beta1PodSecurityPolicySpec spec) { + this.spec = spec; return this; } /** - * spec defines the policy enforced. + * Get spec * @return spec **/ - @ApiModelProperty(value = "spec defines the policy enforced.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PolicyV1beta1PodSecurityPolicySpec getSpec() { return spec; } + + public void setSpec(PolicyV1beta1PodSecurityPolicySpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(PolicyV1beta1PodSecurityPolicySpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1PodSecurityPolicy policyV1beta1PodSecurityPolicy = (PolicyV1beta1PodSecurityPolicy) o; - return Objects.equals(this.apiVersion, policyV1beta1PodSecurityPolicy.apiVersion) && - Objects.equals(this.kind, policyV1beta1PodSecurityPolicy.kind) && - Objects.equals(this.metadata, policyV1beta1PodSecurityPolicy.metadata) && - Objects.equals(this.spec, policyV1beta1PodSecurityPolicy.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1PodSecurityPolicy {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyList.java index 46e7626038..67502cc47a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PodSecurityPolicyList is a list of PodSecurityPolicy objects. */ @ApiModel(description = "PodSecurityPolicyList is a list of PodSecurityPolicy objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1PodSecurityPolicyList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public PolicyV1beta1PodSecurityPolicyList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public PolicyV1beta1PodSecurityPolicyList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public PolicyV1beta1PodSecurityPolicyList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public PolicyV1beta1PodSecurityPolicyList addItemsItem(PolicyV1beta1PodSecurityP * @return items **/ @ApiModelProperty(required = true, value = "items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public PolicyV1beta1PodSecurityPolicyList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public PolicyV1beta1PodSecurityPolicyList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public PolicyV1beta1PodSecurityPolicyList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1PodSecurityPolicyList policyV1beta1PodSecurityPolicyList = (PolicyV1beta1PodSecurityPolicyList) o; - return Objects.equals(this.apiVersion, policyV1beta1PodSecurityPolicyList.apiVersion) && - Objects.equals(this.items, policyV1beta1PodSecurityPolicyList.items) && - Objects.equals(this.kind, policyV1beta1PodSecurityPolicyList.kind) && - Objects.equals(this.metadata, policyV1beta1PodSecurityPolicyList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1PodSecurityPolicyList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpec.java index 377cbd2e13..9be08902eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,6 +29,7 @@ import io.kubernetes.client.models.PolicyV1beta1HostPortRange; import io.kubernetes.client.models.PolicyV1beta1RunAsGroupStrategyOptions; import io.kubernetes.client.models.PolicyV1beta1RunAsUserStrategyOptions; +import io.kubernetes.client.models.PolicyV1beta1RuntimeClassStrategyOptions; import io.kubernetes.client.models.PolicyV1beta1SELinuxStrategyOptions; import io.kubernetes.client.models.PolicyV1beta1SupplementalGroupsStrategyOptions; import io.swagger.annotations.ApiModel; @@ -38,78 +42,107 @@ * PodSecurityPolicySpec defines the policy enforced. */ @ApiModel(description = "PodSecurityPolicySpec defines the policy enforced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1PodSecurityPolicySpec { - @SerializedName("allowPrivilegeEscalation") - private Boolean allowPrivilegeEscalation = null; + public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; + @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) + private Boolean allowPrivilegeEscalation; - @SerializedName("allowedCSIDrivers") + public static final String SERIALIZED_NAME_ALLOWED_C_S_I_DRIVERS = "allowedCSIDrivers"; + @SerializedName(SERIALIZED_NAME_ALLOWED_C_S_I_DRIVERS) private List allowedCSIDrivers = null; - @SerializedName("allowedCapabilities") + public static final String SERIALIZED_NAME_ALLOWED_CAPABILITIES = "allowedCapabilities"; + @SerializedName(SERIALIZED_NAME_ALLOWED_CAPABILITIES) private List allowedCapabilities = null; - @SerializedName("allowedFlexVolumes") + public static final String SERIALIZED_NAME_ALLOWED_FLEX_VOLUMES = "allowedFlexVolumes"; + @SerializedName(SERIALIZED_NAME_ALLOWED_FLEX_VOLUMES) private List allowedFlexVolumes = null; - @SerializedName("allowedHostPaths") + public static final String SERIALIZED_NAME_ALLOWED_HOST_PATHS = "allowedHostPaths"; + @SerializedName(SERIALIZED_NAME_ALLOWED_HOST_PATHS) private List allowedHostPaths = null; - @SerializedName("allowedProcMountTypes") + public static final String SERIALIZED_NAME_ALLOWED_PROC_MOUNT_TYPES = "allowedProcMountTypes"; + @SerializedName(SERIALIZED_NAME_ALLOWED_PROC_MOUNT_TYPES) private List allowedProcMountTypes = null; - @SerializedName("allowedUnsafeSysctls") + public static final String SERIALIZED_NAME_ALLOWED_UNSAFE_SYSCTLS = "allowedUnsafeSysctls"; + @SerializedName(SERIALIZED_NAME_ALLOWED_UNSAFE_SYSCTLS) private List allowedUnsafeSysctls = null; - @SerializedName("defaultAddCapabilities") + public static final String SERIALIZED_NAME_DEFAULT_ADD_CAPABILITIES = "defaultAddCapabilities"; + @SerializedName(SERIALIZED_NAME_DEFAULT_ADD_CAPABILITIES) private List defaultAddCapabilities = null; - @SerializedName("defaultAllowPrivilegeEscalation") - private Boolean defaultAllowPrivilegeEscalation = null; + public static final String SERIALIZED_NAME_DEFAULT_ALLOW_PRIVILEGE_ESCALATION = "defaultAllowPrivilegeEscalation"; + @SerializedName(SERIALIZED_NAME_DEFAULT_ALLOW_PRIVILEGE_ESCALATION) + private Boolean defaultAllowPrivilegeEscalation; - @SerializedName("forbiddenSysctls") + public static final String SERIALIZED_NAME_FORBIDDEN_SYSCTLS = "forbiddenSysctls"; + @SerializedName(SERIALIZED_NAME_FORBIDDEN_SYSCTLS) private List forbiddenSysctls = null; - @SerializedName("fsGroup") - private PolicyV1beta1FSGroupStrategyOptions fsGroup = null; + public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; + @SerializedName(SERIALIZED_NAME_FS_GROUP) + private PolicyV1beta1FSGroupStrategyOptions fsGroup; - @SerializedName("hostIPC") - private Boolean hostIPC = null; + public static final String SERIALIZED_NAME_HOST_I_P_C = "hostIPC"; + @SerializedName(SERIALIZED_NAME_HOST_I_P_C) + private Boolean hostIPC; - @SerializedName("hostNetwork") - private Boolean hostNetwork = null; + public static final String SERIALIZED_NAME_HOST_NETWORK = "hostNetwork"; + @SerializedName(SERIALIZED_NAME_HOST_NETWORK) + private Boolean hostNetwork; - @SerializedName("hostPID") - private Boolean hostPID = null; + public static final String SERIALIZED_NAME_HOST_P_I_D = "hostPID"; + @SerializedName(SERIALIZED_NAME_HOST_P_I_D) + private Boolean hostPID; - @SerializedName("hostPorts") + public static final String SERIALIZED_NAME_HOST_PORTS = "hostPorts"; + @SerializedName(SERIALIZED_NAME_HOST_PORTS) private List hostPorts = null; - @SerializedName("privileged") - private Boolean privileged = null; + public static final String SERIALIZED_NAME_PRIVILEGED = "privileged"; + @SerializedName(SERIALIZED_NAME_PRIVILEGED) + private Boolean privileged; - @SerializedName("readOnlyRootFilesystem") - private Boolean readOnlyRootFilesystem = null; + public static final String SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM = "readOnlyRootFilesystem"; + @SerializedName(SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM) + private Boolean readOnlyRootFilesystem; - @SerializedName("requiredDropCapabilities") + public static final String SERIALIZED_NAME_REQUIRED_DROP_CAPABILITIES = "requiredDropCapabilities"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DROP_CAPABILITIES) private List requiredDropCapabilities = null; - @SerializedName("runAsGroup") - private PolicyV1beta1RunAsGroupStrategyOptions runAsGroup = null; + public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; + @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) + private PolicyV1beta1RunAsGroupStrategyOptions runAsGroup; + + public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; + @SerializedName(SERIALIZED_NAME_RUN_AS_USER) + private PolicyV1beta1RunAsUserStrategyOptions runAsUser; - @SerializedName("runAsUser") - private PolicyV1beta1RunAsUserStrategyOptions runAsUser = null; + public static final String SERIALIZED_NAME_RUNTIME_CLASS = "runtimeClass"; + @SerializedName(SERIALIZED_NAME_RUNTIME_CLASS) + private PolicyV1beta1RuntimeClassStrategyOptions runtimeClass; - @SerializedName("seLinux") - private PolicyV1beta1SELinuxStrategyOptions seLinux = null; + public static final String SERIALIZED_NAME_SE_LINUX = "seLinux"; + @SerializedName(SERIALIZED_NAME_SE_LINUX) + private PolicyV1beta1SELinuxStrategyOptions seLinux; - @SerializedName("supplementalGroups") - private PolicyV1beta1SupplementalGroupsStrategyOptions supplementalGroups = null; + public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) + private PolicyV1beta1SupplementalGroupsStrategyOptions supplementalGroups; - @SerializedName("volumes") + public static final String SERIALIZED_NAME_VOLUMES = "volumes"; + @SerializedName(SERIALIZED_NAME_VOLUMES) private List volumes = null; + public PolicyV1beta1PodSecurityPolicySpec allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @@ -118,16 +151,22 @@ public PolicyV1beta1PodSecurityPolicySpec allowPrivilegeEscalation(Boolean allow * allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true. * @return allowPrivilegeEscalation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowPrivilegeEscalation determines if a pod can request to allow privilege escalation. If unspecified, defaults to true.") - public Boolean isAllowPrivilegeEscalation() { + + public Boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation; } + + public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { this.allowPrivilegeEscalation = allowPrivilegeEscalation; } + public PolicyV1beta1PodSecurityPolicySpec allowedCSIDrivers(List allowedCSIDrivers) { + this.allowedCSIDrivers = allowedCSIDrivers; return this; } @@ -141,19 +180,25 @@ public PolicyV1beta1PodSecurityPolicySpec addAllowedCSIDriversItem(PolicyV1beta1 } /** - * AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec. + * AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate. * @return allowedCSIDrivers **/ - @ApiModelProperty(value = "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.") + @javax.annotation.Nullable + @ApiModelProperty(value = "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.") + public List getAllowedCSIDrivers() { return allowedCSIDrivers; } + + public void setAllowedCSIDrivers(List allowedCSIDrivers) { this.allowedCSIDrivers = allowedCSIDrivers; } + public PolicyV1beta1PodSecurityPolicySpec allowedCapabilities(List allowedCapabilities) { + this.allowedCapabilities = allowedCapabilities; return this; } @@ -170,16 +215,22 @@ public PolicyV1beta1PodSecurityPolicySpec addAllowedCapabilitiesItem(String allo * allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities. * @return allowedCapabilities **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedCapabilities is a list of capabilities that can be requested to add to the container. Capabilities in this field may be added at the pod author's discretion. You must not list a capability in both allowedCapabilities and requiredDropCapabilities.") + public List getAllowedCapabilities() { return allowedCapabilities; } + + public void setAllowedCapabilities(List allowedCapabilities) { this.allowedCapabilities = allowedCapabilities; } + public PolicyV1beta1PodSecurityPolicySpec allowedFlexVolumes(List allowedFlexVolumes) { + this.allowedFlexVolumes = allowedFlexVolumes; return this; } @@ -196,16 +247,22 @@ public PolicyV1beta1PodSecurityPolicySpec addAllowedFlexVolumesItem(PolicyV1beta * allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field. * @return allowedFlexVolumes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedFlexVolumes is a whitelist of allowed Flexvolumes. Empty or nil indicates that all Flexvolumes may be used. This parameter is effective only when the usage of the Flexvolumes is allowed in the \"volumes\" field.") + public List getAllowedFlexVolumes() { return allowedFlexVolumes; } + + public void setAllowedFlexVolumes(List allowedFlexVolumes) { this.allowedFlexVolumes = allowedFlexVolumes; } + public PolicyV1beta1PodSecurityPolicySpec allowedHostPaths(List allowedHostPaths) { + this.allowedHostPaths = allowedHostPaths; return this; } @@ -222,16 +279,22 @@ public PolicyV1beta1PodSecurityPolicySpec addAllowedHostPathsItem(PolicyV1beta1A * allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used. * @return allowedHostPaths **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedHostPaths is a white list of allowed host paths. Empty indicates that all host paths may be used.") + public List getAllowedHostPaths() { return allowedHostPaths; } + + public void setAllowedHostPaths(List allowedHostPaths) { this.allowedHostPaths = allowedHostPaths; } + public PolicyV1beta1PodSecurityPolicySpec allowedProcMountTypes(List allowedProcMountTypes) { + this.allowedProcMountTypes = allowedProcMountTypes; return this; } @@ -248,16 +311,22 @@ public PolicyV1beta1PodSecurityPolicySpec addAllowedProcMountTypesItem(String al * AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled. * @return allowedProcMountTypes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AllowedProcMountTypes is a whitelist of allowed ProcMountTypes. Empty or nil indicates that only the DefaultProcMountType may be used. This requires the ProcMountType feature flag to be enabled.") + public List getAllowedProcMountTypes() { return allowedProcMountTypes; } + + public void setAllowedProcMountTypes(List allowedProcMountTypes) { this.allowedProcMountTypes = allowedProcMountTypes; } + public PolicyV1beta1PodSecurityPolicySpec allowedUnsafeSysctls(List allowedUnsafeSysctls) { + this.allowedUnsafeSysctls = allowedUnsafeSysctls; return this; } @@ -274,16 +343,22 @@ public PolicyV1beta1PodSecurityPolicySpec addAllowedUnsafeSysctlsItem(String all * allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc. * @return allowedUnsafeSysctls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedUnsafeSysctls is a list of explicitly allowed unsafe sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of allowed sysctls. Single * means all unsafe sysctls are allowed. Kubelet has to whitelist all allowed unsafe sysctls explicitly to avoid rejection. Examples: e.g. \"foo/_*\" allows \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" allows \"foo.bar\", \"foo.baz\", etc.") + public List getAllowedUnsafeSysctls() { return allowedUnsafeSysctls; } + + public void setAllowedUnsafeSysctls(List allowedUnsafeSysctls) { this.allowedUnsafeSysctls = allowedUnsafeSysctls; } + public PolicyV1beta1PodSecurityPolicySpec defaultAddCapabilities(List defaultAddCapabilities) { + this.defaultAddCapabilities = defaultAddCapabilities; return this; } @@ -300,16 +375,22 @@ public PolicyV1beta1PodSecurityPolicySpec addDefaultAddCapabilitiesItem(String d * defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list. * @return defaultAddCapabilities **/ + @javax.annotation.Nullable @ApiModelProperty(value = "defaultAddCapabilities is the default set of capabilities that will be added to the container unless the pod spec specifically drops the capability. You may not list a capability in both defaultAddCapabilities and requiredDropCapabilities. Capabilities added here are implicitly allowed, and need not be included in the allowedCapabilities list.") + public List getDefaultAddCapabilities() { return defaultAddCapabilities; } + + public void setDefaultAddCapabilities(List defaultAddCapabilities) { this.defaultAddCapabilities = defaultAddCapabilities; } + public PolicyV1beta1PodSecurityPolicySpec defaultAllowPrivilegeEscalation(Boolean defaultAllowPrivilegeEscalation) { + this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; return this; } @@ -318,16 +399,22 @@ public PolicyV1beta1PodSecurityPolicySpec defaultAllowPrivilegeEscalation(Boolea * defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process. * @return defaultAllowPrivilegeEscalation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "defaultAllowPrivilegeEscalation controls the default setting for whether a process can gain more privileges than its parent process.") - public Boolean isDefaultAllowPrivilegeEscalation() { + + public Boolean getDefaultAllowPrivilegeEscalation() { return defaultAllowPrivilegeEscalation; } + + public void setDefaultAllowPrivilegeEscalation(Boolean defaultAllowPrivilegeEscalation) { this.defaultAllowPrivilegeEscalation = defaultAllowPrivilegeEscalation; } + public PolicyV1beta1PodSecurityPolicySpec forbiddenSysctls(List forbiddenSysctls) { + this.forbiddenSysctls = forbiddenSysctls; return this; } @@ -344,34 +431,45 @@ public PolicyV1beta1PodSecurityPolicySpec addForbiddenSysctlsItem(String forbidd * forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc. * @return forbiddenSysctls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "forbiddenSysctls is a list of explicitly forbidden sysctls, defaults to none. Each entry is either a plain sysctl name or ends in \"*\" in which case it is considered as a prefix of forbidden sysctls. Single * means all sysctls are forbidden. Examples: e.g. \"foo/_*\" forbids \"foo/bar\", \"foo/baz\", etc. e.g. \"foo.*\" forbids \"foo.bar\", \"foo.baz\", etc.") + public List getForbiddenSysctls() { return forbiddenSysctls; } + + public void setForbiddenSysctls(List forbiddenSysctls) { this.forbiddenSysctls = forbiddenSysctls; } + public PolicyV1beta1PodSecurityPolicySpec fsGroup(PolicyV1beta1FSGroupStrategyOptions fsGroup) { + this.fsGroup = fsGroup; return this; } /** - * fsGroup is the strategy that will dictate what fs group is used by the SecurityContext. + * Get fsGroup * @return fsGroup **/ - @ApiModelProperty(required = true, value = "fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.") + @ApiModelProperty(required = true, value = "") + public PolicyV1beta1FSGroupStrategyOptions getFsGroup() { return fsGroup; } + + public void setFsGroup(PolicyV1beta1FSGroupStrategyOptions fsGroup) { this.fsGroup = fsGroup; } + public PolicyV1beta1PodSecurityPolicySpec hostIPC(Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @@ -380,16 +478,22 @@ public PolicyV1beta1PodSecurityPolicySpec hostIPC(Boolean hostIPC) { * hostIPC determines if the policy allows the use of HostIPC in the pod spec. * @return hostIPC **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostIPC determines if the policy allows the use of HostIPC in the pod spec.") - public Boolean isHostIPC() { + + public Boolean getHostIPC() { return hostIPC; } + + public void setHostIPC(Boolean hostIPC) { this.hostIPC = hostIPC; } + public PolicyV1beta1PodSecurityPolicySpec hostNetwork(Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @@ -398,16 +502,22 @@ public PolicyV1beta1PodSecurityPolicySpec hostNetwork(Boolean hostNetwork) { * hostNetwork determines if the policy allows the use of HostNetwork in the pod spec. * @return hostNetwork **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostNetwork determines if the policy allows the use of HostNetwork in the pod spec.") - public Boolean isHostNetwork() { + + public Boolean getHostNetwork() { return hostNetwork; } + + public void setHostNetwork(Boolean hostNetwork) { this.hostNetwork = hostNetwork; } + public PolicyV1beta1PodSecurityPolicySpec hostPID(Boolean hostPID) { + this.hostPID = hostPID; return this; } @@ -416,16 +526,22 @@ public PolicyV1beta1PodSecurityPolicySpec hostPID(Boolean hostPID) { * hostPID determines if the policy allows the use of HostPID in the pod spec. * @return hostPID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostPID determines if the policy allows the use of HostPID in the pod spec.") - public Boolean isHostPID() { + + public Boolean getHostPID() { return hostPID; } + + public void setHostPID(Boolean hostPID) { this.hostPID = hostPID; } + public PolicyV1beta1PodSecurityPolicySpec hostPorts(List hostPorts) { + this.hostPorts = hostPorts; return this; } @@ -442,16 +558,22 @@ public PolicyV1beta1PodSecurityPolicySpec addHostPortsItem(PolicyV1beta1HostPort * hostPorts determines which host port ranges are allowed to be exposed. * @return hostPorts **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hostPorts determines which host port ranges are allowed to be exposed.") + public List getHostPorts() { return hostPorts; } + + public void setHostPorts(List hostPorts) { this.hostPorts = hostPorts; } + public PolicyV1beta1PodSecurityPolicySpec privileged(Boolean privileged) { + this.privileged = privileged; return this; } @@ -460,16 +582,22 @@ public PolicyV1beta1PodSecurityPolicySpec privileged(Boolean privileged) { * privileged determines if a pod can request to be run as privileged. * @return privileged **/ + @javax.annotation.Nullable @ApiModelProperty(value = "privileged determines if a pod can request to be run as privileged.") - public Boolean isPrivileged() { + + public Boolean getPrivileged() { return privileged; } + + public void setPrivileged(Boolean privileged) { this.privileged = privileged; } + public PolicyV1beta1PodSecurityPolicySpec readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @@ -478,16 +606,22 @@ public PolicyV1beta1PodSecurityPolicySpec readOnlyRootFilesystem(Boolean readOnl * readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to. * @return readOnlyRootFilesystem **/ + @javax.annotation.Nullable @ApiModelProperty(value = "readOnlyRootFilesystem when set to true will force containers to run with a read only root file system. If the container specifically requests to run with a non-read only root file system the PSP should deny the pod. If set to false the container may run with a read only root file system if it wishes but it will not be forced to.") - public Boolean isReadOnlyRootFilesystem() { + + public Boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem; } + + public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { this.readOnlyRootFilesystem = readOnlyRootFilesystem; } + public PolicyV1beta1PodSecurityPolicySpec requiredDropCapabilities(List requiredDropCapabilities) { + this.requiredDropCapabilities = requiredDropCapabilities; return this; } @@ -504,88 +638,139 @@ public PolicyV1beta1PodSecurityPolicySpec addRequiredDropCapabilitiesItem(String * requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added. * @return requiredDropCapabilities **/ + @javax.annotation.Nullable @ApiModelProperty(value = "requiredDropCapabilities are the capabilities that will be dropped from the container. These are required to be dropped and cannot be added.") + public List getRequiredDropCapabilities() { return requiredDropCapabilities; } + + public void setRequiredDropCapabilities(List requiredDropCapabilities) { this.requiredDropCapabilities = requiredDropCapabilities; } + public PolicyV1beta1PodSecurityPolicySpec runAsGroup(PolicyV1beta1RunAsGroupStrategyOptions runAsGroup) { + this.runAsGroup = runAsGroup; return this; } /** - * RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled. + * Get runAsGroup * @return runAsGroup **/ - @ApiModelProperty(value = "RunAsGroup is the strategy that will dictate the allowable RunAsGroup values that may be set. If this field is omitted, the pod's RunAsGroup can take any value. This field requires the RunAsGroup feature gate to be enabled.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public PolicyV1beta1RunAsGroupStrategyOptions getRunAsGroup() { return runAsGroup; } + + public void setRunAsGroup(PolicyV1beta1RunAsGroupStrategyOptions runAsGroup) { this.runAsGroup = runAsGroup; } + public PolicyV1beta1PodSecurityPolicySpec runAsUser(PolicyV1beta1RunAsUserStrategyOptions runAsUser) { + this.runAsUser = runAsUser; return this; } /** - * runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set. + * Get runAsUser * @return runAsUser **/ - @ApiModelProperty(required = true, value = "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set.") + @ApiModelProperty(required = true, value = "") + public PolicyV1beta1RunAsUserStrategyOptions getRunAsUser() { return runAsUser; } + + public void setRunAsUser(PolicyV1beta1RunAsUserStrategyOptions runAsUser) { this.runAsUser = runAsUser; } + + public PolicyV1beta1PodSecurityPolicySpec runtimeClass(PolicyV1beta1RuntimeClassStrategyOptions runtimeClass) { + + this.runtimeClass = runtimeClass; + return this; + } + + /** + * Get runtimeClass + * @return runtimeClass + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PolicyV1beta1RuntimeClassStrategyOptions getRuntimeClass() { + return runtimeClass; + } + + + + public void setRuntimeClass(PolicyV1beta1RuntimeClassStrategyOptions runtimeClass) { + this.runtimeClass = runtimeClass; + } + + public PolicyV1beta1PodSecurityPolicySpec seLinux(PolicyV1beta1SELinuxStrategyOptions seLinux) { + this.seLinux = seLinux; return this; } /** - * seLinux is the strategy that will dictate the allowable labels that may be set. + * Get seLinux * @return seLinux **/ - @ApiModelProperty(required = true, value = "seLinux is the strategy that will dictate the allowable labels that may be set.") + @ApiModelProperty(required = true, value = "") + public PolicyV1beta1SELinuxStrategyOptions getSeLinux() { return seLinux; } + + public void setSeLinux(PolicyV1beta1SELinuxStrategyOptions seLinux) { this.seLinux = seLinux; } + public PolicyV1beta1PodSecurityPolicySpec supplementalGroups(PolicyV1beta1SupplementalGroupsStrategyOptions supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } /** - * supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext. + * Get supplementalGroups * @return supplementalGroups **/ - @ApiModelProperty(required = true, value = "supplementalGroups is the strategy that will dictate what supplemental groups are used by the SecurityContext.") + @ApiModelProperty(required = true, value = "") + public PolicyV1beta1SupplementalGroupsStrategyOptions getSupplementalGroups() { return supplementalGroups; } + + public void setSupplementalGroups(PolicyV1beta1SupplementalGroupsStrategyOptions supplementalGroups) { this.supplementalGroups = supplementalGroups; } + public PolicyV1beta1PodSecurityPolicySpec volumes(List volumes) { + this.volumes = volumes; return this; } @@ -602,11 +787,15 @@ public PolicyV1beta1PodSecurityPolicySpec addVolumesItem(String volumesItem) { * volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'. * @return volumes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumes is a white list of allowed volume plugins. Empty indicates that no volumes may be used. To allow all volumes you may use '*'.") + public List getVolumes() { return volumes; } + + public void setVolumes(List volumes) { this.volumes = volumes; } @@ -614,41 +803,12 @@ public void setVolumes(List volumes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1PodSecurityPolicySpec policyV1beta1PodSecurityPolicySpec = (PolicyV1beta1PodSecurityPolicySpec) o; - return Objects.equals(this.allowPrivilegeEscalation, policyV1beta1PodSecurityPolicySpec.allowPrivilegeEscalation) && - Objects.equals(this.allowedCSIDrivers, policyV1beta1PodSecurityPolicySpec.allowedCSIDrivers) && - Objects.equals(this.allowedCapabilities, policyV1beta1PodSecurityPolicySpec.allowedCapabilities) && - Objects.equals(this.allowedFlexVolumes, policyV1beta1PodSecurityPolicySpec.allowedFlexVolumes) && - Objects.equals(this.allowedHostPaths, policyV1beta1PodSecurityPolicySpec.allowedHostPaths) && - Objects.equals(this.allowedProcMountTypes, policyV1beta1PodSecurityPolicySpec.allowedProcMountTypes) && - Objects.equals(this.allowedUnsafeSysctls, policyV1beta1PodSecurityPolicySpec.allowedUnsafeSysctls) && - Objects.equals(this.defaultAddCapabilities, policyV1beta1PodSecurityPolicySpec.defaultAddCapabilities) && - Objects.equals(this.defaultAllowPrivilegeEscalation, policyV1beta1PodSecurityPolicySpec.defaultAllowPrivilegeEscalation) && - Objects.equals(this.forbiddenSysctls, policyV1beta1PodSecurityPolicySpec.forbiddenSysctls) && - Objects.equals(this.fsGroup, policyV1beta1PodSecurityPolicySpec.fsGroup) && - Objects.equals(this.hostIPC, policyV1beta1PodSecurityPolicySpec.hostIPC) && - Objects.equals(this.hostNetwork, policyV1beta1PodSecurityPolicySpec.hostNetwork) && - Objects.equals(this.hostPID, policyV1beta1PodSecurityPolicySpec.hostPID) && - Objects.equals(this.hostPorts, policyV1beta1PodSecurityPolicySpec.hostPorts) && - Objects.equals(this.privileged, policyV1beta1PodSecurityPolicySpec.privileged) && - Objects.equals(this.readOnlyRootFilesystem, policyV1beta1PodSecurityPolicySpec.readOnlyRootFilesystem) && - Objects.equals(this.requiredDropCapabilities, policyV1beta1PodSecurityPolicySpec.requiredDropCapabilities) && - Objects.equals(this.runAsGroup, policyV1beta1PodSecurityPolicySpec.runAsGroup) && - Objects.equals(this.runAsUser, policyV1beta1PodSecurityPolicySpec.runAsUser) && - Objects.equals(this.seLinux, policyV1beta1PodSecurityPolicySpec.seLinux) && - Objects.equals(this.supplementalGroups, policyV1beta1PodSecurityPolicySpec.supplementalGroups) && - Objects.equals(this.volumes, policyV1beta1PodSecurityPolicySpec.volumes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowPrivilegeEscalation, allowedCSIDrivers, allowedCapabilities, allowedFlexVolumes, allowedHostPaths, allowedProcMountTypes, allowedUnsafeSysctls, defaultAddCapabilities, defaultAllowPrivilegeEscalation, forbiddenSysctls, fsGroup, hostIPC, hostNetwork, hostPID, hostPorts, privileged, readOnlyRootFilesystem, requiredDropCapabilities, runAsGroup, runAsUser, seLinux, supplementalGroups, volumes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -656,7 +816,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1PodSecurityPolicySpec {\n"); - sb.append(" allowPrivilegeEscalation: ").append(toIndentedString(allowPrivilegeEscalation)).append("\n"); sb.append(" allowedCSIDrivers: ").append(toIndentedString(allowedCSIDrivers)).append("\n"); sb.append(" allowedCapabilities: ").append(toIndentedString(allowedCapabilities)).append("\n"); @@ -677,6 +836,7 @@ public String toString() { sb.append(" requiredDropCapabilities: ").append(toIndentedString(requiredDropCapabilities)).append("\n"); sb.append(" runAsGroup: ").append(toIndentedString(runAsGroup)).append("\n"); sb.append(" runAsUser: ").append(toIndentedString(runAsUser)).append("\n"); + sb.append(" runtimeClass: ").append(toIndentedString(runtimeClass)).append("\n"); sb.append(" seLinux: ").append(toIndentedString(seLinux)).append("\n"); sb.append(" supplementalGroups: ").append(toIndentedString(supplementalGroups)).append("\n"); sb.append(" volumes: ").append(toIndentedString(volumes)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptions.java index 4fe43200df..2ca8d09ed7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy. */ @ApiModel(description = "RunAsGroupStrategyOptions defines the strategy type and any options used to create the strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1RunAsGroupStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public PolicyV1beta1RunAsGroupStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public PolicyV1beta1RunAsGroupStrategyOptions addRangesItem(PolicyV1beta1IDRange * ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of gids that may be used. If you would like to force a single gid then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public PolicyV1beta1RunAsGroupStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -74,10 +87,13 @@ public PolicyV1beta1RunAsGroupStrategyOptions rule(String rule) { * @return rule **/ @ApiModelProperty(required = true, value = "rule is the strategy that will dictate the allowable RunAsGroup values that may be set.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +101,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1RunAsGroupStrategyOptions policyV1beta1RunAsGroupStrategyOptions = (PolicyV1beta1RunAsGroupStrategyOptions) o; - return Objects.equals(this.ranges, policyV1beta1RunAsGroupStrategyOptions.ranges) && - Objects.equals(this.rule, policyV1beta1RunAsGroupStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1RunAsGroupStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptions.java index 0e60a10efd..5a41d0cdfb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy. */ @ApiModel(description = "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1RunAsUserStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public PolicyV1beta1RunAsUserStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public PolicyV1beta1RunAsUserStrategyOptions addRangesItem(PolicyV1beta1IDRange * ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of uids that may be used. If you would like to force a single uid then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public PolicyV1beta1RunAsUserStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -74,10 +87,13 @@ public PolicyV1beta1RunAsUserStrategyOptions rule(String rule) { * @return rule **/ @ApiModelProperty(required = true, value = "rule is the strategy that will dictate the allowable RunAsUser values that may be set.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +101,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1RunAsUserStrategyOptions policyV1beta1RunAsUserStrategyOptions = (PolicyV1beta1RunAsUserStrategyOptions) o; - return Objects.equals(this.ranges, policyV1beta1RunAsUserStrategyOptions.ranges) && - Objects.equals(this.rule, policyV1beta1RunAsUserStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1RunAsUserStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RuntimeClassStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RuntimeClassStrategyOptions.java new file mode 100644 index 0000000000..9b7277ca80 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1RuntimeClassStrategyOptions.java @@ -0,0 +1,131 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod. + */ +@ApiModel(description = "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") +public class PolicyV1beta1RuntimeClassStrategyOptions { + public static final String SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES = "allowedRuntimeClassNames"; + @SerializedName(SERIALIZED_NAME_ALLOWED_RUNTIME_CLASS_NAMES) + private List allowedRuntimeClassNames = new ArrayList(); + + public static final String SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME = "defaultRuntimeClassName"; + @SerializedName(SERIALIZED_NAME_DEFAULT_RUNTIME_CLASS_NAME) + private String defaultRuntimeClassName; + + + public PolicyV1beta1RuntimeClassStrategyOptions allowedRuntimeClassNames(List allowedRuntimeClassNames) { + + this.allowedRuntimeClassNames = allowedRuntimeClassNames; + return this; + } + + public PolicyV1beta1RuntimeClassStrategyOptions addAllowedRuntimeClassNamesItem(String allowedRuntimeClassNamesItem) { + this.allowedRuntimeClassNames.add(allowedRuntimeClassNamesItem); + return this; + } + + /** + * allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset. + * @return allowedRuntimeClassNames + **/ + @ApiModelProperty(required = true, value = "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.") + + public List getAllowedRuntimeClassNames() { + return allowedRuntimeClassNames; + } + + + + public void setAllowedRuntimeClassNames(List allowedRuntimeClassNames) { + this.allowedRuntimeClassNames = allowedRuntimeClassNames; + } + + + public PolicyV1beta1RuntimeClassStrategyOptions defaultRuntimeClassName(String defaultRuntimeClassName) { + + this.defaultRuntimeClassName = defaultRuntimeClassName; + return this; + } + + /** + * defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod. + * @return defaultRuntimeClassName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.") + + public String getDefaultRuntimeClassName() { + return defaultRuntimeClassName; + } + + + + public void setDefaultRuntimeClassName(String defaultRuntimeClassName) { + this.defaultRuntimeClassName = defaultRuntimeClassName; + } + + + @Override + public boolean equals(java.lang.Object o) { + return EqualsBuilder.reflectionEquals(this, o); + } + + @Override + public int hashCode() { + return HashCodeBuilder.reflectionHashCode(this); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyV1beta1RuntimeClassStrategyOptions {\n"); + sb.append(" allowedRuntimeClassNames: ").append(toIndentedString(allowedRuntimeClassNames)).append("\n"); + sb.append(" defaultRuntimeClassName: ").append(toIndentedString(defaultRuntimeClassName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptions.java index 04340fd838..6d2dce36c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * SELinuxStrategyOptions defines the strategy type and any options used to create the strategy. */ @ApiModel(description = "SELinuxStrategyOptions defines the strategy type and any options used to create the strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1SELinuxStrategyOptions { - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + + public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; + @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) + private V1SELinuxOptions seLinuxOptions; - @SerializedName("seLinuxOptions") - private V1SELinuxOptions seLinuxOptions = null; public PolicyV1beta1SELinuxStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -46,28 +53,37 @@ public PolicyV1beta1SELinuxStrategyOptions rule(String rule) { * @return rule **/ @ApiModelProperty(required = true, value = "rule is the strategy that will dictate the allowable labels that may be set.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } + public PolicyV1beta1SELinuxStrategyOptions seLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } /** - * seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * Get seLinuxOptions * @return seLinuxOptions **/ - @ApiModelProperty(value = "seLinuxOptions required to run as; required for MustRunAs More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } + + public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; } @@ -75,20 +91,12 @@ public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1SELinuxStrategyOptions policyV1beta1SELinuxStrategyOptions = (PolicyV1beta1SELinuxStrategyOptions) o; - return Objects.equals(this.rule, policyV1beta1SELinuxStrategyOptions.rule) && - Objects.equals(this.seLinuxOptions, policyV1beta1SELinuxStrategyOptions.seLinuxOptions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rule, seLinuxOptions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1SELinuxStrategyOptions {\n"); - sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append(" seLinuxOptions: ").append(toIndentedString(seLinuxOptions)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptions.java index 9b39a980e4..d0d02ac87a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy. */ @ApiModel(description = "SupplementalGroupsStrategyOptions defines the strategy type and options used to create the strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class PolicyV1beta1SupplementalGroupsStrategyOptions { - @SerializedName("ranges") + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - @SerializedName("rule") - private String rule = null; + public static final String SERIALIZED_NAME_RULE = "rule"; + @SerializedName(SERIALIZED_NAME_RULE) + private String rule; + public PolicyV1beta1SupplementalGroupsStrategyOptions ranges(List ranges) { + this.ranges = ranges; return this; } @@ -55,16 +62,22 @@ public PolicyV1beta1SupplementalGroupsStrategyOptions addRangesItem(PolicyV1beta * ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs. * @return ranges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ranges are the allowed ranges of supplemental groups. If you would like to force a single supplemental group then supply a single range with the same start and end. Required for MustRunAs.") + public List getRanges() { return ranges; } + + public void setRanges(List ranges) { this.ranges = ranges; } + public PolicyV1beta1SupplementalGroupsStrategyOptions rule(String rule) { + this.rule = rule; return this; } @@ -73,11 +86,15 @@ public PolicyV1beta1SupplementalGroupsStrategyOptions rule(String rule) { * rule is the strategy that will dictate what supplemental groups is used in the SecurityContext. * @return rule **/ + @javax.annotation.Nullable @ApiModelProperty(value = "rule is the strategy that will dictate what supplemental groups is used in the SecurityContext.") + public String getRule() { return rule; } + + public void setRule(String rule) { this.rule = rule; } @@ -85,20 +102,12 @@ public void setRule(String rule) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PolicyV1beta1SupplementalGroupsStrategyOptions policyV1beta1SupplementalGroupsStrategyOptions = (PolicyV1beta1SupplementalGroupsStrategyOptions) o; - return Objects.equals(this.ranges, policyV1beta1SupplementalGroupsStrategyOptions.ranges) && - Objects.equals(this.rule, policyV1beta1SupplementalGroupsStrategyOptions.rule); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ranges, rule); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +115,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PolicyV1beta1SupplementalGroupsStrategyOptions {\n"); - sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" rule: ").append(toIndentedString(rule)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/RuntimeRawExtension.java b/kubernetes/src/main/java/io/kubernetes/client/models/RuntimeRawExtension.java index 7f0849a2f3..d2b7689269 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/RuntimeRawExtension.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/RuntimeRawExtension.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.Object `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.RawExtension `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // On the wire, the JSON will look something like this: { \"kind\":\"MyAPIObject\", \"apiVersion\":\"v1\", \"myPlugin\": { \"kind\":\"PluginA\", \"aOption\":\"foo\", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.) */ @ApiModel(description = "RawExtension is used to hold extensions in external versions. To use this, make a field which has RawExtension as its type in your external, versioned struct, and Object in your internal struct. You also need to register your various plugin types. // Internal package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.Object `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // External package: type MyAPIObject struct { runtime.TypeMeta `json:\",inline\"` MyPlugin runtime.RawExtension `json:\"myPlugin\"` } type PluginA struct { AOption string `json:\"aOption\"` } // On the wire, the JSON will look something like this: { \"kind\":\"MyAPIObject\", \"apiVersion\":\"v1\", \"myPlugin\": { \"kind\":\"PluginA\", \"aOption\":\"foo\", }, } So what happens? Decode first uses json or yaml to unmarshal the serialized data into your external MyAPIObject. That causes the raw JSON to be stored, but not unpacked. The next step is to copy (using pkg/conversion) into the internal struct. The runtime package's DefaultScheme has conversion functions installed which will unpack the JSON stored in RawExtension, turning it into the correct object type, and storing it in the Object. (TODO: In the case where the object is of an unknown type, a runtime.Unknown object will be created and stored.)") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class RuntimeRawExtension { - @SerializedName("Raw") - private byte[] raw = null; + public static final String SERIALIZED_NAME_RAW = "Raw"; + @SerializedName(SERIALIZED_NAME_RAW) + private byte[] raw; + public RuntimeRawExtension raw(byte[] raw) { + this.raw = raw; return this; } @@ -42,10 +48,13 @@ public RuntimeRawExtension raw(byte[] raw) { * @return raw **/ @ApiModelProperty(required = true, value = "Raw is the underlying serialization of this object.") + public byte[] getRaw() { return raw; } + + public void setRaw(byte[] raw) { this.raw = raw; } @@ -53,19 +62,12 @@ public void setRaw(byte[] raw) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RuntimeRawExtension runtimeRawExtension = (RuntimeRawExtension) o; - return Objects.equals(this.raw, runtimeRawExtension.raw); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(raw); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RuntimeRawExtension {\n"); - sb.append(" raw: ").append(toIndentedString(raw)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroup.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroup.java index d0fc4f29f0..64763537fe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroup.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroup.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,27 +34,35 @@ * APIGroup contains the name, the supported versions, and the preferred version of a group. */ @ApiModel(description = "APIGroup contains the name, the supported versions, and the preferred version of a group.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIGroup { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("preferredVersion") - private V1GroupVersionForDiscovery preferredVersion = null; + public static final String SERIALIZED_NAME_PREFERRED_VERSION = "preferredVersion"; + @SerializedName(SERIALIZED_NAME_PREFERRED_VERSION) + private V1GroupVersionForDiscovery preferredVersion; - @SerializedName("serverAddressByClientCIDRs") + public static final String SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS = "serverAddressByClientCIDRs"; + @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS) private List serverAddressByClientCIDRs = null; - @SerializedName("versions") + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) private List versions = new ArrayList(); + public V1APIGroup apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -60,16 +71,22 @@ public V1APIGroup apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1APIGroup kind(String kind) { + this.kind = kind; return this; } @@ -78,16 +95,22 @@ public V1APIGroup kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1APIGroup name(String name) { + this.name = name; return this; } @@ -97,33 +120,44 @@ public V1APIGroup name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is the name of the group.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1APIGroup preferredVersion(V1GroupVersionForDiscovery preferredVersion) { + this.preferredVersion = preferredVersion; return this; } /** - * preferredVersion is the version preferred by the API server, which probably is the storage version. + * Get preferredVersion * @return preferredVersion **/ - @ApiModelProperty(value = "preferredVersion is the version preferred by the API server, which probably is the storage version.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1GroupVersionForDiscovery getPreferredVersion() { return preferredVersion; } + + public void setPreferredVersion(V1GroupVersionForDiscovery preferredVersion) { this.preferredVersion = preferredVersion; } + public V1APIGroup serverAddressByClientCIDRs(List serverAddressByClientCIDRs) { + this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; return this; } @@ -140,16 +174,22 @@ public V1APIGroup addServerAddressByClientCIDRsItem(V1ServerAddressByClientCIDR * a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP. * @return serverAddressByClientCIDRs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.") + public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } + + public void setServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; } + public V1APIGroup versions(List versions) { + this.versions = versions; return this; } @@ -164,10 +204,13 @@ public V1APIGroup addVersionsItem(V1GroupVersionForDiscovery versionsItem) { * @return versions **/ @ApiModelProperty(required = true, value = "versions are the versions supported in this group.") + public List getVersions() { return versions; } + + public void setVersions(List versions) { this.versions = versions; } @@ -175,24 +218,12 @@ public void setVersions(List versions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIGroup v1APIGroup = (V1APIGroup) o; - return Objects.equals(this.apiVersion, v1APIGroup.apiVersion) && - Objects.equals(this.kind, v1APIGroup.kind) && - Objects.equals(this.name, v1APIGroup.name) && - Objects.equals(this.preferredVersion, v1APIGroup.preferredVersion) && - Objects.equals(this.serverAddressByClientCIDRs, v1APIGroup.serverAddressByClientCIDRs) && - Objects.equals(this.versions, v1APIGroup.versions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name, preferredVersion, serverAddressByClientCIDRs, versions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -200,7 +231,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIGroup {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroupList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroupList.java index c45287758f..6d3b0b518f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroupList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIGroupList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis. */ @ApiModel(description = "APIGroupList is a list of APIGroup, to allow clients to discover the API at /apis.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIGroupList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("groups") + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) private List groups = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + public V1APIGroupList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -50,16 +58,22 @@ public V1APIGroupList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1APIGroupList groups(List groups) { + this.groups = groups; return this; } @@ -74,15 +88,20 @@ public V1APIGroupList addGroupsItem(V1APIGroup groupsItem) { * @return groups **/ @ApiModelProperty(required = true, value = "groups is a list of APIGroup.") + public List getGroups() { return groups; } + + public void setGroups(List groups) { this.groups = groups; } + public V1APIGroupList kind(String kind) { + this.kind = kind; return this; } @@ -91,11 +110,15 @@ public V1APIGroupList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } @@ -103,21 +126,12 @@ public void setKind(String kind) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIGroupList v1APIGroupList = (V1APIGroupList) o; - return Objects.equals(this.apiVersion, v1APIGroupList.apiVersion) && - Objects.equals(this.groups, v1APIGroupList.groups) && - Objects.equals(this.kind, v1APIGroupList.kind); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, groups, kind); + return HashCodeBuilder.reflectionHashCode(this); } @@ -125,7 +139,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIGroupList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResource.java index 3bb46fa53b..2a42e807f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,39 +32,51 @@ * APIResource specifies the name of a resource and whether it is namespaced. */ @ApiModel(description = "APIResource specifies the name of a resource and whether it is namespaced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIResource { - @SerializedName("categories") + public static final String SERIALIZED_NAME_CATEGORIES = "categories"; + @SerializedName(SERIALIZED_NAME_CATEGORIES) private List categories = null; - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("namespaced") - private Boolean namespaced = null; + public static final String SERIALIZED_NAME_NAMESPACED = "namespaced"; + @SerializedName(SERIALIZED_NAME_NAMESPACED) + private Boolean namespaced; - @SerializedName("shortNames") + public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; + @SerializedName(SERIALIZED_NAME_SHORT_NAMES) private List shortNames = null; - @SerializedName("singularName") - private String singularName = null; + public static final String SERIALIZED_NAME_SINGULAR_NAME = "singularName"; + @SerializedName(SERIALIZED_NAME_SINGULAR_NAME) + private String singularName; - @SerializedName("storageVersionHash") - private String storageVersionHash = null; + public static final String SERIALIZED_NAME_STORAGE_VERSION_HASH = "storageVersionHash"; + @SerializedName(SERIALIZED_NAME_STORAGE_VERSION_HASH) + private String storageVersionHash; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); - @SerializedName("version") - private String version = null; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; + public V1APIResource categories(List categories) { + this.categories = categories; return this; } @@ -78,16 +93,22 @@ public V1APIResource addCategoriesItem(String categoriesItem) { * categories is a list of the grouped resources this resource belongs to (e.g. 'all') * @return categories **/ + @javax.annotation.Nullable @ApiModelProperty(value = "categories is a list of the grouped resources this resource belongs to (e.g. 'all')") + public List getCategories() { return categories; } + + public void setCategories(List categories) { this.categories = categories; } + public V1APIResource group(String group) { + this.group = group; return this; } @@ -96,16 +117,22 @@ public V1APIResource group(String group) { * group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\". * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "group is the preferred group of the resource. Empty implies the group of the containing resource list. For subresources, this may have a different value, for example: Scale\".") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1APIResource kind(String kind) { + this.kind = kind; return this; } @@ -115,15 +142,20 @@ public V1APIResource kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo')") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1APIResource name(String name) { + this.name = name; return this; } @@ -133,15 +165,20 @@ public V1APIResource name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is the plural name of the resource.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1APIResource namespaced(Boolean namespaced) { + this.namespaced = namespaced; return this; } @@ -151,15 +188,20 @@ public V1APIResource namespaced(Boolean namespaced) { * @return namespaced **/ @ApiModelProperty(required = true, value = "namespaced indicates if a resource is namespaced or not.") - public Boolean isNamespaced() { + + public Boolean getNamespaced() { return namespaced; } + + public void setNamespaced(Boolean namespaced) { this.namespaced = namespaced; } + public V1APIResource shortNames(List shortNames) { + this.shortNames = shortNames; return this; } @@ -176,16 +218,22 @@ public V1APIResource addShortNamesItem(String shortNamesItem) { * shortNames is a list of suggested short names of the resource. * @return shortNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "shortNames is a list of suggested short names of the resource.") + public List getShortNames() { return shortNames; } + + public void setShortNames(List shortNames) { this.shortNames = shortNames; } + public V1APIResource singularName(String singularName) { + this.singularName = singularName; return this; } @@ -195,15 +243,20 @@ public V1APIResource singularName(String singularName) { * @return singularName **/ @ApiModelProperty(required = true, value = "singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. The singularName is more correct for reporting status on a single item and both singular and plural are allowed from the kubectl CLI interface.") + public String getSingularName() { return singularName; } + + public void setSingularName(String singularName) { this.singularName = singularName; } + public V1APIResource storageVersionHash(String storageVersionHash) { + this.storageVersionHash = storageVersionHash; return this; } @@ -212,16 +265,22 @@ public V1APIResource storageVersionHash(String storageVersionHash) { * The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates. * @return storageVersionHash **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The hash value of the storage version, the version this resource is converted to when written to the data store. Value must be treated as opaque by clients. Only equality comparison on the value is valid. This is an alpha feature and may change or be removed in the future. The field is populated by the apiserver only if the StorageVersionHash feature gate is enabled. This field will remain optional even if it graduates.") + public String getStorageVersionHash() { return storageVersionHash; } + + public void setStorageVersionHash(String storageVersionHash) { this.storageVersionHash = storageVersionHash; } + public V1APIResource verbs(List verbs) { + this.verbs = verbs; return this; } @@ -236,15 +295,20 @@ public V1APIResource addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "verbs is a list of supported kube verbs (this includes get, list, watch, create, update, patch, delete, deletecollection, and proxy)") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } + public V1APIResource version(String version) { + this.version = version; return this; } @@ -253,11 +317,15 @@ public V1APIResource version(String version) { * version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\". * @return version **/ + @javax.annotation.Nullable @ApiModelProperty(value = "version is the preferred version of the resource. Empty implies the version of the containing resource list For subresources, this may have a different value, for example: v1 (while inside a v1beta1 version of the core resource's group)\".") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } @@ -265,28 +333,12 @@ public void setVersion(String version) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIResource v1APIResource = (V1APIResource) o; - return Objects.equals(this.categories, v1APIResource.categories) && - Objects.equals(this.group, v1APIResource.group) && - Objects.equals(this.kind, v1APIResource.kind) && - Objects.equals(this.name, v1APIResource.name) && - Objects.equals(this.namespaced, v1APIResource.namespaced) && - Objects.equals(this.shortNames, v1APIResource.shortNames) && - Objects.equals(this.singularName, v1APIResource.singularName) && - Objects.equals(this.storageVersionHash, v1APIResource.storageVersionHash) && - Objects.equals(this.verbs, v1APIResource.verbs) && - Objects.equals(this.version, v1APIResource.version); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(categories, group, kind, name, namespaced, shortNames, singularName, storageVersionHash, verbs, version); + return HashCodeBuilder.reflectionHashCode(this); } @@ -294,7 +346,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIResource {\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResourceList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResourceList.java index 8c81814d93..1f7e8244b4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResourceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIResourceList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ * APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced. */ @ApiModel(description = "APIResourceList is a list of APIResource, it is used to expose the name of the resources supported in a specific group and version, and if the resource is namespaced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIResourceList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("groupVersion") - private String groupVersion = null; + public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; + @SerializedName(SERIALIZED_NAME_GROUP_VERSION) + private String groupVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = new ArrayList(); + public V1APIResourceList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -53,16 +62,22 @@ public V1APIResourceList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1APIResourceList groupVersion(String groupVersion) { + this.groupVersion = groupVersion; return this; } @@ -72,15 +87,20 @@ public V1APIResourceList groupVersion(String groupVersion) { * @return groupVersion **/ @ApiModelProperty(required = true, value = "groupVersion is the group and version this APIResourceList is for.") + public String getGroupVersion() { return groupVersion; } + + public void setGroupVersion(String groupVersion) { this.groupVersion = groupVersion; } + public V1APIResourceList kind(String kind) { + this.kind = kind; return this; } @@ -89,16 +109,22 @@ public V1APIResourceList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1APIResourceList resources(List resources) { + this.resources = resources; return this; } @@ -113,10 +139,13 @@ public V1APIResourceList addResourcesItem(V1APIResource resourcesItem) { * @return resources **/ @ApiModelProperty(required = true, value = "resources contains the name of the resources and if they are namespaced.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } @@ -124,22 +153,12 @@ public void setResources(List resources) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIResourceList v1APIResourceList = (V1APIResourceList) o; - return Objects.equals(this.apiVersion, v1APIResourceList.apiVersion) && - Objects.equals(this.groupVersion, v1APIResourceList.groupVersion) && - Objects.equals(this.kind, v1APIResourceList.kind) && - Objects.equals(this.resources, v1APIResourceList.resources); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, groupVersion, kind, resources); + return HashCodeBuilder.reflectionHashCode(this); } @@ -147,7 +166,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIResourceList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" groupVersion: ").append(toIndentedString(groupVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIService.java index 8b2ed4d0a8..0e1dcd384c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIService.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIService { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1APIServiceSpec spec; - @SerializedName("spec") - private V1APIServiceSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1APIServiceStatus status; - @SerializedName("status") - private V1APIServiceStatus status = null; public V1APIService apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1APIService apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1APIService kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1APIService kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1APIService metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1APIService metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1APIService spec(V1APIServiceSpec spec) { + this.spec = spec; return this; } /** - * Spec contains information for locating and communicating with a server + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec contains information for locating and communicating with a server") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1APIServiceSpec getSpec() { return spec; } + + public void setSpec(V1APIServiceSpec spec) { this.spec = spec; } + public V1APIService status(V1APIServiceStatus status) { + this.status = status; return this; } /** - * Status contains derived information about an API server + * Get status * @return status **/ - @ApiModelProperty(value = "Status contains derived information about an API server") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1APIServiceStatus getStatus() { return status; } + + public void setStatus(V1APIServiceStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1APIServiceStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIService v1APIService = (V1APIService) o; - return Objects.equals(this.apiVersion, v1APIService.apiVersion) && - Objects.equals(this.kind, v1APIService.kind) && - Objects.equals(this.metadata, v1APIService.metadata) && - Objects.equals(this.spec, v1APIService.spec) && - Objects.equals(this.status, v1APIService.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIService {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceCondition.java index c474ae79af..ed09642275 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIServiceCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime) { * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1APIServiceCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1APIServiceCondition message(String message) { * Human-readable message indicating details about last transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1APIServiceCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1APIServiceCondition reason(String reason) { * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1APIServiceCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1APIServiceCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1APIServiceCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1APIServiceCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type is the type of the condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIServiceCondition v1APIServiceCondition = (V1APIServiceCondition) o; - return Objects.equals(this.lastTransitionTime, v1APIServiceCondition.lastTransitionTime) && - Objects.equals(this.message, v1APIServiceCondition.message) && - Objects.equals(this.reason, v1APIServiceCondition.reason) && - Objects.equals(this.status, v1APIServiceCondition.status) && - Objects.equals(this.type, v1APIServiceCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIServiceCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceList.java index 5e75b6a486..7b588f8541 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIServiceList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1APIServiceList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1APIServiceList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1APIServiceList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1APIServiceList addItemsItem(V1APIService itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1APIServiceList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1APIServiceList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1APIServiceList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1APIServiceList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIServiceList v1APIServiceList = (V1APIServiceList) o; - return Objects.equals(this.apiVersion, v1APIServiceList.apiVersion) && - Objects.equals(this.items, v1APIServiceList.items) && - Objects.equals(this.kind, v1APIServiceList.kind) && - Objects.equals(this.metadata, v1APIServiceList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIServiceList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceSpec.java index 1cf02294d0..76ad6366c1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,30 +31,39 @@ * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIServiceSpec { - @SerializedName("caBundle") - private byte[] caBundle = null; + public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; + @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + private byte[] caBundle; + + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP_PRIORITY_MINIMUM = "groupPriorityMinimum"; + @SerializedName(SERIALIZED_NAME_GROUP_PRIORITY_MINIMUM) + private Integer groupPriorityMinimum; - @SerializedName("groupPriorityMinimum") - private Integer groupPriorityMinimum = null; + public static final String SERIALIZED_NAME_INSECURE_SKIP_T_L_S_VERIFY = "insecureSkipTLSVerify"; + @SerializedName(SERIALIZED_NAME_INSECURE_SKIP_T_L_S_VERIFY) + private Boolean insecureSkipTLSVerify; - @SerializedName("insecureSkipTLSVerify") - private Boolean insecureSkipTLSVerify = null; + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private V1ServiceReference service; - @SerializedName("service") - private V1ServiceReference service = null; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; - @SerializedName("version") - private String version = null; + public static final String SERIALIZED_NAME_VERSION_PRIORITY = "versionPriority"; + @SerializedName(SERIALIZED_NAME_VERSION_PRIORITY) + private Integer versionPriority; - @SerializedName("versionPriority") - private Integer versionPriority = null; public V1APIServiceSpec caBundle(byte[] caBundle) { + this.caBundle = caBundle; return this; } @@ -60,16 +72,22 @@ public V1APIServiceSpec caBundle(byte[] caBundle) { * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ + @javax.annotation.Nullable @ApiModelProperty(value = "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.") + public byte[] getCaBundle() { return caBundle; } + + public void setCaBundle(byte[] caBundle) { this.caBundle = caBundle; } + public V1APIServiceSpec group(String group) { + this.group = group; return this; } @@ -78,16 +96,22 @@ public V1APIServiceSpec group(String group) { * Group is the API group name this server hosts * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Group is the API group name this server hosts") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { + this.groupPriorityMinimum = groupPriorityMinimum; return this; } @@ -97,15 +121,20 @@ public V1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { * @return groupPriorityMinimum **/ @ApiModelProperty(required = true, value = "GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s") + public Integer getGroupPriorityMinimum() { return groupPriorityMinimum; } + + public void setGroupPriorityMinimum(Integer groupPriorityMinimum) { this.groupPriorityMinimum = groupPriorityMinimum; } + public V1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } @@ -114,34 +143,45 @@ public V1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. * @return insecureSkipTLSVerify **/ + @javax.annotation.Nullable @ApiModelProperty(value = "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.") - public Boolean isInsecureSkipTLSVerify() { + + public Boolean getInsecureSkipTLSVerify() { return insecureSkipTLSVerify; } + + public void setInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { this.insecureSkipTLSVerify = insecureSkipTLSVerify; } + public V1APIServiceSpec service(V1ServiceReference service) { + this.service = service; return this; } /** - * Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + * Get service * @return service **/ - @ApiModelProperty(required = true, value = "Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.") + @ApiModelProperty(required = true, value = "") + public V1ServiceReference getService() { return service; } + + public void setService(V1ServiceReference service) { this.service = service; } + public V1APIServiceSpec version(String version) { + this.version = version; return this; } @@ -150,16 +190,22 @@ public V1APIServiceSpec version(String version) { * Version is the API version this server hosts. For example, \"v1\" * @return version **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Version is the API version this server hosts. For example, \"v1\"") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } + public V1APIServiceSpec versionPriority(Integer versionPriority) { + this.versionPriority = versionPriority; return this; } @@ -169,10 +215,13 @@ public V1APIServiceSpec versionPriority(Integer versionPriority) { * @return versionPriority **/ @ApiModelProperty(required = true, value = "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") + public Integer getVersionPriority() { return versionPriority; } + + public void setVersionPriority(Integer versionPriority) { this.versionPriority = versionPriority; } @@ -180,25 +229,12 @@ public void setVersionPriority(Integer versionPriority) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIServiceSpec v1APIServiceSpec = (V1APIServiceSpec) o; - return Objects.equals(this.caBundle, v1APIServiceSpec.caBundle) && - Objects.equals(this.group, v1APIServiceSpec.group) && - Objects.equals(this.groupPriorityMinimum, v1APIServiceSpec.groupPriorityMinimum) && - Objects.equals(this.insecureSkipTLSVerify, v1APIServiceSpec.insecureSkipTLSVerify) && - Objects.equals(this.service, v1APIServiceSpec.service) && - Objects.equals(this.version, v1APIServiceSpec.version) && - Objects.equals(this.versionPriority, v1APIServiceSpec.versionPriority); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority); + return HashCodeBuilder.reflectionHashCode(this); } @@ -206,7 +242,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIServiceSpec {\n"); - sb.append(" caBundle: ").append(toIndentedString(caBundle)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" groupPriorityMinimum: ").append(toIndentedString(groupPriorityMinimum)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceStatus.java index 055139884d..748e099fda 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIServiceStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIServiceStatus { - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; + public V1APIServiceStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -52,11 +58,15 @@ public V1APIServiceStatus addConditionsItem(V1APIServiceCondition conditionsItem * Current service state of apiService. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Current service state of apiService.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } @@ -64,19 +74,12 @@ public void setConditions(List conditions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIServiceStatus v1APIServiceStatus = (V1APIServiceStatus) o; - return Objects.equals(this.conditions, v1APIServiceStatus.conditions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conditions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIServiceStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIVersions.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIVersions.java index 3c00f1665a..37f26300b0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1APIVersions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1APIVersions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ * APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API. */ @ApiModel(description = "APIVersions lists the versions that are available, to allow clients to discover the API at /api, which is the root path of the legacy v1 API.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1APIVersions { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("serverAddressByClientCIDRs") + public static final String SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS = "serverAddressByClientCIDRs"; + @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS_BY_CLIENT_C_I_D_RS) private List serverAddressByClientCIDRs = new ArrayList(); - @SerializedName("versions") + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) private List versions = new ArrayList(); + public V1APIVersions apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -53,16 +62,22 @@ public V1APIVersions apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1APIVersions kind(String kind) { + this.kind = kind; return this; } @@ -71,16 +86,22 @@ public V1APIVersions kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1APIVersions serverAddressByClientCIDRs(List serverAddressByClientCIDRs) { + this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; return this; } @@ -95,15 +116,20 @@ public V1APIVersions addServerAddressByClientCIDRsItem(V1ServerAddressByClientCI * @return serverAddressByClientCIDRs **/ @ApiModelProperty(required = true, value = "a map of client CIDR to server address that is serving this group. This is to help clients reach servers in the most network-efficient way possible. Clients can use the appropriate server address as per the CIDR that they match. In case of multiple matches, clients should use the longest matching CIDR. The server returns only those CIDRs that it thinks that the client can match. For example: the master will return an internal IP CIDR only, if the client reaches the server using an internal IP. Server looks at X-Forwarded-For header or X-Real-Ip header or request.RemoteAddr (in that order) to get the client IP.") + public List getServerAddressByClientCIDRs() { return serverAddressByClientCIDRs; } + + public void setServerAddressByClientCIDRs(List serverAddressByClientCIDRs) { this.serverAddressByClientCIDRs = serverAddressByClientCIDRs; } + public V1APIVersions versions(List versions) { + this.versions = versions; return this; } @@ -118,10 +144,13 @@ public V1APIVersions addVersionsItem(String versionsItem) { * @return versions **/ @ApiModelProperty(required = true, value = "versions are the api versions that are available.") + public List getVersions() { return versions; } + + public void setVersions(List versions) { this.versions = versions; } @@ -129,22 +158,12 @@ public void setVersions(List versions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1APIVersions v1APIVersions = (V1APIVersions) o; - return Objects.equals(this.apiVersion, v1APIVersions.apiVersion) && - Objects.equals(this.kind, v1APIVersions.kind) && - Objects.equals(this.serverAddressByClientCIDRs, v1APIVersions.serverAddressByClientCIDRs) && - Objects.equals(this.versions, v1APIVersions.versions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, serverAddressByClientCIDRs, versions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -152,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1APIVersions {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" serverAddressByClientCIDRs: ").append(toIndentedString(serverAddressByClientCIDRs)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSource.java index 80c06e2c88..ad77f25f24 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Persistent Disk resource in AWS. An AWS EBS disk must exist before mounting to a container. The disk must also be in the same AWS zone as the kubelet. An AWS EBS disk can only be mounted as read/write once. AWS EBS volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1AWSElasticBlockStoreVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_PARTITION = "partition"; + @SerializedName(SERIALIZED_NAME_PARTITION) + private Integer partition; - @SerializedName("partition") - private Integer partition = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; + @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + private String volumeID; - @SerializedName("volumeID") - private String volumeID = null; public V1AWSElasticBlockStoreVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -50,16 +59,22 @@ public V1AWSElasticBlockStoreVolumeSource fsType(String fsType) { * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1AWSElasticBlockStoreVolumeSource partition(Integer partition) { + this.partition = partition; return this; } @@ -68,16 +83,22 @@ public V1AWSElasticBlockStoreVolumeSource partition(Integer partition) { * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). * @return partition **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty).") + public Integer getPartition() { return partition; } + + public void setPartition(Integer partition) { this.partition = partition; } + public V1AWSElasticBlockStoreVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -86,16 +107,22 @@ public V1AWSElasticBlockStoreVolumeSource readOnly(Boolean readOnly) { * Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1AWSElasticBlockStoreVolumeSource volumeID(String volumeID) { + this.volumeID = volumeID; return this; } @@ -105,10 +132,13 @@ public V1AWSElasticBlockStoreVolumeSource volumeID(String volumeID) { * @return volumeID **/ @ApiModelProperty(required = true, value = "Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") + public String getVolumeID() { return volumeID; } + + public void setVolumeID(String volumeID) { this.volumeID = volumeID; } @@ -116,22 +146,12 @@ public void setVolumeID(String volumeID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1AWSElasticBlockStoreVolumeSource v1AWSElasticBlockStoreVolumeSource = (V1AWSElasticBlockStoreVolumeSource) o; - return Objects.equals(this.fsType, v1AWSElasticBlockStoreVolumeSource.fsType) && - Objects.equals(this.partition, v1AWSElasticBlockStoreVolumeSource.partition) && - Objects.equals(this.readOnly, v1AWSElasticBlockStoreVolumeSource.readOnly) && - Objects.equals(this.volumeID, v1AWSElasticBlockStoreVolumeSource.volumeID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, partition, readOnly, volumeID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1AWSElasticBlockStoreVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" partition: ").append(toIndentedString(partition)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Affinity.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Affinity.java index f82b81e77f..6e539dd5e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Affinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Affinity.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,67 +33,88 @@ * Affinity is a group of affinity scheduling rules. */ @ApiModel(description = "Affinity is a group of affinity scheduling rules.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Affinity { - @SerializedName("nodeAffinity") - private V1NodeAffinity nodeAffinity = null; + public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; + @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) + private V1NodeAffinity nodeAffinity; + + public static final String SERIALIZED_NAME_POD_AFFINITY = "podAffinity"; + @SerializedName(SERIALIZED_NAME_POD_AFFINITY) + private V1PodAffinity podAffinity; - @SerializedName("podAffinity") - private V1PodAffinity podAffinity = null; + public static final String SERIALIZED_NAME_POD_ANTI_AFFINITY = "podAntiAffinity"; + @SerializedName(SERIALIZED_NAME_POD_ANTI_AFFINITY) + private V1PodAntiAffinity podAntiAffinity; - @SerializedName("podAntiAffinity") - private V1PodAntiAffinity podAntiAffinity = null; public V1Affinity nodeAffinity(V1NodeAffinity nodeAffinity) { + this.nodeAffinity = nodeAffinity; return this; } /** - * Describes node affinity scheduling rules for the pod. + * Get nodeAffinity * @return nodeAffinity **/ - @ApiModelProperty(value = "Describes node affinity scheduling rules for the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeAffinity getNodeAffinity() { return nodeAffinity; } + + public void setNodeAffinity(V1NodeAffinity nodeAffinity) { this.nodeAffinity = nodeAffinity; } + public V1Affinity podAffinity(V1PodAffinity podAffinity) { + this.podAffinity = podAffinity; return this; } /** - * Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)). + * Get podAffinity * @return podAffinity **/ - @ApiModelProperty(value = "Describes pod affinity scheduling rules (e.g. co-locate this pod in the same node, zone, etc. as some other pod(s)).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodAffinity getPodAffinity() { return podAffinity; } + + public void setPodAffinity(V1PodAffinity podAffinity) { this.podAffinity = podAffinity; } + public V1Affinity podAntiAffinity(V1PodAntiAffinity podAntiAffinity) { + this.podAntiAffinity = podAntiAffinity; return this; } /** - * Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)). + * Get podAntiAffinity * @return podAntiAffinity **/ - @ApiModelProperty(value = "Describes pod anti-affinity scheduling rules (e.g. avoid putting this pod in the same node, zone, etc. as some other pod(s)).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodAntiAffinity getPodAntiAffinity() { return podAntiAffinity; } + + public void setPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { this.podAntiAffinity = podAntiAffinity; } @@ -98,21 +122,12 @@ public void setPodAntiAffinity(V1PodAntiAffinity podAntiAffinity) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Affinity v1Affinity = (V1Affinity) o; - return Objects.equals(this.nodeAffinity, v1Affinity.nodeAffinity) && - Objects.equals(this.podAffinity, v1Affinity.podAffinity) && - Objects.equals(this.podAntiAffinity, v1Affinity.podAntiAffinity); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nodeAffinity, podAffinity, podAntiAffinity); + return HashCodeBuilder.reflectionHashCode(this); } @@ -120,7 +135,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Affinity {\n"); - sb.append(" nodeAffinity: ").append(toIndentedString(nodeAffinity)).append("\n"); sb.append(" podAffinity: ").append(toIndentedString(podAffinity)).append("\n"); sb.append(" podAntiAffinity: ").append(toIndentedString(podAntiAffinity)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1AggregationRule.java index bcab0b5de4..8dfe7c0aa0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1AggregationRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1AggregationRule { - @SerializedName("clusterRoleSelectors") + public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; + @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) private List clusterRoleSelectors = null; + public V1AggregationRule clusterRoleSelectors(List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -52,11 +58,15 @@ public V1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clusterRole * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added * @return clusterRoleSelectors **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") + public List getClusterRoleSelectors() { return clusterRoleSelectors; } + + public void setClusterRoleSelectors(List clusterRoleSelectors) { this.clusterRoleSelectors = clusterRoleSelectors; } @@ -64,19 +74,12 @@ public void setClusterRoleSelectors(List clusterRoleSelectors) @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1AggregationRule v1AggregationRule = (V1AggregationRule) o; - return Objects.equals(this.clusterRoleSelectors, v1AggregationRule.clusterRoleSelectors); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clusterRoleSelectors); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1AggregationRule {\n"); - sb.append(" clusterRoleSelectors: ").append(toIndentedString(clusterRoleSelectors)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1AttachedVolume.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1AttachedVolume.java index ae970896f4..17cd2aabec 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1AttachedVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1AttachedVolume.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * AttachedVolume describes a volume attached to a node */ @ApiModel(description = "AttachedVolume describes a volume attached to a node") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1AttachedVolume { - @SerializedName("devicePath") - private String devicePath = null; + public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; + @SerializedName(SERIALIZED_NAME_DEVICE_PATH) + private String devicePath; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1AttachedVolume devicePath(String devicePath) { + this.devicePath = devicePath; return this; } @@ -45,15 +52,20 @@ public V1AttachedVolume devicePath(String devicePath) { * @return devicePath **/ @ApiModelProperty(required = true, value = "DevicePath represents the device path where the volume should be available") + public String getDevicePath() { return devicePath; } + + public void setDevicePath(String devicePath) { this.devicePath = devicePath; } + public V1AttachedVolume name(String name) { + this.name = name; return this; } @@ -63,10 +75,13 @@ public V1AttachedVolume name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the attached volume") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -74,20 +89,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1AttachedVolume v1AttachedVolume = (V1AttachedVolume) o; - return Objects.equals(this.devicePath, v1AttachedVolume.devicePath) && - Objects.equals(this.name, v1AttachedVolume.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(devicePath, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1AttachedVolume {\n"); - sb.append(" devicePath: ").append(toIndentedString(devicePath)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureDiskVolumeSource.java index 0f066c79a9..e63d9bdc16 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureDiskVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,27 +30,35 @@ * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1AzureDiskVolumeSource { - @SerializedName("cachingMode") - private String cachingMode = null; + public static final String SERIALIZED_NAME_CACHING_MODE = "cachingMode"; + @SerializedName(SERIALIZED_NAME_CACHING_MODE) + private String cachingMode; + + public static final String SERIALIZED_NAME_DISK_NAME = "diskName"; + @SerializedName(SERIALIZED_NAME_DISK_NAME) + private String diskName; - @SerializedName("diskName") - private String diskName = null; + public static final String SERIALIZED_NAME_DISK_U_R_I = "diskURI"; + @SerializedName(SERIALIZED_NAME_DISK_U_R_I) + private String diskURI; - @SerializedName("diskURI") - private String diskURI = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public V1AzureDiskVolumeSource cachingMode(String cachingMode) { + this.cachingMode = cachingMode; return this; } @@ -56,16 +67,22 @@ public V1AzureDiskVolumeSource cachingMode(String cachingMode) { * Host Caching mode: None, Read Only, Read Write. * @return cachingMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Host Caching mode: None, Read Only, Read Write.") + public String getCachingMode() { return cachingMode; } + + public void setCachingMode(String cachingMode) { this.cachingMode = cachingMode; } + public V1AzureDiskVolumeSource diskName(String diskName) { + this.diskName = diskName; return this; } @@ -75,15 +92,20 @@ public V1AzureDiskVolumeSource diskName(String diskName) { * @return diskName **/ @ApiModelProperty(required = true, value = "The Name of the data disk in the blob storage") + public String getDiskName() { return diskName; } + + public void setDiskName(String diskName) { this.diskName = diskName; } + public V1AzureDiskVolumeSource diskURI(String diskURI) { + this.diskURI = diskURI; return this; } @@ -93,15 +115,20 @@ public V1AzureDiskVolumeSource diskURI(String diskURI) { * @return diskURI **/ @ApiModelProperty(required = true, value = "The URI the data disk in the blob storage") + public String getDiskURI() { return diskURI; } + + public void setDiskURI(String diskURI) { this.diskURI = diskURI; } + public V1AzureDiskVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -110,16 +137,22 @@ public V1AzureDiskVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1AzureDiskVolumeSource kind(String kind) { + this.kind = kind; return this; } @@ -128,16 +161,22 @@ public V1AzureDiskVolumeSource kind(String kind) { * Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Expected values Shared: multiple blob disks per storage account Dedicated: single blob disk per storage account Managed: azure managed data disk (only in managed availability set). defaults to shared") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1AzureDiskVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -146,11 +185,15 @@ public V1AzureDiskVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -158,24 +201,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1AzureDiskVolumeSource v1AzureDiskVolumeSource = (V1AzureDiskVolumeSource) o; - return Objects.equals(this.cachingMode, v1AzureDiskVolumeSource.cachingMode) && - Objects.equals(this.diskName, v1AzureDiskVolumeSource.diskName) && - Objects.equals(this.diskURI, v1AzureDiskVolumeSource.diskURI) && - Objects.equals(this.fsType, v1AzureDiskVolumeSource.fsType) && - Objects.equals(this.kind, v1AzureDiskVolumeSource.kind) && - Objects.equals(this.readOnly, v1AzureDiskVolumeSource.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(cachingMode, diskName, diskURI, fsType, kind, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -183,7 +214,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1AzureDiskVolumeSource {\n"); - sb.append(" cachingMode: ").append(toIndentedString(cachingMode)).append("\n"); sb.append(" diskName: ").append(toIndentedString(diskName)).append("\n"); sb.append(" diskURI: ").append(toIndentedString(diskURI)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSource.java index 5c85f5b797..96505df1fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1AzureFilePersistentVolumeSource { - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; + @SerializedName(SERIALIZED_NAME_SECRET_NAME) + private String secretName; - @SerializedName("secretName") - private String secretName = null; + public static final String SERIALIZED_NAME_SECRET_NAMESPACE = "secretNamespace"; + @SerializedName(SERIALIZED_NAME_SECRET_NAMESPACE) + private String secretNamespace; - @SerializedName("secretNamespace") - private String secretNamespace = null; + public static final String SERIALIZED_NAME_SHARE_NAME = "shareName"; + @SerializedName(SERIALIZED_NAME_SHARE_NAME) + private String shareName; - @SerializedName("shareName") - private String shareName = null; public V1AzureFilePersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -50,16 +59,22 @@ public V1AzureFilePersistentVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1AzureFilePersistentVolumeSource secretName(String secretName) { + this.secretName = secretName; return this; } @@ -69,15 +84,20 @@ public V1AzureFilePersistentVolumeSource secretName(String secretName) { * @return secretName **/ @ApiModelProperty(required = true, value = "the name of secret that contains Azure Storage Account Name and Key") + public String getSecretName() { return secretName; } + + public void setSecretName(String secretName) { this.secretName = secretName; } + public V1AzureFilePersistentVolumeSource secretNamespace(String secretNamespace) { + this.secretNamespace = secretNamespace; return this; } @@ -86,16 +106,22 @@ public V1AzureFilePersistentVolumeSource secretNamespace(String secretNamespace) * the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod * @return secretNamespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "the namespace of the secret that contains Azure Storage Account Name and Key default is the same as the Pod") + public String getSecretNamespace() { return secretNamespace; } + + public void setSecretNamespace(String secretNamespace) { this.secretNamespace = secretNamespace; } + public V1AzureFilePersistentVolumeSource shareName(String shareName) { + this.shareName = shareName; return this; } @@ -105,10 +131,13 @@ public V1AzureFilePersistentVolumeSource shareName(String shareName) { * @return shareName **/ @ApiModelProperty(required = true, value = "Share Name") + public String getShareName() { return shareName; } + + public void setShareName(String shareName) { this.shareName = shareName; } @@ -116,22 +145,12 @@ public void setShareName(String shareName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1AzureFilePersistentVolumeSource v1AzureFilePersistentVolumeSource = (V1AzureFilePersistentVolumeSource) o; - return Objects.equals(this.readOnly, v1AzureFilePersistentVolumeSource.readOnly) && - Objects.equals(this.secretName, v1AzureFilePersistentVolumeSource.secretName) && - Objects.equals(this.secretNamespace, v1AzureFilePersistentVolumeSource.secretNamespace) && - Objects.equals(this.shareName, v1AzureFilePersistentVolumeSource.shareName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(readOnly, secretName, secretNamespace, shareName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +158,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1AzureFilePersistentVolumeSource {\n"); - sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n"); sb.append(" secretNamespace: ").append(toIndentedString(secretNamespace)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFileVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFileVolumeSource.java index cb99857c20..1660bb5005 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFileVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1AzureFileVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. */ @ApiModel(description = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1AzureFileVolumeSource { - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; + @SerializedName(SERIALIZED_NAME_SECRET_NAME) + private String secretName; - @SerializedName("secretName") - private String secretName = null; + public static final String SERIALIZED_NAME_SHARE_NAME = "shareName"; + @SerializedName(SERIALIZED_NAME_SHARE_NAME) + private String shareName; - @SerializedName("shareName") - private String shareName = null; public V1AzureFileVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -47,16 +55,22 @@ public V1AzureFileVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1AzureFileVolumeSource secretName(String secretName) { + this.secretName = secretName; return this; } @@ -66,15 +80,20 @@ public V1AzureFileVolumeSource secretName(String secretName) { * @return secretName **/ @ApiModelProperty(required = true, value = "the name of secret that contains Azure Storage Account Name and Key") + public String getSecretName() { return secretName; } + + public void setSecretName(String secretName) { this.secretName = secretName; } + public V1AzureFileVolumeSource shareName(String shareName) { + this.shareName = shareName; return this; } @@ -84,10 +103,13 @@ public V1AzureFileVolumeSource shareName(String shareName) { * @return shareName **/ @ApiModelProperty(required = true, value = "Share Name") + public String getShareName() { return shareName; } + + public void setShareName(String shareName) { this.shareName = shareName; } @@ -95,21 +117,12 @@ public void setShareName(String shareName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1AzureFileVolumeSource v1AzureFileVolumeSource = (V1AzureFileVolumeSource) o; - return Objects.equals(this.readOnly, v1AzureFileVolumeSource.readOnly) && - Objects.equals(this.secretName, v1AzureFileVolumeSource.secretName) && - Objects.equals(this.shareName, v1AzureFileVolumeSource.shareName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(readOnly, secretName, shareName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1AzureFileVolumeSource {\n"); - sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" secretName: ").append(toIndentedString(secretName)).append("\n"); sb.append(" shareName: ").append(toIndentedString(shareName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Binding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Binding.java index d0a5743fe0..8a154730bb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Binding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Binding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead. */ @ApiModel(description = "Binding ties one object to another; for example, a pod is bound to a node by a scheduler. Deprecated in 1.7, please use the bindings subresource of pods instead.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Binding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V1ObjectReference target; - @SerializedName("target") - private V1ObjectReference target = null; public V1Binding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1Binding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Binding kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,62 @@ public V1Binding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Binding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Binding target(V1ObjectReference target) { + this.target = target; return this; } /** - * The target object that you want to bind to the standard object. + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "The target object that you want to bind to the standard object.") + @ApiModelProperty(required = true, value = "") + public V1ObjectReference getTarget() { return target; } + + public void setTarget(V1ObjectReference target) { this.target = target; } @@ -118,22 +148,12 @@ public void setTarget(V1ObjectReference target) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Binding v1Binding = (V1Binding) o; - return Objects.equals(this.apiVersion, v1Binding.apiVersion) && - Objects.equals(this.kind, v1Binding.kind) && - Objects.equals(this.metadata, v1Binding.metadata) && - Objects.equals(this.target, v1Binding.target); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, target); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Binding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIPersistentVolumeSource.java index 938f9bf6a5..61a3eee97a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,51 +34,95 @@ * Represents storage that is managed by an external CSI volume driver (Beta feature) */ @ApiModel(description = "Represents storage that is managed by an external CSI volume driver (Beta feature)") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CSIPersistentVolumeSource { - @SerializedName("controllerPublishSecretRef") - private V1SecretReference controllerPublishSecretRef = null; + public static final String SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF = "controllerExpandSecretRef"; + @SerializedName(SERIALIZED_NAME_CONTROLLER_EXPAND_SECRET_REF) + private V1SecretReference controllerExpandSecretRef; + + public static final String SERIALIZED_NAME_CONTROLLER_PUBLISH_SECRET_REF = "controllerPublishSecretRef"; + @SerializedName(SERIALIZED_NAME_CONTROLLER_PUBLISH_SECRET_REF) + private V1SecretReference controllerPublishSecretRef; - @SerializedName("driver") - private String driver = null; + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("nodePublishSecretRef") - private V1SecretReference nodePublishSecretRef = null; + public static final String SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF = "nodePublishSecretRef"; + @SerializedName(SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF) + private V1SecretReference nodePublishSecretRef; - @SerializedName("nodeStageSecretRef") - private V1SecretReference nodeStageSecretRef = null; + public static final String SERIALIZED_NAME_NODE_STAGE_SECRET_REF = "nodeStageSecretRef"; + @SerializedName(SERIALIZED_NAME_NODE_STAGE_SECRET_REF) + private V1SecretReference nodeStageSecretRef; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("volumeAttributes") + public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES = "volumeAttributes"; + @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES) private Map volumeAttributes = null; - @SerializedName("volumeHandle") - private String volumeHandle = null; + public static final String SERIALIZED_NAME_VOLUME_HANDLE = "volumeHandle"; + @SerializedName(SERIALIZED_NAME_VOLUME_HANDLE) + private String volumeHandle; + + + public V1CSIPersistentVolumeSource controllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { + + this.controllerExpandSecretRef = controllerExpandSecretRef; + return this; + } + + /** + * Get controllerExpandSecretRef + * @return controllerExpandSecretRef + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1SecretReference getControllerExpandSecretRef() { + return controllerExpandSecretRef; + } + + + + public void setControllerExpandSecretRef(V1SecretReference controllerExpandSecretRef) { + this.controllerExpandSecretRef = controllerExpandSecretRef; + } + public V1CSIPersistentVolumeSource controllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { + this.controllerPublishSecretRef = controllerPublishSecretRef; return this; } /** - * ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * Get controllerPublishSecretRef * @return controllerPublishSecretRef **/ - @ApiModelProperty(value = "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getControllerPublishSecretRef() { return controllerPublishSecretRef; } + + public void setControllerPublishSecretRef(V1SecretReference controllerPublishSecretRef) { this.controllerPublishSecretRef = controllerPublishSecretRef; } + public V1CSIPersistentVolumeSource driver(String driver) { + this.driver = driver; return this; } @@ -85,15 +132,20 @@ public V1CSIPersistentVolumeSource driver(String driver) { * @return driver **/ @ApiModelProperty(required = true, value = "Driver is the name of the driver to use for this volume. Required.") + public String getDriver() { return driver; } + + public void setDriver(String driver) { this.driver = driver; } + public V1CSIPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -102,52 +154,70 @@ public V1CSIPersistentVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\".") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1CSIPersistentVolumeSource nodePublishSecretRef(V1SecretReference nodePublishSecretRef) { + this.nodePublishSecretRef = nodePublishSecretRef; return this; } /** - * NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * Get nodePublishSecretRef * @return nodePublishSecretRef **/ - @ApiModelProperty(value = "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getNodePublishSecretRef() { return nodePublishSecretRef; } + + public void setNodePublishSecretRef(V1SecretReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; } + public V1CSIPersistentVolumeSource nodeStageSecretRef(V1SecretReference nodeStageSecretRef) { + this.nodeStageSecretRef = nodeStageSecretRef; return this; } /** - * NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed. + * Get nodeStageSecretRef * @return nodeStageSecretRef **/ - @ApiModelProperty(value = "NodeStageSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodeStageVolume and NodeStageVolume and NodeUnstageVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getNodeStageSecretRef() { return nodeStageSecretRef; } + + public void setNodeStageSecretRef(V1SecretReference nodeStageSecretRef) { this.nodeStageSecretRef = nodeStageSecretRef; } + public V1CSIPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -156,16 +226,22 @@ public V1CSIPersistentVolumeSource readOnly(Boolean readOnly) { * Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write). * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: The value to pass to ControllerPublishVolumeRequest. Defaults to false (read/write).") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1CSIPersistentVolumeSource volumeAttributes(Map volumeAttributes) { + this.volumeAttributes = volumeAttributes; return this; } @@ -182,16 +258,22 @@ public V1CSIPersistentVolumeSource putVolumeAttributesItem(String key, String vo * Attributes of the volume to publish. * @return volumeAttributes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Attributes of the volume to publish.") + public Map getVolumeAttributes() { return volumeAttributes; } + + public void setVolumeAttributes(Map volumeAttributes) { this.volumeAttributes = volumeAttributes; } + public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle) { + this.volumeHandle = volumeHandle; return this; } @@ -201,10 +283,13 @@ public V1CSIPersistentVolumeSource volumeHandle(String volumeHandle) { * @return volumeHandle **/ @ApiModelProperty(required = true, value = "VolumeHandle is the unique volume name returned by the CSI volume plugin’s CreateVolume to refer to the volume on all subsequent calls. Required.") + public String getVolumeHandle() { return volumeHandle; } + + public void setVolumeHandle(String volumeHandle) { this.volumeHandle = volumeHandle; } @@ -212,26 +297,12 @@ public void setVolumeHandle(String volumeHandle) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CSIPersistentVolumeSource v1CSIPersistentVolumeSource = (V1CSIPersistentVolumeSource) o; - return Objects.equals(this.controllerPublishSecretRef, v1CSIPersistentVolumeSource.controllerPublishSecretRef) && - Objects.equals(this.driver, v1CSIPersistentVolumeSource.driver) && - Objects.equals(this.fsType, v1CSIPersistentVolumeSource.fsType) && - Objects.equals(this.nodePublishSecretRef, v1CSIPersistentVolumeSource.nodePublishSecretRef) && - Objects.equals(this.nodeStageSecretRef, v1CSIPersistentVolumeSource.nodeStageSecretRef) && - Objects.equals(this.readOnly, v1CSIPersistentVolumeSource.readOnly) && - Objects.equals(this.volumeAttributes, v1CSIPersistentVolumeSource.volumeAttributes) && - Objects.equals(this.volumeHandle, v1CSIPersistentVolumeSource.volumeHandle); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(controllerPublishSecretRef, driver, fsType, nodePublishSecretRef, nodeStageSecretRef, readOnly, volumeAttributes, volumeHandle); + return HashCodeBuilder.reflectionHashCode(this); } @@ -239,7 +310,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CSIPersistentVolumeSource {\n"); - + sb.append(" controllerExpandSecretRef: ").append(toIndentedString(controllerExpandSecretRef)).append("\n"); sb.append(" controllerPublishSecretRef: ").append(toIndentedString(controllerPublishSecretRef)).append("\n"); sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIVolumeSource.java index 4a030692dc..f041cc6156 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CSIVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * Represents a source location of a volume to mount, managed by an external CSI driver */ @ApiModel(description = "Represents a source location of a volume to mount, managed by an external CSI driver") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CSIVolumeSource { - @SerializedName("driver") - private String driver = null; + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("nodePublishSecretRef") - private V1LocalObjectReference nodePublishSecretRef = null; + public static final String SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF = "nodePublishSecretRef"; + @SerializedName(SERIALIZED_NAME_NODE_PUBLISH_SECRET_REF) + private V1LocalObjectReference nodePublishSecretRef; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("volumeAttributes") + public static final String SERIALIZED_NAME_VOLUME_ATTRIBUTES = "volumeAttributes"; + @SerializedName(SERIALIZED_NAME_VOLUME_ATTRIBUTES) private Map volumeAttributes = null; + public V1CSIVolumeSource driver(String driver) { + this.driver = driver; return this; } @@ -58,15 +68,20 @@ public V1CSIVolumeSource driver(String driver) { * @return driver **/ @ApiModelProperty(required = true, value = "Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster.") + public String getDriver() { return driver; } + + public void setDriver(String driver) { this.driver = driver; } + public V1CSIVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -75,34 +90,46 @@ public V1CSIVolumeSource fsType(String fsType) { * Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1CSIVolumeSource nodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { + this.nodePublishSecretRef = nodePublishSecretRef; return this; } /** - * NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed. + * Get nodePublishSecretRef * @return nodePublishSecretRef **/ - @ApiModelProperty(value = "NodePublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI NodePublishVolume and NodeUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secret references are passed.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getNodePublishSecretRef() { return nodePublishSecretRef; } + + public void setNodePublishSecretRef(V1LocalObjectReference nodePublishSecretRef) { this.nodePublishSecretRef = nodePublishSecretRef; } + public V1CSIVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -111,16 +138,22 @@ public V1CSIVolumeSource readOnly(Boolean readOnly) { * Specifies a read-only configuration for the volume. Defaults to false (read/write). * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies a read-only configuration for the volume. Defaults to false (read/write).") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1CSIVolumeSource volumeAttributes(Map volumeAttributes) { + this.volumeAttributes = volumeAttributes; return this; } @@ -137,11 +170,15 @@ public V1CSIVolumeSource putVolumeAttributesItem(String key, String volumeAttrib * VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. * @return volumeAttributes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values.") + public Map getVolumeAttributes() { return volumeAttributes; } + + public void setVolumeAttributes(Map volumeAttributes) { this.volumeAttributes = volumeAttributes; } @@ -149,23 +186,12 @@ public void setVolumeAttributes(Map volumeAttributes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CSIVolumeSource v1CSIVolumeSource = (V1CSIVolumeSource) o; - return Objects.equals(this.driver, v1CSIVolumeSource.driver) && - Objects.equals(this.fsType, v1CSIVolumeSource.fsType) && - Objects.equals(this.nodePublishSecretRef, v1CSIVolumeSource.nodePublishSecretRef) && - Objects.equals(this.readOnly, v1CSIVolumeSource.readOnly) && - Objects.equals(this.volumeAttributes, v1CSIVolumeSource.volumeAttributes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(driver, fsType, nodePublishSecretRef, readOnly, volumeAttributes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -173,7 +199,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CSIVolumeSource {\n"); - sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" nodePublishSecretRef: ").append(toIndentedString(nodePublishSecretRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Capabilities.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Capabilities.java index 0cef12c900..90878c1143 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Capabilities.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Capabilities.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * Adds and removes POSIX capabilities from running containers. */ @ApiModel(description = "Adds and removes POSIX capabilities from running containers.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Capabilities { - @SerializedName("add") + public static final String SERIALIZED_NAME_ADD = "add"; + @SerializedName(SERIALIZED_NAME_ADD) private List add = null; - @SerializedName("drop") + public static final String SERIALIZED_NAME_DROP = "drop"; + @SerializedName(SERIALIZED_NAME_DROP) private List drop = null; + public V1Capabilities add(List add) { + this.add = add; return this; } @@ -54,16 +61,22 @@ public V1Capabilities addAddItem(String addItem) { * Added capabilities * @return add **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Added capabilities") + public List getAdd() { return add; } + + public void setAdd(List add) { this.add = add; } + public V1Capabilities drop(List drop) { + this.drop = drop; return this; } @@ -80,11 +93,15 @@ public V1Capabilities addDropItem(String dropItem) { * Removed capabilities * @return drop **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Removed capabilities") + public List getDrop() { return drop; } + + public void setDrop(List drop) { this.drop = drop; } @@ -92,20 +109,12 @@ public void setDrop(List drop) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Capabilities v1Capabilities = (V1Capabilities) o; - return Objects.equals(this.add, v1Capabilities.add) && - Objects.equals(this.drop, v1Capabilities.drop); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(add, drop); + return HashCodeBuilder.reflectionHashCode(this); } @@ -113,7 +122,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Capabilities {\n"); - sb.append(" add: ").append(toIndentedString(add)).append("\n"); sb.append(" drop: ").append(toIndentedString(drop)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSource.java index d5ce7d7750..49d33b5556 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CephFSPersistentVolumeSource { - @SerializedName("monitors") + public static final String SERIALIZED_NAME_MONITORS = "monitors"; + @SerializedName(SERIALIZED_NAME_MONITORS) private List monitors = new ArrayList(); - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_FILE = "secretFile"; + @SerializedName(SERIALIZED_NAME_SECRET_FILE) + private String secretFile; - @SerializedName("secretFile") - private String secretFile = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretReference secretRef; - @SerializedName("secretRef") - private V1SecretReference secretRef = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1CephFSPersistentVolumeSource monitors(List monitors) { + this.monitors = monitors; return this; } @@ -65,15 +76,20 @@ public V1CephFSPersistentVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @ApiModelProperty(required = true, value = "Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + public List getMonitors() { return monitors; } + + public void setMonitors(List monitors) { this.monitors = monitors; } + public V1CephFSPersistentVolumeSource path(String path) { + this.path = path; return this; } @@ -82,16 +98,22 @@ public V1CephFSPersistentVolumeSource path(String path) { * Optional: Used as the mounted root, rather than the full Ceph tree, default is / * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Used as the mounted root, rather than the full Ceph tree, default is /") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1CephFSPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -100,16 +122,22 @@ public V1CephFSPersistentVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1CephFSPersistentVolumeSource secretFile(String secretFile) { + this.secretFile = secretFile; return this; } @@ -118,34 +146,46 @@ public V1CephFSPersistentVolumeSource secretFile(String secretFile) { * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it * @return secretFile **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + public String getSecretFile() { return secretFile; } + + public void setSecretFile(String secretFile) { this.secretFile = secretFile; } + public V1CephFSPersistentVolumeSource secretRef(V1SecretReference secretRef) { + this.secretRef = secretRef; return this; } /** - * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretReference secretRef) { this.secretRef = secretRef; } + public V1CephFSPersistentVolumeSource user(String user) { + this.user = user; return this; } @@ -154,11 +194,15 @@ public V1CephFSPersistentVolumeSource user(String user) { * Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -166,24 +210,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CephFSPersistentVolumeSource v1CephFSPersistentVolumeSource = (V1CephFSPersistentVolumeSource) o; - return Objects.equals(this.monitors, v1CephFSPersistentVolumeSource.monitors) && - Objects.equals(this.path, v1CephFSPersistentVolumeSource.path) && - Objects.equals(this.readOnly, v1CephFSPersistentVolumeSource.readOnly) && - Objects.equals(this.secretFile, v1CephFSPersistentVolumeSource.secretFile) && - Objects.equals(this.secretRef, v1CephFSPersistentVolumeSource.secretRef) && - Objects.equals(this.user, v1CephFSPersistentVolumeSource.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -191,7 +223,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CephFSPersistentVolumeSource {\n"); - sb.append(" monitors: ").append(toIndentedString(monitors)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSVolumeSource.java index 8d6576e576..527c64e9eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CephFSVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Ceph Filesystem mount that lasts the lifetime of a pod Cephfs volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CephFSVolumeSource { - @SerializedName("monitors") + public static final String SERIALIZED_NAME_MONITORS = "monitors"; + @SerializedName(SERIALIZED_NAME_MONITORS) private List monitors = new ArrayList(); - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_FILE = "secretFile"; + @SerializedName(SERIALIZED_NAME_SECRET_FILE) + private String secretFile; - @SerializedName("secretFile") - private String secretFile = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1CephFSVolumeSource monitors(List monitors) { + this.monitors = monitors; return this; } @@ -65,15 +76,20 @@ public V1CephFSVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @ApiModelProperty(required = true, value = "Required: Monitors is a collection of Ceph monitors More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + public List getMonitors() { return monitors; } + + public void setMonitors(List monitors) { this.monitors = monitors; } + public V1CephFSVolumeSource path(String path) { + this.path = path; return this; } @@ -82,16 +98,22 @@ public V1CephFSVolumeSource path(String path) { * Optional: Used as the mounted root, rather than the full Ceph tree, default is / * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Used as the mounted root, rather than the full Ceph tree, default is /") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1CephFSVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -100,16 +122,22 @@ public V1CephFSVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1CephFSVolumeSource secretFile(String secretFile) { + this.secretFile = secretFile; return this; } @@ -118,34 +146,46 @@ public V1CephFSVolumeSource secretFile(String secretFile) { * Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it * @return secretFile **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + public String getSecretFile() { return secretFile; } + + public void setSecretFile(String secretFile) { this.secretFile = secretFile; } + public V1CephFSVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "Optional: SecretRef is reference to the authentication secret for User, default is empty. More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } + public V1CephFSVolumeSource user(String user) { + this.user = user; return this; } @@ -154,11 +194,15 @@ public V1CephFSVolumeSource user(String user) { * Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: User is the rados user name, default is admin More info: https://releases.k8s.io/HEAD/examples/volumes/cephfs/README.md#how-to-use-it") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -166,24 +210,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CephFSVolumeSource v1CephFSVolumeSource = (V1CephFSVolumeSource) o; - return Objects.equals(this.monitors, v1CephFSVolumeSource.monitors) && - Objects.equals(this.path, v1CephFSVolumeSource.path) && - Objects.equals(this.readOnly, v1CephFSVolumeSource.readOnly) && - Objects.equals(this.secretFile, v1CephFSVolumeSource.secretFile) && - Objects.equals(this.secretRef, v1CephFSVolumeSource.secretRef) && - Objects.equals(this.user, v1CephFSVolumeSource.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(monitors, path, readOnly, secretFile, secretRef, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -191,7 +223,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CephFSVolumeSource {\n"); - sb.append(" monitors: ").append(toIndentedString(monitors)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderPersistentVolumeSource.java index cced9f1de3..82a1b226f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CinderPersistentVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretReference secretRef; - @SerializedName("secretRef") - private V1SecretReference secretRef = null; + public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; + @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + private String volumeID; - @SerializedName("volumeID") - private String volumeID = null; public V1CinderPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -51,16 +60,22 @@ public V1CinderPersistentVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1CinderPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -69,34 +84,46 @@ public V1CinderPersistentVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1CinderPersistentVolumeSource secretRef(V1SecretReference secretRef) { + this.secretRef = secretRef; return this; } /** - * Optional: points to a secret object containing parameters used to connect to OpenStack. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "Optional: points to a secret object containing parameters used to connect to OpenStack.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretReference secretRef) { this.secretRef = secretRef; } + public V1CinderPersistentVolumeSource volumeID(String volumeID) { + this.volumeID = volumeID; return this; } @@ -106,10 +133,13 @@ public V1CinderPersistentVolumeSource volumeID(String volumeID) { * @return volumeID **/ @ApiModelProperty(required = true, value = "volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") + public String getVolumeID() { return volumeID; } + + public void setVolumeID(String volumeID) { this.volumeID = volumeID; } @@ -117,22 +147,12 @@ public void setVolumeID(String volumeID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CinderPersistentVolumeSource v1CinderPersistentVolumeSource = (V1CinderPersistentVolumeSource) o; - return Objects.equals(this.fsType, v1CinderPersistentVolumeSource.fsType) && - Objects.equals(this.readOnly, v1CinderPersistentVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1CinderPersistentVolumeSource.secretRef) && - Objects.equals(this.volumeID, v1CinderPersistentVolumeSource.volumeID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, readOnly, secretRef, volumeID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CinderPersistentVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderVolumeSource.java index e7830d31fd..059d986f91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CinderVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a cinder volume resource in Openstack. A Cinder volume must exist before mounting to a container. The volume must also be in the same region as the kubelet. Cinder volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CinderVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; + public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; + @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + private String volumeID; - @SerializedName("volumeID") - private String volumeID = null; public V1CinderVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -51,16 +60,22 @@ public V1CinderVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1CinderVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -69,34 +84,46 @@ public V1CinderVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1CinderVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * Optional: points to a secret object containing parameters used to connect to OpenStack. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "Optional: points to a secret object containing parameters used to connect to OpenStack.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } + public V1CinderVolumeSource volumeID(String volumeID) { + this.volumeID = volumeID; return this; } @@ -106,10 +133,13 @@ public V1CinderVolumeSource volumeID(String volumeID) { * @return volumeID **/ @ApiModelProperty(required = true, value = "volume id used to identify the volume in cinder More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") + public String getVolumeID() { return volumeID; } + + public void setVolumeID(String volumeID) { this.volumeID = volumeID; } @@ -117,22 +147,12 @@ public void setVolumeID(String volumeID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CinderVolumeSource v1CinderVolumeSource = (V1CinderVolumeSource) o; - return Objects.equals(this.fsType, v1CinderVolumeSource.fsType) && - Objects.equals(this.readOnly, v1CinderVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1CinderVolumeSource.secretRef) && - Objects.equals(this.volumeID, v1CinderVolumeSource.volumeID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, readOnly, secretRef, volumeID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CinderVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClientIPConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClientIPConfig.java index 0ae76225c6..11171b0f72 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClientIPConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClientIPConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * ClientIPConfig represents the configurations of Client IP based session affinity. */ @ApiModel(description = "ClientIPConfig represents the configurations of Client IP based session affinity.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ClientIPConfig { - @SerializedName("timeoutSeconds") - private Integer timeoutSeconds = null; + public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; + @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + private Integer timeoutSeconds; + public V1ClientIPConfig timeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } @@ -41,11 +47,15 @@ public V1ClientIPConfig timeoutSeconds(Integer timeoutSeconds) { * timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours). * @return timeoutSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "timeoutSeconds specifies the seconds of ClientIP type session sticky time. The value must be >0 && <=86400(for 1 day) if ServiceAffinity == \"ClientIP\". Default value is 10800(for 3 hours).") + public Integer getTimeoutSeconds() { return timeoutSeconds; } + + public void setTimeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -53,19 +63,12 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ClientIPConfig v1ClientIPConfig = (V1ClientIPConfig) o; - return Objects.equals(this.timeoutSeconds, v1ClientIPConfig.timeoutSeconds); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(timeoutSeconds); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ClientIPConfig {\n"); - sb.append(" timeoutSeconds: ").append(toIndentedString(timeoutSeconds)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRole.java index b61395612b..4ccc8e2efc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRole.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,42 +35,55 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ClusterRole { - @SerializedName("aggregationRule") - private V1AggregationRule aggregationRule = null; + public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; + @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) + private V1AggregationRule aggregationRule; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; + public V1ClusterRole aggregationRule(V1AggregationRule aggregationRule) { + this.aggregationRule = aggregationRule; return this; } /** - * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * Get aggregationRule * @return aggregationRule **/ - @ApiModelProperty(value = "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AggregationRule getAggregationRule() { return aggregationRule; } + + public void setAggregationRule(V1AggregationRule aggregationRule) { this.aggregationRule = aggregationRule; } + public V1ClusterRole apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -76,16 +92,22 @@ public V1ClusterRole apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ClusterRole kind(String kind) { + this.kind = kind; return this; } @@ -94,34 +116,46 @@ public V1ClusterRole kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ClusterRole metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ClusterRole rules(List rules) { + this.rules = rules; return this; } @@ -138,11 +172,15 @@ public V1ClusterRole addRulesItem(V1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this ClusterRole * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } @@ -150,23 +188,12 @@ public void setRules(List rules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ClusterRole v1ClusterRole = (V1ClusterRole) o; - return Objects.equals(this.aggregationRule, v1ClusterRole.aggregationRule) && - Objects.equals(this.apiVersion, v1ClusterRole.apiVersion) && - Objects.equals(this.kind, v1ClusterRole.kind) && - Objects.equals(this.metadata, v1ClusterRole.metadata) && - Objects.equals(this.rules, v1ClusterRole.rules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(aggregationRule, apiVersion, kind, metadata, rules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +201,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ClusterRole {\n"); - sb.append(" aggregationRule: ").append(toIndentedString(aggregationRule)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBinding.java index d5377e57ed..cebb9d9ae9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBinding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,24 +35,31 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ClusterRoleBinding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("roleRef") - private V1RoleRef roleRef = null; + public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; + @SerializedName(SERIALIZED_NAME_ROLE_REF) + private V1RoleRef roleRef; - @SerializedName("subjects") + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = null; + public V1ClusterRoleBinding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -58,16 +68,22 @@ public V1ClusterRoleBinding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ClusterRoleBinding kind(String kind) { + this.kind = kind; return this; } @@ -76,52 +92,69 @@ public V1ClusterRoleBinding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ClusterRoleBinding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ClusterRoleBinding roleRef(V1RoleRef roleRef) { + this.roleRef = roleRef; return this; } /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.") + @ApiModelProperty(required = true, value = "") + public V1RoleRef getRoleRef() { return roleRef; } + + public void setRoleRef(V1RoleRef roleRef) { this.roleRef = roleRef; } + public V1ClusterRoleBinding subjects(List subjects) { + this.subjects = subjects; return this; } @@ -138,11 +171,15 @@ public V1ClusterRoleBinding addSubjectsItem(V1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") + public List getSubjects() { return subjects; } + + public void setSubjects(List subjects) { this.subjects = subjects; } @@ -150,23 +187,12 @@ public void setSubjects(List subjects) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ClusterRoleBinding v1ClusterRoleBinding = (V1ClusterRoleBinding) o; - return Objects.equals(this.apiVersion, v1ClusterRoleBinding.apiVersion) && - Objects.equals(this.kind, v1ClusterRoleBinding.kind) && - Objects.equals(this.metadata, v1ClusterRoleBinding.metadata) && - Objects.equals(this.roleRef, v1ClusterRoleBinding.roleRef) && - Objects.equals(this.subjects, v1ClusterRoleBinding.subjects); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +200,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ClusterRoleBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBindingList.java index ed6ad37c90..cc68b761e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleBindingList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ClusterRoleBindingList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ClusterRoleBindingList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ClusterRoleBindingList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ClusterRoleBindingList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ClusterRoleBindingList addItemsItem(V1ClusterRoleBinding itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ClusterRoleBindings") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ClusterRoleBindingList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ClusterRoleBindingList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ClusterRoleBindingList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ClusterRoleBindingList v1ClusterRoleBindingList = (V1ClusterRoleBindingList) o; - return Objects.equals(this.apiVersion, v1ClusterRoleBindingList.apiVersion) && - Objects.equals(this.items, v1ClusterRoleBindingList.items) && - Objects.equals(this.kind, v1ClusterRoleBindingList.kind) && - Objects.equals(this.metadata, v1ClusterRoleBindingList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ClusterRoleBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleList.java index 5893abc8e7..950833717d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ClusterRoleList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ClusterRoleList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ClusterRoleList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ClusterRoleList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ClusterRoleList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ClusterRoleList addItemsItem(V1ClusterRole itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ClusterRoles") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ClusterRoleList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ClusterRoleList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ClusterRoleList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ClusterRoleList v1ClusterRoleList = (V1ClusterRoleList) o; - return Objects.equals(this.apiVersion, v1ClusterRoleList.apiVersion) && - Objects.equals(this.items, v1ClusterRoleList.items) && - Objects.equals(this.kind, v1ClusterRoleList.kind) && - Objects.equals(this.metadata, v1ClusterRoleList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ClusterRoleList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentCondition.java index b5142bea17..591df53cc1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Information about the condition of a component. */ @ApiModel(description = "Information about the condition of a component.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ComponentCondition { - @SerializedName("error") - private String error = null; + public static final String SERIALIZED_NAME_ERROR = "error"; + @SerializedName(SERIALIZED_NAME_ERROR) + private String error; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1ComponentCondition error(String error) { + this.error = error; return this; } @@ -50,16 +59,22 @@ public V1ComponentCondition error(String error) { * Condition error code for a component. For example, a health check error code. * @return error **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Condition error code for a component. For example, a health check error code.") + public String getError() { return error; } + + public void setError(String error) { this.error = error; } + public V1ComponentCondition message(String message) { + this.message = message; return this; } @@ -68,16 +83,22 @@ public V1ComponentCondition message(String message) { * Message about the condition for a component. For example, information about a health check. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Message about the condition for a component. For example, information about a health check.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1ComponentCondition status(String status) { + this.status = status; return this; } @@ -87,15 +108,20 @@ public V1ComponentCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition for a component. Valid values for \"Healthy\": \"True\", \"False\", or \"Unknown\".") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1ComponentCondition type(String type) { + this.type = type; return this; } @@ -105,10 +131,13 @@ public V1ComponentCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of condition for a component. Valid value: \"Healthy\"") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -116,22 +145,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ComponentCondition v1ComponentCondition = (V1ComponentCondition) o; - return Objects.equals(this.error, v1ComponentCondition.error) && - Objects.equals(this.message, v1ComponentCondition.message) && - Objects.equals(this.status, v1ComponentCondition.status) && - Objects.equals(this.type, v1ComponentCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(error, message, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +158,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ComponentCondition {\n"); - sb.append(" error: ").append(toIndentedString(error)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatus.java index 7bd9e97525..9ef5176d53 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ComponentStatus (and ComponentStatusList) holds the cluster validation info. */ @ApiModel(description = "ComponentStatus (and ComponentStatusList) holds the cluster validation info.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ComponentStatus { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; public V1ComponentStatus apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ComponentStatus apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ComponentStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -80,16 +95,22 @@ public V1ComponentStatus addConditionsItem(V1ComponentCondition conditionsItem) * List of component conditions observed * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of component conditions observed") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1ComponentStatus kind(String kind) { + this.kind = kind; return this; } @@ -98,29 +119,39 @@ public V1ComponentStatus kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ComponentStatus metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } @@ -128,22 +159,12 @@ public void setMetadata(V1ObjectMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ComponentStatus v1ComponentStatus = (V1ComponentStatus) o; - return Objects.equals(this.apiVersion, v1ComponentStatus.apiVersion) && - Objects.equals(this.conditions, v1ComponentStatus.conditions) && - Objects.equals(this.kind, v1ComponentStatus.kind) && - Objects.equals(this.metadata, v1ComponentStatus.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, conditions, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ComponentStatus {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatusList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatusList.java index b6b9dcfb5f..aa76871d4a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatusList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ComponentStatusList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * Status of all the conditions for the component as a list of ComponentStatus objects. */ @ApiModel(description = "Status of all the conditions for the component as a list of ComponentStatus objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ComponentStatusList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ComponentStatusList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ComponentStatusList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ComponentStatusList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ComponentStatusList addItemsItem(V1ComponentStatus itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of ComponentStatus objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ComponentStatusList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ComponentStatusList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ComponentStatusList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ComponentStatusList v1ComponentStatusList = (V1ComponentStatusList) o; - return Objects.equals(this.apiVersion, v1ComponentStatusList.apiVersion) && - Objects.equals(this.items, v1ComponentStatusList.items) && - Objects.equals(this.kind, v1ComponentStatusList.kind) && - Objects.equals(this.metadata, v1ComponentStatusList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ComponentStatusList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMap.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMap.java index c684bb59ec..40774261fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMap.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMap.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * ConfigMap holds configuration data for pods to consume. */ @ApiModel(description = "ConfigMap holds configuration data for pods to consume.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMap { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("binaryData") + public static final String SERIALIZED_NAME_BINARY_DATA = "binaryData"; + @SerializedName(SERIALIZED_NAME_BINARY_DATA) private Map binaryData = null; - @SerializedName("data") + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) private Map data = null; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; public V1ConfigMap apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,16 +67,22 @@ public V1ConfigMap apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ConfigMap binaryData(Map binaryData) { + this.binaryData = binaryData; return this; } @@ -83,16 +99,22 @@ public V1ConfigMap putBinaryDataItem(String key, byte[] binaryDataItem) { * BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet. * @return binaryData **/ + @javax.annotation.Nullable @ApiModelProperty(value = "BinaryData contains the binary data. Each key must consist of alphanumeric characters, '-', '_' or '.'. BinaryData can contain byte sequences that are not in the UTF-8 range. The keys stored in BinaryData must not overlap with the ones in the Data field, this is enforced during validation process. Using this field will require 1.10+ apiserver and kubelet.") + public Map getBinaryData() { return binaryData; } + + public void setBinaryData(Map binaryData) { this.binaryData = binaryData; } + public V1ConfigMap data(Map data) { + this.data = data; return this; } @@ -109,16 +131,22 @@ public V1ConfigMap putDataItem(String key, String dataItem) { * Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process. * @return data **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Data contains the configuration data. Each key must consist of alphanumeric characters, '-', '_' or '.'. Values with non-UTF-8 byte sequences must use the BinaryData field. The keys stored in Data must not overlap with the keys in the BinaryData field, this is enforced during validation process.") + public Map getData() { return data; } + + public void setData(Map data) { this.data = data; } + public V1ConfigMap kind(String kind) { + this.kind = kind; return this; } @@ -127,29 +155,39 @@ public V1ConfigMap kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ConfigMap metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } @@ -157,23 +195,12 @@ public void setMetadata(V1ObjectMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMap v1ConfigMap = (V1ConfigMap) o; - return Objects.equals(this.apiVersion, v1ConfigMap.apiVersion) && - Objects.equals(this.binaryData, v1ConfigMap.binaryData) && - Objects.equals(this.data, v1ConfigMap.data) && - Objects.equals(this.kind, v1ConfigMap.kind) && - Objects.equals(this.metadata, v1ConfigMap.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, binaryData, data, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -181,7 +208,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMap {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" binaryData: ").append(toIndentedString(binaryData)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapEnvSource.java index 28aa495eef..9b6fdb5060 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapEnvSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "ConfigMapEnvSource selects a ConfigMap to populate the environment variables with. The contents of the target ConfigMap's Data field will represent the key-value pairs as environment variables.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMapEnvSource { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1ConfigMapEnvSource name(String name) { + this.name = name; return this; } @@ -44,16 +51,22 @@ public V1ConfigMapEnvSource name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ConfigMapEnvSource optional(Boolean optional) { + this.optional = optional; return this; } @@ -62,11 +75,15 @@ public V1ConfigMapEnvSource optional(Boolean optional) { * Specify whether the ConfigMap must be defined * @return optional **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specify whether the ConfigMap must be defined") - public Boolean isOptional() { + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -74,20 +91,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMapEnvSource v1ConfigMapEnvSource = (V1ConfigMapEnvSource) o; - return Objects.equals(this.name, v1ConfigMapEnvSource.name) && - Objects.equals(this.optional, v1ConfigMapEnvSource.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapEnvSource {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapKeySelector.java index 8af99a1bac..a024377fdc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapKeySelector.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * Selects a key from a ConfigMap. */ @ApiModel(description = "Selects a key from a ConfigMap.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMapKeySelector { - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1ConfigMapKeySelector key(String key) { + this.key = key; return this; } @@ -48,15 +56,20 @@ public V1ConfigMapKeySelector key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "The key to select.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1ConfigMapKeySelector name(String name) { + this.name = name; return this; } @@ -65,29 +78,39 @@ public V1ConfigMapKeySelector name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ConfigMapKeySelector optional(Boolean optional) { + this.optional = optional; return this; } /** - * Specify whether the ConfigMap or it's key must be defined + * Specify whether the ConfigMap or its key must be defined * @return optional **/ - @ApiModelProperty(value = "Specify whether the ConfigMap or it's key must be defined") - public Boolean isOptional() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap or its key must be defined") + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -95,21 +118,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMapKeySelector v1ConfigMapKeySelector = (V1ConfigMapKeySelector) o; - return Objects.equals(this.key, v1ConfigMapKeySelector.key) && - Objects.equals(this.name, v1ConfigMapKeySelector.name) && - Objects.equals(this.optional, v1ConfigMapKeySelector.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(key, name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapKeySelector {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapList.java index 9c4b8a183f..bdaabc8ab1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ConfigMapList is a resource containing a list of ConfigMap objects. */ @ApiModel(description = "ConfigMapList is a resource containing a list of ConfigMap objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMapList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ConfigMapList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ConfigMapList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ConfigMapList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ConfigMapList addItemsItem(V1ConfigMap itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of ConfigMaps.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ConfigMapList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ConfigMapList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ConfigMapList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMapList v1ConfigMapList = (V1ConfigMapList) o; - return Objects.equals(this.apiVersion, v1ConfigMapList.apiVersion) && - Objects.equals(this.items, v1ConfigMapList.items) && - Objects.equals(this.kind, v1ConfigMapList.kind) && - Objects.equals(this.metadata, v1ConfigMapList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSource.java index 5a9ac4bf0f..40789c1e85 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,24 +30,31 @@ * ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node. */ @ApiModel(description = "ConfigMapNodeConfigSource contains the information to reference a ConfigMap as a config source for the Node.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMapNodeConfigSource { - @SerializedName("kubeletConfigKey") - private String kubeletConfigKey = null; + public static final String SERIALIZED_NAME_KUBELET_CONFIG_KEY = "kubeletConfigKey"; + @SerializedName(SERIALIZED_NAME_KUBELET_CONFIG_KEY) + private String kubeletConfigKey; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; + @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + private String resourceVersion; - @SerializedName("resourceVersion") - private String resourceVersion = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey) { + this.kubeletConfigKey = kubeletConfigKey; return this; } @@ -54,15 +64,20 @@ public V1ConfigMapNodeConfigSource kubeletConfigKey(String kubeletConfigKey) { * @return kubeletConfigKey **/ @ApiModelProperty(required = true, value = "KubeletConfigKey declares which key of the referenced ConfigMap corresponds to the KubeletConfiguration structure This field is required in all cases.") + public String getKubeletConfigKey() { return kubeletConfigKey; } + + public void setKubeletConfigKey(String kubeletConfigKey) { this.kubeletConfigKey = kubeletConfigKey; } + public V1ConfigMapNodeConfigSource name(String name) { + this.name = name; return this; } @@ -72,15 +87,20 @@ public V1ConfigMapNodeConfigSource name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the metadata.name of the referenced ConfigMap. This field is required in all cases.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ConfigMapNodeConfigSource namespace(String namespace) { + this.namespace = namespace; return this; } @@ -90,15 +110,20 @@ public V1ConfigMapNodeConfigSource namespace(String namespace) { * @return namespace **/ @ApiModelProperty(required = true, value = "Namespace is the metadata.namespace of the referenced ConfigMap. This field is required in all cases.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1ConfigMapNodeConfigSource resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @@ -107,16 +132,22 @@ public V1ConfigMapNodeConfigSource resourceVersion(String resourceVersion) { * ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. * @return resourceVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ResourceVersion is the metadata.ResourceVersion of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") + public String getResourceVersion() { return resourceVersion; } + + public void setResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; } + public V1ConfigMapNodeConfigSource uid(String uid) { + this.uid = uid; return this; } @@ -125,11 +156,15 @@ public V1ConfigMapNodeConfigSource uid(String uid) { * UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID is the metadata.UID of the referenced ConfigMap. This field is forbidden in Node.Spec, and required in Node.Status.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } @@ -137,23 +172,12 @@ public void setUid(String uid) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMapNodeConfigSource v1ConfigMapNodeConfigSource = (V1ConfigMapNodeConfigSource) o; - return Objects.equals(this.kubeletConfigKey, v1ConfigMapNodeConfigSource.kubeletConfigKey) && - Objects.equals(this.name, v1ConfigMapNodeConfigSource.name) && - Objects.equals(this.namespace, v1ConfigMapNodeConfigSource.namespace) && - Objects.equals(this.resourceVersion, v1ConfigMapNodeConfigSource.resourceVersion) && - Objects.equals(this.uid, v1ConfigMapNodeConfigSource.uid); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(kubeletConfigKey, name, namespace, resourceVersion, uid); + return HashCodeBuilder.reflectionHashCode(this); } @@ -161,7 +185,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapNodeConfigSource {\n"); - sb.append(" kubeletConfigKey: ").append(toIndentedString(kubeletConfigKey)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapProjection.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapProjection.java index 3d98bf1fae..28d94caf41 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapProjection.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode. */ @ApiModel(description = "Adapts a ConfigMap into a projected volume. The contents of the target ConfigMap's Data field will be presented in a projected volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. Note that this is identical to a configmap volume source without the default mode.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMapProjection { - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = null; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1ConfigMapProjection items(List items) { + this.items = items; return this; } @@ -58,16 +66,22 @@ public V1ConfigMapProjection addItemsItem(V1KeyToPath itemsItem) { * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ConfigMapProjection name(String name) { + this.name = name; return this; } @@ -76,29 +90,39 @@ public V1ConfigMapProjection name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ConfigMapProjection optional(Boolean optional) { + this.optional = optional; return this; } /** - * Specify whether the ConfigMap or it's keys must be defined + * Specify whether the ConfigMap or its keys must be defined * @return optional **/ - @ApiModelProperty(value = "Specify whether the ConfigMap or it's keys must be defined") - public Boolean isOptional() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap or its keys must be defined") + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -106,21 +130,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMapProjection v1ConfigMapProjection = (V1ConfigMapProjection) o; - return Objects.equals(this.items, v1ConfigMapProjection.items) && - Objects.equals(this.name, v1ConfigMapProjection.name) && - Objects.equals(this.optional, v1ConfigMapProjection.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(items, name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +143,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapProjection {\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapVolumeSource.java index e0dc3e43e7..69156b52c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ConfigMapVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ * Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a ConfigMap into a volume. The contents of the target ConfigMap's Data field will be presented in a volume as files using the keys in the Data field as the file names, unless the items element is populated with specific mappings of keys to paths. ConfigMap volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ConfigMapVolumeSource { - @SerializedName("defaultMode") - private Integer defaultMode = null; + public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; + @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + private Integer defaultMode; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = null; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1ConfigMapVolumeSource defaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @@ -53,16 +62,22 @@ public V1ConfigMapVolumeSource defaultMode(Integer defaultMode) { * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + public Integer getDefaultMode() { return defaultMode; } + + public void setDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; } + public V1ConfigMapVolumeSource items(List items) { + this.items = items; return this; } @@ -79,16 +94,22 @@ public V1ConfigMapVolumeSource addItemsItem(V1KeyToPath itemsItem) { * If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ConfigMapVolumeSource name(String name) { + this.name = name; return this; } @@ -97,29 +118,39 @@ public V1ConfigMapVolumeSource name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ConfigMapVolumeSource optional(Boolean optional) { + this.optional = optional; return this; } /** - * Specify whether the ConfigMap or it's keys must be defined + * Specify whether the ConfigMap or its keys must be defined * @return optional **/ - @ApiModelProperty(value = "Specify whether the ConfigMap or it's keys must be defined") - public Boolean isOptional() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the ConfigMap or its keys must be defined") + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -127,22 +158,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ConfigMapVolumeSource v1ConfigMapVolumeSource = (V1ConfigMapVolumeSource) o; - return Objects.equals(this.defaultMode, v1ConfigMapVolumeSource.defaultMode) && - Objects.equals(this.items, v1ConfigMapVolumeSource.items) && - Objects.equals(this.name, v1ConfigMapVolumeSource.name) && - Objects.equals(this.optional, v1ConfigMapVolumeSource.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(defaultMode, items, name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -150,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ConfigMapVolumeSource {\n"); - sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Container.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Container.java index 3270882203..6c04011d84 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Container.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Container.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -38,72 +41,95 @@ * A single application container that you want to run within a pod. */ @ApiModel(description = "A single application container that you want to run within a pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Container { - @SerializedName("args") + public static final String SERIALIZED_NAME_ARGS = "args"; + @SerializedName(SERIALIZED_NAME_ARGS) private List args = null; - @SerializedName("command") + public static final String SERIALIZED_NAME_COMMAND = "command"; + @SerializedName(SERIALIZED_NAME_COMMAND) private List command = null; - @SerializedName("env") + public static final String SERIALIZED_NAME_ENV = "env"; + @SerializedName(SERIALIZED_NAME_ENV) private List env = null; - @SerializedName("envFrom") + public static final String SERIALIZED_NAME_ENV_FROM = "envFrom"; + @SerializedName(SERIALIZED_NAME_ENV_FROM) private List envFrom = null; - @SerializedName("image") - private String image = null; + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + private String image; - @SerializedName("imagePullPolicy") - private String imagePullPolicy = null; + public static final String SERIALIZED_NAME_IMAGE_PULL_POLICY = "imagePullPolicy"; + @SerializedName(SERIALIZED_NAME_IMAGE_PULL_POLICY) + private String imagePullPolicy; - @SerializedName("lifecycle") - private V1Lifecycle lifecycle = null; + public static final String SERIALIZED_NAME_LIFECYCLE = "lifecycle"; + @SerializedName(SERIALIZED_NAME_LIFECYCLE) + private V1Lifecycle lifecycle; - @SerializedName("livenessProbe") - private V1Probe livenessProbe = null; + public static final String SERIALIZED_NAME_LIVENESS_PROBE = "livenessProbe"; + @SerializedName(SERIALIZED_NAME_LIVENESS_PROBE) + private V1Probe livenessProbe; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; - @SerializedName("readinessProbe") - private V1Probe readinessProbe = null; + public static final String SERIALIZED_NAME_READINESS_PROBE = "readinessProbe"; + @SerializedName(SERIALIZED_NAME_READINESS_PROBE) + private V1Probe readinessProbe; - @SerializedName("resources") - private V1ResourceRequirements resources = null; + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private V1ResourceRequirements resources; - @SerializedName("securityContext") - private V1SecurityContext securityContext = null; + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; + @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) + private V1SecurityContext securityContext; - @SerializedName("stdin") - private Boolean stdin = null; + public static final String SERIALIZED_NAME_STDIN = "stdin"; + @SerializedName(SERIALIZED_NAME_STDIN) + private Boolean stdin; - @SerializedName("stdinOnce") - private Boolean stdinOnce = null; + public static final String SERIALIZED_NAME_STDIN_ONCE = "stdinOnce"; + @SerializedName(SERIALIZED_NAME_STDIN_ONCE) + private Boolean stdinOnce; - @SerializedName("terminationMessagePath") - private String terminationMessagePath = null; + public static final String SERIALIZED_NAME_TERMINATION_MESSAGE_PATH = "terminationMessagePath"; + @SerializedName(SERIALIZED_NAME_TERMINATION_MESSAGE_PATH) + private String terminationMessagePath; - @SerializedName("terminationMessagePolicy") - private String terminationMessagePolicy = null; + public static final String SERIALIZED_NAME_TERMINATION_MESSAGE_POLICY = "terminationMessagePolicy"; + @SerializedName(SERIALIZED_NAME_TERMINATION_MESSAGE_POLICY) + private String terminationMessagePolicy; - @SerializedName("tty") - private Boolean tty = null; + public static final String SERIALIZED_NAME_TTY = "tty"; + @SerializedName(SERIALIZED_NAME_TTY) + private Boolean tty; - @SerializedName("volumeDevices") + public static final String SERIALIZED_NAME_VOLUME_DEVICES = "volumeDevices"; + @SerializedName(SERIALIZED_NAME_VOLUME_DEVICES) private List volumeDevices = null; - @SerializedName("volumeMounts") + public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; + @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) private List volumeMounts = null; - @SerializedName("workingDir") - private String workingDir = null; + public static final String SERIALIZED_NAME_WORKING_DIR = "workingDir"; + @SerializedName(SERIALIZED_NAME_WORKING_DIR) + private String workingDir; + public V1Container args(List args) { + this.args = args; return this; } @@ -120,16 +146,22 @@ public V1Container addArgsItem(String argsItem) { * Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell * @return args **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") + public List getArgs() { return args; } + + public void setArgs(List args) { this.args = args; } + public V1Container command(List command) { + this.command = command; return this; } @@ -146,16 +178,22 @@ public V1Container addCommandItem(String commandItem) { * Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell * @return command **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell") + public List getCommand() { return command; } + + public void setCommand(List command) { this.command = command; } + public V1Container env(List env) { + this.env = env; return this; } @@ -172,16 +210,22 @@ public V1Container addEnvItem(V1EnvVar envItem) { * List of environment variables to set in the container. Cannot be updated. * @return env **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of environment variables to set in the container. Cannot be updated.") + public List getEnv() { return env; } + + public void setEnv(List env) { this.env = env; } + public V1Container envFrom(List envFrom) { + this.envFrom = envFrom; return this; } @@ -198,16 +242,22 @@ public V1Container addEnvFromItem(V1EnvFromSource envFromItem) { * List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. * @return envFrom **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated.") + public List getEnvFrom() { return envFrom; } + + public void setEnvFrom(List envFrom) { this.envFrom = envFrom; } + public V1Container image(String image) { + this.image = image; return this; } @@ -216,16 +266,22 @@ public V1Container image(String image) { * Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. * @return image **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets.") + public String getImage() { return image; } + + public void setImage(String image) { this.image = image; } + public V1Container imagePullPolicy(String imagePullPolicy) { + this.imagePullPolicy = imagePullPolicy; return this; } @@ -234,52 +290,70 @@ public V1Container imagePullPolicy(String imagePullPolicy) { * Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images * @return imagePullPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Image pull policy. One of Always, Never, IfNotPresent. Defaults to Always if :latest tag is specified, or IfNotPresent otherwise. Cannot be updated. More info: https://kubernetes.io/docs/concepts/containers/images#updating-images") + public String getImagePullPolicy() { return imagePullPolicy; } + + public void setImagePullPolicy(String imagePullPolicy) { this.imagePullPolicy = imagePullPolicy; } + public V1Container lifecycle(V1Lifecycle lifecycle) { + this.lifecycle = lifecycle; return this; } /** - * Actions that the management system should take in response to container lifecycle events. Cannot be updated. + * Get lifecycle * @return lifecycle **/ - @ApiModelProperty(value = "Actions that the management system should take in response to container lifecycle events. Cannot be updated.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Lifecycle getLifecycle() { return lifecycle; } + + public void setLifecycle(V1Lifecycle lifecycle) { this.lifecycle = lifecycle; } + public V1Container livenessProbe(V1Probe livenessProbe) { + this.livenessProbe = livenessProbe; return this; } /** - * Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * Get livenessProbe * @return livenessProbe **/ - @ApiModelProperty(value = "Periodic probe of container liveness. Container will be restarted if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Probe getLivenessProbe() { return livenessProbe; } + + public void setLivenessProbe(V1Probe livenessProbe) { this.livenessProbe = livenessProbe; } + public V1Container name(String name) { + this.name = name; return this; } @@ -289,15 +363,20 @@ public V1Container name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1Container ports(List ports) { + this.ports = ports; return this; } @@ -314,70 +393,94 @@ public V1Container addPortsItem(V1ContainerPort portsItem) { * List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated.") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } + public V1Container readinessProbe(V1Probe readinessProbe) { + this.readinessProbe = readinessProbe; return this; } /** - * Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes + * Get readinessProbe * @return readinessProbe **/ - @ApiModelProperty(value = "Periodic probe of container service readiness. Container will be removed from service endpoints if the probe fails. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Probe getReadinessProbe() { return readinessProbe; } + + public void setReadinessProbe(V1Probe readinessProbe) { this.readinessProbe = readinessProbe; } + public V1Container resources(V1ResourceRequirements resources) { + this.resources = resources; return this; } /** - * Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ + * Get resources * @return resources **/ - @ApiModelProperty(value = "Compute Resources required by this container. Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceRequirements getResources() { return resources; } + + public void setResources(V1ResourceRequirements resources) { this.resources = resources; } + public V1Container securityContext(V1SecurityContext securityContext) { + this.securityContext = securityContext; return this; } /** - * Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/ + * Get securityContext * @return securityContext **/ - @ApiModelProperty(value = "Security options the pod should run with. More info: https://kubernetes.io/docs/concepts/policy/security-context/ More info: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecurityContext getSecurityContext() { return securityContext; } + + public void setSecurityContext(V1SecurityContext securityContext) { this.securityContext = securityContext; } + public V1Container stdin(Boolean stdin) { + this.stdin = stdin; return this; } @@ -386,16 +489,22 @@ public V1Container stdin(Boolean stdin) { * Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. * @return stdin **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false.") - public Boolean isStdin() { + + public Boolean getStdin() { return stdin; } + + public void setStdin(Boolean stdin) { this.stdin = stdin; } + public V1Container stdinOnce(Boolean stdinOnce) { + this.stdinOnce = stdinOnce; return this; } @@ -404,16 +513,22 @@ public V1Container stdinOnce(Boolean stdinOnce) { * Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false * @return stdinOnce **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false") - public Boolean isStdinOnce() { + + public Boolean getStdinOnce() { return stdinOnce; } + + public void setStdinOnce(Boolean stdinOnce) { this.stdinOnce = stdinOnce; } + public V1Container terminationMessagePath(String terminationMessagePath) { + this.terminationMessagePath = terminationMessagePath; return this; } @@ -422,16 +537,22 @@ public V1Container terminationMessagePath(String terminationMessagePath) { * Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. * @return terminationMessagePath **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated.") + public String getTerminationMessagePath() { return terminationMessagePath; } + + public void setTerminationMessagePath(String terminationMessagePath) { this.terminationMessagePath = terminationMessagePath; } + public V1Container terminationMessagePolicy(String terminationMessagePolicy) { + this.terminationMessagePolicy = terminationMessagePolicy; return this; } @@ -440,16 +561,22 @@ public V1Container terminationMessagePolicy(String terminationMessagePolicy) { * Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated. * @return terminationMessagePolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicate how the termination message should be populated. File will use the contents of terminationMessagePath to populate the container status message on both success and failure. FallbackToLogsOnError will use the last chunk of container log output if the termination message file is empty and the container exited with an error. The log output is limited to 2048 bytes or 80 lines, whichever is smaller. Defaults to File. Cannot be updated.") + public String getTerminationMessagePolicy() { return terminationMessagePolicy; } + + public void setTerminationMessagePolicy(String terminationMessagePolicy) { this.terminationMessagePolicy = terminationMessagePolicy; } + public V1Container tty(Boolean tty) { + this.tty = tty; return this; } @@ -458,16 +585,22 @@ public V1Container tty(Boolean tty) { * Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. * @return tty **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false.") - public Boolean isTty() { + + public Boolean getTty() { return tty; } + + public void setTty(Boolean tty) { this.tty = tty; } + public V1Container volumeDevices(List volumeDevices) { + this.volumeDevices = volumeDevices; return this; } @@ -484,16 +617,22 @@ public V1Container addVolumeDevicesItem(V1VolumeDevice volumeDevicesItem) { * volumeDevices is the list of block devices to be used by the container. This is a beta feature. * @return volumeDevices **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumeDevices is the list of block devices to be used by the container. This is a beta feature.") + public List getVolumeDevices() { return volumeDevices; } + + public void setVolumeDevices(List volumeDevices) { this.volumeDevices = volumeDevices; } + public V1Container volumeMounts(List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -510,16 +649,22 @@ public V1Container addVolumeMountsItem(V1VolumeMount volumeMountsItem) { * Pod volumes to mount into the container's filesystem. Cannot be updated. * @return volumeMounts **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Pod volumes to mount into the container's filesystem. Cannot be updated.") + public List getVolumeMounts() { return volumeMounts; } + + public void setVolumeMounts(List volumeMounts) { this.volumeMounts = volumeMounts; } + public V1Container workingDir(String workingDir) { + this.workingDir = workingDir; return this; } @@ -528,11 +673,15 @@ public V1Container workingDir(String workingDir) { * Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. * @return workingDir **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated.") + public String getWorkingDir() { return workingDir; } + + public void setWorkingDir(String workingDir) { this.workingDir = workingDir; } @@ -540,39 +689,12 @@ public void setWorkingDir(String workingDir) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Container v1Container = (V1Container) o; - return Objects.equals(this.args, v1Container.args) && - Objects.equals(this.command, v1Container.command) && - Objects.equals(this.env, v1Container.env) && - Objects.equals(this.envFrom, v1Container.envFrom) && - Objects.equals(this.image, v1Container.image) && - Objects.equals(this.imagePullPolicy, v1Container.imagePullPolicy) && - Objects.equals(this.lifecycle, v1Container.lifecycle) && - Objects.equals(this.livenessProbe, v1Container.livenessProbe) && - Objects.equals(this.name, v1Container.name) && - Objects.equals(this.ports, v1Container.ports) && - Objects.equals(this.readinessProbe, v1Container.readinessProbe) && - Objects.equals(this.resources, v1Container.resources) && - Objects.equals(this.securityContext, v1Container.securityContext) && - Objects.equals(this.stdin, v1Container.stdin) && - Objects.equals(this.stdinOnce, v1Container.stdinOnce) && - Objects.equals(this.terminationMessagePath, v1Container.terminationMessagePath) && - Objects.equals(this.terminationMessagePolicy, v1Container.terminationMessagePolicy) && - Objects.equals(this.tty, v1Container.tty) && - Objects.equals(this.volumeDevices, v1Container.volumeDevices) && - Objects.equals(this.volumeMounts, v1Container.volumeMounts) && - Objects.equals(this.workingDir, v1Container.workingDir); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(args, command, env, envFrom, image, imagePullPolicy, lifecycle, livenessProbe, name, ports, readinessProbe, resources, securityContext, stdin, stdinOnce, terminationMessagePath, terminationMessagePolicy, tty, volumeDevices, volumeMounts, workingDir); + return HashCodeBuilder.reflectionHashCode(this); } @@ -580,7 +702,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Container {\n"); - sb.append(" args: ").append(toIndentedString(args)).append("\n"); sb.append(" command: ").append(toIndentedString(command)).append("\n"); sb.append(" env: ").append(toIndentedString(env)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerImage.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerImage.java index e5883b4a23..9816ed9933 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerImage.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerImage.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * Describe a container image */ @ApiModel(description = "Describe a container image") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerImage { - @SerializedName("names") + public static final String SERIALIZED_NAME_NAMES = "names"; + @SerializedName(SERIALIZED_NAME_NAMES) private List names = new ArrayList(); - @SerializedName("sizeBytes") - private Long sizeBytes = null; + public static final String SERIALIZED_NAME_SIZE_BYTES = "sizeBytes"; + @SerializedName(SERIALIZED_NAME_SIZE_BYTES) + private Long sizeBytes; + public V1ContainerImage names(List names) { + this.names = names; return this; } @@ -52,15 +59,20 @@ public V1ContainerImage addNamesItem(String namesItem) { * @return names **/ @ApiModelProperty(required = true, value = "Names by which this image is known. e.g. [\"k8s.gcr.io/hyperkube:v1.0.7\", \"dockerhub.io/google_containers/hyperkube:v1.0.7\"]") + public List getNames() { return names; } + + public void setNames(List names) { this.names = names; } + public V1ContainerImage sizeBytes(Long sizeBytes) { + this.sizeBytes = sizeBytes; return this; } @@ -69,11 +81,15 @@ public V1ContainerImage sizeBytes(Long sizeBytes) { * The size of the image in bytes. * @return sizeBytes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The size of the image in bytes.") + public Long getSizeBytes() { return sizeBytes; } + + public void setSizeBytes(Long sizeBytes) { this.sizeBytes = sizeBytes; } @@ -81,20 +97,12 @@ public void setSizeBytes(Long sizeBytes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerImage v1ContainerImage = (V1ContainerImage) o; - return Objects.equals(this.names, v1ContainerImage.names) && - Objects.equals(this.sizeBytes, v1ContainerImage.sizeBytes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(names, sizeBytes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -102,7 +110,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerImage {\n"); - sb.append(" names: ").append(toIndentedString(names)).append("\n"); sb.append(" sizeBytes: ").append(toIndentedString(sizeBytes)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerPort.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerPort.java index dd9bd13ed6..4be61ca732 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerPort.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,24 +30,31 @@ * ContainerPort represents a network port in a single container. */ @ApiModel(description = "ContainerPort represents a network port in a single container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerPort { - @SerializedName("containerPort") - private Integer containerPort = null; + public static final String SERIALIZED_NAME_CONTAINER_PORT = "containerPort"; + @SerializedName(SERIALIZED_NAME_CONTAINER_PORT) + private Integer containerPort; + + public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; + @SerializedName(SERIALIZED_NAME_HOST_I_P) + private String hostIP; - @SerializedName("hostIP") - private String hostIP = null; + public static final String SERIALIZED_NAME_HOST_PORT = "hostPort"; + @SerializedName(SERIALIZED_NAME_HOST_PORT) + private Integer hostPort; - @SerializedName("hostPort") - private Integer hostPort = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; + @SerializedName(SERIALIZED_NAME_PROTOCOL) + private String protocol; - @SerializedName("protocol") - private String protocol = null; public V1ContainerPort containerPort(Integer containerPort) { + this.containerPort = containerPort; return this; } @@ -54,15 +64,20 @@ public V1ContainerPort containerPort(Integer containerPort) { * @return containerPort **/ @ApiModelProperty(required = true, value = "Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.") + public Integer getContainerPort() { return containerPort; } + + public void setContainerPort(Integer containerPort) { this.containerPort = containerPort; } + public V1ContainerPort hostIP(String hostIP) { + this.hostIP = hostIP; return this; } @@ -71,16 +86,22 @@ public V1ContainerPort hostIP(String hostIP) { * What host IP to bind the external port to. * @return hostIP **/ + @javax.annotation.Nullable @ApiModelProperty(value = "What host IP to bind the external port to.") + public String getHostIP() { return hostIP; } + + public void setHostIP(String hostIP) { this.hostIP = hostIP; } + public V1ContainerPort hostPort(Integer hostPort) { + this.hostPort = hostPort; return this; } @@ -89,16 +110,22 @@ public V1ContainerPort hostPort(Integer hostPort) { * Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this. * @return hostPort **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.") + public Integer getHostPort() { return hostPort; } + + public void setHostPort(Integer hostPort) { this.hostPort = hostPort; } + public V1ContainerPort name(String name) { + this.name = name; return this; } @@ -107,16 +134,22 @@ public V1ContainerPort name(String name) { * If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ContainerPort protocol(String protocol) { + this.protocol = protocol; return this; } @@ -125,11 +158,15 @@ public V1ContainerPort protocol(String protocol) { * Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\". * @return protocol **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Protocol for port. Must be UDP, TCP, or SCTP. Defaults to \"TCP\".") + public String getProtocol() { return protocol; } + + public void setProtocol(String protocol) { this.protocol = protocol; } @@ -137,23 +174,12 @@ public void setProtocol(String protocol) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerPort v1ContainerPort = (V1ContainerPort) o; - return Objects.equals(this.containerPort, v1ContainerPort.containerPort) && - Objects.equals(this.hostIP, v1ContainerPort.hostIP) && - Objects.equals(this.hostPort, v1ContainerPort.hostPort) && - Objects.equals(this.name, v1ContainerPort.name) && - Objects.equals(this.protocol, v1ContainerPort.protocol); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(containerPort, hostIP, hostPort, name, protocol); + return HashCodeBuilder.reflectionHashCode(this); } @@ -161,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerPort {\n"); - sb.append(" containerPort: ").append(toIndentedString(containerPort)).append("\n"); sb.append(" hostIP: ").append(toIndentedString(hostIP)).append("\n"); sb.append(" hostPort: ").append(toIndentedString(hostPort)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerState.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerState.java index db5c94b5a7..7f83392d61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerState.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerState.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,67 +33,88 @@ * ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting. */ @ApiModel(description = "ContainerState holds a possible state of container. Only one of its members may be specified. If none of them is specified, the default one is ContainerStateWaiting.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerState { - @SerializedName("running") - private V1ContainerStateRunning running = null; + public static final String SERIALIZED_NAME_RUNNING = "running"; + @SerializedName(SERIALIZED_NAME_RUNNING) + private V1ContainerStateRunning running; + + public static final String SERIALIZED_NAME_TERMINATED = "terminated"; + @SerializedName(SERIALIZED_NAME_TERMINATED) + private V1ContainerStateTerminated terminated; - @SerializedName("terminated") - private V1ContainerStateTerminated terminated = null; + public static final String SERIALIZED_NAME_WAITING = "waiting"; + @SerializedName(SERIALIZED_NAME_WAITING) + private V1ContainerStateWaiting waiting; - @SerializedName("waiting") - private V1ContainerStateWaiting waiting = null; public V1ContainerState running(V1ContainerStateRunning running) { + this.running = running; return this; } /** - * Details about a running container + * Get running * @return running **/ - @ApiModelProperty(value = "Details about a running container") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ContainerStateRunning getRunning() { return running; } + + public void setRunning(V1ContainerStateRunning running) { this.running = running; } + public V1ContainerState terminated(V1ContainerStateTerminated terminated) { + this.terminated = terminated; return this; } /** - * Details about a terminated container + * Get terminated * @return terminated **/ - @ApiModelProperty(value = "Details about a terminated container") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ContainerStateTerminated getTerminated() { return terminated; } + + public void setTerminated(V1ContainerStateTerminated terminated) { this.terminated = terminated; } + public V1ContainerState waiting(V1ContainerStateWaiting waiting) { + this.waiting = waiting; return this; } /** - * Details about a waiting container + * Get waiting * @return waiting **/ - @ApiModelProperty(value = "Details about a waiting container") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ContainerStateWaiting getWaiting() { return waiting; } + + public void setWaiting(V1ContainerStateWaiting waiting) { this.waiting = waiting; } @@ -98,21 +122,12 @@ public void setWaiting(V1ContainerStateWaiting waiting) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerState v1ContainerState = (V1ContainerState) o; - return Objects.equals(this.running, v1ContainerState.running) && - Objects.equals(this.terminated, v1ContainerState.terminated) && - Objects.equals(this.waiting, v1ContainerState.waiting); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(running, terminated, waiting); + return HashCodeBuilder.reflectionHashCode(this); } @@ -120,7 +135,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerState {\n"); - sb.append(" running: ").append(toIndentedString(running)).append("\n"); sb.append(" terminated: ").append(toIndentedString(terminated)).append("\n"); sb.append(" waiting: ").append(toIndentedString(waiting)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateRunning.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateRunning.java index 23d31c6d8d..c72bee7548 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateRunning.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateRunning.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,12 +31,15 @@ * ContainerStateRunning is a running state of a container. */ @ApiModel(description = "ContainerStateRunning is a running state of a container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerStateRunning { - @SerializedName("startedAt") - private DateTime startedAt = null; + public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; + @SerializedName(SERIALIZED_NAME_STARTED_AT) + private DateTime startedAt; + public V1ContainerStateRunning startedAt(DateTime startedAt) { + this.startedAt = startedAt; return this; } @@ -42,11 +48,15 @@ public V1ContainerStateRunning startedAt(DateTime startedAt) { * Time at which the container was last (re-)started * @return startedAt **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time at which the container was last (re-)started") + public DateTime getStartedAt() { return startedAt; } + + public void setStartedAt(DateTime startedAt) { this.startedAt = startedAt; } @@ -54,19 +64,12 @@ public void setStartedAt(DateTime startedAt) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerStateRunning v1ContainerStateRunning = (V1ContainerStateRunning) o; - return Objects.equals(this.startedAt, v1ContainerStateRunning.startedAt); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(startedAt); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerStateRunning {\n"); - sb.append(" startedAt: ").append(toIndentedString(startedAt)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateTerminated.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateTerminated.java index 42341ee771..f9e5ac73fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateTerminated.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateTerminated.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,30 +31,39 @@ * ContainerStateTerminated is a terminated state of a container. */ @ApiModel(description = "ContainerStateTerminated is a terminated state of a container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerStateTerminated { - @SerializedName("containerID") - private String containerID = null; + public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; + @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) + private String containerID; + + public static final String SERIALIZED_NAME_EXIT_CODE = "exitCode"; + @SerializedName(SERIALIZED_NAME_EXIT_CODE) + private Integer exitCode; - @SerializedName("exitCode") - private Integer exitCode = null; + public static final String SERIALIZED_NAME_FINISHED_AT = "finishedAt"; + @SerializedName(SERIALIZED_NAME_FINISHED_AT) + private DateTime finishedAt; - @SerializedName("finishedAt") - private DateTime finishedAt = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_SIGNAL = "signal"; + @SerializedName(SERIALIZED_NAME_SIGNAL) + private Integer signal; - @SerializedName("signal") - private Integer signal = null; + public static final String SERIALIZED_NAME_STARTED_AT = "startedAt"; + @SerializedName(SERIALIZED_NAME_STARTED_AT) + private DateTime startedAt; - @SerializedName("startedAt") - private DateTime startedAt = null; public V1ContainerStateTerminated containerID(String containerID) { + this.containerID = containerID; return this; } @@ -60,16 +72,22 @@ public V1ContainerStateTerminated containerID(String containerID) { * Container's ID in the format 'docker://<container_id>' * @return containerID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Container's ID in the format 'docker://'") + public String getContainerID() { return containerID; } + + public void setContainerID(String containerID) { this.containerID = containerID; } + public V1ContainerStateTerminated exitCode(Integer exitCode) { + this.exitCode = exitCode; return this; } @@ -79,15 +97,20 @@ public V1ContainerStateTerminated exitCode(Integer exitCode) { * @return exitCode **/ @ApiModelProperty(required = true, value = "Exit status from the last termination of the container") + public Integer getExitCode() { return exitCode; } + + public void setExitCode(Integer exitCode) { this.exitCode = exitCode; } + public V1ContainerStateTerminated finishedAt(DateTime finishedAt) { + this.finishedAt = finishedAt; return this; } @@ -96,16 +119,22 @@ public V1ContainerStateTerminated finishedAt(DateTime finishedAt) { * Time at which the container last terminated * @return finishedAt **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time at which the container last terminated") + public DateTime getFinishedAt() { return finishedAt; } + + public void setFinishedAt(DateTime finishedAt) { this.finishedAt = finishedAt; } + public V1ContainerStateTerminated message(String message) { + this.message = message; return this; } @@ -114,16 +143,22 @@ public V1ContainerStateTerminated message(String message) { * Message regarding the last termination of the container * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Message regarding the last termination of the container") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1ContainerStateTerminated reason(String reason) { + this.reason = reason; return this; } @@ -132,16 +167,22 @@ public V1ContainerStateTerminated reason(String reason) { * (brief) reason from the last termination of the container * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "(brief) reason from the last termination of the container") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1ContainerStateTerminated signal(Integer signal) { + this.signal = signal; return this; } @@ -150,16 +191,22 @@ public V1ContainerStateTerminated signal(Integer signal) { * Signal from the last termination of the container * @return signal **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Signal from the last termination of the container") + public Integer getSignal() { return signal; } + + public void setSignal(Integer signal) { this.signal = signal; } + public V1ContainerStateTerminated startedAt(DateTime startedAt) { + this.startedAt = startedAt; return this; } @@ -168,11 +215,15 @@ public V1ContainerStateTerminated startedAt(DateTime startedAt) { * Time at which previous execution of the container started * @return startedAt **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time at which previous execution of the container started") + public DateTime getStartedAt() { return startedAt; } + + public void setStartedAt(DateTime startedAt) { this.startedAt = startedAt; } @@ -180,25 +231,12 @@ public void setStartedAt(DateTime startedAt) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerStateTerminated v1ContainerStateTerminated = (V1ContainerStateTerminated) o; - return Objects.equals(this.containerID, v1ContainerStateTerminated.containerID) && - Objects.equals(this.exitCode, v1ContainerStateTerminated.exitCode) && - Objects.equals(this.finishedAt, v1ContainerStateTerminated.finishedAt) && - Objects.equals(this.message, v1ContainerStateTerminated.message) && - Objects.equals(this.reason, v1ContainerStateTerminated.reason) && - Objects.equals(this.signal, v1ContainerStateTerminated.signal) && - Objects.equals(this.startedAt, v1ContainerStateTerminated.startedAt); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(containerID, exitCode, finishedAt, message, reason, signal, startedAt); + return HashCodeBuilder.reflectionHashCode(this); } @@ -206,7 +244,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerStateTerminated {\n"); - sb.append(" containerID: ").append(toIndentedString(containerID)).append("\n"); sb.append(" exitCode: ").append(toIndentedString(exitCode)).append("\n"); sb.append(" finishedAt: ").append(toIndentedString(finishedAt)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateWaiting.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateWaiting.java index ef7551d6eb..d622c8e9f3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateWaiting.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStateWaiting.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * ContainerStateWaiting is a waiting state of a container. */ @ApiModel(description = "ContainerStateWaiting is a waiting state of a container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerStateWaiting { - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; public V1ContainerStateWaiting message(String message) { + this.message = message; return this; } @@ -44,16 +51,22 @@ public V1ContainerStateWaiting message(String message) { * Message regarding why the container is not yet running. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Message regarding why the container is not yet running.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1ContainerStateWaiting reason(String reason) { + this.reason = reason; return this; } @@ -62,11 +75,15 @@ public V1ContainerStateWaiting reason(String reason) { * (brief) reason the container is not yet running. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "(brief) reason the container is not yet running.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } @@ -74,20 +91,12 @@ public void setReason(String reason) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerStateWaiting v1ContainerStateWaiting = (V1ContainerStateWaiting) o; - return Objects.equals(this.message, v1ContainerStateWaiting.message) && - Objects.equals(this.reason, v1ContainerStateWaiting.reason); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(message, reason); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerStateWaiting {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStatus.java index b17bb89f63..a1da730131 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ContainerStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * ContainerStatus contains details for the current status of this container. */ @ApiModel(description = "ContainerStatus contains details for the current status of this container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ContainerStatus { - @SerializedName("containerID") - private String containerID = null; + public static final String SERIALIZED_NAME_CONTAINER_I_D = "containerID"; + @SerializedName(SERIALIZED_NAME_CONTAINER_I_D) + private String containerID; + + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + private String image; - @SerializedName("image") - private String image = null; + public static final String SERIALIZED_NAME_IMAGE_I_D = "imageID"; + @SerializedName(SERIALIZED_NAME_IMAGE_I_D) + private String imageID; - @SerializedName("imageID") - private String imageID = null; + public static final String SERIALIZED_NAME_LAST_STATE = "lastState"; + @SerializedName(SERIALIZED_NAME_LAST_STATE) + private V1ContainerState lastState; - @SerializedName("lastState") - private V1ContainerState lastState = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_READY = "ready"; + @SerializedName(SERIALIZED_NAME_READY) + private Boolean ready; - @SerializedName("ready") - private Boolean ready = null; + public static final String SERIALIZED_NAME_RESTART_COUNT = "restartCount"; + @SerializedName(SERIALIZED_NAME_RESTART_COUNT) + private Integer restartCount; - @SerializedName("restartCount") - private Integer restartCount = null; + public static final String SERIALIZED_NAME_STATE = "state"; + @SerializedName(SERIALIZED_NAME_STATE) + private V1ContainerState state; - @SerializedName("state") - private V1ContainerState state = null; public V1ContainerStatus containerID(String containerID) { + this.containerID = containerID; return this; } @@ -63,16 +76,22 @@ public V1ContainerStatus containerID(String containerID) { * Container's ID in the format 'docker://<container_id>'. * @return containerID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Container's ID in the format 'docker://'.") + public String getContainerID() { return containerID; } + + public void setContainerID(String containerID) { this.containerID = containerID; } + public V1ContainerStatus image(String image) { + this.image = image; return this; } @@ -82,15 +101,20 @@ public V1ContainerStatus image(String image) { * @return image **/ @ApiModelProperty(required = true, value = "The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images") + public String getImage() { return image; } + + public void setImage(String image) { this.image = image; } + public V1ContainerStatus imageID(String imageID) { + this.imageID = imageID; return this; } @@ -100,33 +124,44 @@ public V1ContainerStatus imageID(String imageID) { * @return imageID **/ @ApiModelProperty(required = true, value = "ImageID of the container's image.") + public String getImageID() { return imageID; } + + public void setImageID(String imageID) { this.imageID = imageID; } + public V1ContainerStatus lastState(V1ContainerState lastState) { + this.lastState = lastState; return this; } /** - * Details about the container's last termination condition. + * Get lastState * @return lastState **/ - @ApiModelProperty(value = "Details about the container's last termination condition.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ContainerState getLastState() { return lastState; } + + public void setLastState(V1ContainerState lastState) { this.lastState = lastState; } + public V1ContainerStatus name(String name) { + this.name = name; return this; } @@ -136,15 +171,20 @@ public V1ContainerStatus name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ContainerStatus ready(Boolean ready) { + this.ready = ready; return this; } @@ -154,15 +194,20 @@ public V1ContainerStatus ready(Boolean ready) { * @return ready **/ @ApiModelProperty(required = true, value = "Specifies whether the container has passed its readiness probe.") - public Boolean isReady() { + + public Boolean getReady() { return ready; } + + public void setReady(Boolean ready) { this.ready = ready; } + public V1ContainerStatus restartCount(Integer restartCount) { + this.restartCount = restartCount; return this; } @@ -172,28 +217,37 @@ public V1ContainerStatus restartCount(Integer restartCount) { * @return restartCount **/ @ApiModelProperty(required = true, value = "The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC.") + public Integer getRestartCount() { return restartCount; } + + public void setRestartCount(Integer restartCount) { this.restartCount = restartCount; } + public V1ContainerStatus state(V1ContainerState state) { + this.state = state; return this; } /** - * Details about the container's current condition. + * Get state * @return state **/ - @ApiModelProperty(value = "Details about the container's current condition.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ContainerState getState() { return state; } + + public void setState(V1ContainerState state) { this.state = state; } @@ -201,26 +255,12 @@ public void setState(V1ContainerState state) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ContainerStatus v1ContainerStatus = (V1ContainerStatus) o; - return Objects.equals(this.containerID, v1ContainerStatus.containerID) && - Objects.equals(this.image, v1ContainerStatus.image) && - Objects.equals(this.imageID, v1ContainerStatus.imageID) && - Objects.equals(this.lastState, v1ContainerStatus.lastState) && - Objects.equals(this.name, v1ContainerStatus.name) && - Objects.equals(this.ready, v1ContainerStatus.ready) && - Objects.equals(this.restartCount, v1ContainerStatus.restartCount) && - Objects.equals(this.state, v1ContainerStatus.state); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(containerID, image, imageID, lastState, name, ready, restartCount, state); + return HashCodeBuilder.reflectionHashCode(this); } @@ -228,7 +268,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ContainerStatus {\n"); - sb.append(" containerID: ").append(toIndentedString(containerID)).append("\n"); sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" imageID: ").append(toIndentedString(imageID)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevision.java index 8e0708ff17..7febe78b00 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevision.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. */ @ApiModel(description = "ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ControllerRevision { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RuntimeRawExtension data; - @SerializedName("data") - private RuntimeRawExtension data = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_REVISION = "revision"; + @SerializedName(SERIALIZED_NAME_REVISION) + private Long revision; - @SerializedName("revision") - private Long revision = null; public V1ControllerRevision apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -55,34 +65,46 @@ public V1ControllerRevision apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ControllerRevision data(RuntimeRawExtension data) { + this.data = data; return this; } /** - * Data is the serialized representation of the state. + * Get data * @return data **/ - @ApiModelProperty(value = "Data is the serialized representation of the state.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public RuntimeRawExtension getData() { return data; } + + public void setData(RuntimeRawExtension data) { this.data = data; } + public V1ControllerRevision kind(String kind) { + this.kind = kind; return this; } @@ -91,34 +113,46 @@ public V1ControllerRevision kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ControllerRevision metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ControllerRevision revision(Long revision) { + this.revision = revision; return this; } @@ -128,10 +162,13 @@ public V1ControllerRevision revision(Long revision) { * @return revision **/ @ApiModelProperty(required = true, value = "Revision indicates the revision of the state represented by Data.") + public Long getRevision() { return revision; } + + public void setRevision(Long revision) { this.revision = revision; } @@ -139,23 +176,12 @@ public void setRevision(Long revision) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ControllerRevision v1ControllerRevision = (V1ControllerRevision) o; - return Objects.equals(this.apiVersion, v1ControllerRevision.apiVersion) && - Objects.equals(this.data, v1ControllerRevision.data) && - Objects.equals(this.kind, v1ControllerRevision.kind) && - Objects.equals(this.metadata, v1ControllerRevision.metadata) && - Objects.equals(this.revision, v1ControllerRevision.revision); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, data, kind, metadata, revision); + return HashCodeBuilder.reflectionHashCode(this); } @@ -163,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ControllerRevision {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevisionList.java index 6dd8ce2efa..4c0d543720 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ControllerRevisionList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ControllerRevisionList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ControllerRevisionList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ControllerRevisionList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ControllerRevisionList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ControllerRevisionList addItemsItem(V1ControllerRevision itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of ControllerRevisions") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ControllerRevisionList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ControllerRevisionList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ControllerRevisionList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ControllerRevisionList v1ControllerRevisionList = (V1ControllerRevisionList) o; - return Objects.equals(this.apiVersion, v1ControllerRevisionList.apiVersion) && - Objects.equals(this.items, v1ControllerRevisionList.items) && - Objects.equals(this.kind, v1ControllerRevisionList.kind) && - Objects.equals(this.metadata, v1ControllerRevisionList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ControllerRevisionList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1CrossVersionObjectReference.java index 75967e29f6..5f3560c56f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1CrossVersionObjectReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1CrossVersionObjectReference { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1CrossVersionObjectReference apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -47,16 +55,22 @@ public V1CrossVersionObjectReference apiVersion(String apiVersion) { * API version of the referent * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "API version of the referent") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1CrossVersionObjectReference kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +80,20 @@ public V1CrossVersionObjectReference kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\"") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1CrossVersionObjectReference name(String name) { + this.name = name; return this; } @@ -84,10 +103,13 @@ public V1CrossVersionObjectReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +117,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1CrossVersionObjectReference v1CrossVersionObjectReference = (V1CrossVersionObjectReference) o; - return Objects.equals(this.apiVersion, v1CrossVersionObjectReference.apiVersion) && - Objects.equals(this.kind, v1CrossVersionObjectReference.kind) && - Objects.equals(this.name, v1CrossVersionObjectReference.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1CrossVersionObjectReference {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonEndpoint.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonEndpoint.java index d5e8e58a0f..33d254d5e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonEndpoint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonEndpoint.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * DaemonEndpoint contains information about a single Daemon endpoint. */ @ApiModel(description = "DaemonEndpoint contains information about a single Daemon endpoint.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonEndpoint { - @SerializedName("Port") - private Integer port = null; + public static final String SERIALIZED_NAME_PORT = "Port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; + public V1DaemonEndpoint port(Integer port) { + this.port = port; return this; } @@ -42,10 +48,13 @@ public V1DaemonEndpoint port(Integer port) { * @return port **/ @ApiModelProperty(required = true, value = "Port number of the given endpoint.") + public Integer getPort() { return port; } + + public void setPort(Integer port) { this.port = port; } @@ -53,19 +62,12 @@ public void setPort(Integer port) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonEndpoint v1DaemonEndpoint = (V1DaemonEndpoint) o; - return Objects.equals(this.port, v1DaemonEndpoint.port); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(port); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonEndpoint {\n"); - sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSet.java index 905659c46c..2a940c2f6c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DaemonSet represents the configuration of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1DaemonSetSpec spec; - @SerializedName("spec") - private V1DaemonSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1DaemonSetStatus status; - @SerializedName("status") - private V1DaemonSetStatus status = null; public V1DaemonSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1DaemonSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1DaemonSet kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1DaemonSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1DaemonSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1DaemonSet spec(V1DaemonSetSpec spec) { + this.spec = spec; return this; } /** - * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DaemonSetSpec getSpec() { return spec; } + + public void setSpec(V1DaemonSetSpec spec) { this.spec = spec; } + public V1DaemonSet status(V1DaemonSetStatus status) { + this.status = status; return this; } /** - * The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DaemonSetStatus getStatus() { return status; } + + public void setStatus(V1DaemonSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1DaemonSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonSet v1DaemonSet = (V1DaemonSet) o; - return Objects.equals(this.apiVersion, v1DaemonSet.apiVersion) && - Objects.equals(this.kind, v1DaemonSet.kind) && - Objects.equals(this.metadata, v1DaemonSet.metadata) && - Objects.equals(this.spec, v1DaemonSet.spec) && - Objects.equals(this.status, v1DaemonSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetCondition.java index ec49719504..675904ec22 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) { * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1DaemonSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1DaemonSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1DaemonSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1DaemonSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1DaemonSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1DaemonSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1DaemonSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1DaemonSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonSetCondition v1DaemonSetCondition = (V1DaemonSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1DaemonSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1DaemonSetCondition.message) && - Objects.equals(this.reason, v1DaemonSetCondition.reason) && - Objects.equals(this.status, v1DaemonSetCondition.status) && - Objects.equals(this.type, v1DaemonSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetList.java index 3e01a60839..fd4d7538ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1DaemonSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1DaemonSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1DaemonSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1DaemonSetList addItemsItem(V1DaemonSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "A list of daemon sets.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1DaemonSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1DaemonSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1DaemonSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonSetList v1DaemonSetList = (V1DaemonSetList) o; - return Objects.equals(this.apiVersion, v1DaemonSetList.apiVersion) && - Objects.equals(this.items, v1DaemonSetList.items) && - Objects.equals(this.kind, v1DaemonSetList.kind) && - Objects.equals(this.metadata, v1DaemonSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetSpec.java index b496a9d8a6..4fc4e9e74e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonSetSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; + @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + private V1DaemonSetUpdateStrategy updateStrategy; - @SerializedName("updateStrategy") - private V1DaemonSetUpdateStrategy updateStrategy = null; public V1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -56,16 +66,22 @@ public V1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -74,65 +90,85 @@ public V1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1DaemonSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1DaemonSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1DaemonSetSpec updateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } /** - * An update strategy to replace existing DaemonSet pods with new pods. + * Get updateStrategy * @return updateStrategy **/ - @ApiModelProperty(value = "An update strategy to replace existing DaemonSet pods with new pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DaemonSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } + + public void setUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } @@ -140,23 +176,12 @@ public void setUpdateStrategy(V1DaemonSetUpdateStrategy updateStrategy) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonSetSpec v1DaemonSetSpec = (V1DaemonSetSpec) o; - return Objects.equals(this.minReadySeconds, v1DaemonSetSpec.minReadySeconds) && - Objects.equals(this.revisionHistoryLimit, v1DaemonSetSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1DaemonSetSpec.selector) && - Objects.equals(this.template, v1DaemonSetSpec.template) && - Objects.equals(this.updateStrategy, v1DaemonSetSpec.updateStrategy); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonSetSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" revisionHistoryLimit: ").append(toIndentedString(revisionHistoryLimit)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetStatus.java index d3f3ff65d1..fba7142e8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,39 +33,51 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonSetStatus { - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("currentNumberScheduled") - private Integer currentNumberScheduled = null; + public static final String SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED = "currentNumberScheduled"; + @SerializedName(SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED) + private Integer currentNumberScheduled; + + public static final String SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED = "desiredNumberScheduled"; + @SerializedName(SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED) + private Integer desiredNumberScheduled; - @SerializedName("desiredNumberScheduled") - private Integer desiredNumberScheduled = null; + public static final String SERIALIZED_NAME_NUMBER_AVAILABLE = "numberAvailable"; + @SerializedName(SERIALIZED_NAME_NUMBER_AVAILABLE) + private Integer numberAvailable; - @SerializedName("numberAvailable") - private Integer numberAvailable = null; + public static final String SERIALIZED_NAME_NUMBER_MISSCHEDULED = "numberMisscheduled"; + @SerializedName(SERIALIZED_NAME_NUMBER_MISSCHEDULED) + private Integer numberMisscheduled; - @SerializedName("numberMisscheduled") - private Integer numberMisscheduled = null; + public static final String SERIALIZED_NAME_NUMBER_READY = "numberReady"; + @SerializedName(SERIALIZED_NAME_NUMBER_READY) + private Integer numberReady; - @SerializedName("numberReady") - private Integer numberReady = null; + public static final String SERIALIZED_NAME_NUMBER_UNAVAILABLE = "numberUnavailable"; + @SerializedName(SERIALIZED_NAME_NUMBER_UNAVAILABLE) + private Integer numberUnavailable; - @SerializedName("numberUnavailable") - private Integer numberUnavailable = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED = "updatedNumberScheduled"; + @SerializedName(SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED) + private Integer updatedNumberScheduled; - @SerializedName("updatedNumberScheduled") - private Integer updatedNumberScheduled = null; public V1DaemonSetStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -71,16 +86,22 @@ public V1DaemonSetStatus collisionCount(Integer collisionCount) { * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1DaemonSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -97,16 +118,22 @@ public V1DaemonSetStatus addConditionsItem(V1DaemonSetCondition conditionsItem) * Represents the latest available observations of a DaemonSet's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a DaemonSet's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; return this; } @@ -116,15 +143,20 @@ public V1DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) * @return currentNumberScheduled **/ @ApiModelProperty(required = true, value = "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getCurrentNumberScheduled() { return currentNumberScheduled; } + + public void setCurrentNumberScheduled(Integer currentNumberScheduled) { this.currentNumberScheduled = currentNumberScheduled; } + public V1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @@ -134,15 +166,20 @@ public V1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) * @return desiredNumberScheduled **/ @ApiModelProperty(required = true, value = "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getDesiredNumberScheduled() { return desiredNumberScheduled; } + + public void setDesiredNumberScheduled(Integer desiredNumberScheduled) { this.desiredNumberScheduled = desiredNumberScheduled; } + public V1DaemonSetStatus numberAvailable(Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @@ -151,16 +188,22 @@ public V1DaemonSetStatus numberAvailable(Integer numberAvailable) { * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberAvailable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)") + public Integer getNumberAvailable() { return numberAvailable; } + + public void setNumberAvailable(Integer numberAvailable) { this.numberAvailable = numberAvailable; } + public V1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; return this; } @@ -170,15 +213,20 @@ public V1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { * @return numberMisscheduled **/ @ApiModelProperty(required = true, value = "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getNumberMisscheduled() { return numberMisscheduled; } + + public void setNumberMisscheduled(Integer numberMisscheduled) { this.numberMisscheduled = numberMisscheduled; } + public V1DaemonSetStatus numberReady(Integer numberReady) { + this.numberReady = numberReady; return this; } @@ -188,15 +236,20 @@ public V1DaemonSetStatus numberReady(Integer numberReady) { * @return numberReady **/ @ApiModelProperty(required = true, value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.") + public Integer getNumberReady() { return numberReady; } + + public void setNumberReady(Integer numberReady) { this.numberReady = numberReady; } + public V1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @@ -205,16 +258,22 @@ public V1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberUnavailable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)") + public Integer getNumberUnavailable() { return numberUnavailable; } + + public void setNumberUnavailable(Integer numberUnavailable) { this.numberUnavailable = numberUnavailable; } + public V1DaemonSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -223,16 +282,22 @@ public V1DaemonSetStatus observedGeneration(Long observedGeneration) { * The most recent generation observed by the daemon set controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The most recent generation observed by the daemon set controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } @@ -241,11 +306,15 @@ public V1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) * The total number of nodes that are running updated daemon pod * @return updatedNumberScheduled **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The total number of nodes that are running updated daemon pod") + public Integer getUpdatedNumberScheduled() { return updatedNumberScheduled; } + + public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { this.updatedNumberScheduled = updatedNumberScheduled; } @@ -253,28 +322,12 @@ public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonSetStatus v1DaemonSetStatus = (V1DaemonSetStatus) o; - return Objects.equals(this.collisionCount, v1DaemonSetStatus.collisionCount) && - Objects.equals(this.conditions, v1DaemonSetStatus.conditions) && - Objects.equals(this.currentNumberScheduled, v1DaemonSetStatus.currentNumberScheduled) && - Objects.equals(this.desiredNumberScheduled, v1DaemonSetStatus.desiredNumberScheduled) && - Objects.equals(this.numberAvailable, v1DaemonSetStatus.numberAvailable) && - Objects.equals(this.numberMisscheduled, v1DaemonSetStatus.numberMisscheduled) && - Objects.equals(this.numberReady, v1DaemonSetStatus.numberReady) && - Objects.equals(this.numberUnavailable, v1DaemonSetStatus.numberUnavailable) && - Objects.equals(this.observedGeneration, v1DaemonSetStatus.observedGeneration) && - Objects.equals(this.updatedNumberScheduled, v1DaemonSetStatus.updatedNumberScheduled); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled); + return HashCodeBuilder.reflectionHashCode(this); } @@ -282,7 +335,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonSetStatus {\n"); - sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentNumberScheduled: ").append(toIndentedString(currentNumberScheduled)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategy.java index a36ace5de0..054fad8d8a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DaemonSetUpdateStrategy { - @SerializedName("rollingUpdate") - private V1RollingUpdateDaemonSet rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1RollingUpdateDaemonSet rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1DaemonSetUpdateStrategy rollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if type = \"RollingUpdate\". + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if type = \"RollingUpdate\".") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1RollingUpdateDaemonSet getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1RollingUpdateDaemonSet rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1DaemonSetUpdateStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1DaemonSetUpdateStrategy type(String type) { * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DaemonSetUpdateStrategy v1DaemonSetUpdateStrategy = (V1DaemonSetUpdateStrategy) o; - return Objects.equals(this.rollingUpdate, v1DaemonSetUpdateStrategy.rollingUpdate) && - Objects.equals(this.type, v1DaemonSetUpdateStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DaemonSetUpdateStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeleteOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeleteOptions.java index 878c0793cd..6a2f7cf3b6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeleteOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeleteOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,30 +33,39 @@ * DeleteOptions may be provided when deleting an API object. */ @ApiModel(description = "DeleteOptions may be provided when deleting an API object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DeleteOptions { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("dryRun") + public static final String SERIALIZED_NAME_DRY_RUN = "dryRun"; + @SerializedName(SERIALIZED_NAME_DRY_RUN) private List dryRun = null; - @SerializedName("gracePeriodSeconds") - private Long gracePeriodSeconds = null; + public static final String SERIALIZED_NAME_GRACE_PERIOD_SECONDS = "gracePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_GRACE_PERIOD_SECONDS) + private Long gracePeriodSeconds; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_ORPHAN_DEPENDENTS = "orphanDependents"; + @SerializedName(SERIALIZED_NAME_ORPHAN_DEPENDENTS) + private Boolean orphanDependents; - @SerializedName("orphanDependents") - private Boolean orphanDependents = null; + public static final String SERIALIZED_NAME_PRECONDITIONS = "preconditions"; + @SerializedName(SERIALIZED_NAME_PRECONDITIONS) + private V1Preconditions preconditions; - @SerializedName("preconditions") - private V1Preconditions preconditions = null; + public static final String SERIALIZED_NAME_PROPAGATION_POLICY = "propagationPolicy"; + @SerializedName(SERIALIZED_NAME_PROPAGATION_POLICY) + private String propagationPolicy; - @SerializedName("propagationPolicy") - private String propagationPolicy = null; public V1DeleteOptions apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -62,16 +74,22 @@ public V1DeleteOptions apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1DeleteOptions dryRun(List dryRun) { + this.dryRun = dryRun; return this; } @@ -88,16 +106,22 @@ public V1DeleteOptions addDryRunItem(String dryRunItem) { * When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed * @return dryRun **/ + @javax.annotation.Nullable @ApiModelProperty(value = "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed") + public List getDryRun() { return dryRun; } + + public void setDryRun(List dryRun) { this.dryRun = dryRun; } + public V1DeleteOptions gracePeriodSeconds(Long gracePeriodSeconds) { + this.gracePeriodSeconds = gracePeriodSeconds; return this; } @@ -106,16 +130,22 @@ public V1DeleteOptions gracePeriodSeconds(Long gracePeriodSeconds) { * The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. * @return gracePeriodSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.") + public Long getGracePeriodSeconds() { return gracePeriodSeconds; } + + public void setGracePeriodSeconds(Long gracePeriodSeconds) { this.gracePeriodSeconds = gracePeriodSeconds; } + public V1DeleteOptions kind(String kind) { + this.kind = kind; return this; } @@ -124,16 +154,22 @@ public V1DeleteOptions kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1DeleteOptions orphanDependents(Boolean orphanDependents) { + this.orphanDependents = orphanDependents; return this; } @@ -142,34 +178,46 @@ public V1DeleteOptions orphanDependents(Boolean orphanDependents) { * Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. * @return orphanDependents **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.") - public Boolean isOrphanDependents() { + + public Boolean getOrphanDependents() { return orphanDependents; } + + public void setOrphanDependents(Boolean orphanDependents) { this.orphanDependents = orphanDependents; } + public V1DeleteOptions preconditions(V1Preconditions preconditions) { + this.preconditions = preconditions; return this; } /** - * Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned. + * Get preconditions * @return preconditions **/ - @ApiModelProperty(value = "Must be fulfilled before a deletion is carried out. If not possible, a 409 Conflict status will be returned.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Preconditions getPreconditions() { return preconditions; } + + public void setPreconditions(V1Preconditions preconditions) { this.preconditions = preconditions; } + public V1DeleteOptions propagationPolicy(String propagationPolicy) { + this.propagationPolicy = propagationPolicy; return this; } @@ -178,11 +226,15 @@ public V1DeleteOptions propagationPolicy(String propagationPolicy) { * Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. * @return propagationPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.") + public String getPropagationPolicy() { return propagationPolicy; } + + public void setPropagationPolicy(String propagationPolicy) { this.propagationPolicy = propagationPolicy; } @@ -190,25 +242,12 @@ public void setPropagationPolicy(String propagationPolicy) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DeleteOptions v1DeleteOptions = (V1DeleteOptions) o; - return Objects.equals(this.apiVersion, v1DeleteOptions.apiVersion) && - Objects.equals(this.dryRun, v1DeleteOptions.dryRun) && - Objects.equals(this.gracePeriodSeconds, v1DeleteOptions.gracePeriodSeconds) && - Objects.equals(this.kind, v1DeleteOptions.kind) && - Objects.equals(this.orphanDependents, v1DeleteOptions.orphanDependents) && - Objects.equals(this.preconditions, v1DeleteOptions.preconditions) && - Objects.equals(this.propagationPolicy, v1DeleteOptions.propagationPolicy); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, dryRun, gracePeriodSeconds, kind, orphanDependents, preconditions, propagationPolicy); + return HashCodeBuilder.reflectionHashCode(this); } @@ -216,7 +255,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeleteOptions {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" dryRun: ").append(toIndentedString(dryRun)).append("\n"); sb.append(" gracePeriodSeconds: ").append(toIndentedString(gracePeriodSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Deployment.java index 24a8cc86c9..8a1c4ab869 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Deployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "Deployment enables declarative updates for Pods and ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Deployment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1DeploymentSpec spec; - @SerializedName("spec") - private V1DeploymentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1DeploymentStatus status; - @SerializedName("status") - private V1DeploymentStatus status = null; public V1Deployment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Deployment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Deployment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Deployment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Deployment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Deployment spec(V1DeploymentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the Deployment. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DeploymentSpec getSpec() { return spec; } + + public void setSpec(V1DeploymentSpec spec) { this.spec = spec; } + public V1Deployment status(V1DeploymentStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the Deployment. + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DeploymentStatus getStatus() { return status; } + + public void setStatus(V1DeploymentStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1DeploymentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Deployment v1Deployment = (V1Deployment) o; - return Objects.equals(this.apiVersion, v1Deployment.apiVersion) && - Objects.equals(this.kind, v1Deployment.kind) && - Objects.equals(this.metadata, v1Deployment.metadata) && - Objects.equals(this.spec, v1Deployment.spec) && - Objects.equals(this.status, v1Deployment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Deployment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentCondition.java index 9b249628c9..18095e6a92 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DeploymentCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + private DateTime lastUpdateTime; - @SerializedName("lastUpdateTime") - private DateTime lastUpdateTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -57,16 +68,22 @@ public V1DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @@ -75,16 +92,22 @@ public V1DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { * The last time this condition was updated. * @return lastUpdateTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") + public DateTime getLastUpdateTime() { return lastUpdateTime; } + + public void setLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + public V1DeploymentCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public V1DeploymentCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1DeploymentCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public V1DeploymentCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1DeploymentCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public V1DeploymentCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1DeploymentCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public V1DeploymentCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of deployment condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DeploymentCondition v1DeploymentCondition = (V1DeploymentCondition) o; - return Objects.equals(this.lastTransitionTime, v1DeploymentCondition.lastTransitionTime) && - Objects.equals(this.lastUpdateTime, v1DeploymentCondition.lastUpdateTime) && - Objects.equals(this.message, v1DeploymentCondition.message) && - Objects.equals(this.reason, v1DeploymentCondition.reason) && - Objects.equals(this.status, v1DeploymentCondition.status) && - Objects.equals(this.type, v1DeploymentCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeploymentCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentList.java index b9706bf45b..b4313a8b91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DeploymentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1DeploymentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1DeploymentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1DeploymentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1DeploymentList addItemsItem(V1Deployment itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Deployments.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1DeploymentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1DeploymentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1DeploymentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DeploymentList v1DeploymentList = (V1DeploymentList) o; - return Objects.equals(this.apiVersion, v1DeploymentList.apiVersion) && - Objects.equals(this.items, v1DeploymentList.items) && - Objects.equals(this.kind, v1DeploymentList.kind) && - Objects.equals(this.metadata, v1DeploymentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeploymentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentSpec.java index 6eec08dc8c..3a61a3a350 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DeploymentSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_PAUSED = "paused"; + @SerializedName(SERIALIZED_NAME_PAUSED) + private Boolean paused; - @SerializedName("paused") - private Boolean paused = null; + public static final String SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS = "progressDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS) + private Integer progressDeadlineSeconds; - @SerializedName("progressDeadlineSeconds") - private Integer progressDeadlineSeconds = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private V1DeploymentStrategy strategy; - @SerializedName("strategy") - private V1DeploymentStrategy strategy = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public V1DeploymentSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -65,16 +78,22 @@ public V1DeploymentSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1DeploymentSpec paused(Boolean paused) { + this.paused = paused; return this; } @@ -83,16 +102,22 @@ public V1DeploymentSpec paused(Boolean paused) { * Indicates that the deployment is paused. * @return paused **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates that the deployment is paused.") - public Boolean isPaused() { + + public Boolean getPaused() { return paused; } + + public void setPaused(Boolean paused) { this.paused = paused; } + public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @@ -101,16 +126,22 @@ public V1DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. * @return progressDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.") + public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } + + public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; } + public V1DeploymentSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -119,16 +150,22 @@ public V1DeploymentSpec replicas(Integer replicas) { * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -137,65 +174,85 @@ public V1DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1DeploymentSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1DeploymentSpec strategy(V1DeploymentStrategy strategy) { + this.strategy = strategy; return this; } /** - * The deployment strategy to use to replace existing pods with new ones. + * Get strategy * @return strategy **/ - @ApiModelProperty(value = "The deployment strategy to use to replace existing pods with new ones.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DeploymentStrategy getStrategy() { return strategy; } + + public void setStrategy(V1DeploymentStrategy strategy) { this.strategy = strategy; } + public V1DeploymentSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template describes the pods that will be created. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "Template describes the pods that will be created.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -203,26 +260,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DeploymentSpec v1DeploymentSpec = (V1DeploymentSpec) o; - return Objects.equals(this.minReadySeconds, v1DeploymentSpec.minReadySeconds) && - Objects.equals(this.paused, v1DeploymentSpec.paused) && - Objects.equals(this.progressDeadlineSeconds, v1DeploymentSpec.progressDeadlineSeconds) && - Objects.equals(this.replicas, v1DeploymentSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, v1DeploymentSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1DeploymentSpec.selector) && - Objects.equals(this.strategy, v1DeploymentSpec.strategy) && - Objects.equals(this.template, v1DeploymentSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -230,7 +273,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeploymentSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" paused: ").append(toIndentedString(paused)).append("\n"); sb.append(" progressDeadlineSeconds: ").append(toIndentedString(progressDeadlineSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStatus.java index 4ec631bc91..d931f67fa7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DeploymentStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UNAVAILABLE_REPLICAS = "unavailableReplicas"; + @SerializedName(SERIALIZED_NAME_UNAVAILABLE_REPLICAS) + private Integer unavailableReplicas; - @SerializedName("unavailableReplicas") - private Integer unavailableReplicas = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public V1DeploymentStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -65,16 +78,22 @@ public V1DeploymentStatus availableReplicas(Integer availableReplicas) { * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public V1DeploymentStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -83,16 +102,22 @@ public V1DeploymentStatus collisionCount(Integer collisionCount) { * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1DeploymentStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -109,16 +134,22 @@ public V1DeploymentStatus addConditionsItem(V1DeploymentCondition conditionsItem * Represents the latest available observations of a deployment's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1DeploymentStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -127,16 +158,22 @@ public V1DeploymentStatus observedGeneration(Long observedGeneration) { * The generation observed by the deployment controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The generation observed by the deployment controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1DeploymentStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -145,16 +182,22 @@ public V1DeploymentStatus readyReplicas(Integer readyReplicas) { * Total number of ready pods targeted by this deployment. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of ready pods targeted by this deployment.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1DeploymentStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -163,16 +206,22 @@ public V1DeploymentStatus replicas(Integer replicas) { * Total number of non-terminated pods targeted by this deployment (their labels match the selector). * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @@ -181,16 +230,22 @@ public V1DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. * @return unavailableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.") + public Integer getUnavailableReplicas() { return unavailableReplicas; } + + public void setUnavailableReplicas(Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; } + public V1DeploymentStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -199,11 +254,15 @@ public V1DeploymentStatus updatedReplicas(Integer updatedReplicas) { * Total number of non-terminated pods targeted by this deployment that have the desired template spec. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -211,26 +270,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DeploymentStatus v1DeploymentStatus = (V1DeploymentStatus) o; - return Objects.equals(this.availableReplicas, v1DeploymentStatus.availableReplicas) && - Objects.equals(this.collisionCount, v1DeploymentStatus.collisionCount) && - Objects.equals(this.conditions, v1DeploymentStatus.conditions) && - Objects.equals(this.observedGeneration, v1DeploymentStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1DeploymentStatus.readyReplicas) && - Objects.equals(this.replicas, v1DeploymentStatus.replicas) && - Objects.equals(this.unavailableReplicas, v1DeploymentStatus.unavailableReplicas) && - Objects.equals(this.updatedReplicas, v1DeploymentStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -238,7 +283,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeploymentStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStrategy.java index 5fe3ec2837..646bebcbcf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DeploymentStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DeploymentStrategy { - @SerializedName("rollingUpdate") - private V1RollingUpdateDeployment rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1RollingUpdateDeployment rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1DeploymentStrategy rollingUpdate(V1RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1DeploymentStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1DeploymentStrategy type(String type) { * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DeploymentStrategy v1DeploymentStrategy = (V1DeploymentStrategy) o; - return Objects.equals(this.rollingUpdate, v1DeploymentStrategy.rollingUpdate) && - Objects.equals(this.type, v1DeploymentStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DeploymentStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIProjection.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIProjection.java index de138cce53..3dc46e99c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIProjection.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode. */ @ApiModel(description = "Represents downward API info for projecting into a projected volume. Note that this is identical to a downwardAPI volume source without the default mode.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DownwardAPIProjection { - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = null; + public V1DownwardAPIProjection items(List items) { + this.items = items; return this; } @@ -52,11 +58,15 @@ public V1DownwardAPIProjection addItemsItem(V1DownwardAPIVolumeFile itemsItem) { * Items is a list of DownwardAPIVolume file * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Items is a list of DownwardAPIVolume file") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } @@ -64,19 +74,12 @@ public void setItems(List items) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DownwardAPIProjection v1DownwardAPIProjection = (V1DownwardAPIProjection) o; - return Objects.equals(this.items, v1DownwardAPIProjection.items); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(items); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DownwardAPIProjection {\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeFile.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeFile.java index 8a49e4945c..b34faee676 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeFile.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeFile.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,39 +32,51 @@ * DownwardAPIVolumeFile represents information to create the file containing the pod field */ @ApiModel(description = "DownwardAPIVolumeFile represents information to create the file containing the pod field") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DownwardAPIVolumeFile { - @SerializedName("fieldRef") - private V1ObjectFieldSelector fieldRef = null; + public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; + @SerializedName(SERIALIZED_NAME_FIELD_REF) + private V1ObjectFieldSelector fieldRef; + + public static final String SERIALIZED_NAME_MODE = "mode"; + @SerializedName(SERIALIZED_NAME_MODE) + private Integer mode; - @SerializedName("mode") - private Integer mode = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; + @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) + private V1ResourceFieldSelector resourceFieldRef; - @SerializedName("resourceFieldRef") - private V1ResourceFieldSelector resourceFieldRef = null; public V1DownwardAPIVolumeFile fieldRef(V1ObjectFieldSelector fieldRef) { + this.fieldRef = fieldRef; return this; } /** - * Required: Selects a field of the pod: only annotations, labels, name and namespace are supported. + * Get fieldRef * @return fieldRef **/ - @ApiModelProperty(value = "Required: Selects a field of the pod: only annotations, labels, name and namespace are supported.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectFieldSelector getFieldRef() { return fieldRef; } + + public void setFieldRef(V1ObjectFieldSelector fieldRef) { this.fieldRef = fieldRef; } + public V1DownwardAPIVolumeFile mode(Integer mode) { + this.mode = mode; return this; } @@ -70,16 +85,22 @@ public V1DownwardAPIVolumeFile mode(Integer mode) { * Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return mode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + public Integer getMode() { return mode; } + + public void setMode(Integer mode) { this.mode = mode; } + public V1DownwardAPIVolumeFile path(String path) { + this.path = path; return this; } @@ -89,28 +110,37 @@ public V1DownwardAPIVolumeFile path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "Required: Path is the relative path name of the file to be created. Must not be absolute or contain the '..' path. Must be utf-8 encoded. The first item of the relative path must not start with '..'") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1DownwardAPIVolumeFile resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; return this; } /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported. + * Get resourceFieldRef * @return resourceFieldRef **/ - @ApiModelProperty(value = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, requests.cpu and requests.memory) are currently supported.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } + + public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; } @@ -118,22 +148,12 @@ public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DownwardAPIVolumeFile v1DownwardAPIVolumeFile = (V1DownwardAPIVolumeFile) o; - return Objects.equals(this.fieldRef, v1DownwardAPIVolumeFile.fieldRef) && - Objects.equals(this.mode, v1DownwardAPIVolumeFile.mode) && - Objects.equals(this.path, v1DownwardAPIVolumeFile.path) && - Objects.equals(this.resourceFieldRef, v1DownwardAPIVolumeFile.resourceFieldRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fieldRef, mode, path, resourceFieldRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DownwardAPIVolumeFile {\n"); - sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeSource.java index b007de9faf..115702f8e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1DownwardAPIVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "DownwardAPIVolumeSource represents a volume containing downward API info. Downward API volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1DownwardAPIVolumeSource { - @SerializedName("defaultMode") - private Integer defaultMode = null; + public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; + @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + private Integer defaultMode; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = null; + public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @@ -47,16 +54,22 @@ public V1DownwardAPIVolumeSource defaultMode(Integer defaultMode) { * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + public Integer getDefaultMode() { return defaultMode; } + + public void setDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; } + public V1DownwardAPIVolumeSource items(List items) { + this.items = items; return this; } @@ -73,11 +86,15 @@ public V1DownwardAPIVolumeSource addItemsItem(V1DownwardAPIVolumeFile itemsItem) * Items is a list of downward API volume file * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Items is a list of downward API volume file") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } @@ -85,20 +102,12 @@ public void setItems(List items) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1DownwardAPIVolumeSource v1DownwardAPIVolumeSource = (V1DownwardAPIVolumeSource) o; - return Objects.equals(this.defaultMode, v1DownwardAPIVolumeSource.defaultMode) && - Objects.equals(this.items, v1DownwardAPIVolumeSource.items); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(defaultMode, items); + return HashCodeBuilder.reflectionHashCode(this); } @@ -106,7 +115,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1DownwardAPIVolumeSource {\n"); - sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EmptyDirVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EmptyDirVolumeSource.java index 6d117306ea..57ddd6423c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EmptyDirVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EmptyDirVolumeSource.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,15 +31,19 @@ * Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an empty directory for a pod. Empty directory volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EmptyDirVolumeSource { - @SerializedName("medium") - private String medium = null; + public static final String SERIALIZED_NAME_MEDIUM = "medium"; + @SerializedName(SERIALIZED_NAME_MEDIUM) + private String medium; + + public static final String SERIALIZED_NAME_SIZE_LIMIT = "sizeLimit"; + @SerializedName(SERIALIZED_NAME_SIZE_LIMIT) + private Quantity sizeLimit; - @SerializedName("sizeLimit") - private String sizeLimit = null; public V1EmptyDirVolumeSource medium(String medium) { + this.medium = medium; return this; } @@ -44,50 +52,52 @@ public V1EmptyDirVolumeSource medium(String medium) { * What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir * @return medium **/ + @javax.annotation.Nullable @ApiModelProperty(value = "What type of storage medium should back this directory. The default is \"\" which means to use the node's default medium. Must be an empty string (default) or Memory. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") + public String getMedium() { return medium; } + + public void setMedium(String medium) { this.medium = medium; } - public V1EmptyDirVolumeSource sizeLimit(String sizeLimit) { + + public V1EmptyDirVolumeSource sizeLimit(Quantity sizeLimit) { + this.sizeLimit = sizeLimit; return this; } /** - * Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return sizeLimit **/ - @ApiModelProperty(value = "Total amount of local storage required for this EmptyDir volume. The size limit is also applicable for memory medium. The maximum usage on memory medium EmptyDir would be the minimum value between the SizeLimit specified here and the sum of memory limits of all containers in a pod. The default is nil which means that the limit is undefined. More info: http://kubernetes.io/docs/user-guide/volumes#emptydir") - public String getSizeLimit() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getSizeLimit() { return sizeLimit; } - public void setSizeLimit(String sizeLimit) { + + + public void setSizeLimit(Quantity sizeLimit) { this.sizeLimit = sizeLimit; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EmptyDirVolumeSource v1EmptyDirVolumeSource = (V1EmptyDirVolumeSource) o; - return Objects.equals(this.medium, v1EmptyDirVolumeSource.medium) && - Objects.equals(this.sizeLimit, v1EmptyDirVolumeSource.sizeLimit); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(medium, sizeLimit); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EmptyDirVolumeSource {\n"); - sb.append(" medium: ").append(toIndentedString(medium)).append("\n"); sb.append(" sizeLimit: ").append(toIndentedString(sizeLimit)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointAddress.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointAddress.java index 6a4357078e..67410fc06c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointAddress.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * EndpointAddress is a tuple that describes single IP address. */ @ApiModel(description = "EndpointAddress is a tuple that describes single IP address.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EndpointAddress { - @SerializedName("hostname") - private String hostname = null; + public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; + @SerializedName(SERIALIZED_NAME_HOSTNAME) + private String hostname; + + public static final String SERIALIZED_NAME_IP = "ip"; + @SerializedName(SERIALIZED_NAME_IP) + private String ip; - @SerializedName("ip") - private String ip = null; + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; - @SerializedName("nodeName") - private String nodeName = null; + public static final String SERIALIZED_NAME_TARGET_REF = "targetRef"; + @SerializedName(SERIALIZED_NAME_TARGET_REF) + private V1ObjectReference targetRef; - @SerializedName("targetRef") - private V1ObjectReference targetRef = null; public V1EndpointAddress hostname(String hostname) { + this.hostname = hostname; return this; } @@ -51,16 +60,22 @@ public V1EndpointAddress hostname(String hostname) { * The Hostname of this endpoint * @return hostname **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The Hostname of this endpoint") + public String getHostname() { return hostname; } + + public void setHostname(String hostname) { this.hostname = hostname; } + public V1EndpointAddress ip(String ip) { + this.ip = ip; return this; } @@ -70,15 +85,20 @@ public V1EndpointAddress ip(String ip) { * @return ip **/ @ApiModelProperty(required = true, value = "The IP of this endpoint. May not be loopback (127.0.0.0/8), link-local (169.254.0.0/16), or link-local multicast ((224.0.0.0/24). IPv6 is also accepted but not fully supported on all platforms. Also, certain kubernetes components, like kube-proxy, are not IPv6 ready.") + public String getIp() { return ip; } + + public void setIp(String ip) { this.ip = ip; } + public V1EndpointAddress nodeName(String nodeName) { + this.nodeName = nodeName; return this; } @@ -87,29 +107,39 @@ public V1EndpointAddress nodeName(String nodeName) { * Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node. * @return nodeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Node hosting this endpoint. This can be used to determine endpoints local to a node.") + public String getNodeName() { return nodeName; } + + public void setNodeName(String nodeName) { this.nodeName = nodeName; } + public V1EndpointAddress targetRef(V1ObjectReference targetRef) { + this.targetRef = targetRef; return this; } /** - * Reference to object providing the endpoint. + * Get targetRef * @return targetRef **/ - @ApiModelProperty(value = "Reference to object providing the endpoint.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectReference getTargetRef() { return targetRef; } + + public void setTargetRef(V1ObjectReference targetRef) { this.targetRef = targetRef; } @@ -117,22 +147,12 @@ public void setTargetRef(V1ObjectReference targetRef) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EndpointAddress v1EndpointAddress = (V1EndpointAddress) o; - return Objects.equals(this.hostname, v1EndpointAddress.hostname) && - Objects.equals(this.ip, v1EndpointAddress.ip) && - Objects.equals(this.nodeName, v1EndpointAddress.nodeName) && - Objects.equals(this.targetRef, v1EndpointAddress.targetRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hostname, ip, nodeName, targetRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EndpointAddress {\n"); - sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointPort.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointPort.java index de1c90fbb4..9008f9fd35 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointPort.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * EndpointPort is a tuple that describes a single port. */ @ApiModel(description = "EndpointPort is a tuple that describes a single port.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EndpointPort { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("port") - private Integer port = null; + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; + @SerializedName(SERIALIZED_NAME_PROTOCOL) + private String protocol; - @SerializedName("protocol") - private String protocol = null; public V1EndpointPort name(String name) { + this.name = name; return this; } @@ -47,16 +55,22 @@ public V1EndpointPort name(String name) { * The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of this port (corresponds to ServicePort.Name). Must be a DNS_LABEL. Optional only if one port is defined.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1EndpointPort port(Integer port) { + this.port = port; return this; } @@ -66,15 +80,20 @@ public V1EndpointPort port(Integer port) { * @return port **/ @ApiModelProperty(required = true, value = "The port number of the endpoint.") + public Integer getPort() { return port; } + + public void setPort(Integer port) { this.port = port; } + public V1EndpointPort protocol(String protocol) { + this.protocol = protocol; return this; } @@ -83,11 +102,15 @@ public V1EndpointPort protocol(String protocol) { * The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP. * @return protocol **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.") + public String getProtocol() { return protocol; } + + public void setProtocol(String protocol) { this.protocol = protocol; } @@ -95,21 +118,12 @@ public void setProtocol(String protocol) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EndpointPort v1EndpointPort = (V1EndpointPort) o; - return Objects.equals(this.name, v1EndpointPort.name) && - Objects.equals(this.port, v1EndpointPort.port) && - Objects.equals(this.protocol, v1EndpointPort.protocol); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, port, protocol); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EndpointPort {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointSubset.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointSubset.java index b18d6da8dd..cb0ded6455 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointSubset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointSubset.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,18 +34,23 @@ * EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ] */ @ApiModel(description = "EndpointSubset is a group of addresses with a common set of ports. The expanded set of endpoints is the Cartesian product of Addresses x Ports. For example, given: { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] } The resulting set of endpoints can be viewed as: a: [ 10.10.1.1:8675, 10.10.2.2:8675 ], b: [ 10.10.1.1:309, 10.10.2.2:309 ]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EndpointSubset { - @SerializedName("addresses") + public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; + @SerializedName(SERIALIZED_NAME_ADDRESSES) private List addresses = null; - @SerializedName("notReadyAddresses") + public static final String SERIALIZED_NAME_NOT_READY_ADDRESSES = "notReadyAddresses"; + @SerializedName(SERIALIZED_NAME_NOT_READY_ADDRESSES) private List notReadyAddresses = null; - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; + public V1EndpointSubset addresses(List addresses) { + this.addresses = addresses; return this; } @@ -59,16 +67,22 @@ public V1EndpointSubset addAddressesItem(V1EndpointAddress addressesItem) { * IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize. * @return addresses **/ + @javax.annotation.Nullable @ApiModelProperty(value = "IP addresses which offer the related ports that are marked as ready. These endpoints should be considered safe for load balancers and clients to utilize.") + public List getAddresses() { return addresses; } + + public void setAddresses(List addresses) { this.addresses = addresses; } + public V1EndpointSubset notReadyAddresses(List notReadyAddresses) { + this.notReadyAddresses = notReadyAddresses; return this; } @@ -85,16 +99,22 @@ public V1EndpointSubset addNotReadyAddressesItem(V1EndpointAddress notReadyAddre * IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check. * @return notReadyAddresses **/ + @javax.annotation.Nullable @ApiModelProperty(value = "IP addresses which offer the related ports but are not currently marked as ready because they have not yet finished starting, have recently failed a readiness check, or have recently failed a liveness check.") + public List getNotReadyAddresses() { return notReadyAddresses; } + + public void setNotReadyAddresses(List notReadyAddresses) { this.notReadyAddresses = notReadyAddresses; } + public V1EndpointSubset ports(List ports) { + this.ports = ports; return this; } @@ -111,11 +131,15 @@ public V1EndpointSubset addPortsItem(V1EndpointPort portsItem) { * Port numbers available on the related IP addresses. * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Port numbers available on the related IP addresses.") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } @@ -123,21 +147,12 @@ public void setPorts(List ports) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EndpointSubset v1EndpointSubset = (V1EndpointSubset) o; - return Objects.equals(this.addresses, v1EndpointSubset.addresses) && - Objects.equals(this.notReadyAddresses, v1EndpointSubset.notReadyAddresses) && - Objects.equals(this.ports, v1EndpointSubset.ports); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(addresses, notReadyAddresses, ports); + return HashCodeBuilder.reflectionHashCode(this); } @@ -145,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EndpointSubset {\n"); - sb.append(" addresses: ").append(toIndentedString(addresses)).append("\n"); sb.append(" notReadyAddresses: ").append(toIndentedString(notReadyAddresses)).append("\n"); sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Endpoints.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Endpoints.java index 57491c413d..6b668aa849 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Endpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Endpoints.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ] */ @ApiModel(description = "Endpoints is a collection of endpoints that implement the actual service. Example: Name: \"mysvc\", Subsets: [ { Addresses: [{\"ip\": \"10.10.1.1\"}, {\"ip\": \"10.10.2.2\"}], Ports: [{\"name\": \"a\", \"port\": 8675}, {\"name\": \"b\", \"port\": 309}] }, { Addresses: [{\"ip\": \"10.10.3.3\"}], Ports: [{\"name\": \"a\", \"port\": 93}, {\"name\": \"b\", \"port\": 76}] }, ]") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Endpoints { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("subsets") + public static final String SERIALIZED_NAME_SUBSETS = "subsets"; + @SerializedName(SERIALIZED_NAME_SUBSETS) private List subsets = null; + public V1Endpoints apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1Endpoints apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Endpoints kind(String kind) { + this.kind = kind; return this; } @@ -72,34 +87,46 @@ public V1Endpoints kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Endpoints metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Endpoints subsets(List subsets) { + this.subsets = subsets; return this; } @@ -116,11 +143,15 @@ public V1Endpoints addSubsetsItem(V1EndpointSubset subsetsItem) { * The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service. * @return subsets **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The set of all endpoints is the union of all subsets. Addresses are placed into subsets according to the IPs they share. A single address with multiple ports, some of which are ready and some of which are not (because they come from different containers) will result in the address being displayed in different subsets for the different ports. No address will appear in both Addresses and NotReadyAddresses in the same subset. Sets of addresses and ports that comprise a service.") + public List getSubsets() { return subsets; } + + public void setSubsets(List subsets) { this.subsets = subsets; } @@ -128,22 +159,12 @@ public void setSubsets(List subsets) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Endpoints v1Endpoints = (V1Endpoints) o; - return Objects.equals(this.apiVersion, v1Endpoints.apiVersion) && - Objects.equals(this.kind, v1Endpoints.kind) && - Objects.equals(this.metadata, v1Endpoints.metadata) && - Objects.equals(this.subsets, v1Endpoints.subsets); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, subsets); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Endpoints {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointsList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointsList.java index 701570b8ec..4abd3c4460 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointsList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EndpointsList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * EndpointsList is a list of endpoints. */ @ApiModel(description = "EndpointsList is a list of endpoints.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EndpointsList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1EndpointsList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1EndpointsList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1EndpointsList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1EndpointsList addItemsItem(V1Endpoints itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of endpoints.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1EndpointsList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1EndpointsList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1EndpointsList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EndpointsList v1EndpointsList = (V1EndpointsList) o; - return Objects.equals(this.apiVersion, v1EndpointsList.apiVersion) && - Objects.equals(this.items, v1EndpointsList.items) && - Objects.equals(this.kind, v1EndpointsList.kind) && - Objects.equals(this.metadata, v1EndpointsList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EndpointsList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvFromSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvFromSource.java index 5797a4c506..4d7978f069 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvFromSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvFromSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,36 +32,47 @@ * EnvFromSource represents the source of a set of ConfigMaps */ @ApiModel(description = "EnvFromSource represents the source of a set of ConfigMaps") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EnvFromSource { - @SerializedName("configMapRef") - private V1ConfigMapEnvSource configMapRef = null; + public static final String SERIALIZED_NAME_CONFIG_MAP_REF = "configMapRef"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP_REF) + private V1ConfigMapEnvSource configMapRef; + + public static final String SERIALIZED_NAME_PREFIX = "prefix"; + @SerializedName(SERIALIZED_NAME_PREFIX) + private String prefix; - @SerializedName("prefix") - private String prefix = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretEnvSource secretRef; - @SerializedName("secretRef") - private V1SecretEnvSource secretRef = null; public V1EnvFromSource configMapRef(V1ConfigMapEnvSource configMapRef) { + this.configMapRef = configMapRef; return this; } /** - * The ConfigMap to select from + * Get configMapRef * @return configMapRef **/ - @ApiModelProperty(value = "The ConfigMap to select from") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ConfigMapEnvSource getConfigMapRef() { return configMapRef; } + + public void setConfigMapRef(V1ConfigMapEnvSource configMapRef) { this.configMapRef = configMapRef; } + public V1EnvFromSource prefix(String prefix) { + this.prefix = prefix; return this; } @@ -67,29 +81,39 @@ public V1EnvFromSource prefix(String prefix) { * An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER. * @return prefix **/ + @javax.annotation.Nullable @ApiModelProperty(value = "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.") + public String getPrefix() { return prefix; } + + public void setPrefix(String prefix) { this.prefix = prefix; } + public V1EnvFromSource secretRef(V1SecretEnvSource secretRef) { + this.secretRef = secretRef; return this; } /** - * The Secret to select from + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "The Secret to select from") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretEnvSource getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretEnvSource secretRef) { this.secretRef = secretRef; } @@ -97,21 +121,12 @@ public void setSecretRef(V1SecretEnvSource secretRef) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EnvFromSource v1EnvFromSource = (V1EnvFromSource) o; - return Objects.equals(this.configMapRef, v1EnvFromSource.configMapRef) && - Objects.equals(this.prefix, v1EnvFromSource.prefix) && - Objects.equals(this.secretRef, v1EnvFromSource.secretRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(configMapRef, prefix, secretRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -119,7 +134,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EnvFromSource {\n"); - sb.append(" configMapRef: ").append(toIndentedString(configMapRef)).append("\n"); sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVar.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVar.java index 4fa5f8c530..e813a91cea 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVar.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVar.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * EnvVar represents an environment variable present in a Container. */ @ApiModel(description = "EnvVar represents an environment variable present in a Container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EnvVar { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - @SerializedName("value") - private String value = null; + public static final String SERIALIZED_NAME_VALUE_FROM = "valueFrom"; + @SerializedName(SERIALIZED_NAME_VALUE_FROM) + private V1EnvVarSource valueFrom; - @SerializedName("valueFrom") - private V1EnvVarSource valueFrom = null; public V1EnvVar name(String name) { + this.name = name; return this; } @@ -49,15 +57,20 @@ public V1EnvVar name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the environment variable. Must be a C_IDENTIFIER.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1EnvVar value(String value) { + this.value = value; return this; } @@ -66,29 +79,39 @@ public V1EnvVar value(String value) { * Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". * @return value **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\".") + public String getValue() { return value; } + + public void setValue(String value) { this.value = value; } + public V1EnvVar valueFrom(V1EnvVarSource valueFrom) { + this.valueFrom = valueFrom; return this; } /** - * Source for the environment variable's value. Cannot be used if value is not empty. + * Get valueFrom * @return valueFrom **/ - @ApiModelProperty(value = "Source for the environment variable's value. Cannot be used if value is not empty.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1EnvVarSource getValueFrom() { return valueFrom; } + + public void setValueFrom(V1EnvVarSource valueFrom) { this.valueFrom = valueFrom; } @@ -96,21 +119,12 @@ public void setValueFrom(V1EnvVarSource valueFrom) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EnvVar v1EnvVar = (V1EnvVar) o; - return Objects.equals(this.name, v1EnvVar.name) && - Objects.equals(this.value, v1EnvVar.value) && - Objects.equals(this.valueFrom, v1EnvVar.valueFrom); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, value, valueFrom); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EnvVar {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" valueFrom: ").append(toIndentedString(valueFrom)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVarSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVarSource.java index 7fc66b12cc..abb079e207 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVarSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EnvVarSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,88 +34,116 @@ * EnvVarSource represents a source for the value of an EnvVar. */ @ApiModel(description = "EnvVarSource represents a source for the value of an EnvVar.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EnvVarSource { - @SerializedName("configMapKeyRef") - private V1ConfigMapKeySelector configMapKeyRef = null; + public static final String SERIALIZED_NAME_CONFIG_MAP_KEY_REF = "configMapKeyRef"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP_KEY_REF) + private V1ConfigMapKeySelector configMapKeyRef; + + public static final String SERIALIZED_NAME_FIELD_REF = "fieldRef"; + @SerializedName(SERIALIZED_NAME_FIELD_REF) + private V1ObjectFieldSelector fieldRef; - @SerializedName("fieldRef") - private V1ObjectFieldSelector fieldRef = null; + public static final String SERIALIZED_NAME_RESOURCE_FIELD_REF = "resourceFieldRef"; + @SerializedName(SERIALIZED_NAME_RESOURCE_FIELD_REF) + private V1ResourceFieldSelector resourceFieldRef; - @SerializedName("resourceFieldRef") - private V1ResourceFieldSelector resourceFieldRef = null; + public static final String SERIALIZED_NAME_SECRET_KEY_REF = "secretKeyRef"; + @SerializedName(SERIALIZED_NAME_SECRET_KEY_REF) + private V1SecretKeySelector secretKeyRef; - @SerializedName("secretKeyRef") - private V1SecretKeySelector secretKeyRef = null; public V1EnvVarSource configMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { + this.configMapKeyRef = configMapKeyRef; return this; } /** - * Selects a key of a ConfigMap. + * Get configMapKeyRef * @return configMapKeyRef **/ - @ApiModelProperty(value = "Selects a key of a ConfigMap.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ConfigMapKeySelector getConfigMapKeyRef() { return configMapKeyRef; } + + public void setConfigMapKeyRef(V1ConfigMapKeySelector configMapKeyRef) { this.configMapKeyRef = configMapKeyRef; } + public V1EnvVarSource fieldRef(V1ObjectFieldSelector fieldRef) { + this.fieldRef = fieldRef; return this; } /** - * Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP. + * Get fieldRef * @return fieldRef **/ - @ApiModelProperty(value = "Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectFieldSelector getFieldRef() { return fieldRef; } + + public void setFieldRef(V1ObjectFieldSelector fieldRef) { this.fieldRef = fieldRef; } + public V1EnvVarSource resourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { + this.resourceFieldRef = resourceFieldRef; return this; } /** - * Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported. + * Get resourceFieldRef * @return resourceFieldRef **/ - @ApiModelProperty(value = "Selects a resource of the container: only resources limits and requests (limits.cpu, limits.memory, limits.ephemeral-storage, requests.cpu, requests.memory and requests.ephemeral-storage) are currently supported.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceFieldSelector getResourceFieldRef() { return resourceFieldRef; } + + public void setResourceFieldRef(V1ResourceFieldSelector resourceFieldRef) { this.resourceFieldRef = resourceFieldRef; } + public V1EnvVarSource secretKeyRef(V1SecretKeySelector secretKeyRef) { + this.secretKeyRef = secretKeyRef; return this; } /** - * Selects a key of a secret in the pod's namespace + * Get secretKeyRef * @return secretKeyRef **/ - @ApiModelProperty(value = "Selects a key of a secret in the pod's namespace") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretKeySelector getSecretKeyRef() { return secretKeyRef; } + + public void setSecretKeyRef(V1SecretKeySelector secretKeyRef) { this.secretKeyRef = secretKeyRef; } @@ -120,22 +151,12 @@ public void setSecretKeyRef(V1SecretKeySelector secretKeyRef) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EnvVarSource v1EnvVarSource = (V1EnvVarSource) o; - return Objects.equals(this.configMapKeyRef, v1EnvVarSource.configMapKeyRef) && - Objects.equals(this.fieldRef, v1EnvVarSource.fieldRef) && - Objects.equals(this.resourceFieldRef, v1EnvVarSource.resourceFieldRef) && - Objects.equals(this.secretKeyRef, v1EnvVarSource.secretKeyRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(configMapKeyRef, fieldRef, resourceFieldRef, secretKeyRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -143,7 +164,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EnvVarSource {\n"); - sb.append(" configMapKeyRef: ").append(toIndentedString(configMapKeyRef)).append("\n"); sb.append(" fieldRef: ").append(toIndentedString(fieldRef)).append("\n"); sb.append(" resourceFieldRef: ").append(toIndentedString(resourceFieldRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Event.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Event.java index a621091180..fd7c73ca55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Event.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,60 +35,79 @@ * Event is a report of an event somewhere in the cluster. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Event { - @SerializedName("action") - private String action = null; + public static final String SERIALIZED_NAME_ACTION = "action"; + @SerializedName(SERIALIZED_NAME_ACTION) + private String action; + + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Integer count; - @SerializedName("count") - private Integer count = null; + public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; + @SerializedName(SERIALIZED_NAME_EVENT_TIME) + private DateTime eventTime; - @SerializedName("eventTime") - private DateTime eventTime = null; + public static final String SERIALIZED_NAME_FIRST_TIMESTAMP = "firstTimestamp"; + @SerializedName(SERIALIZED_NAME_FIRST_TIMESTAMP) + private DateTime firstTimestamp; - @SerializedName("firstTimestamp") - private DateTime firstTimestamp = null; + public static final String SERIALIZED_NAME_INVOLVED_OBJECT = "involvedObject"; + @SerializedName(SERIALIZED_NAME_INVOLVED_OBJECT) + private V1ObjectReference involvedObject; - @SerializedName("involvedObject") - private V1ObjectReference involvedObject = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_LAST_TIMESTAMP = "lastTimestamp"; + @SerializedName(SERIALIZED_NAME_LAST_TIMESTAMP) + private DateTime lastTimestamp; - @SerializedName("lastTimestamp") - private DateTime lastTimestamp = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_RELATED = "related"; + @SerializedName(SERIALIZED_NAME_RELATED) + private V1ObjectReference related; - @SerializedName("related") - private V1ObjectReference related = null; + public static final String SERIALIZED_NAME_REPORTING_COMPONENT = "reportingComponent"; + @SerializedName(SERIALIZED_NAME_REPORTING_COMPONENT) + private String reportingComponent; - @SerializedName("reportingComponent") - private String reportingComponent = null; + public static final String SERIALIZED_NAME_REPORTING_INSTANCE = "reportingInstance"; + @SerializedName(SERIALIZED_NAME_REPORTING_INSTANCE) + private String reportingInstance; - @SerializedName("reportingInstance") - private String reportingInstance = null; + public static final String SERIALIZED_NAME_SERIES = "series"; + @SerializedName(SERIALIZED_NAME_SERIES) + private V1EventSeries series; - @SerializedName("series") - private V1EventSeries series = null; + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private V1EventSource source; - @SerializedName("source") - private V1EventSource source = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1Event action(String action) { + this.action = action; return this; } @@ -94,16 +116,22 @@ public V1Event action(String action) { * What action was taken/failed regarding to the Regarding object. * @return action **/ + @javax.annotation.Nullable @ApiModelProperty(value = "What action was taken/failed regarding to the Regarding object.") + public String getAction() { return action; } + + public void setAction(String action) { this.action = action; } + public V1Event apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -112,16 +140,22 @@ public V1Event apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Event count(Integer count) { + this.count = count; return this; } @@ -130,16 +164,22 @@ public V1Event count(Integer count) { * The number of times this event has occurred. * @return count **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of times this event has occurred.") + public Integer getCount() { return count; } + + public void setCount(Integer count) { this.count = count; } + public V1Event eventTime(DateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -148,16 +188,22 @@ public V1Event eventTime(DateTime eventTime) { * Time when this Event was first observed. * @return eventTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time when this Event was first observed.") + public DateTime getEventTime() { return eventTime; } + + public void setEventTime(DateTime eventTime) { this.eventTime = eventTime; } + public V1Event firstTimestamp(DateTime firstTimestamp) { + this.firstTimestamp = firstTimestamp; return this; } @@ -166,34 +212,45 @@ public V1Event firstTimestamp(DateTime firstTimestamp) { * The time at which the event was first recorded. (Time of server receipt is in TypeMeta.) * @return firstTimestamp **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The time at which the event was first recorded. (Time of server receipt is in TypeMeta.)") + public DateTime getFirstTimestamp() { return firstTimestamp; } + + public void setFirstTimestamp(DateTime firstTimestamp) { this.firstTimestamp = firstTimestamp; } + public V1Event involvedObject(V1ObjectReference involvedObject) { + this.involvedObject = involvedObject; return this; } /** - * The object that this event is about. + * Get involvedObject * @return involvedObject **/ - @ApiModelProperty(required = true, value = "The object that this event is about.") + @ApiModelProperty(required = true, value = "") + public V1ObjectReference getInvolvedObject() { return involvedObject; } + + public void setInvolvedObject(V1ObjectReference involvedObject) { this.involvedObject = involvedObject; } + public V1Event kind(String kind) { + this.kind = kind; return this; } @@ -202,16 +259,22 @@ public V1Event kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Event lastTimestamp(DateTime lastTimestamp) { + this.lastTimestamp = lastTimestamp; return this; } @@ -220,16 +283,22 @@ public V1Event lastTimestamp(DateTime lastTimestamp) { * The time at which the most recent occurrence of this event was recorded. * @return lastTimestamp **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The time at which the most recent occurrence of this event was recorded.") + public DateTime getLastTimestamp() { return lastTimestamp; } + + public void setLastTimestamp(DateTime lastTimestamp) { this.lastTimestamp = lastTimestamp; } + public V1Event message(String message) { + this.message = message; return this; } @@ -238,34 +307,45 @@ public V1Event message(String message) { * A human-readable description of the status of this operation. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the status of this operation.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1Event metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(required = true, value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @ApiModelProperty(required = true, value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Event reason(String reason) { + this.reason = reason; return this; } @@ -274,34 +354,46 @@ public V1Event reason(String reason) { * This should be a short, machine understandable string that gives the reason for the transition into the object's current status. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "This should be a short, machine understandable string that gives the reason for the transition into the object's current status.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1Event related(V1ObjectReference related) { + this.related = related; return this; } /** - * Optional secondary object for more complex actions. + * Get related * @return related **/ - @ApiModelProperty(value = "Optional secondary object for more complex actions.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectReference getRelated() { return related; } + + public void setRelated(V1ObjectReference related) { this.related = related; } + public V1Event reportingComponent(String reportingComponent) { + this.reportingComponent = reportingComponent; return this; } @@ -310,16 +402,22 @@ public V1Event reportingComponent(String reportingComponent) { * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. * @return reportingComponent **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.") + public String getReportingComponent() { return reportingComponent; } + + public void setReportingComponent(String reportingComponent) { this.reportingComponent = reportingComponent; } + public V1Event reportingInstance(String reportingInstance) { + this.reportingInstance = reportingInstance; return this; } @@ -328,52 +426,70 @@ public V1Event reportingInstance(String reportingInstance) { * ID of the controller instance, e.g. `kubelet-xyzf`. * @return reportingInstance **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ID of the controller instance, e.g. `kubelet-xyzf`.") + public String getReportingInstance() { return reportingInstance; } + + public void setReportingInstance(String reportingInstance) { this.reportingInstance = reportingInstance; } + public V1Event series(V1EventSeries series) { + this.series = series; return this; } /** - * Data about the Event series this event represents or nil if it's a singleton Event. + * Get series * @return series **/ - @ApiModelProperty(value = "Data about the Event series this event represents or nil if it's a singleton Event.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1EventSeries getSeries() { return series; } + + public void setSeries(V1EventSeries series) { this.series = series; } + public V1Event source(V1EventSource source) { + this.source = source; return this; } /** - * The component reporting this event. Should be a short machine understandable string. + * Get source * @return source **/ - @ApiModelProperty(value = "The component reporting this event. Should be a short machine understandable string.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1EventSource getSource() { return source; } + + public void setSource(V1EventSource source) { this.source = source; } + public V1Event type(String type) { + this.type = type; return this; } @@ -382,11 +498,15 @@ public V1Event type(String type) { * Type of this event (Normal, Warning), new types could be added in the future * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of this event (Normal, Warning), new types could be added in the future") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -394,35 +514,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Event v1Event = (V1Event) o; - return Objects.equals(this.action, v1Event.action) && - Objects.equals(this.apiVersion, v1Event.apiVersion) && - Objects.equals(this.count, v1Event.count) && - Objects.equals(this.eventTime, v1Event.eventTime) && - Objects.equals(this.firstTimestamp, v1Event.firstTimestamp) && - Objects.equals(this.involvedObject, v1Event.involvedObject) && - Objects.equals(this.kind, v1Event.kind) && - Objects.equals(this.lastTimestamp, v1Event.lastTimestamp) && - Objects.equals(this.message, v1Event.message) && - Objects.equals(this.metadata, v1Event.metadata) && - Objects.equals(this.reason, v1Event.reason) && - Objects.equals(this.related, v1Event.related) && - Objects.equals(this.reportingComponent, v1Event.reportingComponent) && - Objects.equals(this.reportingInstance, v1Event.reportingInstance) && - Objects.equals(this.series, v1Event.series) && - Objects.equals(this.source, v1Event.source) && - Objects.equals(this.type, v1Event.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(action, apiVersion, count, eventTime, firstTimestamp, involvedObject, kind, lastTimestamp, message, metadata, reason, related, reportingComponent, reportingInstance, series, source, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -430,7 +527,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Event {\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" count: ").append(toIndentedString(count)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EventList.java index 78e1c089c6..5a30056883 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EventList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * EventList is a list of events. */ @ApiModel(description = "EventList is a list of events.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EventList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1EventList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1EventList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1EventList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1EventList addItemsItem(V1Event itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of events") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1EventList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1EventList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1EventList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EventList v1EventList = (V1EventList) o; - return Objects.equals(this.apiVersion, v1EventList.apiVersion) && - Objects.equals(this.items, v1EventList.items) && - Objects.equals(this.kind, v1EventList.kind) && - Objects.equals(this.metadata, v1EventList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EventList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSeries.java index a06b35cf29..1c6bb6b23e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSeries.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EventSeries { - @SerializedName("count") - private Integer count = null; + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Integer count; + + public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; + @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) + private DateTime lastObservedTime; - @SerializedName("lastObservedTime") - private DateTime lastObservedTime = null; + public static final String SERIALIZED_NAME_STATE = "state"; + @SerializedName(SERIALIZED_NAME_STATE) + private String state; - @SerializedName("state") - private String state = null; public V1EventSeries count(Integer count) { + this.count = count; return this; } @@ -48,16 +56,22 @@ public V1EventSeries count(Integer count) { * Number of occurrences in this series up to the last heartbeat time * @return count **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of occurrences in this series up to the last heartbeat time") + public Integer getCount() { return count; } + + public void setCount(Integer count) { this.count = count; } + public V1EventSeries lastObservedTime(DateTime lastObservedTime) { + this.lastObservedTime = lastObservedTime; return this; } @@ -66,29 +80,39 @@ public V1EventSeries lastObservedTime(DateTime lastObservedTime) { * Time of the last occurrence observed * @return lastObservedTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time of the last occurrence observed") + public DateTime getLastObservedTime() { return lastObservedTime; } + + public void setLastObservedTime(DateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } + public V1EventSeries state(String state) { + this.state = state; return this; } /** - * State of this Series: Ongoing or Finished + * State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18 * @return state **/ - @ApiModelProperty(value = "State of this Series: Ongoing or Finished") + @javax.annotation.Nullable + @ApiModelProperty(value = "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18") + public String getState() { return state; } + + public void setState(String state) { this.state = state; } @@ -96,21 +120,12 @@ public void setState(String state) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EventSeries v1EventSeries = (V1EventSeries) o; - return Objects.equals(this.count, v1EventSeries.count) && - Objects.equals(this.lastObservedTime, v1EventSeries.lastObservedTime) && - Objects.equals(this.state, v1EventSeries.state); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(count, lastObservedTime, state); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +133,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EventSeries {\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" lastObservedTime: ").append(toIndentedString(lastObservedTime)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSource.java index 85774a766a..5ddec412d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1EventSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * EventSource contains information for an event. */ @ApiModel(description = "EventSource contains information for an event.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1EventSource { - @SerializedName("component") - private String component = null; + public static final String SERIALIZED_NAME_COMPONENT = "component"; + @SerializedName(SERIALIZED_NAME_COMPONENT) + private String component; + + public static final String SERIALIZED_NAME_HOST = "host"; + @SerializedName(SERIALIZED_NAME_HOST) + private String host; - @SerializedName("host") - private String host = null; public V1EventSource component(String component) { + this.component = component; return this; } @@ -44,16 +51,22 @@ public V1EventSource component(String component) { * Component from which the event is generated. * @return component **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Component from which the event is generated.") + public String getComponent() { return component; } + + public void setComponent(String component) { this.component = component; } + public V1EventSource host(String host) { + this.host = host; return this; } @@ -62,11 +75,15 @@ public V1EventSource host(String host) { * Node name on which the event is generated. * @return host **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Node name on which the event is generated.") + public String getHost() { return host; } + + public void setHost(String host) { this.host = host; } @@ -74,20 +91,12 @@ public void setHost(String host) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1EventSource v1EventSource = (V1EventSource) o; - return Objects.equals(this.component, v1EventSource.component) && - Objects.equals(this.host, v1EventSource.host); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(component, host); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1EventSource {\n"); - sb.append(" component: ").append(toIndentedString(component)).append("\n"); sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ExecAction.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ExecAction.java index 13cf5c1d24..168ab3bbf5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ExecAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ExecAction.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,12 +32,15 @@ * ExecAction describes a \"run in container\" action. */ @ApiModel(description = "ExecAction describes a \"run in container\" action.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ExecAction { - @SerializedName("command") + public static final String SERIALIZED_NAME_COMMAND = "command"; + @SerializedName(SERIALIZED_NAME_COMMAND) private List command = null; + public V1ExecAction command(List command) { + this.command = command; return this; } @@ -51,11 +57,15 @@ public V1ExecAction addCommandItem(String commandItem) { * Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy. * @return command **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is simply exec'd, it is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy.") + public List getCommand() { return command; } + + public void setCommand(List command) { this.command = command; } @@ -63,19 +73,12 @@ public void setCommand(List command) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ExecAction v1ExecAction = (V1ExecAction) o; - return Objects.equals(this.command, v1ExecAction.command); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(command); + return HashCodeBuilder.reflectionHashCode(this); } @@ -83,7 +86,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ExecAction {\n"); - sb.append(" command: ").append(toIndentedString(command)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1FCVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1FCVolumeSource.java index 8a659df118..22390f4215 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1FCVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1FCVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Fibre Channel volume. Fibre Channel volumes can only be mounted as read/write once. Fibre Channel volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1FCVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("lun") - private Integer lun = null; + public static final String SERIALIZED_NAME_LUN = "lun"; + @SerializedName(SERIALIZED_NAME_LUN) + private Integer lun; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("targetWWNs") + public static final String SERIALIZED_NAME_TARGET_W_W_NS = "targetWWNs"; + @SerializedName(SERIALIZED_NAME_TARGET_W_W_NS) private List targetWWNs = null; - @SerializedName("wwids") + public static final String SERIALIZED_NAME_WWIDS = "wwids"; + @SerializedName(SERIALIZED_NAME_WWIDS) private List wwids = null; + public V1FCVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -55,16 +65,22 @@ public V1FCVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1FCVolumeSource lun(Integer lun) { + this.lun = lun; return this; } @@ -73,16 +89,22 @@ public V1FCVolumeSource lun(Integer lun) { * Optional: FC target lun number * @return lun **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: FC target lun number") + public Integer getLun() { return lun; } + + public void setLun(Integer lun) { this.lun = lun; } + public V1FCVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -91,16 +113,22 @@ public V1FCVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1FCVolumeSource targetWWNs(List targetWWNs) { + this.targetWWNs = targetWWNs; return this; } @@ -117,16 +145,22 @@ public V1FCVolumeSource addTargetWWNsItem(String targetWWNsItem) { * Optional: FC target worldwide names (WWNs) * @return targetWWNs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: FC target worldwide names (WWNs)") + public List getTargetWWNs() { return targetWWNs; } + + public void setTargetWWNs(List targetWWNs) { this.targetWWNs = targetWWNs; } + public V1FCVolumeSource wwids(List wwids) { + this.wwids = wwids; return this; } @@ -143,11 +177,15 @@ public V1FCVolumeSource addWwidsItem(String wwidsItem) { * Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. * @return wwids **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously.") + public List getWwids() { return wwids; } + + public void setWwids(List wwids) { this.wwids = wwids; } @@ -155,23 +193,12 @@ public void setWwids(List wwids) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1FCVolumeSource v1FCVolumeSource = (V1FCVolumeSource) o; - return Objects.equals(this.fsType, v1FCVolumeSource.fsType) && - Objects.equals(this.lun, v1FCVolumeSource.lun) && - Objects.equals(this.readOnly, v1FCVolumeSource.readOnly) && - Objects.equals(this.targetWWNs, v1FCVolumeSource.targetWWNs) && - Objects.equals(this.wwids, v1FCVolumeSource.wwids); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, lun, readOnly, targetWWNs, wwids); + return HashCodeBuilder.reflectionHashCode(this); } @@ -179,7 +206,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1FCVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" lun: ").append(toIndentedString(lun)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexPersistentVolumeSource.java index 44ffb6f193..b8f8b8380b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexPersistentVolumeSource represents a generic persistent volume resource that is provisioned/attached using an exec based plugin.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1FlexPersistentVolumeSource { - @SerializedName("driver") - private String driver = null; + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("options") + public static final String SERIALIZED_NAME_OPTIONS = "options"; + @SerializedName(SERIALIZED_NAME_OPTIONS) private Map options = null; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretReference secretRef; - @SerializedName("secretRef") - private V1SecretReference secretRef = null; public V1FlexPersistentVolumeSource driver(String driver) { + this.driver = driver; return this; } @@ -58,15 +68,20 @@ public V1FlexPersistentVolumeSource driver(String driver) { * @return driver **/ @ApiModelProperty(required = true, value = "Driver is the name of the driver to use for this volume.") + public String getDriver() { return driver; } + + public void setDriver(String driver) { this.driver = driver; } + public V1FlexPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -75,16 +90,22 @@ public V1FlexPersistentVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1FlexPersistentVolumeSource options(Map options) { + this.options = options; return this; } @@ -101,16 +122,22 @@ public V1FlexPersistentVolumeSource putOptionsItem(String key, String optionsIte * Optional: Extra command options if any. * @return options **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Extra command options if any.") + public Map getOptions() { return options; } + + public void setOptions(Map options) { this.options = options; } + public V1FlexPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -119,29 +146,39 @@ public V1FlexPersistentVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1FlexPersistentVolumeSource secretRef(V1SecretReference secretRef) { + this.secretRef = secretRef; return this; } /** - * Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretReference secretRef) { this.secretRef = secretRef; } @@ -149,23 +186,12 @@ public void setSecretRef(V1SecretReference secretRef) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1FlexPersistentVolumeSource v1FlexPersistentVolumeSource = (V1FlexPersistentVolumeSource) o; - return Objects.equals(this.driver, v1FlexPersistentVolumeSource.driver) && - Objects.equals(this.fsType, v1FlexPersistentVolumeSource.fsType) && - Objects.equals(this.options, v1FlexPersistentVolumeSource.options) && - Objects.equals(this.readOnly, v1FlexPersistentVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1FlexPersistentVolumeSource.secretRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(driver, fsType, options, readOnly, secretRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -173,7 +199,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1FlexPersistentVolumeSource {\n"); - sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexVolumeSource.java index d767a346d6..a96f88dd58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1FlexVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. */ @ApiModel(description = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1FlexVolumeSource { - @SerializedName("driver") - private String driver = null; + public static final String SERIALIZED_NAME_DRIVER = "driver"; + @SerializedName(SERIALIZED_NAME_DRIVER) + private String driver; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("options") + public static final String SERIALIZED_NAME_OPTIONS = "options"; + @SerializedName(SERIALIZED_NAME_OPTIONS) private Map options = null; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; public V1FlexVolumeSource driver(String driver) { + this.driver = driver; return this; } @@ -58,15 +68,20 @@ public V1FlexVolumeSource driver(String driver) { * @return driver **/ @ApiModelProperty(required = true, value = "Driver is the name of the driver to use for this volume.") + public String getDriver() { return driver; } + + public void setDriver(String driver) { this.driver = driver; } + public V1FlexVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -75,16 +90,22 @@ public V1FlexVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1FlexVolumeSource options(Map options) { + this.options = options; return this; } @@ -101,16 +122,22 @@ public V1FlexVolumeSource putOptionsItem(String key, String optionsItem) { * Optional: Extra command options if any. * @return options **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Extra command options if any.") + public Map getOptions() { return options; } + + public void setOptions(Map options) { this.options = options; } + public V1FlexVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -119,29 +146,39 @@ public V1FlexVolumeSource readOnly(Boolean readOnly) { * Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1FlexVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "Optional: SecretRef is reference to the secret object containing sensitive information to pass to the plugin scripts. This may be empty if no secret object is specified. If the secret object contains more than one secret, all secrets are passed to the plugin scripts.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } @@ -149,23 +186,12 @@ public void setSecretRef(V1LocalObjectReference secretRef) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1FlexVolumeSource v1FlexVolumeSource = (V1FlexVolumeSource) o; - return Objects.equals(this.driver, v1FlexVolumeSource.driver) && - Objects.equals(this.fsType, v1FlexVolumeSource.fsType) && - Objects.equals(this.options, v1FlexVolumeSource.options) && - Objects.equals(this.readOnly, v1FlexVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1FlexVolumeSource.secretRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(driver, fsType, options, readOnly, secretRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -173,7 +199,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1FlexVolumeSource {\n"); - sb.append(" driver: ").append(toIndentedString(driver)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1FlockerVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1FlockerVolumeSource.java index ae64d1b782..dffb184295 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1FlockerVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1FlockerVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Flocker volume mounted by the Flocker agent. One and only one of datasetName and datasetUUID should be set. Flocker volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1FlockerVolumeSource { - @SerializedName("datasetName") - private String datasetName = null; + public static final String SERIALIZED_NAME_DATASET_NAME = "datasetName"; + @SerializedName(SERIALIZED_NAME_DATASET_NAME) + private String datasetName; + + public static final String SERIALIZED_NAME_DATASET_U_U_I_D = "datasetUUID"; + @SerializedName(SERIALIZED_NAME_DATASET_U_U_I_D) + private String datasetUUID; - @SerializedName("datasetUUID") - private String datasetUUID = null; public V1FlockerVolumeSource datasetName(String datasetName) { + this.datasetName = datasetName; return this; } @@ -44,16 +51,22 @@ public V1FlockerVolumeSource datasetName(String datasetName) { * Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated * @return datasetName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated") + public String getDatasetName() { return datasetName; } + + public void setDatasetName(String datasetName) { this.datasetName = datasetName; } + public V1FlockerVolumeSource datasetUUID(String datasetUUID) { + this.datasetUUID = datasetUUID; return this; } @@ -62,11 +75,15 @@ public V1FlockerVolumeSource datasetUUID(String datasetUUID) { * UUID of the dataset. This is unique identifier of a Flocker dataset * @return datasetUUID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UUID of the dataset. This is unique identifier of a Flocker dataset") + public String getDatasetUUID() { return datasetUUID; } + + public void setDatasetUUID(String datasetUUID) { this.datasetUUID = datasetUUID; } @@ -74,20 +91,12 @@ public void setDatasetUUID(String datasetUUID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1FlockerVolumeSource v1FlockerVolumeSource = (V1FlockerVolumeSource) o; - return Objects.equals(this.datasetName, v1FlockerVolumeSource.datasetName) && - Objects.equals(this.datasetUUID, v1FlockerVolumeSource.datasetUUID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(datasetName, datasetUUID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1FlockerVolumeSource {\n"); - sb.append(" datasetName: ").append(toIndentedString(datasetName)).append("\n"); sb.append(" datasetUUID: ").append(toIndentedString(datasetUUID)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSource.java index a37a4d4d2e..02373e211e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Persistent Disk resource in Google Compute Engine. A GCE PD must exist before mounting to a container. The disk must also be in the same GCE project and zone as the kubelet. A GCE PD can only be mounted as read/write once or read-only many times. GCE PDs support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1GCEPersistentDiskVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_PARTITION = "partition"; + @SerializedName(SERIALIZED_NAME_PARTITION) + private Integer partition; - @SerializedName("partition") - private Integer partition = null; + public static final String SERIALIZED_NAME_PD_NAME = "pdName"; + @SerializedName(SERIALIZED_NAME_PD_NAME) + private String pdName; - @SerializedName("pdName") - private String pdName = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public V1GCEPersistentDiskVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -50,16 +59,22 @@ public V1GCEPersistentDiskVolumeSource fsType(String fsType) { * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1GCEPersistentDiskVolumeSource partition(Integer partition) { + this.partition = partition; return this; } @@ -68,16 +83,22 @@ public V1GCEPersistentDiskVolumeSource partition(Integer partition) { * The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return partition **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") + public Integer getPartition() { return partition; } + + public void setPartition(Integer partition) { this.partition = partition; } + public V1GCEPersistentDiskVolumeSource pdName(String pdName) { + this.pdName = pdName; return this; } @@ -87,15 +108,20 @@ public V1GCEPersistentDiskVolumeSource pdName(String pdName) { * @return pdName **/ @ApiModelProperty(required = true, value = "Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") + public String getPdName() { return pdName; } + + public void setPdName(String pdName) { this.pdName = pdName; } + public V1GCEPersistentDiskVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -104,11 +130,15 @@ public V1GCEPersistentDiskVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -116,22 +146,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1GCEPersistentDiskVolumeSource v1GCEPersistentDiskVolumeSource = (V1GCEPersistentDiskVolumeSource) o; - return Objects.equals(this.fsType, v1GCEPersistentDiskVolumeSource.fsType) && - Objects.equals(this.partition, v1GCEPersistentDiskVolumeSource.partition) && - Objects.equals(this.pdName, v1GCEPersistentDiskVolumeSource.pdName) && - Objects.equals(this.readOnly, v1GCEPersistentDiskVolumeSource.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, partition, pdName, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GCEPersistentDiskVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" partition: ").append(toIndentedString(partition)).append("\n"); sb.append(" pdName: ").append(toIndentedString(pdName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1GitRepoVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1GitRepoVolumeSource.java index c255a8d70b..559418e423 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1GitRepoVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1GitRepoVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. */ @ApiModel(description = "Represents a volume that is populated with the contents of a git repository. Git repo volumes do not support ownership management. Git repo volumes support SELinux relabeling. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1GitRepoVolumeSource { - @SerializedName("directory") - private String directory = null; + public static final String SERIALIZED_NAME_DIRECTORY = "directory"; + @SerializedName(SERIALIZED_NAME_DIRECTORY) + private String directory; + + public static final String SERIALIZED_NAME_REPOSITORY = "repository"; + @SerializedName(SERIALIZED_NAME_REPOSITORY) + private String repository; - @SerializedName("repository") - private String repository = null; + public static final String SERIALIZED_NAME_REVISION = "revision"; + @SerializedName(SERIALIZED_NAME_REVISION) + private String revision; - @SerializedName("revision") - private String revision = null; public V1GitRepoVolumeSource directory(String directory) { + this.directory = directory; return this; } @@ -47,16 +55,22 @@ public V1GitRepoVolumeSource directory(String directory) { * Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. * @return directory **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name.") + public String getDirectory() { return directory; } + + public void setDirectory(String directory) { this.directory = directory; } + public V1GitRepoVolumeSource repository(String repository) { + this.repository = repository; return this; } @@ -66,15 +80,20 @@ public V1GitRepoVolumeSource repository(String repository) { * @return repository **/ @ApiModelProperty(required = true, value = "Repository URL") + public String getRepository() { return repository; } + + public void setRepository(String repository) { this.repository = repository; } + public V1GitRepoVolumeSource revision(String revision) { + this.revision = revision; return this; } @@ -83,11 +102,15 @@ public V1GitRepoVolumeSource revision(String revision) { * Commit hash for the specified revision. * @return revision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Commit hash for the specified revision.") + public String getRevision() { return revision; } + + public void setRevision(String revision) { this.revision = revision; } @@ -95,21 +118,12 @@ public void setRevision(String revision) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1GitRepoVolumeSource v1GitRepoVolumeSource = (V1GitRepoVolumeSource) o; - return Objects.equals(this.directory, v1GitRepoVolumeSource.directory) && - Objects.equals(this.repository, v1GitRepoVolumeSource.repository) && - Objects.equals(this.revision, v1GitRepoVolumeSource.revision); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(directory, repository, revision); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GitRepoVolumeSource {\n"); - sb.append(" directory: ").append(toIndentedString(directory)).append("\n"); sb.append(" repository: ").append(toIndentedString(repository)).append("\n"); sb.append(" revision: ").append(toIndentedString(revision)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSource.java index a77bba16e6..0ac2f648e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1GlusterfsPersistentVolumeSource { - @SerializedName("endpoints") - private String endpoints = null; + public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; + @SerializedName(SERIALIZED_NAME_ENDPOINTS) + private String endpoints; + + public static final String SERIALIZED_NAME_ENDPOINTS_NAMESPACE = "endpointsNamespace"; + @SerializedName(SERIALIZED_NAME_ENDPOINTS_NAMESPACE) + private String endpointsNamespace; - @SerializedName("endpointsNamespace") - private String endpointsNamespace = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public V1GlusterfsPersistentVolumeSource endpoints(String endpoints) { + this.endpoints = endpoints; return this; } @@ -51,15 +60,20 @@ public V1GlusterfsPersistentVolumeSource endpoints(String endpoints) { * @return endpoints **/ @ApiModelProperty(required = true, value = "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") + public String getEndpoints() { return endpoints; } + + public void setEndpoints(String endpoints) { this.endpoints = endpoints; } + public V1GlusterfsPersistentVolumeSource endpointsNamespace(String endpointsNamespace) { + this.endpointsNamespace = endpointsNamespace; return this; } @@ -68,16 +82,22 @@ public V1GlusterfsPersistentVolumeSource endpointsNamespace(String endpointsName * EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod * @return endpointsNamespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EndpointsNamespace is the namespace that contains Glusterfs endpoint. If this field is empty, the EndpointNamespace defaults to the same namespace as the bound PVC. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") + public String getEndpointsNamespace() { return endpointsNamespace; } + + public void setEndpointsNamespace(String endpointsNamespace) { this.endpointsNamespace = endpointsNamespace; } + public V1GlusterfsPersistentVolumeSource path(String path) { + this.path = path; return this; } @@ -87,15 +107,20 @@ public V1GlusterfsPersistentVolumeSource path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1GlusterfsPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -104,11 +129,15 @@ public V1GlusterfsPersistentVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -116,22 +145,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1GlusterfsPersistentVolumeSource v1GlusterfsPersistentVolumeSource = (V1GlusterfsPersistentVolumeSource) o; - return Objects.equals(this.endpoints, v1GlusterfsPersistentVolumeSource.endpoints) && - Objects.equals(this.endpointsNamespace, v1GlusterfsPersistentVolumeSource.endpointsNamespace) && - Objects.equals(this.path, v1GlusterfsPersistentVolumeSource.path) && - Objects.equals(this.readOnly, v1GlusterfsPersistentVolumeSource.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(endpoints, endpointsNamespace, path, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +158,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GlusterfsPersistentVolumeSource {\n"); - sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n"); sb.append(" endpointsNamespace: ").append(toIndentedString(endpointsNamespace)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsVolumeSource.java index 3e69823118..1e65b89152 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1GlusterfsVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Glusterfs mount that lasts the lifetime of a pod. Glusterfs volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1GlusterfsVolumeSource { - @SerializedName("endpoints") - private String endpoints = null; + public static final String SERIALIZED_NAME_ENDPOINTS = "endpoints"; + @SerializedName(SERIALIZED_NAME_ENDPOINTS) + private String endpoints; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public V1GlusterfsVolumeSource endpoints(String endpoints) { + this.endpoints = endpoints; return this; } @@ -48,15 +56,20 @@ public V1GlusterfsVolumeSource endpoints(String endpoints) { * @return endpoints **/ @ApiModelProperty(required = true, value = "EndpointsName is the endpoint name that details Glusterfs topology. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") + public String getEndpoints() { return endpoints; } + + public void setEndpoints(String endpoints) { this.endpoints = endpoints; } + public V1GlusterfsVolumeSource path(String path) { + this.path = path; return this; } @@ -66,15 +79,20 @@ public V1GlusterfsVolumeSource path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "Path is the Glusterfs volume path. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1GlusterfsVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -83,11 +101,15 @@ public V1GlusterfsVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md#create-a-pod") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -95,21 +117,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1GlusterfsVolumeSource v1GlusterfsVolumeSource = (V1GlusterfsVolumeSource) o; - return Objects.equals(this.endpoints, v1GlusterfsVolumeSource.endpoints) && - Objects.equals(this.path, v1GlusterfsVolumeSource.path) && - Objects.equals(this.readOnly, v1GlusterfsVolumeSource.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(endpoints, path, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GlusterfsVolumeSource {\n"); - sb.append(" endpoints: ").append(toIndentedString(endpoints)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1GroupVersionForDiscovery.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1GroupVersionForDiscovery.java index d3576d65e9..abff753ed9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1GroupVersionForDiscovery.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1GroupVersionForDiscovery.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility. */ @ApiModel(description = "GroupVersion contains the \"group/version\" and \"version\" string of a version. It is made a struct to keep extensibility.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1GroupVersionForDiscovery { - @SerializedName("groupVersion") - private String groupVersion = null; + public static final String SERIALIZED_NAME_GROUP_VERSION = "groupVersion"; + @SerializedName(SERIALIZED_NAME_GROUP_VERSION) + private String groupVersion; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; - @SerializedName("version") - private String version = null; public V1GroupVersionForDiscovery groupVersion(String groupVersion) { + this.groupVersion = groupVersion; return this; } @@ -45,15 +52,20 @@ public V1GroupVersionForDiscovery groupVersion(String groupVersion) { * @return groupVersion **/ @ApiModelProperty(required = true, value = "groupVersion specifies the API group and version in the form \"group/version\"") + public String getGroupVersion() { return groupVersion; } + + public void setGroupVersion(String groupVersion) { this.groupVersion = groupVersion; } + public V1GroupVersionForDiscovery version(String version) { + this.version = version; return this; } @@ -63,10 +75,13 @@ public V1GroupVersionForDiscovery version(String version) { * @return version **/ @ApiModelProperty(required = true, value = "version specifies the version in the form of \"version\". This is to save the clients the trouble of splitting the GroupVersion.") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } @@ -74,20 +89,12 @@ public void setVersion(String version) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1GroupVersionForDiscovery v1GroupVersionForDiscovery = (V1GroupVersionForDiscovery) o; - return Objects.equals(this.groupVersion, v1GroupVersionForDiscovery.groupVersion) && - Objects.equals(this.version, v1GroupVersionForDiscovery.version); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(groupVersion, version); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1GroupVersionForDiscovery {\n"); - sb.append(" groupVersion: ").append(toIndentedString(groupVersion)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPGetAction.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPGetAction.java index 62e9308fda..825fb02335 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPGetAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPGetAction.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,24 +34,31 @@ * HTTPGetAction describes an action based on HTTP Get requests. */ @ApiModel(description = "HTTPGetAction describes an action based on HTTP Get requests.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HTTPGetAction { - @SerializedName("host") - private String host = null; + public static final String SERIALIZED_NAME_HOST = "host"; + @SerializedName(SERIALIZED_NAME_HOST) + private String host; - @SerializedName("httpHeaders") + public static final String SERIALIZED_NAME_HTTP_HEADERS = "httpHeaders"; + @SerializedName(SERIALIZED_NAME_HTTP_HEADERS) private List httpHeaders = null; - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private IntOrString port; - @SerializedName("port") - private IntOrString port = null; + public static final String SERIALIZED_NAME_SCHEME = "scheme"; + @SerializedName(SERIALIZED_NAME_SCHEME) + private String scheme; - @SerializedName("scheme") - private String scheme = null; public V1HTTPGetAction host(String host) { + this.host = host; return this; } @@ -57,16 +67,22 @@ public V1HTTPGetAction host(String host) { * Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead. * @return host **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Host name to connect to, defaults to the pod IP. You probably want to set \"Host\" in httpHeaders instead.") + public String getHost() { return host; } + + public void setHost(String host) { this.host = host; } + public V1HTTPGetAction httpHeaders(List httpHeaders) { + this.httpHeaders = httpHeaders; return this; } @@ -83,16 +99,22 @@ public V1HTTPGetAction addHttpHeadersItem(V1HTTPHeader httpHeadersItem) { * Custom headers to set in the request. HTTP allows repeated headers. * @return httpHeaders **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Custom headers to set in the request. HTTP allows repeated headers.") + public List getHttpHeaders() { return httpHeaders; } + + public void setHttpHeaders(List httpHeaders) { this.httpHeaders = httpHeaders; } + public V1HTTPGetAction path(String path) { + this.path = path; return this; } @@ -101,34 +123,45 @@ public V1HTTPGetAction path(String path) { * Path to access on the HTTP server. * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Path to access on the HTTP server.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1HTTPGetAction port(IntOrString port) { + this.port = port; return this; } /** - * Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port **/ - @ApiModelProperty(required = true, value = "Name or number of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.") + @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getPort() { return port; } + + public void setPort(IntOrString port) { this.port = port; } + public V1HTTPGetAction scheme(String scheme) { + this.scheme = scheme; return this; } @@ -137,11 +170,15 @@ public V1HTTPGetAction scheme(String scheme) { * Scheme to use for connecting to the host. Defaults to HTTP. * @return scheme **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Scheme to use for connecting to the host. Defaults to HTTP.") + public String getScheme() { return scheme; } + + public void setScheme(String scheme) { this.scheme = scheme; } @@ -149,23 +186,12 @@ public void setScheme(String scheme) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HTTPGetAction v1HTTPGetAction = (V1HTTPGetAction) o; - return Objects.equals(this.host, v1HTTPGetAction.host) && - Objects.equals(this.httpHeaders, v1HTTPGetAction.httpHeaders) && - Objects.equals(this.path, v1HTTPGetAction.path) && - Objects.equals(this.port, v1HTTPGetAction.port) && - Objects.equals(this.scheme, v1HTTPGetAction.scheme); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(host, httpHeaders, path, port, scheme); + return HashCodeBuilder.reflectionHashCode(this); } @@ -173,7 +199,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HTTPGetAction {\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" httpHeaders: ").append(toIndentedString(httpHeaders)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPHeader.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPHeader.java index 94db5faf40..a20a24cf2d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPHeader.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HTTPHeader.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * HTTPHeader describes a custom header to be used in HTTP probes */ @ApiModel(description = "HTTPHeader describes a custom header to be used in HTTP probes") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HTTPHeader { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - @SerializedName("value") - private String value = null; public V1HTTPHeader name(String name) { + this.name = name; return this; } @@ -45,15 +52,20 @@ public V1HTTPHeader name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "The header field name") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1HTTPHeader value(String value) { + this.value = value; return this; } @@ -63,10 +75,13 @@ public V1HTTPHeader value(String value) { * @return value **/ @ApiModelProperty(required = true, value = "The header field value") + public String getValue() { return value; } + + public void setValue(String value) { this.value = value; } @@ -74,20 +89,12 @@ public void setValue(String value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HTTPHeader v1HTTPHeader = (V1HTTPHeader) o; - return Objects.equals(this.name, v1HTTPHeader.name) && - Objects.equals(this.value, v1HTTPHeader.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HTTPHeader {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Handler.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Handler.java index 1a9ca183d7..4e2b801802 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Handler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Handler.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,67 +33,88 @@ * Handler defines a specific action that should be taken */ @ApiModel(description = "Handler defines a specific action that should be taken") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Handler { - @SerializedName("exec") - private V1ExecAction exec = null; + public static final String SERIALIZED_NAME_EXEC = "exec"; + @SerializedName(SERIALIZED_NAME_EXEC) + private V1ExecAction exec; + + public static final String SERIALIZED_NAME_HTTP_GET = "httpGet"; + @SerializedName(SERIALIZED_NAME_HTTP_GET) + private V1HTTPGetAction httpGet; - @SerializedName("httpGet") - private V1HTTPGetAction httpGet = null; + public static final String SERIALIZED_NAME_TCP_SOCKET = "tcpSocket"; + @SerializedName(SERIALIZED_NAME_TCP_SOCKET) + private V1TCPSocketAction tcpSocket; - @SerializedName("tcpSocket") - private V1TCPSocketAction tcpSocket = null; public V1Handler exec(V1ExecAction exec) { + this.exec = exec; return this; } /** - * One and only one of the following should be specified. Exec specifies the action to take. + * Get exec * @return exec **/ - @ApiModelProperty(value = "One and only one of the following should be specified. Exec specifies the action to take.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ExecAction getExec() { return exec; } + + public void setExec(V1ExecAction exec) { this.exec = exec; } + public V1Handler httpGet(V1HTTPGetAction httpGet) { + this.httpGet = httpGet; return this; } /** - * HTTPGet specifies the http request to perform. + * Get httpGet * @return httpGet **/ - @ApiModelProperty(value = "HTTPGet specifies the http request to perform.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1HTTPGetAction getHttpGet() { return httpGet; } + + public void setHttpGet(V1HTTPGetAction httpGet) { this.httpGet = httpGet; } + public V1Handler tcpSocket(V1TCPSocketAction tcpSocket) { + this.tcpSocket = tcpSocket; return this; } /** - * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * Get tcpSocket * @return tcpSocket **/ - @ApiModelProperty(value = "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1TCPSocketAction getTcpSocket() { return tcpSocket; } + + public void setTcpSocket(V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; } @@ -98,21 +122,12 @@ public void setTcpSocket(V1TCPSocketAction tcpSocket) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Handler v1Handler = (V1Handler) o; - return Objects.equals(this.exec, v1Handler.exec) && - Objects.equals(this.httpGet, v1Handler.httpGet) && - Objects.equals(this.tcpSocket, v1Handler.tcpSocket); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(exec, httpGet, tcpSocket); + return HashCodeBuilder.reflectionHashCode(this); } @@ -120,7 +135,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Handler {\n"); - sb.append(" exec: ").append(toIndentedString(exec)).append("\n"); sb.append(" httpGet: ").append(toIndentedString(httpGet)).append("\n"); sb.append(" tcpSocket: ").append(toIndentedString(tcpSocket)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscaler.java index 28f94f58d8..acc8824047 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscaler.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * configuration of a horizontal pod autoscaler. */ @ApiModel(description = "configuration of a horizontal pod autoscaler.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HorizontalPodAutoscaler { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1HorizontalPodAutoscalerSpec spec; - @SerializedName("spec") - private V1HorizontalPodAutoscalerSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1HorizontalPodAutoscalerStatus status; - @SerializedName("status") - private V1HorizontalPodAutoscalerStatus status = null; public V1HorizontalPodAutoscaler apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1HorizontalPodAutoscaler apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1HorizontalPodAutoscaler kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1HorizontalPodAutoscaler kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1HorizontalPodAutoscaler spec(V1HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } /** - * behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "behaviour of autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1HorizontalPodAutoscalerSpec getSpec() { return spec; } + + public void setSpec(V1HorizontalPodAutoscalerSpec spec) { this.spec = spec; } + public V1HorizontalPodAutoscaler status(V1HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } /** - * current information about the autoscaler. + * Get status * @return status **/ - @ApiModelProperty(value = "current information about the autoscaler.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1HorizontalPodAutoscalerStatus getStatus() { return status; } + + public void setStatus(V1HorizontalPodAutoscalerStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1HorizontalPodAutoscalerStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HorizontalPodAutoscaler v1HorizontalPodAutoscaler = (V1HorizontalPodAutoscaler) o; - return Objects.equals(this.apiVersion, v1HorizontalPodAutoscaler.apiVersion) && - Objects.equals(this.kind, v1HorizontalPodAutoscaler.kind) && - Objects.equals(this.metadata, v1HorizontalPodAutoscaler.metadata) && - Objects.equals(this.spec, v1HorizontalPodAutoscaler.spec) && - Objects.equals(this.status, v1HorizontalPodAutoscaler.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HorizontalPodAutoscaler {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerList.java index ef90f4b996..c517d8b818 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * list of horizontal pod autoscaler objects. */ @ApiModel(description = "list of horizontal pod autoscaler objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HorizontalPodAutoscalerList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1HorizontalPodAutoscalerList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1HorizontalPodAutoscalerList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1HorizontalPodAutoscalerList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1HorizontalPodAutoscalerList addItemsItem(V1HorizontalPodAutoscaler item * @return items **/ @ApiModelProperty(required = true, value = "list of horizontal pod autoscaler objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1HorizontalPodAutoscalerList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1HorizontalPodAutoscalerList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HorizontalPodAutoscalerList v1HorizontalPodAutoscalerList = (V1HorizontalPodAutoscalerList) o; - return Objects.equals(this.apiVersion, v1HorizontalPodAutoscalerList.apiVersion) && - Objects.equals(this.items, v1HorizontalPodAutoscalerList.items) && - Objects.equals(this.kind, v1HorizontalPodAutoscalerList.kind) && - Objects.equals(this.metadata, v1HorizontalPodAutoscalerList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HorizontalPodAutoscalerList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpec.java index 7e13c5648c..4f78a278ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * specification of a horizontal pod autoscaler. */ @ApiModel(description = "specification of a horizontal pod autoscaler.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HorizontalPodAutoscalerSpec { - @SerializedName("maxReplicas") - private Integer maxReplicas = null; + public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; + @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) + private Integer maxReplicas; + + public static final String SERIALIZED_NAME_MIN_REPLICAS = "minReplicas"; + @SerializedName(SERIALIZED_NAME_MIN_REPLICAS) + private Integer minReplicas; - @SerializedName("minReplicas") - private Integer minReplicas = null; + public static final String SERIALIZED_NAME_SCALE_TARGET_REF = "scaleTargetRef"; + @SerializedName(SERIALIZED_NAME_SCALE_TARGET_REF) + private V1CrossVersionObjectReference scaleTargetRef; - @SerializedName("scaleTargetRef") - private V1CrossVersionObjectReference scaleTargetRef = null; + public static final String SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE = "targetCPUUtilizationPercentage"; + @SerializedName(SERIALIZED_NAME_TARGET_C_P_U_UTILIZATION_PERCENTAGE) + private Integer targetCPUUtilizationPercentage; - @SerializedName("targetCPUUtilizationPercentage") - private Integer targetCPUUtilizationPercentage = null; public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @@ -52,15 +61,20 @@ public V1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * @return maxReplicas **/ @ApiModelProperty(required = true, value = "upper limit for the number of pods that can be set by the autoscaler; cannot be smaller than MinReplicas.") + public Integer getMaxReplicas() { return maxReplicas; } + + public void setMaxReplicas(Integer maxReplicas) { this.maxReplicas = maxReplicas; } + public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @@ -69,34 +83,45 @@ public V1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * lower limit for the number of pods that can be set by the autoscaler, default 1. * @return minReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "lower limit for the number of pods that can be set by the autoscaler, default 1.") + public Integer getMinReplicas() { return minReplicas; } + + public void setMinReplicas(Integer minReplicas) { this.minReplicas = minReplicas; } + public V1HorizontalPodAutoscalerSpec scaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } /** - * reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource. + * Get scaleTargetRef * @return scaleTargetRef **/ - @ApiModelProperty(required = true, value = "reference to scaled resource; horizontal pod autoscaler will learn the current resource consumption and will set the desired number of pods by using its Scale subresource.") + @ApiModelProperty(required = true, value = "") + public V1CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } + + public void setScaleTargetRef(V1CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = scaleTargetRef; } + public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { + this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; return this; } @@ -105,11 +130,15 @@ public V1HorizontalPodAutoscalerSpec targetCPUUtilizationPercentage(Integer targ * target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used. * @return targetCPUUtilizationPercentage **/ + @javax.annotation.Nullable @ApiModelProperty(value = "target average CPU utilization (represented as a percentage of requested CPU) over all the pods; if not specified the default autoscaling policy will be used.") + public Integer getTargetCPUUtilizationPercentage() { return targetCPUUtilizationPercentage; } + + public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercentage) { this.targetCPUUtilizationPercentage = targetCPUUtilizationPercentage; } @@ -117,22 +146,12 @@ public void setTargetCPUUtilizationPercentage(Integer targetCPUUtilizationPercen @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HorizontalPodAutoscalerSpec v1HorizontalPodAutoscalerSpec = (V1HorizontalPodAutoscalerSpec) o; - return Objects.equals(this.maxReplicas, v1HorizontalPodAutoscalerSpec.maxReplicas) && - Objects.equals(this.minReplicas, v1HorizontalPodAutoscalerSpec.minReplicas) && - Objects.equals(this.scaleTargetRef, v1HorizontalPodAutoscalerSpec.scaleTargetRef) && - Objects.equals(this.targetCPUUtilizationPercentage, v1HorizontalPodAutoscalerSpec.targetCPUUtilizationPercentage); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxReplicas, minReplicas, scaleTargetRef, targetCPUUtilizationPercentage); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HorizontalPodAutoscalerSpec {\n"); - sb.append(" maxReplicas: ").append(toIndentedString(maxReplicas)).append("\n"); sb.append(" minReplicas: ").append(toIndentedString(minReplicas)).append("\n"); sb.append(" scaleTargetRef: ").append(toIndentedString(scaleTargetRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatus.java index 3a48e1debf..fbfb2d63fc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * current status of a horizontal pod autoscaler */ @ApiModel(description = "current status of a horizontal pod autoscaler") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HorizontalPodAutoscalerStatus { - @SerializedName("currentCPUUtilizationPercentage") - private Integer currentCPUUtilizationPercentage = null; + public static final String SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE = "currentCPUUtilizationPercentage"; + @SerializedName(SERIALIZED_NAME_CURRENT_C_P_U_UTILIZATION_PERCENTAGE) + private Integer currentCPUUtilizationPercentage; + + public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; + @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + private Integer currentReplicas; - @SerializedName("currentReplicas") - private Integer currentReplicas = null; + public static final String SERIALIZED_NAME_DESIRED_REPLICAS = "desiredReplicas"; + @SerializedName(SERIALIZED_NAME_DESIRED_REPLICAS) + private Integer desiredReplicas; - @SerializedName("desiredReplicas") - private Integer desiredReplicas = null; + public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; + @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) + private DateTime lastScaleTime; - @SerializedName("lastScaleTime") - private DateTime lastScaleTime = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { + this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; return this; } @@ -54,16 +64,22 @@ public V1HorizontalPodAutoscalerStatus currentCPUUtilizationPercentage(Integer c * current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU. * @return currentCPUUtilizationPercentage **/ + @javax.annotation.Nullable @ApiModelProperty(value = "current average CPU utilization over all pods, represented as a percentage of requested CPU, e.g. 70 means that an average pod is using now 70% of its requested CPU.") + public Integer getCurrentCPUUtilizationPercentage() { return currentCPUUtilizationPercentage; } + + public void setCurrentCPUUtilizationPercentage(Integer currentCPUUtilizationPercentage) { this.currentCPUUtilizationPercentage = currentCPUUtilizationPercentage; } + public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @@ -73,15 +89,20 @@ public V1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) * @return currentReplicas **/ @ApiModelProperty(required = true, value = "current number of replicas of pods managed by this autoscaler.") + public Integer getCurrentReplicas() { return currentReplicas; } + + public void setCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; } + public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @@ -91,15 +112,20 @@ public V1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) * @return desiredReplicas **/ @ApiModelProperty(required = true, value = "desired number of replicas of pods managed by this autoscaler.") + public Integer getDesiredReplicas() { return desiredReplicas; } + + public void setDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } + public V1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @@ -108,16 +134,22 @@ public V1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { * last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed. * @return lastScaleTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "last time the HorizontalPodAutoscaler scaled the number of pods; used by the autoscaler to control how often the number of pods is changed.") + public DateTime getLastScaleTime() { return lastScaleTime; } + + public void setLastScaleTime(DateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } + public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -126,11 +158,15 @@ public V1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneratio * most recent generation observed by this autoscaler. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "most recent generation observed by this autoscaler.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } @@ -138,23 +174,12 @@ public void setObservedGeneration(Long observedGeneration) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HorizontalPodAutoscalerStatus v1HorizontalPodAutoscalerStatus = (V1HorizontalPodAutoscalerStatus) o; - return Objects.equals(this.currentCPUUtilizationPercentage, v1HorizontalPodAutoscalerStatus.currentCPUUtilizationPercentage) && - Objects.equals(this.currentReplicas, v1HorizontalPodAutoscalerStatus.currentReplicas) && - Objects.equals(this.desiredReplicas, v1HorizontalPodAutoscalerStatus.desiredReplicas) && - Objects.equals(this.lastScaleTime, v1HorizontalPodAutoscalerStatus.lastScaleTime) && - Objects.equals(this.observedGeneration, v1HorizontalPodAutoscalerStatus.observedGeneration); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(currentCPUUtilizationPercentage, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HorizontalPodAutoscalerStatus {\n"); - sb.append(" currentCPUUtilizationPercentage: ").append(toIndentedString(currentCPUUtilizationPercentage)).append("\n"); sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); sb.append(" desiredReplicas: ").append(toIndentedString(desiredReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HostAlias.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HostAlias.java index 6e89d6884d..59c9564de4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HostAlias.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HostAlias.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file. */ @ApiModel(description = "HostAlias holds the mapping between IP and hostnames that will be injected as an entry in the pod's hosts file.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HostAlias { - @SerializedName("hostnames") + public static final String SERIALIZED_NAME_HOSTNAMES = "hostnames"; + @SerializedName(SERIALIZED_NAME_HOSTNAMES) private List hostnames = null; - @SerializedName("ip") - private String ip = null; + public static final String SERIALIZED_NAME_IP = "ip"; + @SerializedName(SERIALIZED_NAME_IP) + private String ip; + public V1HostAlias hostnames(List hostnames) { + this.hostnames = hostnames; return this; } @@ -54,16 +61,22 @@ public V1HostAlias addHostnamesItem(String hostnamesItem) { * Hostnames for the above IP address. * @return hostnames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Hostnames for the above IP address.") + public List getHostnames() { return hostnames; } + + public void setHostnames(List hostnames) { this.hostnames = hostnames; } + public V1HostAlias ip(String ip) { + this.ip = ip; return this; } @@ -72,11 +85,15 @@ public V1HostAlias ip(String ip) { * IP address of the host file entry. * @return ip **/ + @javax.annotation.Nullable @ApiModelProperty(value = "IP address of the host file entry.") + public String getIp() { return ip; } + + public void setIp(String ip) { this.ip = ip; } @@ -84,20 +101,12 @@ public void setIp(String ip) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HostAlias v1HostAlias = (V1HostAlias) o; - return Objects.equals(this.hostnames, v1HostAlias.hostnames) && - Objects.equals(this.ip, v1HostAlias.ip); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hostnames, ip); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HostAlias {\n"); - sb.append(" hostnames: ").append(toIndentedString(hostnames)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1HostPathVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1HostPathVolumeSource.java index 15a579ba96..d0395953b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1HostPathVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1HostPathVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a host path mapped into a pod. Host path volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1HostPathVolumeSource { - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1HostPathVolumeSource path(String path) { + this.path = path; return this; } @@ -45,15 +52,20 @@ public V1HostPathVolumeSource path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1HostPathVolumeSource type(String type) { + this.type = type; return this; } @@ -62,11 +74,15 @@ public V1HostPathVolumeSource type(String type) { * Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type for HostPath Volume Defaults to \"\" More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -74,20 +90,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1HostPathVolumeSource v1HostPathVolumeSource = (V1HostPathVolumeSource) o; - return Objects.equals(this.path, v1HostPathVolumeSource.path) && - Objects.equals(this.type, v1HostPathVolumeSource.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(path, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1HostPathVolumeSource {\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1IPBlock.java index bc8e8118ad..08d74c8f47 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1IPBlock.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. */ @ApiModel(description = "IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1IPBlock { - @SerializedName("cidr") - private String cidr = null; + public static final String SERIALIZED_NAME_CIDR = "cidr"; + @SerializedName(SERIALIZED_NAME_CIDR) + private String cidr; - @SerializedName("except") + public static final String SERIALIZED_NAME_EXCEPT = "except"; + @SerializedName(SERIALIZED_NAME_EXCEPT) private List except = null; + public V1IPBlock cidr(String cidr) { + this.cidr = cidr; return this; } @@ -47,15 +54,20 @@ public V1IPBlock cidr(String cidr) { * @return cidr **/ @ApiModelProperty(required = true, value = "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"") + public String getCidr() { return cidr; } + + public void setCidr(String cidr) { this.cidr = cidr; } + public V1IPBlock except(List except) { + this.except = except; return this; } @@ -72,11 +84,15 @@ public V1IPBlock addExceptItem(String exceptItem) { * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range * @return except **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range") + public List getExcept() { return except; } + + public void setExcept(List except) { this.except = except; } @@ -84,20 +100,12 @@ public void setExcept(List except) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1IPBlock v1IPBlock = (V1IPBlock) o; - return Objects.equals(this.cidr, v1IPBlock.cidr) && - Objects.equals(this.except, v1IPBlock.except); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(cidr, except); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +113,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1IPBlock {\n"); - sb.append(" cidr: ").append(toIndentedString(cidr)).append("\n"); sb.append(" except: ").append(toIndentedString(except)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSource.java index 6042952e2a..ea378e29f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,42 +33,55 @@ * ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "ISCSIPersistentVolumeSource represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ISCSIPersistentVolumeSource { - @SerializedName("chapAuthDiscovery") - private Boolean chapAuthDiscovery = null; + public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; + @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) + private Boolean chapAuthDiscovery; - @SerializedName("chapAuthSession") - private Boolean chapAuthSession = null; + public static final String SERIALIZED_NAME_CHAP_AUTH_SESSION = "chapAuthSession"; + @SerializedName(SERIALIZED_NAME_CHAP_AUTH_SESSION) + private Boolean chapAuthSession; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("initiatorName") - private String initiatorName = null; + public static final String SERIALIZED_NAME_INITIATOR_NAME = "initiatorName"; + @SerializedName(SERIALIZED_NAME_INITIATOR_NAME) + private String initiatorName; - @SerializedName("iqn") - private String iqn = null; + public static final String SERIALIZED_NAME_IQN = "iqn"; + @SerializedName(SERIALIZED_NAME_IQN) + private String iqn; - @SerializedName("iscsiInterface") - private String iscsiInterface = null; + public static final String SERIALIZED_NAME_ISCSI_INTERFACE = "iscsiInterface"; + @SerializedName(SERIALIZED_NAME_ISCSI_INTERFACE) + private String iscsiInterface; - @SerializedName("lun") - private Integer lun = null; + public static final String SERIALIZED_NAME_LUN = "lun"; + @SerializedName(SERIALIZED_NAME_LUN) + private Integer lun; - @SerializedName("portals") + public static final String SERIALIZED_NAME_PORTALS = "portals"; + @SerializedName(SERIALIZED_NAME_PORTALS) private List portals = null; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretReference secretRef; - @SerializedName("secretRef") - private V1SecretReference secretRef = null; + public static final String SERIALIZED_NAME_TARGET_PORTAL = "targetPortal"; + @SerializedName(SERIALIZED_NAME_TARGET_PORTAL) + private String targetPortal; - @SerializedName("targetPortal") - private String targetPortal = null; public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; return this; } @@ -74,16 +90,22 @@ public V1ISCSIPersistentVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery * whether support iSCSI Discovery CHAP authentication * @return chapAuthDiscovery **/ + @javax.annotation.Nullable @ApiModelProperty(value = "whether support iSCSI Discovery CHAP authentication") - public Boolean isChapAuthDiscovery() { + + public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } + + public void setChapAuthDiscovery(Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; } + public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; return this; } @@ -92,16 +114,22 @@ public V1ISCSIPersistentVolumeSource chapAuthSession(Boolean chapAuthSession) { * whether support iSCSI Session CHAP authentication * @return chapAuthSession **/ + @javax.annotation.Nullable @ApiModelProperty(value = "whether support iSCSI Session CHAP authentication") - public Boolean isChapAuthSession() { + + public Boolean getChapAuthSession() { return chapAuthSession; } + + public void setChapAuthSession(Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; } + public V1ISCSIPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -110,16 +138,22 @@ public V1ISCSIPersistentVolumeSource fsType(String fsType) { * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName) { + this.initiatorName = initiatorName; return this; } @@ -128,16 +162,22 @@ public V1ISCSIPersistentVolumeSource initiatorName(String initiatorName) { * Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. * @return initiatorName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") + public String getInitiatorName() { return initiatorName; } + + public void setInitiatorName(String initiatorName) { this.initiatorName = initiatorName; } + public V1ISCSIPersistentVolumeSource iqn(String iqn) { + this.iqn = iqn; return this; } @@ -147,15 +187,20 @@ public V1ISCSIPersistentVolumeSource iqn(String iqn) { * @return iqn **/ @ApiModelProperty(required = true, value = "Target iSCSI Qualified Name.") + public String getIqn() { return iqn; } + + public void setIqn(String iqn) { this.iqn = iqn; } + public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface) { + this.iscsiInterface = iscsiInterface; return this; } @@ -164,16 +209,22 @@ public V1ISCSIPersistentVolumeSource iscsiInterface(String iscsiInterface) { * iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). * @return iscsiInterface **/ + @javax.annotation.Nullable @ApiModelProperty(value = "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") + public String getIscsiInterface() { return iscsiInterface; } + + public void setIscsiInterface(String iscsiInterface) { this.iscsiInterface = iscsiInterface; } + public V1ISCSIPersistentVolumeSource lun(Integer lun) { + this.lun = lun; return this; } @@ -183,15 +234,20 @@ public V1ISCSIPersistentVolumeSource lun(Integer lun) { * @return lun **/ @ApiModelProperty(required = true, value = "iSCSI Target Lun number.") + public Integer getLun() { return lun; } + + public void setLun(Integer lun) { this.lun = lun; } + public V1ISCSIPersistentVolumeSource portals(List portals) { + this.portals = portals; return this; } @@ -208,16 +264,22 @@ public V1ISCSIPersistentVolumeSource addPortalsItem(String portalsItem) { * iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). * @return portals **/ + @javax.annotation.Nullable @ApiModelProperty(value = "iSCSI Target Portal List. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") + public List getPortals() { return portals; } + + public void setPortals(List portals) { this.portals = portals; } + public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -226,34 +288,46 @@ public V1ISCSIPersistentVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1ISCSIPersistentVolumeSource secretRef(V1SecretReference secretRef) { + this.secretRef = secretRef; return this; } /** - * CHAP Secret for iSCSI target and initiator authentication + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "CHAP Secret for iSCSI target and initiator authentication") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretReference secretRef) { this.secretRef = secretRef; } + public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal) { + this.targetPortal = targetPortal; return this; } @@ -263,10 +337,13 @@ public V1ISCSIPersistentVolumeSource targetPortal(String targetPortal) { * @return targetPortal **/ @ApiModelProperty(required = true, value = "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") + public String getTargetPortal() { return targetPortal; } + + public void setTargetPortal(String targetPortal) { this.targetPortal = targetPortal; } @@ -274,29 +351,12 @@ public void setTargetPortal(String targetPortal) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ISCSIPersistentVolumeSource v1ISCSIPersistentVolumeSource = (V1ISCSIPersistentVolumeSource) o; - return Objects.equals(this.chapAuthDiscovery, v1ISCSIPersistentVolumeSource.chapAuthDiscovery) && - Objects.equals(this.chapAuthSession, v1ISCSIPersistentVolumeSource.chapAuthSession) && - Objects.equals(this.fsType, v1ISCSIPersistentVolumeSource.fsType) && - Objects.equals(this.initiatorName, v1ISCSIPersistentVolumeSource.initiatorName) && - Objects.equals(this.iqn, v1ISCSIPersistentVolumeSource.iqn) && - Objects.equals(this.iscsiInterface, v1ISCSIPersistentVolumeSource.iscsiInterface) && - Objects.equals(this.lun, v1ISCSIPersistentVolumeSource.lun) && - Objects.equals(this.portals, v1ISCSIPersistentVolumeSource.portals) && - Objects.equals(this.readOnly, v1ISCSIPersistentVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1ISCSIPersistentVolumeSource.secretRef) && - Objects.equals(this.targetPortal, v1ISCSIPersistentVolumeSource.targetPortal); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); + return HashCodeBuilder.reflectionHashCode(this); } @@ -304,7 +364,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ISCSIPersistentVolumeSource {\n"); - sb.append(" chapAuthDiscovery: ").append(toIndentedString(chapAuthDiscovery)).append("\n"); sb.append(" chapAuthSession: ").append(toIndentedString(chapAuthSession)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIVolumeSource.java index fe14d61d4b..40aeb7128f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ISCSIVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,42 +33,55 @@ * Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ISCSIVolumeSource { - @SerializedName("chapAuthDiscovery") - private Boolean chapAuthDiscovery = null; + public static final String SERIALIZED_NAME_CHAP_AUTH_DISCOVERY = "chapAuthDiscovery"; + @SerializedName(SERIALIZED_NAME_CHAP_AUTH_DISCOVERY) + private Boolean chapAuthDiscovery; - @SerializedName("chapAuthSession") - private Boolean chapAuthSession = null; + public static final String SERIALIZED_NAME_CHAP_AUTH_SESSION = "chapAuthSession"; + @SerializedName(SERIALIZED_NAME_CHAP_AUTH_SESSION) + private Boolean chapAuthSession; - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("initiatorName") - private String initiatorName = null; + public static final String SERIALIZED_NAME_INITIATOR_NAME = "initiatorName"; + @SerializedName(SERIALIZED_NAME_INITIATOR_NAME) + private String initiatorName; - @SerializedName("iqn") - private String iqn = null; + public static final String SERIALIZED_NAME_IQN = "iqn"; + @SerializedName(SERIALIZED_NAME_IQN) + private String iqn; - @SerializedName("iscsiInterface") - private String iscsiInterface = null; + public static final String SERIALIZED_NAME_ISCSI_INTERFACE = "iscsiInterface"; + @SerializedName(SERIALIZED_NAME_ISCSI_INTERFACE) + private String iscsiInterface; - @SerializedName("lun") - private Integer lun = null; + public static final String SERIALIZED_NAME_LUN = "lun"; + @SerializedName(SERIALIZED_NAME_LUN) + private Integer lun; - @SerializedName("portals") + public static final String SERIALIZED_NAME_PORTALS = "portals"; + @SerializedName(SERIALIZED_NAME_PORTALS) private List portals = null; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; + + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; + public static final String SERIALIZED_NAME_TARGET_PORTAL = "targetPortal"; + @SerializedName(SERIALIZED_NAME_TARGET_PORTAL) + private String targetPortal; - @SerializedName("targetPortal") - private String targetPortal = null; public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { + this.chapAuthDiscovery = chapAuthDiscovery; return this; } @@ -74,16 +90,22 @@ public V1ISCSIVolumeSource chapAuthDiscovery(Boolean chapAuthDiscovery) { * whether support iSCSI Discovery CHAP authentication * @return chapAuthDiscovery **/ + @javax.annotation.Nullable @ApiModelProperty(value = "whether support iSCSI Discovery CHAP authentication") - public Boolean isChapAuthDiscovery() { + + public Boolean getChapAuthDiscovery() { return chapAuthDiscovery; } + + public void setChapAuthDiscovery(Boolean chapAuthDiscovery) { this.chapAuthDiscovery = chapAuthDiscovery; } + public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession) { + this.chapAuthSession = chapAuthSession; return this; } @@ -92,16 +114,22 @@ public V1ISCSIVolumeSource chapAuthSession(Boolean chapAuthSession) { * whether support iSCSI Session CHAP authentication * @return chapAuthSession **/ + @javax.annotation.Nullable @ApiModelProperty(value = "whether support iSCSI Session CHAP authentication") - public Boolean isChapAuthSession() { + + public Boolean getChapAuthSession() { return chapAuthSession; } + + public void setChapAuthSession(Boolean chapAuthSession) { this.chapAuthSession = chapAuthSession; } + public V1ISCSIVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -110,16 +138,22 @@ public V1ISCSIVolumeSource fsType(String fsType) { * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1ISCSIVolumeSource initiatorName(String initiatorName) { + this.initiatorName = initiatorName; return this; } @@ -128,16 +162,22 @@ public V1ISCSIVolumeSource initiatorName(String initiatorName) { * Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. * @return initiatorName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection.") + public String getInitiatorName() { return initiatorName; } + + public void setInitiatorName(String initiatorName) { this.initiatorName = initiatorName; } + public V1ISCSIVolumeSource iqn(String iqn) { + this.iqn = iqn; return this; } @@ -147,15 +187,20 @@ public V1ISCSIVolumeSource iqn(String iqn) { * @return iqn **/ @ApiModelProperty(required = true, value = "Target iSCSI Qualified Name.") + public String getIqn() { return iqn; } + + public void setIqn(String iqn) { this.iqn = iqn; } + public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface) { + this.iscsiInterface = iscsiInterface; return this; } @@ -164,16 +209,22 @@ public V1ISCSIVolumeSource iscsiInterface(String iscsiInterface) { * iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). * @return iscsiInterface **/ + @javax.annotation.Nullable @ApiModelProperty(value = "iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp).") + public String getIscsiInterface() { return iscsiInterface; } + + public void setIscsiInterface(String iscsiInterface) { this.iscsiInterface = iscsiInterface; } + public V1ISCSIVolumeSource lun(Integer lun) { + this.lun = lun; return this; } @@ -183,15 +234,20 @@ public V1ISCSIVolumeSource lun(Integer lun) { * @return lun **/ @ApiModelProperty(required = true, value = "iSCSI Target Lun number.") + public Integer getLun() { return lun; } + + public void setLun(Integer lun) { this.lun = lun; } + public V1ISCSIVolumeSource portals(List portals) { + this.portals = portals; return this; } @@ -208,16 +264,22 @@ public V1ISCSIVolumeSource addPortalsItem(String portalsItem) { * iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). * @return portals **/ + @javax.annotation.Nullable @ApiModelProperty(value = "iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") + public List getPortals() { return portals; } + + public void setPortals(List portals) { this.portals = portals; } + public V1ISCSIVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -226,34 +288,46 @@ public V1ISCSIVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1ISCSIVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * CHAP Secret for iSCSI target and initiator authentication + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "CHAP Secret for iSCSI target and initiator authentication") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } + public V1ISCSIVolumeSource targetPortal(String targetPortal) { + this.targetPortal = targetPortal; return this; } @@ -263,10 +337,13 @@ public V1ISCSIVolumeSource targetPortal(String targetPortal) { * @return targetPortal **/ @ApiModelProperty(required = true, value = "iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260).") + public String getTargetPortal() { return targetPortal; } + + public void setTargetPortal(String targetPortal) { this.targetPortal = targetPortal; } @@ -274,29 +351,12 @@ public void setTargetPortal(String targetPortal) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ISCSIVolumeSource v1ISCSIVolumeSource = (V1ISCSIVolumeSource) o; - return Objects.equals(this.chapAuthDiscovery, v1ISCSIVolumeSource.chapAuthDiscovery) && - Objects.equals(this.chapAuthSession, v1ISCSIVolumeSource.chapAuthSession) && - Objects.equals(this.fsType, v1ISCSIVolumeSource.fsType) && - Objects.equals(this.initiatorName, v1ISCSIVolumeSource.initiatorName) && - Objects.equals(this.iqn, v1ISCSIVolumeSource.iqn) && - Objects.equals(this.iscsiInterface, v1ISCSIVolumeSource.iscsiInterface) && - Objects.equals(this.lun, v1ISCSIVolumeSource.lun) && - Objects.equals(this.portals, v1ISCSIVolumeSource.portals) && - Objects.equals(this.readOnly, v1ISCSIVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1ISCSIVolumeSource.secretRef) && - Objects.equals(this.targetPortal, v1ISCSIVolumeSource.targetPortal); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(chapAuthDiscovery, chapAuthSession, fsType, initiatorName, iqn, iscsiInterface, lun, portals, readOnly, secretRef, targetPortal); + return HashCodeBuilder.reflectionHashCode(this); } @@ -304,7 +364,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ISCSIVolumeSource {\n"); - sb.append(" chapAuthDiscovery: ").append(toIndentedString(chapAuthDiscovery)).append("\n"); sb.append(" chapAuthSession: ").append(toIndentedString(chapAuthSession)).append("\n"); sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializer.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializer.java index fbb9ddae8f..2797e98ecb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializer.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * Initializer is information about an initializer that has not yet completed. */ @ApiModel(description = "Initializer is information about an initializer that has not yet completed.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Initializer { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + public V1Initializer name(String name) { + this.name = name; return this; } @@ -42,10 +48,13 @@ public V1Initializer name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name of the process that is responsible for initializing this object.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -53,19 +62,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Initializer v1Initializer = (V1Initializer) o; - return Objects.equals(this.name, v1Initializer.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Initializer {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializers.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializers.java index 1d34c02119..1c1416e7e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializers.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Initializers.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * Initializers tracks the progress of initialization. */ @ApiModel(description = "Initializers tracks the progress of initialization.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Initializers { - @SerializedName("pending") + public static final String SERIALIZED_NAME_PENDING = "pending"; + @SerializedName(SERIALIZED_NAME_PENDING) private List pending = new ArrayList(); - @SerializedName("result") - private V1Status result = null; + public static final String SERIALIZED_NAME_RESULT = "result"; + @SerializedName(SERIALIZED_NAME_RESULT) + private V1Status result; + public V1Initializers pending(List pending) { + this.pending = pending; return this; } @@ -54,28 +61,37 @@ public V1Initializers addPendingItem(V1Initializer pendingItem) { * @return pending **/ @ApiModelProperty(required = true, value = "Pending is a list of initializers that must execute in order before this object is visible. When the last pending initializer is removed, and no failing result is set, the initializers struct will be set to nil and the object is considered as initialized and visible to all clients.") + public List getPending() { return pending; } + + public void setPending(List pending) { this.pending = pending; } + public V1Initializers result(V1Status result) { + this.result = result; return this; } /** - * If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion. + * Get result * @return result **/ - @ApiModelProperty(value = "If result is set with the Failure field, the object will be persisted to storage and then deleted, ensuring that other clients can observe the deletion.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Status getResult() { return result; } + + public void setResult(V1Status result) { this.result = result; } @@ -83,20 +99,12 @@ public void setResult(V1Status result) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Initializers v1Initializers = (V1Initializers) o; - return Objects.equals(this.pending, v1Initializers.pending) && - Objects.equals(this.result, v1Initializers.result); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(pending, result); + return HashCodeBuilder.reflectionHashCode(this); } @@ -104,7 +112,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Initializers {\n"); - sb.append(" pending: ").append(toIndentedString(pending)).append("\n"); sb.append(" result: ").append(toIndentedString(result)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Job.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Job.java index aca5921725..db1f65c4af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Job.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Job.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Job represents the configuration of a single job. */ @ApiModel(description = "Job represents the configuration of a single job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Job { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1JobSpec spec; - @SerializedName("spec") - private V1JobSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1JobStatus status; - @SerializedName("status") - private V1JobStatus status = null; public V1Job apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Job apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Job kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Job kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Job metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Job spec(V1JobSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1JobSpec getSpec() { return spec; } + + public void setSpec(V1JobSpec spec) { this.spec = spec; } + public V1Job status(V1JobStatus status) { + this.status = status; return this; } /** - * Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1JobStatus getStatus() { return status; } + + public void setStatus(V1JobStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1JobStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Job v1Job = (V1Job) o; - return Objects.equals(this.apiVersion, v1Job.apiVersion) && - Objects.equals(this.kind, v1Job.kind) && - Objects.equals(this.metadata, v1Job.metadata) && - Objects.equals(this.spec, v1Job.spec) && - Objects.equals(this.status, v1Job.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Job {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobCondition.java index f2cfce0031..a05050f842 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * JobCondition describes current state of a job. */ @ApiModel(description = "JobCondition describes current state of a job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1JobCondition { - @SerializedName("lastProbeTime") - private DateTime lastProbeTime = null; + public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; + @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) + private DateTime lastProbeTime; + + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1JobCondition lastProbeTime(DateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @@ -57,16 +68,22 @@ public V1JobCondition lastProbeTime(DateTime lastProbeTime) { * Last time the condition was checked. * @return lastProbeTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition was checked.") + public DateTime getLastProbeTime() { return lastProbeTime; } + + public void setLastProbeTime(DateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } + public V1JobCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -75,16 +92,22 @@ public V1JobCondition lastTransitionTime(DateTime lastTransitionTime) { * Last time the condition transit from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transit from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1JobCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public V1JobCondition message(String message) { * Human readable message indicating details about last transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Human readable message indicating details about last transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1JobCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public V1JobCondition reason(String reason) { * (brief) reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "(brief) reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1JobCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public V1JobCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1JobCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public V1JobCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of job condition, Complete or Failed.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1JobCondition v1JobCondition = (V1JobCondition) o; - return Objects.equals(this.lastProbeTime, v1JobCondition.lastProbeTime) && - Objects.equals(this.lastTransitionTime, v1JobCondition.lastTransitionTime) && - Objects.equals(this.message, v1JobCondition.message) && - Objects.equals(this.reason, v1JobCondition.reason) && - Objects.equals(this.status, v1JobCondition.status) && - Objects.equals(this.type, v1JobCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1JobCondition {\n"); - sb.append(" lastProbeTime: ").append(toIndentedString(lastProbeTime)).append("\n"); sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobList.java index 510443f943..95df7a528b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * JobList is a collection of jobs. */ @ApiModel(description = "JobList is a collection of jobs.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1JobList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1JobList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1JobList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1JobList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1JobList addItemsItem(V1Job itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of Jobs.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1JobList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1JobList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1JobList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1JobList v1JobList = (V1JobList) o; - return Objects.equals(this.apiVersion, v1JobList.apiVersion) && - Objects.equals(this.items, v1JobList.items) && - Objects.equals(this.kind, v1JobList.kind) && - Objects.equals(this.metadata, v1JobList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1JobList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobSpec.java index d2272044ad..9351903c6b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,33 +32,43 @@ * JobSpec describes how the job execution will look like. */ @ApiModel(description = "JobSpec describes how the job execution will look like.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1JobSpec { - @SerializedName("activeDeadlineSeconds") - private Long activeDeadlineSeconds = null; + public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) + private Long activeDeadlineSeconds; + + public static final String SERIALIZED_NAME_BACKOFF_LIMIT = "backoffLimit"; + @SerializedName(SERIALIZED_NAME_BACKOFF_LIMIT) + private Integer backoffLimit; - @SerializedName("backoffLimit") - private Integer backoffLimit = null; + public static final String SERIALIZED_NAME_COMPLETIONS = "completions"; + @SerializedName(SERIALIZED_NAME_COMPLETIONS) + private Integer completions; - @SerializedName("completions") - private Integer completions = null; + public static final String SERIALIZED_NAME_MANUAL_SELECTOR = "manualSelector"; + @SerializedName(SERIALIZED_NAME_MANUAL_SELECTOR) + private Boolean manualSelector; - @SerializedName("manualSelector") - private Boolean manualSelector = null; + public static final String SERIALIZED_NAME_PARALLELISM = "parallelism"; + @SerializedName(SERIALIZED_NAME_PARALLELISM) + private Integer parallelism; - @SerializedName("parallelism") - private Integer parallelism = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED = "ttlSecondsAfterFinished"; + @SerializedName(SERIALIZED_NAME_TTL_SECONDS_AFTER_FINISHED) + private Integer ttlSecondsAfterFinished; - @SerializedName("ttlSecondsAfterFinished") - private Integer ttlSecondsAfterFinished = null; public V1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } @@ -64,16 +77,22 @@ public V1JobSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { * Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer * @return activeDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer") + public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } + + public void setActiveDeadlineSeconds(Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; } + public V1JobSpec backoffLimit(Integer backoffLimit) { + this.backoffLimit = backoffLimit; return this; } @@ -82,16 +101,22 @@ public V1JobSpec backoffLimit(Integer backoffLimit) { * Specifies the number of retries before marking this job failed. Defaults to 6 * @return backoffLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the number of retries before marking this job failed. Defaults to 6") + public Integer getBackoffLimit() { return backoffLimit; } + + public void setBackoffLimit(Integer backoffLimit) { this.backoffLimit = backoffLimit; } + public V1JobSpec completions(Integer completions) { + this.completions = completions; return this; } @@ -100,16 +125,22 @@ public V1JobSpec completions(Integer completions) { * Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * @return completions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") + public Integer getCompletions() { return completions; } + + public void setCompletions(Integer completions) { this.completions = completions; } + public V1JobSpec manualSelector(Boolean manualSelector) { + this.manualSelector = manualSelector; return this; } @@ -118,16 +149,22 @@ public V1JobSpec manualSelector(Boolean manualSelector) { * manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector * @return manualSelector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector") - public Boolean isManualSelector() { + + public Boolean getManualSelector() { return manualSelector; } + + public void setManualSelector(Boolean manualSelector) { this.manualSelector = manualSelector; } + public V1JobSpec parallelism(Integer parallelism) { + this.parallelism = parallelism; return this; } @@ -136,52 +173,69 @@ public V1JobSpec parallelism(Integer parallelism) { * Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * @return parallelism **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") + public Integer getParallelism() { return parallelism; } + + public void setParallelism(Integer parallelism) { this.parallelism = parallelism; } + public V1JobSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(value = "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1JobSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1JobSpec ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { + this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; return this; } @@ -190,11 +244,15 @@ public V1JobSpec ttlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { * ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. * @return ttlSecondsAfterFinished **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature.") + public Integer getTtlSecondsAfterFinished() { return ttlSecondsAfterFinished; } + + public void setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { this.ttlSecondsAfterFinished = ttlSecondsAfterFinished; } @@ -202,26 +260,12 @@ public void setTtlSecondsAfterFinished(Integer ttlSecondsAfterFinished) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1JobSpec v1JobSpec = (V1JobSpec) o; - return Objects.equals(this.activeDeadlineSeconds, v1JobSpec.activeDeadlineSeconds) && - Objects.equals(this.backoffLimit, v1JobSpec.backoffLimit) && - Objects.equals(this.completions, v1JobSpec.completions) && - Objects.equals(this.manualSelector, v1JobSpec.manualSelector) && - Objects.equals(this.parallelism, v1JobSpec.parallelism) && - Objects.equals(this.selector, v1JobSpec.selector) && - Objects.equals(this.template, v1JobSpec.template) && - Objects.equals(this.ttlSecondsAfterFinished, v1JobSpec.ttlSecondsAfterFinished); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, backoffLimit, completions, manualSelector, parallelism, selector, template, ttlSecondsAfterFinished); + return HashCodeBuilder.reflectionHashCode(this); } @@ -229,7 +273,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1JobSpec {\n"); - sb.append(" activeDeadlineSeconds: ").append(toIndentedString(activeDeadlineSeconds)).append("\n"); sb.append(" backoffLimit: ").append(toIndentedString(backoffLimit)).append("\n"); sb.append(" completions: ").append(toIndentedString(completions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobStatus.java index 9270690e26..46ea9b4e56 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1JobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1JobStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,27 +34,35 @@ * JobStatus represents the current state of a Job. */ @ApiModel(description = "JobStatus represents the current state of a Job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1JobStatus { - @SerializedName("active") - private Integer active = null; + public static final String SERIALIZED_NAME_ACTIVE = "active"; + @SerializedName(SERIALIZED_NAME_ACTIVE) + private Integer active; - @SerializedName("completionTime") - private DateTime completionTime = null; + public static final String SERIALIZED_NAME_COMPLETION_TIME = "completionTime"; + @SerializedName(SERIALIZED_NAME_COMPLETION_TIME) + private DateTime completionTime; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("failed") - private Integer failed = null; + public static final String SERIALIZED_NAME_FAILED = "failed"; + @SerializedName(SERIALIZED_NAME_FAILED) + private Integer failed; + + public static final String SERIALIZED_NAME_START_TIME = "startTime"; + @SerializedName(SERIALIZED_NAME_START_TIME) + private DateTime startTime; - @SerializedName("startTime") - private DateTime startTime = null; + public static final String SERIALIZED_NAME_SUCCEEDED = "succeeded"; + @SerializedName(SERIALIZED_NAME_SUCCEEDED) + private Integer succeeded; - @SerializedName("succeeded") - private Integer succeeded = null; public V1JobStatus active(Integer active) { + this.active = active; return this; } @@ -60,16 +71,22 @@ public V1JobStatus active(Integer active) { * The number of actively running pods. * @return active **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of actively running pods.") + public Integer getActive() { return active; } + + public void setActive(Integer active) { this.active = active; } + public V1JobStatus completionTime(DateTime completionTime) { + this.completionTime = completionTime; return this; } @@ -78,16 +95,22 @@ public V1JobStatus completionTime(DateTime completionTime) { * Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. * @return completionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.") + public DateTime getCompletionTime() { return completionTime; } + + public void setCompletionTime(DateTime completionTime) { this.completionTime = completionTime; } + public V1JobStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -104,16 +127,22 @@ public V1JobStatus addConditionsItem(V1JobCondition conditionsItem) { * The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1JobStatus failed(Integer failed) { + this.failed = failed; return this; } @@ -122,16 +151,22 @@ public V1JobStatus failed(Integer failed) { * The number of pods which reached phase Failed. * @return failed **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of pods which reached phase Failed.") + public Integer getFailed() { return failed; } + + public void setFailed(Integer failed) { this.failed = failed; } + public V1JobStatus startTime(DateTime startTime) { + this.startTime = startTime; return this; } @@ -140,16 +175,22 @@ public V1JobStatus startTime(DateTime startTime) { * Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC. * @return startTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.") + public DateTime getStartTime() { return startTime; } + + public void setStartTime(DateTime startTime) { this.startTime = startTime; } + public V1JobStatus succeeded(Integer succeeded) { + this.succeeded = succeeded; return this; } @@ -158,11 +199,15 @@ public V1JobStatus succeeded(Integer succeeded) { * The number of pods which reached phase Succeeded. * @return succeeded **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of pods which reached phase Succeeded.") + public Integer getSucceeded() { return succeeded; } + + public void setSucceeded(Integer succeeded) { this.succeeded = succeeded; } @@ -170,24 +215,12 @@ public void setSucceeded(Integer succeeded) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1JobStatus v1JobStatus = (V1JobStatus) o; - return Objects.equals(this.active, v1JobStatus.active) && - Objects.equals(this.completionTime, v1JobStatus.completionTime) && - Objects.equals(this.conditions, v1JobStatus.conditions) && - Objects.equals(this.failed, v1JobStatus.failed) && - Objects.equals(this.startTime, v1JobStatus.startTime) && - Objects.equals(this.succeeded, v1JobStatus.succeeded); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(active, completionTime, conditions, failed, startTime, succeeded); + return HashCodeBuilder.reflectionHashCode(this); } @@ -195,7 +228,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1JobStatus {\n"); - sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" completionTime: ").append(toIndentedString(completionTime)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1KeyToPath.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1KeyToPath.java index f2432a25b4..b90a90fa79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1KeyToPath.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1KeyToPath.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * Maps a string key to a path within a volume. */ @ApiModel(description = "Maps a string key to a path within a volume.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1KeyToPath { - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_MODE = "mode"; + @SerializedName(SERIALIZED_NAME_MODE) + private Integer mode; - @SerializedName("mode") - private Integer mode = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; public V1KeyToPath key(String key) { + this.key = key; return this; } @@ -48,15 +56,20 @@ public V1KeyToPath key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "The key to project.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1KeyToPath mode(Integer mode) { + this.mode = mode; return this; } @@ -65,16 +78,22 @@ public V1KeyToPath mode(Integer mode) { * Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return mode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits to use on this file, must be a value between 0 and 0777. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + public Integer getMode() { return mode; } + + public void setMode(Integer mode) { this.mode = mode; } + public V1KeyToPath path(String path) { + this.path = path; return this; } @@ -84,10 +103,13 @@ public V1KeyToPath path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } @@ -95,21 +117,12 @@ public void setPath(String path) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1KeyToPath v1KeyToPath = (V1KeyToPath) o; - return Objects.equals(this.key, v1KeyToPath.key) && - Objects.equals(this.mode, v1KeyToPath.mode) && - Objects.equals(this.path, v1KeyToPath.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(key, mode, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1KeyToPath {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelector.java index 90d8c772e6..604b8c6cd9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelector.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,15 +35,19 @@ * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. */ @ApiModel(description = "A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LabelSelector { - @SerializedName("matchExpressions") + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) private List matchExpressions = null; - @SerializedName("matchLabels") + public static final String SERIALIZED_NAME_MATCH_LABELS = "matchLabels"; + @SerializedName(SERIALIZED_NAME_MATCH_LABELS) private Map matchLabels = null; + public V1LabelSelector matchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -57,16 +64,22 @@ public V1LabelSelector addMatchExpressionsItem(V1LabelSelectorRequirement matchE * matchExpressions is a list of label selector requirements. The requirements are ANDed. * @return matchExpressions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "matchExpressions is a list of label selector requirements. The requirements are ANDed.") + public List getMatchExpressions() { return matchExpressions; } + + public void setMatchExpressions(List matchExpressions) { this.matchExpressions = matchExpressions; } + public V1LabelSelector matchLabels(Map matchLabels) { + this.matchLabels = matchLabels; return this; } @@ -83,11 +96,15 @@ public V1LabelSelector putMatchLabelsItem(String key, String matchLabelsItem) { * matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed. * @return matchLabels **/ + @javax.annotation.Nullable @ApiModelProperty(value = "matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is \"key\", the operator is \"In\", and the values array contains only \"value\". The requirements are ANDed.") + public Map getMatchLabels() { return matchLabels; } + + public void setMatchLabels(Map matchLabels) { this.matchLabels = matchLabels; } @@ -95,20 +112,12 @@ public void setMatchLabels(Map matchLabels) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LabelSelector v1LabelSelector = (V1LabelSelector) o; - return Objects.equals(this.matchExpressions, v1LabelSelector.matchExpressions) && - Objects.equals(this.matchLabels, v1LabelSelector.matchLabels); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(matchExpressions, matchLabels); + return HashCodeBuilder.reflectionHashCode(this); } @@ -116,7 +125,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LabelSelector {\n"); - sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); sb.append(" matchLabels: ").append(toIndentedString(matchLabels)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelectorRequirement.java index c72b461a88..ac52a63b87 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LabelSelectorRequirement.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,18 +32,23 @@ * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LabelSelectorRequirement { - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; - @SerializedName("operator") - private String operator = null; + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; - @SerializedName("values") + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) private List values = null; + public V1LabelSelectorRequirement key(String key) { + this.key = key; return this; } @@ -50,15 +58,20 @@ public V1LabelSelectorRequirement key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "key is the label key that the selector applies to.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1LabelSelectorRequirement operator(String operator) { + this.operator = operator; return this; } @@ -68,15 +81,20 @@ public V1LabelSelectorRequirement operator(String operator) { * @return operator **/ @ApiModelProperty(required = true, value = "operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist.") + public String getOperator() { return operator; } + + public void setOperator(String operator) { this.operator = operator; } + public V1LabelSelectorRequirement values(List values) { + this.values = values; return this; } @@ -93,11 +111,15 @@ public V1LabelSelectorRequirement addValuesItem(String valuesItem) { * values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. * @return values **/ + @javax.annotation.Nullable @ApiModelProperty(value = "values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") + public List getValues() { return values; } + + public void setValues(List values) { this.values = values; } @@ -105,21 +127,12 @@ public void setValues(List values) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LabelSelectorRequirement v1LabelSelectorRequirement = (V1LabelSelectorRequirement) o; - return Objects.equals(this.key, v1LabelSelectorRequirement.key) && - Objects.equals(this.operator, v1LabelSelectorRequirement.operator) && - Objects.equals(this.values, v1LabelSelectorRequirement.values); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(key, operator, values); + return HashCodeBuilder.reflectionHashCode(this); } @@ -127,7 +140,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LabelSelectorRequirement {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Lease.java index 491e52ac94..6a9d153659 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Lease.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Lease { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1LeaseSpec spec; - @SerializedName("spec") - private V1LeaseSpec spec = null; public V1Lease apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1Lease apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Lease kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public V1Lease kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Lease metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Lease spec(V1LeaseSpec spec) { + this.spec = spec; return this; } /** - * Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LeaseSpec getSpec() { return spec; } + + public void setSpec(V1LeaseSpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1LeaseSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Lease v1Lease = (V1Lease) o; - return Objects.equals(this.apiVersion, v1Lease.apiVersion) && - Objects.equals(this.kind, v1Lease.kind) && - Objects.equals(this.metadata, v1Lease.metadata) && - Objects.equals(this.spec, v1Lease.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Lease {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseList.java index 1f39e952d7..a9513a8dfc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LeaseList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1LeaseList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1LeaseList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1LeaseList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1LeaseList addItemsItem(V1Lease itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1LeaseList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1LeaseList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1LeaseList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LeaseList v1LeaseList = (V1LeaseList) o; - return Objects.equals(this.apiVersion, v1LeaseList.apiVersion) && - Objects.equals(this.items, v1LeaseList.items) && - Objects.equals(this.kind, v1LeaseList.kind) && - Objects.equals(this.metadata, v1LeaseList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LeaseList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseSpec.java index edbff58cc3..2e3046199d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LeaseSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LeaseSpec { - @SerializedName("acquireTime") - private DateTime acquireTime = null; + public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; + @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) + private DateTime acquireTime; + + public static final String SERIALIZED_NAME_HOLDER_IDENTITY = "holderIdentity"; + @SerializedName(SERIALIZED_NAME_HOLDER_IDENTITY) + private String holderIdentity; - @SerializedName("holderIdentity") - private String holderIdentity = null; + public static final String SERIALIZED_NAME_LEASE_DURATION_SECONDS = "leaseDurationSeconds"; + @SerializedName(SERIALIZED_NAME_LEASE_DURATION_SECONDS) + private Integer leaseDurationSeconds; - @SerializedName("leaseDurationSeconds") - private Integer leaseDurationSeconds = null; + public static final String SERIALIZED_NAME_LEASE_TRANSITIONS = "leaseTransitions"; + @SerializedName(SERIALIZED_NAME_LEASE_TRANSITIONS) + private Integer leaseTransitions; - @SerializedName("leaseTransitions") - private Integer leaseTransitions = null; + public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; + @SerializedName(SERIALIZED_NAME_RENEW_TIME) + private DateTime renewTime; - @SerializedName("renewTime") - private DateTime renewTime = null; public V1LeaseSpec acquireTime(DateTime acquireTime) { + this.acquireTime = acquireTime; return this; } @@ -54,16 +64,22 @@ public V1LeaseSpec acquireTime(DateTime acquireTime) { * acquireTime is a time when the current lease was acquired. * @return acquireTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") + public DateTime getAcquireTime() { return acquireTime; } + + public void setAcquireTime(DateTime acquireTime) { this.acquireTime = acquireTime; } + public V1LeaseSpec holderIdentity(String holderIdentity) { + this.holderIdentity = holderIdentity; return this; } @@ -72,16 +88,22 @@ public V1LeaseSpec holderIdentity(String holderIdentity) { * holderIdentity contains the identity of the holder of a current lease. * @return holderIdentity **/ + @javax.annotation.Nullable @ApiModelProperty(value = "holderIdentity contains the identity of the holder of a current lease.") + public String getHolderIdentity() { return holderIdentity; } + + public void setHolderIdentity(String holderIdentity) { this.holderIdentity = holderIdentity; } + public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; return this; } @@ -90,16 +112,22 @@ public V1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. * @return leaseDurationSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.") + public Integer getLeaseDurationSeconds() { return leaseDurationSeconds; } + + public void setLeaseDurationSeconds(Integer leaseDurationSeconds) { this.leaseDurationSeconds = leaseDurationSeconds; } + public V1LeaseSpec leaseTransitions(Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; return this; } @@ -108,16 +136,22 @@ public V1LeaseSpec leaseTransitions(Integer leaseTransitions) { * leaseTransitions is the number of transitions of a lease between holders. * @return leaseTransitions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "leaseTransitions is the number of transitions of a lease between holders.") + public Integer getLeaseTransitions() { return leaseTransitions; } + + public void setLeaseTransitions(Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; } + public V1LeaseSpec renewTime(DateTime renewTime) { + this.renewTime = renewTime; return this; } @@ -126,11 +160,15 @@ public V1LeaseSpec renewTime(DateTime renewTime) { * renewTime is a time when the current holder of a lease has last updated the lease. * @return renewTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "renewTime is a time when the current holder of a lease has last updated the lease.") + public DateTime getRenewTime() { return renewTime; } + + public void setRenewTime(DateTime renewTime) { this.renewTime = renewTime; } @@ -138,23 +176,12 @@ public void setRenewTime(DateTime renewTime) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LeaseSpec v1LeaseSpec = (V1LeaseSpec) o; - return Objects.equals(this.acquireTime, v1LeaseSpec.acquireTime) && - Objects.equals(this.holderIdentity, v1LeaseSpec.holderIdentity) && - Objects.equals(this.leaseDurationSeconds, v1LeaseSpec.leaseDurationSeconds) && - Objects.equals(this.leaseTransitions, v1LeaseSpec.leaseTransitions) && - Objects.equals(this.renewTime, v1LeaseSpec.renewTime); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LeaseSpec {\n"); - sb.append(" acquireTime: ").append(toIndentedString(acquireTime)).append("\n"); sb.append(" holderIdentity: ").append(toIndentedString(holderIdentity)).append("\n"); sb.append(" leaseDurationSeconds: ").append(toIndentedString(leaseDurationSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Lifecycle.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Lifecycle.java index 736423bc2f..95cc7587c7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Lifecycle.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Lifecycle.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,46 +31,60 @@ * Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted. */ @ApiModel(description = "Lifecycle describes actions that the management system should take in response to container lifecycle events. For the PostStart and PreStop lifecycle handlers, management of the container blocks until the action is complete, unless the container process fails, in which case the handler is aborted.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Lifecycle { - @SerializedName("postStart") - private V1Handler postStart = null; + public static final String SERIALIZED_NAME_POST_START = "postStart"; + @SerializedName(SERIALIZED_NAME_POST_START) + private V1Handler postStart; + + public static final String SERIALIZED_NAME_PRE_STOP = "preStop"; + @SerializedName(SERIALIZED_NAME_PRE_STOP) + private V1Handler preStop; - @SerializedName("preStop") - private V1Handler preStop = null; public V1Lifecycle postStart(V1Handler postStart) { + this.postStart = postStart; return this; } /** - * PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * Get postStart * @return postStart **/ - @ApiModelProperty(value = "PostStart is called immediately after a container is created. If the handler fails, the container is terminated and restarted according to its restart policy. Other management of the container blocks until the hook completes. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Handler getPostStart() { return postStart; } + + public void setPostStart(V1Handler postStart) { this.postStart = postStart; } + public V1Lifecycle preStop(V1Handler preStop) { + this.preStop = preStop; return this; } /** - * PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks + * Get preStop * @return preStop **/ - @ApiModelProperty(value = "PreStop is called immediately before a container is terminated due to an API request or management event such as liveness probe failure, preemption, resource contention, etc. The handler is not called if the container crashes or exits. The reason for termination is passed to the handler. The Pod's termination grace period countdown begins before the PreStop hooked is executed. Regardless of the outcome of the handler, the container will eventually terminate within the Pod's termination grace period. Other management of the container blocks until the hook completes or until the termination grace period is reached. More info: https://kubernetes.io/docs/concepts/containers/container-lifecycle-hooks/#container-hooks") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Handler getPreStop() { return preStop; } + + public void setPreStop(V1Handler preStop) { this.preStop = preStop; } @@ -75,20 +92,12 @@ public void setPreStop(V1Handler preStop) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Lifecycle v1Lifecycle = (V1Lifecycle) o; - return Objects.equals(this.postStart, v1Lifecycle.postStart) && - Objects.equals(this.preStop, v1Lifecycle.preStop); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(postStart, preStop); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Lifecycle {\n"); - sb.append(" postStart: ").append(toIndentedString(postStart)).append("\n"); sb.append(" preStop: ").append(toIndentedString(preStop)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRange.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRange.java index 3807bc41c5..72821f0afe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRange.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRange.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * LimitRange sets resource usage limits for each kind of resource in a Namespace. */ @ApiModel(description = "LimitRange sets resource usage limits for each kind of resource in a Namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LimitRange { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1LimitRangeSpec spec; - @SerializedName("spec") - private V1LimitRangeSpec spec = null; public V1LimitRange apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1LimitRange apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1LimitRange kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public V1LimitRange kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1LimitRange metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1LimitRange spec(V1LimitRangeSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the limits enforced. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LimitRangeSpec getSpec() { return spec; } + + public void setSpec(V1LimitRangeSpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1LimitRangeSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LimitRange v1LimitRange = (V1LimitRange) o; - return Objects.equals(this.apiVersion, v1LimitRange.apiVersion) && - Objects.equals(this.kind, v1LimitRange.kind) && - Objects.equals(this.metadata, v1LimitRange.metadata) && - Objects.equals(this.spec, v1LimitRange.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LimitRange {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeItem.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeItem.java index ec7517eedb..322a0f3f3e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeItem.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeItem.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,27 +34,35 @@ * LimitRangeItem defines a min/max usage limit for any resource that matches on kind. */ @ApiModel(description = "LimitRangeItem defines a min/max usage limit for any resource that matches on kind.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LimitRangeItem { - @SerializedName("default") + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) private Map _default = null; - @SerializedName("defaultRequest") + public static final String SERIALIZED_NAME_DEFAULT_REQUEST = "defaultRequest"; + @SerializedName(SERIALIZED_NAME_DEFAULT_REQUEST) private Map defaultRequest = null; - @SerializedName("max") + public static final String SERIALIZED_NAME_MAX = "max"; + @SerializedName(SERIALIZED_NAME_MAX) private Map max = null; - @SerializedName("maxLimitRequestRatio") + public static final String SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO = "maxLimitRequestRatio"; + @SerializedName(SERIALIZED_NAME_MAX_LIMIT_REQUEST_RATIO) private Map maxLimitRequestRatio = null; - @SerializedName("min") + public static final String SERIALIZED_NAME_MIN = "min"; + @SerializedName(SERIALIZED_NAME_MIN) private Map min = null; - @SerializedName("type") - private String type = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + public V1LimitRangeItem _default(Map _default) { + this._default = _default; return this; } @@ -68,16 +79,22 @@ public V1LimitRangeItem putDefaultItem(String key, Quantity _defaultItem) { * Default resource requirement limit value by resource name if resource limit is omitted. * @return _default **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Default resource requirement limit value by resource name if resource limit is omitted.") + public Map getDefault() { return _default; } + + public void setDefault(Map _default) { this._default = _default; } + public V1LimitRangeItem defaultRequest(Map defaultRequest) { + this.defaultRequest = defaultRequest; return this; } @@ -94,16 +111,22 @@ public V1LimitRangeItem putDefaultRequestItem(String key, Quantity defaultReques * DefaultRequest is the default resource requirement request value by resource name if resource request is omitted. * @return defaultRequest **/ + @javax.annotation.Nullable @ApiModelProperty(value = "DefaultRequest is the default resource requirement request value by resource name if resource request is omitted.") + public Map getDefaultRequest() { return defaultRequest; } + + public void setDefaultRequest(Map defaultRequest) { this.defaultRequest = defaultRequest; } + public V1LimitRangeItem max(Map max) { + this.max = max; return this; } @@ -120,16 +143,22 @@ public V1LimitRangeItem putMaxItem(String key, Quantity maxItem) { * Max usage constraints on this kind by resource name. * @return max **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Max usage constraints on this kind by resource name.") + public Map getMax() { return max; } + + public void setMax(Map max) { this.max = max; } + public V1LimitRangeItem maxLimitRequestRatio(Map maxLimitRequestRatio) { + this.maxLimitRequestRatio = maxLimitRequestRatio; return this; } @@ -146,16 +175,22 @@ public V1LimitRangeItem putMaxLimitRequestRatioItem(String key, Quantity maxLimi * MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource. * @return maxLimitRequestRatio **/ + @javax.annotation.Nullable @ApiModelProperty(value = "MaxLimitRequestRatio if specified, the named resource must have a request and limit that are both non-zero where limit divided by request is less than or equal to the enumerated value; this represents the max burst for the named resource.") + public Map getMaxLimitRequestRatio() { return maxLimitRequestRatio; } + + public void setMaxLimitRequestRatio(Map maxLimitRequestRatio) { this.maxLimitRequestRatio = maxLimitRequestRatio; } + public V1LimitRangeItem min(Map min) { + this.min = min; return this; } @@ -172,16 +207,22 @@ public V1LimitRangeItem putMinItem(String key, Quantity minItem) { * Min usage constraints on this kind by resource name. * @return min **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Min usage constraints on this kind by resource name.") + public Map getMin() { return min; } + + public void setMin(Map min) { this.min = min; } + public V1LimitRangeItem type(String type) { + this.type = type; return this; } @@ -190,11 +231,15 @@ public V1LimitRangeItem type(String type) { * Type of resource that this limit applies to. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of resource that this limit applies to.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -202,24 +247,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LimitRangeItem v1LimitRangeItem = (V1LimitRangeItem) o; - return Objects.equals(this._default, v1LimitRangeItem._default) && - Objects.equals(this.defaultRequest, v1LimitRangeItem.defaultRequest) && - Objects.equals(this.max, v1LimitRangeItem.max) && - Objects.equals(this.maxLimitRequestRatio, v1LimitRangeItem.maxLimitRequestRatio) && - Objects.equals(this.min, v1LimitRangeItem.min) && - Objects.equals(this.type, v1LimitRangeItem.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(_default, defaultRequest, max, maxLimitRequestRatio, min, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -227,7 +260,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LimitRangeItem {\n"); - sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); sb.append(" defaultRequest: ").append(toIndentedString(defaultRequest)).append("\n"); sb.append(" max: ").append(toIndentedString(max)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeList.java index 7fcdee4e0f..3b24cfda70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * LimitRangeList is a list of LimitRange items. */ @ApiModel(description = "LimitRangeList is a list of LimitRange items.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LimitRangeList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1LimitRangeList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1LimitRangeList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1LimitRangeList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1LimitRangeList addItemsItem(V1LimitRange itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of LimitRange objects. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1LimitRangeList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1LimitRangeList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1LimitRangeList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LimitRangeList v1LimitRangeList = (V1LimitRangeList) o; - return Objects.equals(this.apiVersion, v1LimitRangeList.apiVersion) && - Objects.equals(this.items, v1LimitRangeList.items) && - Objects.equals(this.kind, v1LimitRangeList.kind) && - Objects.equals(this.metadata, v1LimitRangeList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LimitRangeList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeSpec.java index 6d7e8aebe9..379faa6c09 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LimitRangeSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * LimitRangeSpec defines a min/max usage limit for resources that match on kind. */ @ApiModel(description = "LimitRangeSpec defines a min/max usage limit for resources that match on kind.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LimitRangeSpec { - @SerializedName("limits") + public static final String SERIALIZED_NAME_LIMITS = "limits"; + @SerializedName(SERIALIZED_NAME_LIMITS) private List limits = new ArrayList(); + public V1LimitRangeSpec limits(List limits) { + this.limits = limits; return this; } @@ -50,10 +56,13 @@ public V1LimitRangeSpec addLimitsItem(V1LimitRangeItem limitsItem) { * @return limits **/ @ApiModelProperty(required = true, value = "Limits is the list of LimitRangeItem objects that are enforced.") + public List getLimits() { return limits; } + + public void setLimits(List limits) { this.limits = limits; } @@ -61,19 +70,12 @@ public void setLimits(List limits) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LimitRangeSpec v1LimitRangeSpec = (V1LimitRangeSpec) o; - return Objects.equals(this.limits, v1LimitRangeSpec.limits); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(limits); + return HashCodeBuilder.reflectionHashCode(this); } @@ -81,7 +83,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LimitRangeSpec {\n"); - sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ListMeta.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ListMeta.java index a89ccfe62c..4c578b23d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ListMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ListMeta.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,27 @@ * ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}. */ @ApiModel(description = "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ListMeta { - @SerializedName("continue") - private String _continue = null; + public static final String SERIALIZED_NAME_CONTINUE = "continue"; + @SerializedName(SERIALIZED_NAME_CONTINUE) + private String _continue; + + public static final String SERIALIZED_NAME_REMAINING_ITEM_COUNT = "remainingItemCount"; + @SerializedName(SERIALIZED_NAME_REMAINING_ITEM_COUNT) + private Long remainingItemCount; + + public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; + @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + private String resourceVersion; - @SerializedName("resourceVersion") - private String resourceVersion = null; + public static final String SERIALIZED_NAME_SELF_LINK = "selfLink"; + @SerializedName(SERIALIZED_NAME_SELF_LINK) + private String selfLink; - @SerializedName("selfLink") - private String selfLink = null; public V1ListMeta _continue(String _continue) { + this._continue = _continue; return this; } @@ -47,16 +59,46 @@ public V1ListMeta _continue(String _continue) { * continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. * @return _continue **/ + @javax.annotation.Nullable @ApiModelProperty(value = "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.") + public String getContinue() { return _continue; } + + public void setContinue(String _continue) { this._continue = _continue; } + + public V1ListMeta remainingItemCount(Long remainingItemCount) { + + this.remainingItemCount = remainingItemCount; + return this; + } + + /** + * remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. This field is alpha and can be changed or removed without notice. + * @return remainingItemCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. This field is alpha and can be changed or removed without notice.") + + public Long getRemainingItemCount() { + return remainingItemCount; + } + + + + public void setRemainingItemCount(Long remainingItemCount) { + this.remainingItemCount = remainingItemCount; + } + + public V1ListMeta resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @@ -65,16 +107,22 @@ public V1ListMeta resourceVersion(String resourceVersion) { * String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency * @return resourceVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency") + public String getResourceVersion() { return resourceVersion; } + + public void setResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; } + public V1ListMeta selfLink(String selfLink) { + this.selfLink = selfLink; return this; } @@ -83,11 +131,15 @@ public V1ListMeta selfLink(String selfLink) { * selfLink is a URL representing this object. Populated by the system. Read-only. * @return selfLink **/ + @javax.annotation.Nullable @ApiModelProperty(value = "selfLink is a URL representing this object. Populated by the system. Read-only.") + public String getSelfLink() { return selfLink; } + + public void setSelfLink(String selfLink) { this.selfLink = selfLink; } @@ -95,21 +147,12 @@ public void setSelfLink(String selfLink) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ListMeta v1ListMeta = (V1ListMeta) o; - return Objects.equals(this._continue, v1ListMeta._continue) && - Objects.equals(this.resourceVersion, v1ListMeta.resourceVersion) && - Objects.equals(this.selfLink, v1ListMeta.selfLink); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(_continue, resourceVersion, selfLink); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,8 +160,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ListMeta {\n"); - sb.append(" _continue: ").append(toIndentedString(_continue)).append("\n"); + sb.append(" remainingItemCount: ").append(toIndentedString(remainingItemCount)).append("\n"); sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); sb.append(" selfLink: ").append(toIndentedString(selfLink)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerIngress.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerIngress.java index 05fe63c41a..a30a588d31 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerIngress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerIngress.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point. */ @ApiModel(description = "LoadBalancerIngress represents the status of a load-balancer ingress point: traffic intended for the service should be sent to an ingress point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LoadBalancerIngress { - @SerializedName("hostname") - private String hostname = null; + public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; + @SerializedName(SERIALIZED_NAME_HOSTNAME) + private String hostname; + + public static final String SERIALIZED_NAME_IP = "ip"; + @SerializedName(SERIALIZED_NAME_IP) + private String ip; - @SerializedName("ip") - private String ip = null; public V1LoadBalancerIngress hostname(String hostname) { + this.hostname = hostname; return this; } @@ -44,16 +51,22 @@ public V1LoadBalancerIngress hostname(String hostname) { * Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers) * @return hostname **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Hostname is set for load-balancer ingress points that are DNS based (typically AWS load-balancers)") + public String getHostname() { return hostname; } + + public void setHostname(String hostname) { this.hostname = hostname; } + public V1LoadBalancerIngress ip(String ip) { + this.ip = ip; return this; } @@ -62,11 +75,15 @@ public V1LoadBalancerIngress ip(String ip) { * IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers) * @return ip **/ + @javax.annotation.Nullable @ApiModelProperty(value = "IP is set for load-balancer ingress points that are IP based (typically GCE or OpenStack load-balancers)") + public String getIp() { return ip; } + + public void setIp(String ip) { this.ip = ip; } @@ -74,20 +91,12 @@ public void setIp(String ip) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LoadBalancerIngress v1LoadBalancerIngress = (V1LoadBalancerIngress) o; - return Objects.equals(this.hostname, v1LoadBalancerIngress.hostname) && - Objects.equals(this.ip, v1LoadBalancerIngress.ip); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hostname, ip); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LoadBalancerIngress {\n"); - sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerStatus.java index 61ad7fd6ae..42ac1923e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LoadBalancerStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * LoadBalancerStatus represents the status of a load-balancer. */ @ApiModel(description = "LoadBalancerStatus represents the status of a load-balancer.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LoadBalancerStatus { - @SerializedName("ingress") + public static final String SERIALIZED_NAME_INGRESS = "ingress"; + @SerializedName(SERIALIZED_NAME_INGRESS) private List ingress = null; + public V1LoadBalancerStatus ingress(List ingress) { + this.ingress = ingress; return this; } @@ -52,11 +58,15 @@ public V1LoadBalancerStatus addIngressItem(V1LoadBalancerIngress ingressItem) { * Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points. * @return ingress **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Ingress is a list containing ingress points for the load-balancer. Traffic intended for the service should be sent to these ingress points.") + public List getIngress() { return ingress; } + + public void setIngress(List ingress) { this.ingress = ingress; } @@ -64,19 +74,12 @@ public void setIngress(List ingress) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LoadBalancerStatus v1LoadBalancerStatus = (V1LoadBalancerStatus) o; - return Objects.equals(this.ingress, v1LoadBalancerStatus.ingress); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ingress); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LoadBalancerStatus {\n"); - sb.append(" ingress: ").append(toIndentedString(ingress)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalObjectReference.java index 88ca1f7b33..98fddb3912 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalObjectReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. */ @ApiModel(description = "LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LocalObjectReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + public V1LocalObjectReference name(String name) { + this.name = name; return this; } @@ -41,11 +47,15 @@ public V1LocalObjectReference name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -53,19 +63,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LocalObjectReference v1LocalObjectReference = (V1LocalObjectReference) o; - return Objects.equals(this.name, v1LocalObjectReference.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LocalObjectReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalSubjectAccessReview.java index 146fe381a9..a9675dba1d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalSubjectAccessReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. */ @ApiModel(description = "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LocalSubjectAccessReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1SubjectAccessReviewSpec spec; - @SerializedName("spec") - private V1SubjectAccessReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1SubjectAccessReviewStatus status; - @SerializedName("status") - private V1SubjectAccessReviewStatus status = null; public V1LocalSubjectAccessReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1LocalSubjectAccessReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1LocalSubjectAccessReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1LocalSubjectAccessReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1LocalSubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.") + @ApiModelProperty(required = true, value = "") + public V1SubjectAccessReviewSpec getSpec() { return spec; } + + public void setSpec(V1SubjectAccessReviewSpec spec) { this.spec = spec; } + public V1LocalSubjectAccessReview status(V1SubjectAccessReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request is allowed or not + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request is allowed or not") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SubjectAccessReviewStatus getStatus() { return status; } + + public void setStatus(V1SubjectAccessReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1SubjectAccessReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LocalSubjectAccessReview v1LocalSubjectAccessReview = (V1LocalSubjectAccessReview) o; - return Objects.equals(this.apiVersion, v1LocalSubjectAccessReview.apiVersion) && - Objects.equals(this.kind, v1LocalSubjectAccessReview.kind) && - Objects.equals(this.metadata, v1LocalSubjectAccessReview.metadata) && - Objects.equals(this.spec, v1LocalSubjectAccessReview.spec) && - Objects.equals(this.status, v1LocalSubjectAccessReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LocalSubjectAccessReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalVolumeSource.java index 677c903f21..df1e3b9403 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1LocalVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * Local represents directly-attached storage with node affinity (Beta feature) */ @ApiModel(description = "Local represents directly-attached storage with node affinity (Beta feature)") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1LocalVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; public V1LocalVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -44,16 +51,22 @@ public V1LocalVolumeSource fsType(String fsType) { * Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. It applies only when the Path is a block device. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default value is to auto-select a fileystem if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1LocalVolumeSource path(String path) { + this.path = path; return this; } @@ -63,10 +76,13 @@ public V1LocalVolumeSource path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "The full path to the volume on the node. It can be either a directory or block device (disk, partition, ...).") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } @@ -74,20 +90,12 @@ public void setPath(String path) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1LocalVolumeSource v1LocalVolumeSource = (V1LocalVolumeSource) o; - return Objects.equals(this.fsType, v1LocalVolumeSource.fsType) && - Objects.equals(this.path, v1LocalVolumeSource.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1LocalVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ManagedFieldsEntry.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ManagedFieldsEntry.java index 9574b68b0e..31e3c10fe4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ManagedFieldsEntry.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ManagedFieldsEntry.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to. */ @ApiModel(description = "ManagedFieldsEntry is a workflow-id, a FieldSet and the group version of the resource that the fieldset applies to.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ManagedFieldsEntry { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_FIELDS = "fields"; + @SerializedName(SERIALIZED_NAME_FIELDS) + private Object fields; - @SerializedName("fields") - private Object fields = null; + public static final String SERIALIZED_NAME_MANAGER = "manager"; + @SerializedName(SERIALIZED_NAME_MANAGER) + private String manager; - @SerializedName("manager") - private String manager = null; + public static final String SERIALIZED_NAME_OPERATION = "operation"; + @SerializedName(SERIALIZED_NAME_OPERATION) + private String operation; - @SerializedName("operation") - private String operation = null; + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private DateTime time; - @SerializedName("time") - private DateTime time = null; public V1ManagedFieldsEntry apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +64,22 @@ public V1ManagedFieldsEntry apiVersion(String apiVersion) { * APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted. * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the version of this resource that this field set applies to. The format is \"group/version\" just like the top-level APIVersion field. It is necessary to track the version of a field set because it cannot be automatically converted.") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ManagedFieldsEntry fields(Object fields) { + this.fields = fields; return this; } @@ -72,16 +88,22 @@ public V1ManagedFieldsEntry fields(Object fields) { * Fields identifies a set of fields. * @return fields **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Fields identifies a set of fields.") + public Object getFields() { return fields; } + + public void setFields(Object fields) { this.fields = fields; } + public V1ManagedFieldsEntry manager(String manager) { + this.manager = manager; return this; } @@ -90,16 +112,22 @@ public V1ManagedFieldsEntry manager(String manager) { * Manager is an identifier of the workflow managing these fields. * @return manager **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Manager is an identifier of the workflow managing these fields.") + public String getManager() { return manager; } + + public void setManager(String manager) { this.manager = manager; } + public V1ManagedFieldsEntry operation(String operation) { + this.operation = operation; return this; } @@ -108,16 +136,22 @@ public V1ManagedFieldsEntry operation(String operation) { * Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'. * @return operation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Operation is the type of operation which lead to this ManagedFieldsEntry being created. The only valid values for this field are 'Apply' and 'Update'.") + public String getOperation() { return operation; } + + public void setOperation(String operation) { this.operation = operation; } + public V1ManagedFieldsEntry time(DateTime time) { + this.time = time; return this; } @@ -126,11 +160,15 @@ public V1ManagedFieldsEntry time(DateTime time) { * Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' * @return time **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply'") + public DateTime getTime() { return time; } + + public void setTime(DateTime time) { this.time = time; } @@ -138,23 +176,12 @@ public void setTime(DateTime time) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ManagedFieldsEntry v1ManagedFieldsEntry = (V1ManagedFieldsEntry) o; - return Objects.equals(this.apiVersion, v1ManagedFieldsEntry.apiVersion) && - Objects.equals(this.fields, v1ManagedFieldsEntry.fields) && - Objects.equals(this.manager, v1ManagedFieldsEntry.manager) && - Objects.equals(this.operation, v1ManagedFieldsEntry.operation) && - Objects.equals(this.time, v1ManagedFieldsEntry.time); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, fields, manager, operation, time); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ManagedFieldsEntry {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); sb.append(" manager: ").append(toIndentedString(manager)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NFSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NFSVolumeSource.java index 407f38a896..d3a0783761 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NFSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NFSVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents an NFS mount that lasts the lifetime of a pod. NFS volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NFSVolumeSource { - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SERVER = "server"; + @SerializedName(SERIALIZED_NAME_SERVER) + private String server; - @SerializedName("server") - private String server = null; public V1NFSVolumeSource path(String path) { + this.path = path; return this; } @@ -48,15 +56,20 @@ public V1NFSVolumeSource path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1NFSVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -65,16 +78,22 @@ public V1NFSVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1NFSVolumeSource server(String server) { + this.server = server; return this; } @@ -84,10 +103,13 @@ public V1NFSVolumeSource server(String server) { * @return server **/ @ApiModelProperty(required = true, value = "Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") + public String getServer() { return server; } + + public void setServer(String server) { this.server = server; } @@ -95,21 +117,12 @@ public void setServer(String server) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NFSVolumeSource v1NFSVolumeSource = (V1NFSVolumeSource) o; - return Objects.equals(this.path, v1NFSVolumeSource.path) && - Objects.equals(this.readOnly, v1NFSVolumeSource.readOnly) && - Objects.equals(this.server, v1NFSVolumeSource.server); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(path, readOnly, server); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NFSVolumeSource {\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" server: ").append(toIndentedString(server)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Namespace.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Namespace.java index cc3890b74f..3c4e7c1390 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Namespace.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Namespace.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Namespace provides a scope for Names. Use of multiple namespaces is optional. */ @ApiModel(description = "Namespace provides a scope for Names. Use of multiple namespaces is optional.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Namespace { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1NamespaceSpec spec; - @SerializedName("spec") - private V1NamespaceSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1NamespaceStatus status; - @SerializedName("status") - private V1NamespaceStatus status = null; public V1Namespace apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Namespace apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Namespace kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Namespace kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Namespace metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Namespace spec(V1NamespaceSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the behavior of the Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NamespaceSpec getSpec() { return spec; } + + public void setSpec(V1NamespaceSpec spec) { this.spec = spec; } + public V1Namespace status(V1NamespaceStatus status) { + this.status = status; return this; } /** - * Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status describes the current status of a Namespace. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NamespaceStatus getStatus() { return status; } + + public void setStatus(V1NamespaceStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1NamespaceStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Namespace v1Namespace = (V1Namespace) o; - return Objects.equals(this.apiVersion, v1Namespace.apiVersion) && - Objects.equals(this.kind, v1Namespace.kind) && - Objects.equals(this.metadata, v1Namespace.metadata) && - Objects.equals(this.spec, v1Namespace.spec) && - Objects.equals(this.status, v1Namespace.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Namespace {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceList.java index d8ded4e28f..31ebc3dedb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * NamespaceList is a list of Namespaces. */ @ApiModel(description = "NamespaceList is a list of Namespaces.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NamespaceList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1NamespaceList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1NamespaceList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1NamespaceList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1NamespaceList addItemsItem(V1Namespace itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Namespace objects in the list. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1NamespaceList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1NamespaceList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1NamespaceList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NamespaceList v1NamespaceList = (V1NamespaceList) o; - return Objects.equals(this.apiVersion, v1NamespaceList.apiVersion) && - Objects.equals(this.items, v1NamespaceList.items) && - Objects.equals(this.kind, v1NamespaceList.kind) && - Objects.equals(this.metadata, v1NamespaceList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NamespaceList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceSpec.java index c22e12378a..0a13834f2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,12 +32,15 @@ * NamespaceSpec describes the attributes on a Namespace. */ @ApiModel(description = "NamespaceSpec describes the attributes on a Namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NamespaceSpec { - @SerializedName("finalizers") + public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; + @SerializedName(SERIALIZED_NAME_FINALIZERS) private List finalizers = null; + public V1NamespaceSpec finalizers(List finalizers) { + this.finalizers = finalizers; return this; } @@ -51,11 +57,15 @@ public V1NamespaceSpec addFinalizersItem(String finalizersItem) { * Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ * @return finalizers **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Finalizers is an opaque list of values that must be empty to permanently remove object from storage. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") + public List getFinalizers() { return finalizers; } + + public void setFinalizers(List finalizers) { this.finalizers = finalizers; } @@ -63,19 +73,12 @@ public void setFinalizers(List finalizers) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NamespaceSpec v1NamespaceSpec = (V1NamespaceSpec) o; - return Objects.equals(this.finalizers, v1NamespaceSpec.finalizers); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(finalizers); + return HashCodeBuilder.reflectionHashCode(this); } @@ -83,7 +86,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NamespaceSpec {\n"); - sb.append(" finalizers: ").append(toIndentedString(finalizers)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceStatus.java index 48ccf984d1..fb3520bf63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NamespaceStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * NamespaceStatus is information about the current status of a Namespace. */ @ApiModel(description = "NamespaceStatus is information about the current status of a Namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NamespaceStatus { - @SerializedName("phase") - private String phase = null; + public static final String SERIALIZED_NAME_PHASE = "phase"; + @SerializedName(SERIALIZED_NAME_PHASE) + private String phase; + public V1NamespaceStatus phase(String phase) { + this.phase = phase; return this; } @@ -41,11 +47,15 @@ public V1NamespaceStatus phase(String phase) { * Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/ * @return phase **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Phase is the current lifecycle phase of the namespace. More info: https://kubernetes.io/docs/tasks/administer-cluster/namespaces/") + public String getPhase() { return phase; } + + public void setPhase(String phase) { this.phase = phase; } @@ -53,19 +63,12 @@ public void setPhase(String phase) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NamespaceStatus v1NamespaceStatus = (V1NamespaceStatus) o; - return Objects.equals(this.phase, v1NamespaceStatus.phase); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(phase); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NamespaceStatus {\n"); - sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicy.java index 984600c786..72e29185cc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * NetworkPolicy describes what network traffic is allowed for a set of Pods */ @ApiModel(description = "NetworkPolicy describes what network traffic is allowed for a set of Pods") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicy { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1NetworkPolicySpec spec; - @SerializedName("spec") - private V1NetworkPolicySpec spec = null; public V1NetworkPolicy apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1NetworkPolicy apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1NetworkPolicy kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public V1NetworkPolicy kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1NetworkPolicy metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1NetworkPolicy spec(V1NetworkPolicySpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior for this NetworkPolicy. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior for this NetworkPolicy.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NetworkPolicySpec getSpec() { return spec; } + + public void setSpec(V1NetworkPolicySpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1NetworkPolicySpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicy v1NetworkPolicy = (V1NetworkPolicy) o; - return Objects.equals(this.apiVersion, v1NetworkPolicy.apiVersion) && - Objects.equals(this.kind, v1NetworkPolicy.kind) && - Objects.equals(this.metadata, v1NetworkPolicy.metadata) && - Objects.equals(this.spec, v1NetworkPolicy.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicy {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyEgressRule.java index b84cb590af..bb68a989c2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyEgressRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 */ @ApiModel(description = "NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicyEgressRule { - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; - @SerializedName("to") + public static final String SERIALIZED_NAME_TO = "to"; + @SerializedName(SERIALIZED_NAME_TO) private List to = null; + public V1NetworkPolicyEgressRule ports(List ports) { + this.ports = ports; return this; } @@ -56,16 +63,22 @@ public V1NetworkPolicyEgressRule addPortsItem(V1NetworkPolicyPort portsItem) { * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } + public V1NetworkPolicyEgressRule to(List to) { + this.to = to; return this; } @@ -82,11 +95,15 @@ public V1NetworkPolicyEgressRule addToItem(V1NetworkPolicyPeer toItem) { * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. * @return to **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.") + public List getTo() { return to; } + + public void setTo(List to) { this.to = to; } @@ -94,20 +111,12 @@ public void setTo(List to) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicyEgressRule v1NetworkPolicyEgressRule = (V1NetworkPolicyEgressRule) o; - return Objects.equals(this.ports, v1NetworkPolicyEgressRule.ports) && - Objects.equals(this.to, v1NetworkPolicyEgressRule.to); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ports, to); + return HashCodeBuilder.reflectionHashCode(this); } @@ -115,7 +124,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicyEgressRule {\n"); - sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyIngressRule.java index eac150810d..067e49635d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyIngressRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from. */ @ApiModel(description = "NetworkPolicyIngressRule describes a particular set of traffic that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and from.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicyIngressRule { - @SerializedName("from") + public static final String SERIALIZED_NAME_FROM = "from"; + @SerializedName(SERIALIZED_NAME_FROM) private List from = null; - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; + public V1NetworkPolicyIngressRule from(List from) { + this.from = from; return this; } @@ -56,16 +63,22 @@ public V1NetworkPolicyIngressRule addFromItem(V1NetworkPolicyPeer fromItem) { * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. * @return from **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.") + public List getFrom() { return from; } + + public void setFrom(List from) { this.from = from; } + public V1NetworkPolicyIngressRule ports(List ports) { + this.ports = ports; return this; } @@ -82,11 +95,15 @@ public V1NetworkPolicyIngressRule addPortsItem(V1NetworkPolicyPort portsItem) { * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } @@ -94,20 +111,12 @@ public void setPorts(List ports) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicyIngressRule v1NetworkPolicyIngressRule = (V1NetworkPolicyIngressRule) o; - return Objects.equals(this.from, v1NetworkPolicyIngressRule.from) && - Objects.equals(this.ports, v1NetworkPolicyIngressRule.ports); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(from, ports); + return HashCodeBuilder.reflectionHashCode(this); } @@ -115,7 +124,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicyIngressRule {\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyList.java index f9af490ac3..cf5612a913 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * NetworkPolicyList is a list of NetworkPolicy objects. */ @ApiModel(description = "NetworkPolicyList is a list of NetworkPolicy objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicyList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1NetworkPolicyList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1NetworkPolicyList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1NetworkPolicyList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1NetworkPolicyList addItemsItem(V1NetworkPolicy itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1NetworkPolicyList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1NetworkPolicyList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1NetworkPolicyList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicyList v1NetworkPolicyList = (V1NetworkPolicyList) o; - return Objects.equals(this.apiVersion, v1NetworkPolicyList.apiVersion) && - Objects.equals(this.items, v1NetworkPolicyList.items) && - Objects.equals(this.kind, v1NetworkPolicyList.kind) && - Objects.equals(this.metadata, v1NetworkPolicyList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicyList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPeer.java index 29484507a7..112d587848 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPeer.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,67 +32,88 @@ * NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed */ @ApiModel(description = "NetworkPolicyPeer describes a peer to allow traffic from. Only certain combinations of fields are allowed") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicyPeer { - @SerializedName("ipBlock") - private V1IPBlock ipBlock = null; + public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; + @SerializedName(SERIALIZED_NAME_IP_BLOCK) + private V1IPBlock ipBlock; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1LabelSelector namespaceSelector; - @SerializedName("namespaceSelector") - private V1LabelSelector namespaceSelector = null; + public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; + @SerializedName(SERIALIZED_NAME_POD_SELECTOR) + private V1LabelSelector podSelector; - @SerializedName("podSelector") - private V1LabelSelector podSelector = null; public V1NetworkPolicyPeer ipBlock(V1IPBlock ipBlock) { + this.ipBlock = ipBlock; return this; } /** - * IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * Get ipBlock * @return ipBlock **/ - @ApiModelProperty(value = "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1IPBlock getIpBlock() { return ipBlock; } + + public void setIpBlock(V1IPBlock ipBlock) { this.ipBlock = ipBlock; } + public V1NetworkPolicyPeer namespaceSelector(V1LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } /** - * Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * Get namespaceSelector * @return namespaceSelector **/ - @ApiModelProperty(value = "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } + + public void setNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } + public V1NetworkPolicyPeer podSelector(V1LabelSelector podSelector) { + this.podSelector = podSelector; return this; } /** - * This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + * Get podSelector * @return podSelector **/ - @ApiModelProperty(value = "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getPodSelector() { return podSelector; } + + public void setPodSelector(V1LabelSelector podSelector) { this.podSelector = podSelector; } @@ -97,21 +121,12 @@ public void setPodSelector(V1LabelSelector podSelector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicyPeer v1NetworkPolicyPeer = (V1NetworkPolicyPeer) o; - return Objects.equals(this.ipBlock, v1NetworkPolicyPeer.ipBlock) && - Objects.equals(this.namespaceSelector, v1NetworkPolicyPeer.namespaceSelector) && - Objects.equals(this.podSelector, v1NetworkPolicyPeer.podSelector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ipBlock, namespaceSelector, podSelector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -119,7 +134,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicyPeer {\n"); - sb.append(" ipBlock: ").append(toIndentedString(ipBlock)).append("\n"); sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); sb.append(" podSelector: ").append(toIndentedString(podSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPort.java index 9cf8d51bb1..6d5b79a03c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicyPort.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * NetworkPolicyPort describes a port to allow traffic on */ @ApiModel(description = "NetworkPolicyPort describes a port to allow traffic on") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicyPort { - @SerializedName("port") - private IntOrString port = null; + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private IntOrString port; + + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; + @SerializedName(SERIALIZED_NAME_PROTOCOL) + private String protocol; - @SerializedName("protocol") - private String protocol = null; public V1NetworkPolicyPort port(IntOrString port) { + this.port = port; return this; } /** - * The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port **/ - @ApiModelProperty(value = "The port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getPort() { return port; } + + public void setPort(IntOrString port) { this.port = port; } + public V1NetworkPolicyPort protocol(String protocol) { + this.protocol = protocol; return this; } @@ -63,11 +76,15 @@ public V1NetworkPolicyPort protocol(String protocol) { * The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. * @return protocol **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.") + public String getProtocol() { return protocol; } + + public void setProtocol(String protocol) { this.protocol = protocol; } @@ -75,20 +92,12 @@ public void setProtocol(String protocol) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicyPort v1NetworkPolicyPort = (V1NetworkPolicyPort) o; - return Objects.equals(this.port, v1NetworkPolicyPort.port) && - Objects.equals(this.protocol, v1NetworkPolicyPort.protocol); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(port, protocol); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicyPort {\n"); - sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicySpec.java index ddd5181f39..f3a6b8bbc0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NetworkPolicySpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,21 +35,27 @@ * NetworkPolicySpec provides the specification of a NetworkPolicy */ @ApiModel(description = "NetworkPolicySpec provides the specification of a NetworkPolicy") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NetworkPolicySpec { - @SerializedName("egress") + public static final String SERIALIZED_NAME_EGRESS = "egress"; + @SerializedName(SERIALIZED_NAME_EGRESS) private List egress = null; - @SerializedName("ingress") + public static final String SERIALIZED_NAME_INGRESS = "ingress"; + @SerializedName(SERIALIZED_NAME_INGRESS) private List ingress = null; - @SerializedName("podSelector") - private V1LabelSelector podSelector = null; + public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; + @SerializedName(SERIALIZED_NAME_POD_SELECTOR) + private V1LabelSelector podSelector; - @SerializedName("policyTypes") + public static final String SERIALIZED_NAME_POLICY_TYPES = "policyTypes"; + @SerializedName(SERIALIZED_NAME_POLICY_TYPES) private List policyTypes = null; + public V1NetworkPolicySpec egress(List egress) { + this.egress = egress; return this; } @@ -63,16 +72,22 @@ public V1NetworkPolicySpec addEgressItem(V1NetworkPolicyEgressRule egressItem) { * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 * @return egress **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8") + public List getEgress() { return egress; } + + public void setEgress(List egress) { this.egress = egress; } + public V1NetworkPolicySpec ingress(List ingress) { + this.ingress = ingress; return this; } @@ -89,34 +104,45 @@ public V1NetworkPolicySpec addIngressItem(V1NetworkPolicyIngressRule ingressItem * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default) * @return ingress **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default)") + public List getIngress() { return ingress; } + + public void setIngress(List ingress) { this.ingress = ingress; } + public V1NetworkPolicySpec podSelector(V1LabelSelector podSelector) { + this.podSelector = podSelector; return this; } /** - * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * Get podSelector * @return podSelector **/ - @ApiModelProperty(required = true, value = "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getPodSelector() { return podSelector; } + + public void setPodSelector(V1LabelSelector podSelector) { this.podSelector = podSelector; } + public V1NetworkPolicySpec policyTypes(List policyTypes) { + this.policyTypes = policyTypes; return this; } @@ -133,11 +159,15 @@ public V1NetworkPolicySpec addPolicyTypesItem(String policyTypesItem) { * List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 * @return policyTypes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8") + public List getPolicyTypes() { return policyTypes; } + + public void setPolicyTypes(List policyTypes) { this.policyTypes = policyTypes; } @@ -145,22 +175,12 @@ public void setPolicyTypes(List policyTypes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NetworkPolicySpec v1NetworkPolicySpec = (V1NetworkPolicySpec) o; - return Objects.equals(this.egress, v1NetworkPolicySpec.egress) && - Objects.equals(this.ingress, v1NetworkPolicySpec.ingress) && - Objects.equals(this.podSelector, v1NetworkPolicySpec.podSelector) && - Objects.equals(this.policyTypes, v1NetworkPolicySpec.policyTypes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(egress, ingress, podSelector, policyTypes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -168,7 +188,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NetworkPolicySpec {\n"); - sb.append(" egress: ").append(toIndentedString(egress)).append("\n"); sb.append(" ingress: ").append(toIndentedString(ingress)).append("\n"); sb.append(" podSelector: ").append(toIndentedString(podSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Node.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Node.java index 20229509cd..d750bff509 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Node.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Node.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd). */ @ApiModel(description = "Node is a worker node in Kubernetes. Each node will have a unique identifier in the cache (i.e. in etcd).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Node { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1NodeSpec spec; - @SerializedName("spec") - private V1NodeSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1NodeStatus status; - @SerializedName("status") - private V1NodeStatus status = null; public V1Node apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Node apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Node kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Node kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Node metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Node spec(V1NodeSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the behavior of a node. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSpec getSpec() { return spec; } + + public void setSpec(V1NodeSpec spec) { this.spec = spec; } + public V1Node status(V1NodeStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the node. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeStatus getStatus() { return status; } + + public void setStatus(V1NodeStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1NodeStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Node v1Node = (V1Node) o; - return Objects.equals(this.apiVersion, v1Node.apiVersion) && - Objects.equals(this.kind, v1Node.kind) && - Objects.equals(this.metadata, v1Node.metadata) && - Objects.equals(this.spec, v1Node.spec) && - Objects.equals(this.status, v1Node.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Node {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAddress.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAddress.java index b7cb90461a..5c449650a8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAddress.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAddress.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * NodeAddress contains information for the node's address. */ @ApiModel(description = "NodeAddress contains information for the node's address.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeAddress { - @SerializedName("address") - private String address = null; + public static final String SERIALIZED_NAME_ADDRESS = "address"; + @SerializedName(SERIALIZED_NAME_ADDRESS) + private String address; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1NodeAddress address(String address) { + this.address = address; return this; } @@ -45,15 +52,20 @@ public V1NodeAddress address(String address) { * @return address **/ @ApiModelProperty(required = true, value = "The node address.") + public String getAddress() { return address; } + + public void setAddress(String address) { this.address = address; } + public V1NodeAddress type(String type) { + this.type = type; return this; } @@ -63,10 +75,13 @@ public V1NodeAddress type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Node address type, one of Hostname, ExternalIP or InternalIP.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -74,20 +89,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeAddress v1NodeAddress = (V1NodeAddress) o; - return Objects.equals(this.address, v1NodeAddress.address) && - Objects.equals(this.type, v1NodeAddress.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(address, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeAddress {\n"); - sb.append(" address: ").append(toIndentedString(address)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAffinity.java index af295701bd..72acaae9fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeAffinity.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * Node affinity is a group of node affinity scheduling rules. */ @ApiModel(description = "Node affinity is a group of node affinity scheduling rules.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeAffinity { - @SerializedName("preferredDuringSchedulingIgnoredDuringExecution") + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) private List preferredDuringSchedulingIgnoredDuringExecution = null; - @SerializedName("requiredDuringSchedulingIgnoredDuringExecution") - private V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution = null; + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) + private V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution; + public V1NodeAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -56,29 +63,39 @@ public V1NodeAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1P * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node matches the corresponding matchExpressions; the node(s) with the highest sum are the most preferred.") + public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; } + public V1NodeAffinity requiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } /** - * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node. + * Get requiredDuringSchedulingIgnoredDuringExecution * @return requiredDuringSchedulingIgnoredDuringExecution **/ - @ApiModelProperty(value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to an update), the system may or may not try to eventually evict the pod from its node.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSelector getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } + + public void setRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; } @@ -86,20 +103,12 @@ public void setRequiredDuringSchedulingIgnoredDuringExecution(V1NodeSelector req @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeAffinity v1NodeAffinity = (V1NodeAffinity) o; - return Objects.equals(this.preferredDuringSchedulingIgnoredDuringExecution, v1NodeAffinity.preferredDuringSchedulingIgnoredDuringExecution) && - Objects.equals(this.requiredDuringSchedulingIgnoredDuringExecution, v1NodeAffinity.requiredDuringSchedulingIgnoredDuringExecution); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(preferredDuringSchedulingIgnoredDuringExecution, requiredDuringSchedulingIgnoredDuringExecution); + return HashCodeBuilder.reflectionHashCode(this); } @@ -107,7 +116,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeAffinity {\n"); - sb.append(" preferredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(preferredDuringSchedulingIgnoredDuringExecution)).append("\n"); sb.append(" requiredDuringSchedulingIgnoredDuringExecution: ").append(toIndentedString(requiredDuringSchedulingIgnoredDuringExecution)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeCondition.java index 21e68524c5..73acc8126b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * NodeCondition contains condition information for a node. */ @ApiModel(description = "NodeCondition contains condition information for a node.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeCondition { - @SerializedName("lastHeartbeatTime") - private DateTime lastHeartbeatTime = null; + public static final String SERIALIZED_NAME_LAST_HEARTBEAT_TIME = "lastHeartbeatTime"; + @SerializedName(SERIALIZED_NAME_LAST_HEARTBEAT_TIME) + private DateTime lastHeartbeatTime; + + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1NodeCondition lastHeartbeatTime(DateTime lastHeartbeatTime) { + this.lastHeartbeatTime = lastHeartbeatTime; return this; } @@ -57,16 +68,22 @@ public V1NodeCondition lastHeartbeatTime(DateTime lastHeartbeatTime) { * Last time we got an update on a given condition. * @return lastHeartbeatTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time we got an update on a given condition.") + public DateTime getLastHeartbeatTime() { return lastHeartbeatTime; } + + public void setLastHeartbeatTime(DateTime lastHeartbeatTime) { this.lastHeartbeatTime = lastHeartbeatTime; } + public V1NodeCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -75,16 +92,22 @@ public V1NodeCondition lastTransitionTime(DateTime lastTransitionTime) { * Last time the condition transit from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transit from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1NodeCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public V1NodeCondition message(String message) { * Human readable message indicating details about last transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Human readable message indicating details about last transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1NodeCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public V1NodeCondition reason(String reason) { * (brief) reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "(brief) reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1NodeCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public V1NodeCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1NodeCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public V1NodeCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of node condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeCondition v1NodeCondition = (V1NodeCondition) o; - return Objects.equals(this.lastHeartbeatTime, v1NodeCondition.lastHeartbeatTime) && - Objects.equals(this.lastTransitionTime, v1NodeCondition.lastTransitionTime) && - Objects.equals(this.message, v1NodeCondition.message) && - Objects.equals(this.reason, v1NodeCondition.reason) && - Objects.equals(this.status, v1NodeCondition.status) && - Objects.equals(this.type, v1NodeCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastHeartbeatTime, lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeCondition {\n"); - sb.append(" lastHeartbeatTime: ").append(toIndentedString(lastHeartbeatTime)).append("\n"); sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigSource.java index 254fb7e327..bb6702a122 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil. */ @ApiModel(description = "NodeConfigSource specifies a source of node configuration. Exactly one subfield (excluding metadata) must be non-nil.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeConfigSource { - @SerializedName("configMap") - private V1ConfigMapNodeConfigSource configMap = null; + public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP) + private V1ConfigMapNodeConfigSource configMap; + public V1NodeConfigSource configMap(V1ConfigMapNodeConfigSource configMap) { + this.configMap = configMap; return this; } /** - * ConfigMap is a reference to a Node's ConfigMap + * Get configMap * @return configMap **/ - @ApiModelProperty(value = "ConfigMap is a reference to a Node's ConfigMap") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ConfigMapNodeConfigSource getConfigMap() { return configMap; } + + public void setConfigMap(V1ConfigMapNodeConfigSource configMap) { this.configMap = configMap; } @@ -54,19 +64,12 @@ public void setConfigMap(V1ConfigMapNodeConfigSource configMap) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeConfigSource v1NodeConfigSource = (V1NodeConfigSource) o; - return Objects.equals(this.configMap, v1NodeConfigSource.configMap); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(configMap); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeConfigSource {\n"); - sb.append(" configMap: ").append(toIndentedString(configMap)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigStatus.java index 0947011ac4..7dec4fc0f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeConfigStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,57 +31,75 @@ * NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource. */ @ApiModel(description = "NodeConfigStatus describes the status of the config assigned by Node.Spec.ConfigSource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeConfigStatus { - @SerializedName("active") - private V1NodeConfigSource active = null; + public static final String SERIALIZED_NAME_ACTIVE = "active"; + @SerializedName(SERIALIZED_NAME_ACTIVE) + private V1NodeConfigSource active; + + public static final String SERIALIZED_NAME_ASSIGNED = "assigned"; + @SerializedName(SERIALIZED_NAME_ASSIGNED) + private V1NodeConfigSource assigned; - @SerializedName("assigned") - private V1NodeConfigSource assigned = null; + public static final String SERIALIZED_NAME_ERROR = "error"; + @SerializedName(SERIALIZED_NAME_ERROR) + private String error; - @SerializedName("error") - private String error = null; + public static final String SERIALIZED_NAME_LAST_KNOWN_GOOD = "lastKnownGood"; + @SerializedName(SERIALIZED_NAME_LAST_KNOWN_GOOD) + private V1NodeConfigSource lastKnownGood; - @SerializedName("lastKnownGood") - private V1NodeConfigSource lastKnownGood = null; public V1NodeConfigStatus active(V1NodeConfigSource active) { + this.active = active; return this; } /** - * Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error. + * Get active * @return active **/ - @ApiModelProperty(value = "Active reports the checkpointed config the node is actively using. Active will represent either the current version of the Assigned config, or the current LastKnownGood config, depending on whether attempting to use the Assigned config results in an error.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeConfigSource getActive() { return active; } + + public void setActive(V1NodeConfigSource active) { this.active = active; } + public V1NodeConfigStatus assigned(V1NodeConfigSource assigned) { + this.assigned = assigned; return this; } /** - * Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned. + * Get assigned * @return assigned **/ - @ApiModelProperty(value = "Assigned reports the checkpointed config the node will try to use. When Node.Spec.ConfigSource is updated, the node checkpoints the associated config payload to local disk, along with a record indicating intended config. The node refers to this record to choose its config checkpoint, and reports this record in Assigned. Assigned only updates in the status after the record has been checkpointed to disk. When the Kubelet is restarted, it tries to make the Assigned config the Active config by loading and validating the checkpointed payload identified by Assigned.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeConfigSource getAssigned() { return assigned; } + + public void setAssigned(V1NodeConfigSource assigned) { this.assigned = assigned; } + public V1NodeConfigStatus error(String error) { + this.error = error; return this; } @@ -87,29 +108,39 @@ public V1NodeConfigStatus error(String error) { * Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions. * @return error **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Error describes any problems reconciling the Spec.ConfigSource to the Active config. Errors may occur, for example, attempting to checkpoint Spec.ConfigSource to the local Assigned record, attempting to checkpoint the payload associated with Spec.ConfigSource, attempting to load or validate the Assigned config, etc. Errors may occur at different points while syncing config. Earlier errors (e.g. download or checkpointing errors) will not result in a rollback to LastKnownGood, and may resolve across Kubelet retries. Later errors (e.g. loading or validating a checkpointed config) will result in a rollback to LastKnownGood. In the latter case, it is usually possible to resolve the error by fixing the config assigned in Spec.ConfigSource. You can find additional information for debugging by searching the error message in the Kubelet log. Error is a human-readable description of the error state; machines can check whether or not Error is empty, but should not rely on the stability of the Error text across Kubelet versions.") + public String getError() { return error; } + + public void setError(String error) { this.error = error; } + public V1NodeConfigStatus lastKnownGood(V1NodeConfigSource lastKnownGood) { + this.lastKnownGood = lastKnownGood; return this; } /** - * LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future. + * Get lastKnownGood * @return lastKnownGood **/ - @ApiModelProperty(value = "LastKnownGood reports the checkpointed config the node will fall back to when it encounters an error attempting to use the Assigned config. The Assigned config becomes the LastKnownGood config when the node determines that the Assigned config is stable and correct. This is currently implemented as a 10-minute soak period starting when the local record of Assigned config is updated. If the Assigned config is Active at the end of this period, it becomes the LastKnownGood. Note that if Spec.ConfigSource is reset to nil (use local defaults), the LastKnownGood is also immediately reset to nil, because the local default config is always assumed good. You should not make assumptions about the node's method of determining config stability and correctness, as this may change or become configurable in the future.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeConfigSource getLastKnownGood() { return lastKnownGood; } + + public void setLastKnownGood(V1NodeConfigSource lastKnownGood) { this.lastKnownGood = lastKnownGood; } @@ -117,22 +148,12 @@ public void setLastKnownGood(V1NodeConfigSource lastKnownGood) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeConfigStatus v1NodeConfigStatus = (V1NodeConfigStatus) o; - return Objects.equals(this.active, v1NodeConfigStatus.active) && - Objects.equals(this.assigned, v1NodeConfigStatus.assigned) && - Objects.equals(this.error, v1NodeConfigStatus.error) && - Objects.equals(this.lastKnownGood, v1NodeConfigStatus.lastKnownGood); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(active, assigned, error, lastKnownGood); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeConfigStatus {\n"); - sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" assigned: ").append(toIndentedString(assigned)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeDaemonEndpoints.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeDaemonEndpoints.java index ef65778c5e..5329b6f7b8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeDaemonEndpoints.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeDaemonEndpoints.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * NodeDaemonEndpoints lists ports opened by daemons running on the Node. */ @ApiModel(description = "NodeDaemonEndpoints lists ports opened by daemons running on the Node.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeDaemonEndpoints { - @SerializedName("kubeletEndpoint") - private V1DaemonEndpoint kubeletEndpoint = null; + public static final String SERIALIZED_NAME_KUBELET_ENDPOINT = "kubeletEndpoint"; + @SerializedName(SERIALIZED_NAME_KUBELET_ENDPOINT) + private V1DaemonEndpoint kubeletEndpoint; + public V1NodeDaemonEndpoints kubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { + this.kubeletEndpoint = kubeletEndpoint; return this; } /** - * Endpoint on which Kubelet is listening. + * Get kubeletEndpoint * @return kubeletEndpoint **/ - @ApiModelProperty(value = "Endpoint on which Kubelet is listening.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DaemonEndpoint getKubeletEndpoint() { return kubeletEndpoint; } + + public void setKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { this.kubeletEndpoint = kubeletEndpoint; } @@ -54,19 +64,12 @@ public void setKubeletEndpoint(V1DaemonEndpoint kubeletEndpoint) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeDaemonEndpoints v1NodeDaemonEndpoints = (V1NodeDaemonEndpoints) o; - return Objects.equals(this.kubeletEndpoint, v1NodeDaemonEndpoints.kubeletEndpoint); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(kubeletEndpoint); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeDaemonEndpoints {\n"); - sb.append(" kubeletEndpoint: ").append(toIndentedString(kubeletEndpoint)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeList.java index 82e31c2c37..ecb72c2be6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * NodeList is the whole list of all Nodes which have been registered with master. */ @ApiModel(description = "NodeList is the whole list of all Nodes which have been registered with master.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1NodeList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1NodeList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1NodeList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1NodeList addItemsItem(V1Node itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of nodes") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1NodeList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1NodeList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1NodeList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeList v1NodeList = (V1NodeList) o; - return Objects.equals(this.apiVersion, v1NodeList.apiVersion) && - Objects.equals(this.items, v1NodeList.items) && - Objects.equals(this.kind, v1NodeList.kind) && - Objects.equals(this.metadata, v1NodeList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelector.java index 258db1ab09..6b87292284 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelector.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. */ @ApiModel(description = "A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeSelector { - @SerializedName("nodeSelectorTerms") + public static final String SERIALIZED_NAME_NODE_SELECTOR_TERMS = "nodeSelectorTerms"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR_TERMS) private List nodeSelectorTerms = new ArrayList(); + public V1NodeSelector nodeSelectorTerms(List nodeSelectorTerms) { + this.nodeSelectorTerms = nodeSelectorTerms; return this; } @@ -50,10 +56,13 @@ public V1NodeSelector addNodeSelectorTermsItem(V1NodeSelectorTerm nodeSelectorTe * @return nodeSelectorTerms **/ @ApiModelProperty(required = true, value = "Required. A list of node selector terms. The terms are ORed.") + public List getNodeSelectorTerms() { return nodeSelectorTerms; } + + public void setNodeSelectorTerms(List nodeSelectorTerms) { this.nodeSelectorTerms = nodeSelectorTerms; } @@ -61,19 +70,12 @@ public void setNodeSelectorTerms(List nodeSelectorTerms) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeSelector v1NodeSelector = (V1NodeSelector) o; - return Objects.equals(this.nodeSelectorTerms, v1NodeSelector.nodeSelectorTerms); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nodeSelectorTerms); + return HashCodeBuilder.reflectionHashCode(this); } @@ -81,7 +83,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeSelector {\n"); - sb.append(" nodeSelectorTerms: ").append(toIndentedString(nodeSelectorTerms)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorRequirement.java index d839b8b13a..14ffae062e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorRequirement.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,18 +32,23 @@ * A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values. */ @ApiModel(description = "A node selector requirement is a selector that contains values, a key, and an operator that relates the key and values.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeSelectorRequirement { - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; - @SerializedName("operator") - private String operator = null; + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; - @SerializedName("values") + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) private List values = null; + public V1NodeSelectorRequirement key(String key) { + this.key = key; return this; } @@ -50,15 +58,20 @@ public V1NodeSelectorRequirement key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "The label key that the selector applies to.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1NodeSelectorRequirement operator(String operator) { + this.operator = operator; return this; } @@ -68,15 +81,20 @@ public V1NodeSelectorRequirement operator(String operator) { * @return operator **/ @ApiModelProperty(required = true, value = "Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt.") + public String getOperator() { return operator; } + + public void setOperator(String operator) { this.operator = operator; } + public V1NodeSelectorRequirement values(List values) { + this.values = values; return this; } @@ -93,11 +111,15 @@ public V1NodeSelectorRequirement addValuesItem(String valuesItem) { * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch. * @return values **/ + @javax.annotation.Nullable @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. If the operator is Gt or Lt, the values array must have a single element, which will be interpreted as an integer. This array is replaced during a strategic merge patch.") + public List getValues() { return values; } + + public void setValues(List values) { this.values = values; } @@ -105,21 +127,12 @@ public void setValues(List values) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeSelectorRequirement v1NodeSelectorRequirement = (V1NodeSelectorRequirement) o; - return Objects.equals(this.key, v1NodeSelectorRequirement.key) && - Objects.equals(this.operator, v1NodeSelectorRequirement.operator) && - Objects.equals(this.values, v1NodeSelectorRequirement.values); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(key, operator, values); + return HashCodeBuilder.reflectionHashCode(this); } @@ -127,7 +140,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeSelectorRequirement {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorTerm.java index 64c4d95b3d..1cb227598f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSelectorTerm.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. */ @ApiModel(description = "A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeSelectorTerm { - @SerializedName("matchExpressions") + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) private List matchExpressions = null; - @SerializedName("matchFields") + public static final String SERIALIZED_NAME_MATCH_FIELDS = "matchFields"; + @SerializedName(SERIALIZED_NAME_MATCH_FIELDS) private List matchFields = null; + public V1NodeSelectorTerm matchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -55,16 +62,22 @@ public V1NodeSelectorTerm addMatchExpressionsItem(V1NodeSelectorRequirement matc * A list of node selector requirements by node's labels. * @return matchExpressions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's labels.") + public List getMatchExpressions() { return matchExpressions; } + + public void setMatchExpressions(List matchExpressions) { this.matchExpressions = matchExpressions; } + public V1NodeSelectorTerm matchFields(List matchFields) { + this.matchFields = matchFields; return this; } @@ -81,11 +94,15 @@ public V1NodeSelectorTerm addMatchFieldsItem(V1NodeSelectorRequirement matchFiel * A list of node selector requirements by node's fields. * @return matchFields **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of node selector requirements by node's fields.") + public List getMatchFields() { return matchFields; } + + public void setMatchFields(List matchFields) { this.matchFields = matchFields; } @@ -93,20 +110,12 @@ public void setMatchFields(List matchFields) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeSelectorTerm v1NodeSelectorTerm = (V1NodeSelectorTerm) o; - return Objects.equals(this.matchExpressions, v1NodeSelectorTerm.matchExpressions) && - Objects.equals(this.matchFields, v1NodeSelectorTerm.matchFields); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(matchExpressions, matchFields); + return HashCodeBuilder.reflectionHashCode(this); } @@ -114,7 +123,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeSelectorTerm {\n"); - sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); sb.append(" matchFields: ").append(toIndentedString(matchFields)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSpec.java index 310cdad50e..0eede23c86 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,45 +34,59 @@ * NodeSpec describes the attributes that a node is created with. */ @ApiModel(description = "NodeSpec describes the attributes that a node is created with.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeSpec { - @SerializedName("configSource") - private V1NodeConfigSource configSource = null; + public static final String SERIALIZED_NAME_CONFIG_SOURCE = "configSource"; + @SerializedName(SERIALIZED_NAME_CONFIG_SOURCE) + private V1NodeConfigSource configSource; - @SerializedName("externalID") - private String externalID = null; + public static final String SERIALIZED_NAME_EXTERNAL_I_D = "externalID"; + @SerializedName(SERIALIZED_NAME_EXTERNAL_I_D) + private String externalID; - @SerializedName("podCIDR") - private String podCIDR = null; + public static final String SERIALIZED_NAME_POD_C_I_D_R = "podCIDR"; + @SerializedName(SERIALIZED_NAME_POD_C_I_D_R) + private String podCIDR; - @SerializedName("providerID") - private String providerID = null; + public static final String SERIALIZED_NAME_PROVIDER_I_D = "providerID"; + @SerializedName(SERIALIZED_NAME_PROVIDER_I_D) + private String providerID; - @SerializedName("taints") + public static final String SERIALIZED_NAME_TAINTS = "taints"; + @SerializedName(SERIALIZED_NAME_TAINTS) private List taints = null; - @SerializedName("unschedulable") - private Boolean unschedulable = null; + public static final String SERIALIZED_NAME_UNSCHEDULABLE = "unschedulable"; + @SerializedName(SERIALIZED_NAME_UNSCHEDULABLE) + private Boolean unschedulable; + public V1NodeSpec configSource(V1NodeConfigSource configSource) { + this.configSource = configSource; return this; } /** - * If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field + * Get configSource * @return configSource **/ - @ApiModelProperty(value = "If specified, the source to get node configuration from The DynamicKubeletConfig feature gate must be enabled for the Kubelet to use this field") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeConfigSource getConfigSource() { return configSource; } + + public void setConfigSource(V1NodeConfigSource configSource) { this.configSource = configSource; } + public V1NodeSpec externalID(String externalID) { + this.externalID = externalID; return this; } @@ -78,16 +95,22 @@ public V1NodeSpec externalID(String externalID) { * Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966 * @return externalID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Deprecated. Not all kubelets will set this field. Remove field after 1.13. see: https://issues.k8s.io/61966") + public String getExternalID() { return externalID; } + + public void setExternalID(String externalID) { this.externalID = externalID; } + public V1NodeSpec podCIDR(String podCIDR) { + this.podCIDR = podCIDR; return this; } @@ -96,16 +119,22 @@ public V1NodeSpec podCIDR(String podCIDR) { * PodCIDR represents the pod IP range assigned to the node. * @return podCIDR **/ + @javax.annotation.Nullable @ApiModelProperty(value = "PodCIDR represents the pod IP range assigned to the node.") + public String getPodCIDR() { return podCIDR; } + + public void setPodCIDR(String podCIDR) { this.podCIDR = podCIDR; } + public V1NodeSpec providerID(String providerID) { + this.providerID = providerID; return this; } @@ -114,16 +143,22 @@ public V1NodeSpec providerID(String providerID) { * ID of the node assigned by the cloud provider in the format: <ProviderName>://<ProviderSpecificNodeID> * @return providerID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ID of the node assigned by the cloud provider in the format: ://") + public String getProviderID() { return providerID; } + + public void setProviderID(String providerID) { this.providerID = providerID; } + public V1NodeSpec taints(List taints) { + this.taints = taints; return this; } @@ -140,16 +175,22 @@ public V1NodeSpec addTaintsItem(V1Taint taintsItem) { * If specified, the node's taints. * @return taints **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, the node's taints.") + public List getTaints() { return taints; } + + public void setTaints(List taints) { this.taints = taints; } + public V1NodeSpec unschedulable(Boolean unschedulable) { + this.unschedulable = unschedulable; return this; } @@ -158,11 +199,15 @@ public V1NodeSpec unschedulable(Boolean unschedulable) { * Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration * @return unschedulable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Unschedulable controls node schedulability of new pods. By default, node is schedulable. More info: https://kubernetes.io/docs/concepts/nodes/node/#manual-node-administration") - public Boolean isUnschedulable() { + + public Boolean getUnschedulable() { return unschedulable; } + + public void setUnschedulable(Boolean unschedulable) { this.unschedulable = unschedulable; } @@ -170,24 +215,12 @@ public void setUnschedulable(Boolean unschedulable) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeSpec v1NodeSpec = (V1NodeSpec) o; - return Objects.equals(this.configSource, v1NodeSpec.configSource) && - Objects.equals(this.externalID, v1NodeSpec.externalID) && - Objects.equals(this.podCIDR, v1NodeSpec.podCIDR) && - Objects.equals(this.providerID, v1NodeSpec.providerID) && - Objects.equals(this.taints, v1NodeSpec.taints) && - Objects.equals(this.unschedulable, v1NodeSpec.unschedulable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(configSource, externalID, podCIDR, providerID, taints, unschedulable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -195,7 +228,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeSpec {\n"); - sb.append(" configSource: ").append(toIndentedString(configSource)).append("\n"); sb.append(" externalID: ").append(toIndentedString(externalID)).append("\n"); sb.append(" podCIDR: ").append(toIndentedString(podCIDR)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeStatus.java index 94783cbe93..d0940982dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -39,42 +42,55 @@ * NodeStatus is information about the current status of a node. */ @ApiModel(description = "NodeStatus is information about the current status of a node.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeStatus { - @SerializedName("addresses") + public static final String SERIALIZED_NAME_ADDRESSES = "addresses"; + @SerializedName(SERIALIZED_NAME_ADDRESSES) private List addresses = null; - @SerializedName("allocatable") + public static final String SERIALIZED_NAME_ALLOCATABLE = "allocatable"; + @SerializedName(SERIALIZED_NAME_ALLOCATABLE) private Map allocatable = null; - @SerializedName("capacity") + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) private Map capacity = null; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("config") - private V1NodeConfigStatus config = null; + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private V1NodeConfigStatus config; - @SerializedName("daemonEndpoints") - private V1NodeDaemonEndpoints daemonEndpoints = null; + public static final String SERIALIZED_NAME_DAEMON_ENDPOINTS = "daemonEndpoints"; + @SerializedName(SERIALIZED_NAME_DAEMON_ENDPOINTS) + private V1NodeDaemonEndpoints daemonEndpoints; - @SerializedName("images") + public static final String SERIALIZED_NAME_IMAGES = "images"; + @SerializedName(SERIALIZED_NAME_IMAGES) private List images = null; - @SerializedName("nodeInfo") - private V1NodeSystemInfo nodeInfo = null; + public static final String SERIALIZED_NAME_NODE_INFO = "nodeInfo"; + @SerializedName(SERIALIZED_NAME_NODE_INFO) + private V1NodeSystemInfo nodeInfo; - @SerializedName("phase") - private String phase = null; + public static final String SERIALIZED_NAME_PHASE = "phase"; + @SerializedName(SERIALIZED_NAME_PHASE) + private String phase; - @SerializedName("volumesAttached") + public static final String SERIALIZED_NAME_VOLUMES_ATTACHED = "volumesAttached"; + @SerializedName(SERIALIZED_NAME_VOLUMES_ATTACHED) private List volumesAttached = null; - @SerializedName("volumesInUse") + public static final String SERIALIZED_NAME_VOLUMES_IN_USE = "volumesInUse"; + @SerializedName(SERIALIZED_NAME_VOLUMES_IN_USE) private List volumesInUse = null; + public V1NodeStatus addresses(List addresses) { + this.addresses = addresses; return this; } @@ -91,16 +107,22 @@ public V1NodeStatus addAddressesItem(V1NodeAddress addressesItem) { * List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses * @return addresses **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of addresses reachable to the node. Queried from cloud provider, if available. More info: https://kubernetes.io/docs/concepts/nodes/node/#addresses") + public List getAddresses() { return addresses; } + + public void setAddresses(List addresses) { this.addresses = addresses; } + public V1NodeStatus allocatable(Map allocatable) { + this.allocatable = allocatable; return this; } @@ -117,16 +139,22 @@ public V1NodeStatus putAllocatableItem(String key, Quantity allocatableItem) { * Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity. * @return allocatable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Allocatable represents the resources of a node that are available for scheduling. Defaults to Capacity.") + public Map getAllocatable() { return allocatable; } + + public void setAllocatable(Map allocatable) { this.allocatable = allocatable; } + public V1NodeStatus capacity(Map capacity) { + this.capacity = capacity; return this; } @@ -143,16 +171,22 @@ public V1NodeStatus putCapacityItem(String key, Quantity capacityItem) { * Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity * @return capacity **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Capacity represents the total resources of a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") + public Map getCapacity() { return capacity; } + + public void setCapacity(Map capacity) { this.capacity = capacity; } + public V1NodeStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -169,52 +203,70 @@ public V1NodeStatus addConditionsItem(V1NodeCondition conditionsItem) { * Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Conditions is an array of current observed node conditions. More info: https://kubernetes.io/docs/concepts/nodes/node/#condition") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1NodeStatus config(V1NodeConfigStatus config) { + this.config = config; return this; } /** - * Status of the config assigned to the node via the dynamic Kubelet config feature. + * Get config * @return config **/ - @ApiModelProperty(value = "Status of the config assigned to the node via the dynamic Kubelet config feature.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeConfigStatus getConfig() { return config; } + + public void setConfig(V1NodeConfigStatus config) { this.config = config; } + public V1NodeStatus daemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { + this.daemonEndpoints = daemonEndpoints; return this; } /** - * Endpoints of daemons running on the Node. + * Get daemonEndpoints * @return daemonEndpoints **/ - @ApiModelProperty(value = "Endpoints of daemons running on the Node.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeDaemonEndpoints getDaemonEndpoints() { return daemonEndpoints; } + + public void setDaemonEndpoints(V1NodeDaemonEndpoints daemonEndpoints) { this.daemonEndpoints = daemonEndpoints; } + public V1NodeStatus images(List images) { + this.images = images; return this; } @@ -231,34 +283,46 @@ public V1NodeStatus addImagesItem(V1ContainerImage imagesItem) { * List of container images on this node * @return images **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of container images on this node") + public List getImages() { return images; } + + public void setImages(List images) { this.images = images; } + public V1NodeStatus nodeInfo(V1NodeSystemInfo nodeInfo) { + this.nodeInfo = nodeInfo; return this; } /** - * Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info + * Get nodeInfo * @return nodeInfo **/ - @ApiModelProperty(value = "Set of ids/uuids to uniquely identify the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#info") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSystemInfo getNodeInfo() { return nodeInfo; } + + public void setNodeInfo(V1NodeSystemInfo nodeInfo) { this.nodeInfo = nodeInfo; } + public V1NodeStatus phase(String phase) { + this.phase = phase; return this; } @@ -267,16 +331,22 @@ public V1NodeStatus phase(String phase) { * NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated. * @return phase **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NodePhase is the recently observed lifecycle phase of the node. More info: https://kubernetes.io/docs/concepts/nodes/node/#phase The field is never populated, and now is deprecated.") + public String getPhase() { return phase; } + + public void setPhase(String phase) { this.phase = phase; } + public V1NodeStatus volumesAttached(List volumesAttached) { + this.volumesAttached = volumesAttached; return this; } @@ -293,16 +363,22 @@ public V1NodeStatus addVolumesAttachedItem(V1AttachedVolume volumesAttachedItem) * List of volumes that are attached to the node. * @return volumesAttached **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of volumes that are attached to the node.") + public List getVolumesAttached() { return volumesAttached; } + + public void setVolumesAttached(List volumesAttached) { this.volumesAttached = volumesAttached; } + public V1NodeStatus volumesInUse(List volumesInUse) { + this.volumesInUse = volumesInUse; return this; } @@ -319,11 +395,15 @@ public V1NodeStatus addVolumesInUseItem(String volumesInUseItem) { * List of attachable volumes in use (mounted) by the node. * @return volumesInUse **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of attachable volumes in use (mounted) by the node.") + public List getVolumesInUse() { return volumesInUse; } + + public void setVolumesInUse(List volumesInUse) { this.volumesInUse = volumesInUse; } @@ -331,29 +411,12 @@ public void setVolumesInUse(List volumesInUse) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeStatus v1NodeStatus = (V1NodeStatus) o; - return Objects.equals(this.addresses, v1NodeStatus.addresses) && - Objects.equals(this.allocatable, v1NodeStatus.allocatable) && - Objects.equals(this.capacity, v1NodeStatus.capacity) && - Objects.equals(this.conditions, v1NodeStatus.conditions) && - Objects.equals(this.config, v1NodeStatus.config) && - Objects.equals(this.daemonEndpoints, v1NodeStatus.daemonEndpoints) && - Objects.equals(this.images, v1NodeStatus.images) && - Objects.equals(this.nodeInfo, v1NodeStatus.nodeInfo) && - Objects.equals(this.phase, v1NodeStatus.phase) && - Objects.equals(this.volumesAttached, v1NodeStatus.volumesAttached) && - Objects.equals(this.volumesInUse, v1NodeStatus.volumesInUse); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(addresses, allocatable, capacity, conditions, config, daemonEndpoints, images, nodeInfo, phase, volumesAttached, volumesInUse); + return HashCodeBuilder.reflectionHashCode(this); } @@ -361,7 +424,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeStatus {\n"); - sb.append(" addresses: ").append(toIndentedString(addresses)).append("\n"); sb.append(" allocatable: ").append(toIndentedString(allocatable)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSystemInfo.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSystemInfo.java index 41e8050136..4e78396af1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSystemInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NodeSystemInfo.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,39 +30,51 @@ * NodeSystemInfo is a set of ids/uuids to uniquely identify the node. */ @ApiModel(description = "NodeSystemInfo is a set of ids/uuids to uniquely identify the node.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NodeSystemInfo { - @SerializedName("architecture") - private String architecture = null; + public static final String SERIALIZED_NAME_ARCHITECTURE = "architecture"; + @SerializedName(SERIALIZED_NAME_ARCHITECTURE) + private String architecture; + + public static final String SERIALIZED_NAME_BOOT_I_D = "bootID"; + @SerializedName(SERIALIZED_NAME_BOOT_I_D) + private String bootID; - @SerializedName("bootID") - private String bootID = null; + public static final String SERIALIZED_NAME_CONTAINER_RUNTIME_VERSION = "containerRuntimeVersion"; + @SerializedName(SERIALIZED_NAME_CONTAINER_RUNTIME_VERSION) + private String containerRuntimeVersion; - @SerializedName("containerRuntimeVersion") - private String containerRuntimeVersion = null; + public static final String SERIALIZED_NAME_KERNEL_VERSION = "kernelVersion"; + @SerializedName(SERIALIZED_NAME_KERNEL_VERSION) + private String kernelVersion; - @SerializedName("kernelVersion") - private String kernelVersion = null; + public static final String SERIALIZED_NAME_KUBE_PROXY_VERSION = "kubeProxyVersion"; + @SerializedName(SERIALIZED_NAME_KUBE_PROXY_VERSION) + private String kubeProxyVersion; - @SerializedName("kubeProxyVersion") - private String kubeProxyVersion = null; + public static final String SERIALIZED_NAME_KUBELET_VERSION = "kubeletVersion"; + @SerializedName(SERIALIZED_NAME_KUBELET_VERSION) + private String kubeletVersion; - @SerializedName("kubeletVersion") - private String kubeletVersion = null; + public static final String SERIALIZED_NAME_MACHINE_I_D = "machineID"; + @SerializedName(SERIALIZED_NAME_MACHINE_I_D) + private String machineID; - @SerializedName("machineID") - private String machineID = null; + public static final String SERIALIZED_NAME_OPERATING_SYSTEM = "operatingSystem"; + @SerializedName(SERIALIZED_NAME_OPERATING_SYSTEM) + private String operatingSystem; - @SerializedName("operatingSystem") - private String operatingSystem = null; + public static final String SERIALIZED_NAME_OS_IMAGE = "osImage"; + @SerializedName(SERIALIZED_NAME_OS_IMAGE) + private String osImage; - @SerializedName("osImage") - private String osImage = null; + public static final String SERIALIZED_NAME_SYSTEM_U_U_I_D = "systemUUID"; + @SerializedName(SERIALIZED_NAME_SYSTEM_U_U_I_D) + private String systemUUID; - @SerializedName("systemUUID") - private String systemUUID = null; public V1NodeSystemInfo architecture(String architecture) { + this.architecture = architecture; return this; } @@ -69,15 +84,20 @@ public V1NodeSystemInfo architecture(String architecture) { * @return architecture **/ @ApiModelProperty(required = true, value = "The Architecture reported by the node") + public String getArchitecture() { return architecture; } + + public void setArchitecture(String architecture) { this.architecture = architecture; } + public V1NodeSystemInfo bootID(String bootID) { + this.bootID = bootID; return this; } @@ -87,15 +107,20 @@ public V1NodeSystemInfo bootID(String bootID) { * @return bootID **/ @ApiModelProperty(required = true, value = "Boot ID reported by the node.") + public String getBootID() { return bootID; } + + public void setBootID(String bootID) { this.bootID = bootID; } + public V1NodeSystemInfo containerRuntimeVersion(String containerRuntimeVersion) { + this.containerRuntimeVersion = containerRuntimeVersion; return this; } @@ -105,15 +130,20 @@ public V1NodeSystemInfo containerRuntimeVersion(String containerRuntimeVersion) * @return containerRuntimeVersion **/ @ApiModelProperty(required = true, value = "ContainerRuntime Version reported by the node through runtime remote API (e.g. docker://1.5.0).") + public String getContainerRuntimeVersion() { return containerRuntimeVersion; } + + public void setContainerRuntimeVersion(String containerRuntimeVersion) { this.containerRuntimeVersion = containerRuntimeVersion; } + public V1NodeSystemInfo kernelVersion(String kernelVersion) { + this.kernelVersion = kernelVersion; return this; } @@ -123,15 +153,20 @@ public V1NodeSystemInfo kernelVersion(String kernelVersion) { * @return kernelVersion **/ @ApiModelProperty(required = true, value = "Kernel Version reported by the node from 'uname -r' (e.g. 3.16.0-0.bpo.4-amd64).") + public String getKernelVersion() { return kernelVersion; } + + public void setKernelVersion(String kernelVersion) { this.kernelVersion = kernelVersion; } + public V1NodeSystemInfo kubeProxyVersion(String kubeProxyVersion) { + this.kubeProxyVersion = kubeProxyVersion; return this; } @@ -141,15 +176,20 @@ public V1NodeSystemInfo kubeProxyVersion(String kubeProxyVersion) { * @return kubeProxyVersion **/ @ApiModelProperty(required = true, value = "KubeProxy Version reported by the node.") + public String getKubeProxyVersion() { return kubeProxyVersion; } + + public void setKubeProxyVersion(String kubeProxyVersion) { this.kubeProxyVersion = kubeProxyVersion; } + public V1NodeSystemInfo kubeletVersion(String kubeletVersion) { + this.kubeletVersion = kubeletVersion; return this; } @@ -159,15 +199,20 @@ public V1NodeSystemInfo kubeletVersion(String kubeletVersion) { * @return kubeletVersion **/ @ApiModelProperty(required = true, value = "Kubelet Version reported by the node.") + public String getKubeletVersion() { return kubeletVersion; } + + public void setKubeletVersion(String kubeletVersion) { this.kubeletVersion = kubeletVersion; } + public V1NodeSystemInfo machineID(String machineID) { + this.machineID = machineID; return this; } @@ -177,15 +222,20 @@ public V1NodeSystemInfo machineID(String machineID) { * @return machineID **/ @ApiModelProperty(required = true, value = "MachineID reported by the node. For unique machine identification in the cluster this field is preferred. Learn more from man(5) machine-id: http://man7.org/linux/man-pages/man5/machine-id.5.html") + public String getMachineID() { return machineID; } + + public void setMachineID(String machineID) { this.machineID = machineID; } + public V1NodeSystemInfo operatingSystem(String operatingSystem) { + this.operatingSystem = operatingSystem; return this; } @@ -195,15 +245,20 @@ public V1NodeSystemInfo operatingSystem(String operatingSystem) { * @return operatingSystem **/ @ApiModelProperty(required = true, value = "The Operating System reported by the node") + public String getOperatingSystem() { return operatingSystem; } + + public void setOperatingSystem(String operatingSystem) { this.operatingSystem = operatingSystem; } + public V1NodeSystemInfo osImage(String osImage) { + this.osImage = osImage; return this; } @@ -213,15 +268,20 @@ public V1NodeSystemInfo osImage(String osImage) { * @return osImage **/ @ApiModelProperty(required = true, value = "OS Image reported by the node from /etc/os-release (e.g. Debian GNU/Linux 7 (wheezy)).") + public String getOsImage() { return osImage; } + + public void setOsImage(String osImage) { this.osImage = osImage; } + public V1NodeSystemInfo systemUUID(String systemUUID) { + this.systemUUID = systemUUID; return this; } @@ -231,10 +291,13 @@ public V1NodeSystemInfo systemUUID(String systemUUID) { * @return systemUUID **/ @ApiModelProperty(required = true, value = "SystemUUID reported by the node. For unique machine identification MachineID is preferred. This field is specific to Red Hat hosts https://access.redhat.com/documentation/en-US/Red_Hat_Subscription_Management/1/html/RHSM/getting-system-uuid.html") + public String getSystemUUID() { return systemUUID; } + + public void setSystemUUID(String systemUUID) { this.systemUUID = systemUUID; } @@ -242,28 +305,12 @@ public void setSystemUUID(String systemUUID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NodeSystemInfo v1NodeSystemInfo = (V1NodeSystemInfo) o; - return Objects.equals(this.architecture, v1NodeSystemInfo.architecture) && - Objects.equals(this.bootID, v1NodeSystemInfo.bootID) && - Objects.equals(this.containerRuntimeVersion, v1NodeSystemInfo.containerRuntimeVersion) && - Objects.equals(this.kernelVersion, v1NodeSystemInfo.kernelVersion) && - Objects.equals(this.kubeProxyVersion, v1NodeSystemInfo.kubeProxyVersion) && - Objects.equals(this.kubeletVersion, v1NodeSystemInfo.kubeletVersion) && - Objects.equals(this.machineID, v1NodeSystemInfo.machineID) && - Objects.equals(this.operatingSystem, v1NodeSystemInfo.operatingSystem) && - Objects.equals(this.osImage, v1NodeSystemInfo.osImage) && - Objects.equals(this.systemUUID, v1NodeSystemInfo.systemUUID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(architecture, bootID, containerRuntimeVersion, kernelVersion, kubeProxyVersion, kubeletVersion, machineID, operatingSystem, osImage, systemUUID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -271,7 +318,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NodeSystemInfo {\n"); - sb.append(" architecture: ").append(toIndentedString(architecture)).append("\n"); sb.append(" bootID: ").append(toIndentedString(bootID)).append("\n"); sb.append(" containerRuntimeVersion: ").append(toIndentedString(containerRuntimeVersion)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceAttributes.java index 22b842ef26..347a78e646 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceAttributes.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NonResourceAttributes { - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_VERB = "verb"; + @SerializedName(SERIALIZED_NAME_VERB) + private String verb; - @SerializedName("verb") - private String verb = null; public V1NonResourceAttributes path(String path) { + this.path = path; return this; } @@ -44,16 +51,22 @@ public V1NonResourceAttributes path(String path) { * Path is the URL path of the request * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Path is the URL path of the request") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1NonResourceAttributes verb(String verb) { + this.verb = verb; return this; } @@ -62,11 +75,15 @@ public V1NonResourceAttributes verb(String verb) { * Verb is the standard HTTP verb * @return verb **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Verb is the standard HTTP verb") + public String getVerb() { return verb; } + + public void setVerb(String verb) { this.verb = verb; } @@ -74,20 +91,12 @@ public void setVerb(String verb) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NonResourceAttributes v1NonResourceAttributes = (V1NonResourceAttributes) o; - return Objects.equals(this.path, v1NonResourceAttributes.path) && - Objects.equals(this.verb, v1NonResourceAttributes.verb); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(path, verb); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NonResourceAttributes {\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" verb: ").append(toIndentedString(verb)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceRule.java index 40f5e1b770..424dcf596d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1NonResourceRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * NonResourceRule holds information that describes a rule for the non-resource */ @ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1NonResourceRule { - @SerializedName("nonResourceURLs") + public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) private List nonResourceURLs = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1NonResourceRule nonResourceURLs(List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -54,16 +61,22 @@ public V1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) { * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. * @return nonResourceURLs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") + public List getNonResourceURLs() { return nonResourceURLs; } + + public void setNonResourceURLs(List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } + public V1NonResourceRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -78,10 +91,13 @@ public V1NonResourceRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -89,20 +105,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1NonResourceRule v1NonResourceRule = (V1NonResourceRule) o; - return Objects.equals(this.nonResourceURLs, v1NonResourceRule.nonResourceURLs) && - Objects.equals(this.verbs, v1NonResourceRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nonResourceURLs, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -110,7 +118,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1NonResourceRule {\n"); - sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n"); sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectFieldSelector.java index 3de85c893d..4ba7608654 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectFieldSelector.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * ObjectFieldSelector selects an APIVersioned field of an object. */ @ApiModel(description = "ObjectFieldSelector selects an APIVersioned field of an object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ObjectFieldSelector { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; + @SerializedName(SERIALIZED_NAME_FIELD_PATH) + private String fieldPath; - @SerializedName("fieldPath") - private String fieldPath = null; public V1ObjectFieldSelector apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -44,16 +51,22 @@ public V1ObjectFieldSelector apiVersion(String apiVersion) { * Version of the schema the FieldPath is written in terms of, defaults to \"v1\". * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Version of the schema the FieldPath is written in terms of, defaults to \"v1\".") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ObjectFieldSelector fieldPath(String fieldPath) { + this.fieldPath = fieldPath; return this; } @@ -63,10 +76,13 @@ public V1ObjectFieldSelector fieldPath(String fieldPath) { * @return fieldPath **/ @ApiModelProperty(required = true, value = "Path of the field to select in the specified API version.") + public String getFieldPath() { return fieldPath; } + + public void setFieldPath(String fieldPath) { this.fieldPath = fieldPath; } @@ -74,20 +90,12 @@ public void setFieldPath(String fieldPath) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ObjectFieldSelector v1ObjectFieldSelector = (V1ObjectFieldSelector) o; - return Objects.equals(this.apiVersion, v1ObjectFieldSelector.apiVersion) && - Objects.equals(this.fieldPath, v1ObjectFieldSelector.fieldPath); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, fieldPath); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ObjectFieldSelector {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectMeta.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectMeta.java index b3fbac7aad..746a09cad0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectMeta.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectMeta.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -35,60 +38,79 @@ * ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. */ @ApiModel(description = "ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ObjectMeta { - @SerializedName("annotations") + public static final String SERIALIZED_NAME_ANNOTATIONS = "annotations"; + @SerializedName(SERIALIZED_NAME_ANNOTATIONS) private Map annotations = null; - @SerializedName("clusterName") - private String clusterName = null; + public static final String SERIALIZED_NAME_CLUSTER_NAME = "clusterName"; + @SerializedName(SERIALIZED_NAME_CLUSTER_NAME) + private String clusterName; - @SerializedName("creationTimestamp") - private DateTime creationTimestamp = null; + public static final String SERIALIZED_NAME_CREATION_TIMESTAMP = "creationTimestamp"; + @SerializedName(SERIALIZED_NAME_CREATION_TIMESTAMP) + private DateTime creationTimestamp; - @SerializedName("deletionGracePeriodSeconds") - private Long deletionGracePeriodSeconds = null; + public static final String SERIALIZED_NAME_DELETION_GRACE_PERIOD_SECONDS = "deletionGracePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_DELETION_GRACE_PERIOD_SECONDS) + private Long deletionGracePeriodSeconds; - @SerializedName("deletionTimestamp") - private DateTime deletionTimestamp = null; + public static final String SERIALIZED_NAME_DELETION_TIMESTAMP = "deletionTimestamp"; + @SerializedName(SERIALIZED_NAME_DELETION_TIMESTAMP) + private DateTime deletionTimestamp; - @SerializedName("finalizers") + public static final String SERIALIZED_NAME_FINALIZERS = "finalizers"; + @SerializedName(SERIALIZED_NAME_FINALIZERS) private List finalizers = null; - @SerializedName("generateName") - private String generateName = null; + public static final String SERIALIZED_NAME_GENERATE_NAME = "generateName"; + @SerializedName(SERIALIZED_NAME_GENERATE_NAME) + private String generateName; - @SerializedName("generation") - private Long generation = null; + public static final String SERIALIZED_NAME_GENERATION = "generation"; + @SerializedName(SERIALIZED_NAME_GENERATION) + private Long generation; - @SerializedName("initializers") - private V1Initializers initializers = null; + public static final String SERIALIZED_NAME_INITIALIZERS = "initializers"; + @SerializedName(SERIALIZED_NAME_INITIALIZERS) + private V1Initializers initializers; - @SerializedName("labels") + public static final String SERIALIZED_NAME_LABELS = "labels"; + @SerializedName(SERIALIZED_NAME_LABELS) private Map labels = null; - @SerializedName("managedFields") + public static final String SERIALIZED_NAME_MANAGED_FIELDS = "managedFields"; + @SerializedName(SERIALIZED_NAME_MANAGED_FIELDS) private List managedFields = null; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("ownerReferences") + public static final String SERIALIZED_NAME_OWNER_REFERENCES = "ownerReferences"; + @SerializedName(SERIALIZED_NAME_OWNER_REFERENCES) private List ownerReferences = null; - @SerializedName("resourceVersion") - private String resourceVersion = null; + public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; + @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + private String resourceVersion; + + public static final String SERIALIZED_NAME_SELF_LINK = "selfLink"; + @SerializedName(SERIALIZED_NAME_SELF_LINK) + private String selfLink; - @SerializedName("selfLink") - private String selfLink = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; public V1ObjectMeta annotations(Map annotations) { + this.annotations = annotations; return this; } @@ -105,16 +127,22 @@ public V1ObjectMeta putAnnotationsItem(String key, String annotationsItem) { * Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations * @return annotations **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations") + public Map getAnnotations() { return annotations; } + + public void setAnnotations(Map annotations) { this.annotations = annotations; } + public V1ObjectMeta clusterName(String clusterName) { + this.clusterName = clusterName; return this; } @@ -123,16 +151,22 @@ public V1ObjectMeta clusterName(String clusterName) { * The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. * @return clusterName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request.") + public String getClusterName() { return clusterName; } + + public void setClusterName(String clusterName) { this.clusterName = clusterName; } + public V1ObjectMeta creationTimestamp(DateTime creationTimestamp) { + this.creationTimestamp = creationTimestamp; return this; } @@ -141,16 +175,22 @@ public V1ObjectMeta creationTimestamp(DateTime creationTimestamp) { * CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata * @return creationTimestamp **/ + @javax.annotation.Nullable @ApiModelProperty(value = "CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + public DateTime getCreationTimestamp() { return creationTimestamp; } + + public void setCreationTimestamp(DateTime creationTimestamp) { this.creationTimestamp = creationTimestamp; } + public V1ObjectMeta deletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { + this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; return this; } @@ -159,16 +199,22 @@ public V1ObjectMeta deletionGracePeriodSeconds(Long deletionGracePeriodSeconds) * Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. * @return deletionGracePeriodSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only.") + public Long getDeletionGracePeriodSeconds() { return deletionGracePeriodSeconds; } + + public void setDeletionGracePeriodSeconds(Long deletionGracePeriodSeconds) { this.deletionGracePeriodSeconds = deletionGracePeriodSeconds; } + public V1ObjectMeta deletionTimestamp(DateTime deletionTimestamp) { + this.deletionTimestamp = deletionTimestamp; return this; } @@ -177,16 +223,22 @@ public V1ObjectMeta deletionTimestamp(DateTime deletionTimestamp) { * DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata * @return deletionTimestamp **/ + @javax.annotation.Nullable @ApiModelProperty(value = "DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + public DateTime getDeletionTimestamp() { return deletionTimestamp; } + + public void setDeletionTimestamp(DateTime deletionTimestamp) { this.deletionTimestamp = deletionTimestamp; } + public V1ObjectMeta finalizers(List finalizers) { + this.finalizers = finalizers; return this; } @@ -203,16 +255,22 @@ public V1ObjectMeta addFinalizersItem(String finalizersItem) { * Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. * @return finalizers **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed.") + public List getFinalizers() { return finalizers; } + + public void setFinalizers(List finalizers) { this.finalizers = finalizers; } + public V1ObjectMeta generateName(String generateName) { + this.generateName = generateName; return this; } @@ -221,16 +279,22 @@ public V1ObjectMeta generateName(String generateName) { * GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency * @return generateName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#idempotency") + public String getGenerateName() { return generateName; } + + public void setGenerateName(String generateName) { this.generateName = generateName; } + public V1ObjectMeta generation(Long generation) { + this.generation = generation; return this; } @@ -239,34 +303,46 @@ public V1ObjectMeta generation(Long generation) { * A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. * @return generation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A sequence number representing a specific generation of the desired state. Populated by the system. Read-only.") + public Long getGeneration() { return generation; } + + public void setGeneration(Long generation) { this.generation = generation; } + public V1ObjectMeta initializers(V1Initializers initializers) { + this.initializers = initializers; return this; } /** - * An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. DEPRECATED - initializers are an alpha field and will be removed in v1.15. + * Get initializers * @return initializers **/ - @ApiModelProperty(value = "An initializer is a controller which enforces some system invariant at object creation time. This field is a list of initializers that have not yet acted on this object. If nil or empty, this object has been completely initialized. Otherwise, the object is considered uninitialized and is hidden (in list/watch and get calls) from clients that haven't explicitly asked to observe uninitialized objects. When an object is created, the system will populate this list with the current set of initializers. Only privileged users may set or modify this list. Once it is empty, it may not be modified further by any user. DEPRECATED - initializers are an alpha field and will be removed in v1.15.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Initializers getInitializers() { return initializers; } + + public void setInitializers(V1Initializers initializers) { this.initializers = initializers; } + public V1ObjectMeta labels(Map labels) { + this.labels = labels; return this; } @@ -283,16 +359,22 @@ public V1ObjectMeta putLabelsItem(String key, String labelsItem) { * Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels * @return labels **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels") + public Map getLabels() { return labels; } + + public void setLabels(Map labels) { this.labels = labels; } + public V1ObjectMeta managedFields(List managedFields) { + this.managedFields = managedFields; return this; } @@ -309,16 +391,22 @@ public V1ObjectMeta addManagedFieldsItem(V1ManagedFieldsEntry managedFieldsItem) * ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice. * @return managedFields **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. This field is alpha and can be changed or removed without notice.") + public List getManagedFields() { return managedFields; } + + public void setManagedFields(List managedFields) { this.managedFields = managedFields; } + public V1ObjectMeta name(String name) { + this.name = name; return this; } @@ -327,16 +415,22 @@ public V1ObjectMeta name(String name) { * Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ObjectMeta namespace(String namespace) { + this.namespace = namespace; return this; } @@ -345,16 +439,22 @@ public V1ObjectMeta namespace(String namespace) { * Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace defines the space within each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1ObjectMeta ownerReferences(List ownerReferences) { + this.ownerReferences = ownerReferences; return this; } @@ -371,16 +471,22 @@ public V1ObjectMeta addOwnerReferencesItem(V1OwnerReference ownerReferencesItem) * List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. * @return ownerReferences **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller.") + public List getOwnerReferences() { return ownerReferences; } + + public void setOwnerReferences(List ownerReferences) { this.ownerReferences = ownerReferences; } + public V1ObjectMeta resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @@ -389,16 +495,22 @@ public V1ObjectMeta resourceVersion(String resourceVersion) { * An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency * @return resourceVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency") + public String getResourceVersion() { return resourceVersion; } + + public void setResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; } + public V1ObjectMeta selfLink(String selfLink) { + this.selfLink = selfLink; return this; } @@ -407,16 +519,22 @@ public V1ObjectMeta selfLink(String selfLink) { * SelfLink is a URL representing this object. Populated by the system. Read-only. * @return selfLink **/ + @javax.annotation.Nullable @ApiModelProperty(value = "SelfLink is a URL representing this object. Populated by the system. Read-only.") + public String getSelfLink() { return selfLink; } + + public void setSelfLink(String selfLink) { this.selfLink = selfLink; } + public V1ObjectMeta uid(String uid) { + this.uid = uid; return this; } @@ -425,11 +543,15 @@ public V1ObjectMeta uid(String uid) { * UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations. Populated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } @@ -437,35 +559,12 @@ public void setUid(String uid) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ObjectMeta v1ObjectMeta = (V1ObjectMeta) o; - return Objects.equals(this.annotations, v1ObjectMeta.annotations) && - Objects.equals(this.clusterName, v1ObjectMeta.clusterName) && - Objects.equals(this.creationTimestamp, v1ObjectMeta.creationTimestamp) && - Objects.equals(this.deletionGracePeriodSeconds, v1ObjectMeta.deletionGracePeriodSeconds) && - Objects.equals(this.deletionTimestamp, v1ObjectMeta.deletionTimestamp) && - Objects.equals(this.finalizers, v1ObjectMeta.finalizers) && - Objects.equals(this.generateName, v1ObjectMeta.generateName) && - Objects.equals(this.generation, v1ObjectMeta.generation) && - Objects.equals(this.initializers, v1ObjectMeta.initializers) && - Objects.equals(this.labels, v1ObjectMeta.labels) && - Objects.equals(this.managedFields, v1ObjectMeta.managedFields) && - Objects.equals(this.name, v1ObjectMeta.name) && - Objects.equals(this.namespace, v1ObjectMeta.namespace) && - Objects.equals(this.ownerReferences, v1ObjectMeta.ownerReferences) && - Objects.equals(this.resourceVersion, v1ObjectMeta.resourceVersion) && - Objects.equals(this.selfLink, v1ObjectMeta.selfLink) && - Objects.equals(this.uid, v1ObjectMeta.uid); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(annotations, clusterName, creationTimestamp, deletionGracePeriodSeconds, deletionTimestamp, finalizers, generateName, generation, initializers, labels, managedFields, name, namespace, ownerReferences, resourceVersion, selfLink, uid); + return HashCodeBuilder.reflectionHashCode(this); } @@ -473,7 +572,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ObjectMeta {\n"); - sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); sb.append(" clusterName: ").append(toIndentedString(clusterName)).append("\n"); sb.append(" creationTimestamp: ").append(toIndentedString(creationTimestamp)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectReference.java index d34630a2d8..fd3e2bb480 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ObjectReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,30 +30,39 @@ * ObjectReference contains enough information to let you inspect or modify the referred object. */ @ApiModel(description = "ObjectReference contains enough information to let you inspect or modify the referred object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ObjectReference { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_FIELD_PATH = "fieldPath"; + @SerializedName(SERIALIZED_NAME_FIELD_PATH) + private String fieldPath; - @SerializedName("fieldPath") - private String fieldPath = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; + @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + private String resourceVersion; - @SerializedName("resourceVersion") - private String resourceVersion = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; public V1ObjectReference apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -59,16 +71,22 @@ public V1ObjectReference apiVersion(String apiVersion) { * API version of the referent. * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "API version of the referent.") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ObjectReference fieldPath(String fieldPath) { + this.fieldPath = fieldPath; return this; } @@ -77,16 +95,22 @@ public V1ObjectReference fieldPath(String fieldPath) { * If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object. * @return fieldPath **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If referring to a piece of an object instead of an entire object, this string should contain a valid JSON/Go field access statement, such as desiredState.manifest.containers[2]. For example, if the object reference is to a container within a pod, this would take on a value like: \"spec.containers{name}\" (where \"name\" refers to the name of the container that triggered the event) or if no container name is specified \"spec.containers[2]\" (container with index 2 in this pod). This syntax is chosen only to have some well-defined way of referencing a part of an object.") + public String getFieldPath() { return fieldPath; } + + public void setFieldPath(String fieldPath) { this.fieldPath = fieldPath; } + public V1ObjectReference kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +119,22 @@ public V1ObjectReference kind(String kind) { * Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ObjectReference name(String name) { + this.name = name; return this; } @@ -113,16 +143,22 @@ public V1ObjectReference name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ObjectReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -131,16 +167,22 @@ public V1ObjectReference namespace(String namespace) { * Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/ * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1ObjectReference resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @@ -149,16 +191,22 @@ public V1ObjectReference resourceVersion(String resourceVersion) { * Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency * @return resourceVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specific resourceVersion to which this reference is made, if any. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency") + public String getResourceVersion() { return resourceVersion; } + + public void setResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; } + public V1ObjectReference uid(String uid) { + this.uid = uid; return this; } @@ -167,11 +215,15 @@ public V1ObjectReference uid(String uid) { * UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#uids") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } @@ -179,25 +231,12 @@ public void setUid(String uid) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ObjectReference v1ObjectReference = (V1ObjectReference) o; - return Objects.equals(this.apiVersion, v1ObjectReference.apiVersion) && - Objects.equals(this.fieldPath, v1ObjectReference.fieldPath) && - Objects.equals(this.kind, v1ObjectReference.kind) && - Objects.equals(this.name, v1ObjectReference.name) && - Objects.equals(this.namespace, v1ObjectReference.namespace) && - Objects.equals(this.resourceVersion, v1ObjectReference.resourceVersion) && - Objects.equals(this.uid, v1ObjectReference.uid); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, fieldPath, kind, name, namespace, resourceVersion, uid); + return HashCodeBuilder.reflectionHashCode(this); } @@ -205,7 +244,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ObjectReference {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" fieldPath: ").append(toIndentedString(fieldPath)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1OwnerReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1OwnerReference.java index 32a7b8f320..4fd26d16f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1OwnerReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1OwnerReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,27 +30,35 @@ * OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. */ @ApiModel(description = "OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1OwnerReference { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_BLOCK_OWNER_DELETION = "blockOwnerDeletion"; + @SerializedName(SERIALIZED_NAME_BLOCK_OWNER_DELETION) + private Boolean blockOwnerDeletion; - @SerializedName("blockOwnerDeletion") - private Boolean blockOwnerDeletion = null; + public static final String SERIALIZED_NAME_CONTROLLER = "controller"; + @SerializedName(SERIALIZED_NAME_CONTROLLER) + private Boolean controller; - @SerializedName("controller") - private Boolean controller = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; public V1OwnerReference apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,15 +68,20 @@ public V1OwnerReference apiVersion(String apiVersion) { * @return apiVersion **/ @ApiModelProperty(required = true, value = "API version of the referent.") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1OwnerReference blockOwnerDeletion(Boolean blockOwnerDeletion) { + this.blockOwnerDeletion = blockOwnerDeletion; return this; } @@ -74,16 +90,22 @@ public V1OwnerReference blockOwnerDeletion(Boolean blockOwnerDeletion) { * If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. * @return blockOwnerDeletion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned.") - public Boolean isBlockOwnerDeletion() { + + public Boolean getBlockOwnerDeletion() { return blockOwnerDeletion; } + + public void setBlockOwnerDeletion(Boolean blockOwnerDeletion) { this.blockOwnerDeletion = blockOwnerDeletion; } + public V1OwnerReference controller(Boolean controller) { + this.controller = controller; return this; } @@ -92,16 +114,22 @@ public V1OwnerReference controller(Boolean controller) { * If true, this reference points to the managing controller. * @return controller **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If true, this reference points to the managing controller.") - public Boolean isController() { + + public Boolean getController() { return controller; } + + public void setController(Boolean controller) { this.controller = controller; } + public V1OwnerReference kind(String kind) { + this.kind = kind; return this; } @@ -111,15 +139,20 @@ public V1OwnerReference kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1OwnerReference name(String name) { + this.name = name; return this; } @@ -129,15 +162,20 @@ public V1OwnerReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1OwnerReference uid(String uid) { + this.uid = uid; return this; } @@ -147,10 +185,13 @@ public V1OwnerReference uid(String uid) { * @return uid **/ @ApiModelProperty(required = true, value = "UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } @@ -158,24 +199,12 @@ public void setUid(String uid) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1OwnerReference v1OwnerReference = (V1OwnerReference) o; - return Objects.equals(this.apiVersion, v1OwnerReference.apiVersion) && - Objects.equals(this.blockOwnerDeletion, v1OwnerReference.blockOwnerDeletion) && - Objects.equals(this.controller, v1OwnerReference.controller) && - Objects.equals(this.kind, v1OwnerReference.kind) && - Objects.equals(this.name, v1OwnerReference.name) && - Objects.equals(this.uid, v1OwnerReference.uid); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, blockOwnerDeletion, controller, kind, name, uid); + return HashCodeBuilder.reflectionHashCode(this); } @@ -183,7 +212,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1OwnerReference {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" blockOwnerDeletion: ").append(toIndentedString(blockOwnerDeletion)).append("\n"); sb.append(" controller: ").append(toIndentedString(controller)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Patch.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Patch.java deleted file mode 100644 index e8fe2d65bf..0000000000 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Patch.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) - * - * OpenAPI spec version: v1.14.2 - * - * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git - * Do not edit the class manually. - */ - - -package io.kubernetes.client.models; - -import java.util.Objects; -import io.swagger.annotations.ApiModel; - -/** - * Patch is provided to give a concrete name and type to the Kubernetes PATCH request body. - */ -@ApiModel(description = "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.") - -public class V1Patch { - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - return true; - } - - @Override - public int hashCode() { - return Objects.hash(); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class V1Patch {\n"); - - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(java.lang.Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolume.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolume.java index b5dbfd31b1..6766953b06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolume.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes */ @ApiModel(description = "PersistentVolume (PV) is a storage resource provisioned by an administrator. It is analogous to a node. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolume { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1PersistentVolumeSpec spec; - @SerializedName("spec") - private V1PersistentVolumeSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1PersistentVolumeStatus status; - @SerializedName("status") - private V1PersistentVolumeStatus status = null; public V1PersistentVolume apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1PersistentVolume apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PersistentVolume kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1PersistentVolume kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PersistentVolume metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1PersistentVolume spec(V1PersistentVolumeSpec spec) { + this.spec = spec; return this; } /** - * Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines a specification of a persistent volume owned by the cluster. Provisioned by an administrator. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PersistentVolumeSpec getSpec() { return spec; } + + public void setSpec(V1PersistentVolumeSpec spec) { this.spec = spec; } + public V1PersistentVolume status(V1PersistentVolumeStatus status) { + this.status = status; return this; } /** - * Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes + * Get status * @return status **/ - @ApiModelProperty(value = "Status represents the current information/status for the persistent volume. Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistent-volumes") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PersistentVolumeStatus getStatus() { return status; } + + public void setStatus(V1PersistentVolumeStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1PersistentVolumeStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolume v1PersistentVolume = (V1PersistentVolume) o; - return Objects.equals(this.apiVersion, v1PersistentVolume.apiVersion) && - Objects.equals(this.kind, v1PersistentVolume.kind) && - Objects.equals(this.metadata, v1PersistentVolume.metadata) && - Objects.equals(this.spec, v1PersistentVolume.spec) && - Objects.equals(this.status, v1PersistentVolume.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolume {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaim.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaim.java index 5b705fda08..ed32d476da 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaim.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaim.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * PersistentVolumeClaim is a user's request for and claim to a persistent volume */ @ApiModel(description = "PersistentVolumeClaim is a user's request for and claim to a persistent volume") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeClaim { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1PersistentVolumeClaimSpec spec; - @SerializedName("spec") - private V1PersistentVolumeClaimSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1PersistentVolumeClaimStatus status; - @SerializedName("status") - private V1PersistentVolumeClaimStatus status = null; public V1PersistentVolumeClaim apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1PersistentVolumeClaim apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PersistentVolumeClaim kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1PersistentVolumeClaim kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PersistentVolumeClaim metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1PersistentVolumeClaim spec(V1PersistentVolumeClaimSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the desired characteristics of a volume requested by a pod author. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PersistentVolumeClaimSpec getSpec() { return spec; } + + public void setSpec(V1PersistentVolumeClaimSpec spec) { this.spec = spec; } + public V1PersistentVolumeClaim status(V1PersistentVolumeClaimStatus status) { + this.status = status; return this; } /** - * Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * Get status * @return status **/ - @ApiModelProperty(value = "Status represents the current information/status of a persistent volume claim. Read-only. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PersistentVolumeClaimStatus getStatus() { return status; } + + public void setStatus(V1PersistentVolumeClaimStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1PersistentVolumeClaimStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeClaim v1PersistentVolumeClaim = (V1PersistentVolumeClaim) o; - return Objects.equals(this.apiVersion, v1PersistentVolumeClaim.apiVersion) && - Objects.equals(this.kind, v1PersistentVolumeClaim.kind) && - Objects.equals(this.metadata, v1PersistentVolumeClaim.metadata) && - Objects.equals(this.spec, v1PersistentVolumeClaim.spec) && - Objects.equals(this.status, v1PersistentVolumeClaim.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeClaim {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimCondition.java index 29c4b0969f..bcda4db4ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * PersistentVolumeClaimCondition contails details about state of pvc */ @ApiModel(description = "PersistentVolumeClaimCondition contails details about state of pvc") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeClaimCondition { - @SerializedName("lastProbeTime") - private DateTime lastProbeTime = null; + public static final String SERIALIZED_NAME_LAST_PROBE_TIME = "lastProbeTime"; + @SerializedName(SERIALIZED_NAME_LAST_PROBE_TIME) + private DateTime lastProbeTime; + + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1PersistentVolumeClaimCondition lastProbeTime(DateTime lastProbeTime) { + this.lastProbeTime = lastProbeTime; return this; } @@ -57,16 +68,22 @@ public V1PersistentVolumeClaimCondition lastProbeTime(DateTime lastProbeTime) { * Last time we probed the condition. * @return lastProbeTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time we probed the condition.") + public DateTime getLastProbeTime() { return lastProbeTime; } + + public void setLastProbeTime(DateTime lastProbeTime) { this.lastProbeTime = lastProbeTime; } + public V1PersistentVolumeClaimCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -75,16 +92,22 @@ public V1PersistentVolumeClaimCondition lastTransitionTime(DateTime lastTransiti * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1PersistentVolumeClaimCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public V1PersistentVolumeClaimCondition message(String message) { * Human-readable message indicating details about last transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1PersistentVolumeClaimCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public V1PersistentVolumeClaimCondition reason(String reason) { * Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Unique, this should be a short, machine understandable string that gives the reason for condition's last transition. If it reports \"ResizeStarted\" that means the underlying persistent volume is being resized.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1PersistentVolumeClaimCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public V1PersistentVolumeClaimCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1PersistentVolumeClaimCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public V1PersistentVolumeClaimCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeClaimCondition v1PersistentVolumeClaimCondition = (V1PersistentVolumeClaimCondition) o; - return Objects.equals(this.lastProbeTime, v1PersistentVolumeClaimCondition.lastProbeTime) && - Objects.equals(this.lastTransitionTime, v1PersistentVolumeClaimCondition.lastTransitionTime) && - Objects.equals(this.message, v1PersistentVolumeClaimCondition.message) && - Objects.equals(this.reason, v1PersistentVolumeClaimCondition.reason) && - Objects.equals(this.status, v1PersistentVolumeClaimCondition.status) && - Objects.equals(this.type, v1PersistentVolumeClaimCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastProbeTime, lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeClaimCondition {\n"); - sb.append(" lastProbeTime: ").append(toIndentedString(lastProbeTime)).append("\n"); sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimList.java index 79442d761e..7fafdd1d4c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PersistentVolumeClaimList is a list of PersistentVolumeClaim items. */ @ApiModel(description = "PersistentVolumeClaimList is a list of PersistentVolumeClaim items.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeClaimList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1PersistentVolumeClaimList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1PersistentVolumeClaimList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PersistentVolumeClaimList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1PersistentVolumeClaimList addItemsItem(V1PersistentVolumeClaim itemsIte * @return items **/ @ApiModelProperty(required = true, value = "A list of persistent volume claims. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1PersistentVolumeClaimList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1PersistentVolumeClaimList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PersistentVolumeClaimList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeClaimList v1PersistentVolumeClaimList = (V1PersistentVolumeClaimList) o; - return Objects.equals(this.apiVersion, v1PersistentVolumeClaimList.apiVersion) && - Objects.equals(this.items, v1PersistentVolumeClaimList.items) && - Objects.equals(this.kind, v1PersistentVolumeClaimList.kind) && - Objects.equals(this.metadata, v1PersistentVolumeClaimList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeClaimList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpec.java index 5eb54283de..109a037359 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,30 +35,39 @@ * PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes */ @ApiModel(description = "PersistentVolumeClaimSpec describes the common attributes of storage devices and allows a Source for provider-specific attributes") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeClaimSpec { - @SerializedName("accessModes") + public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; + @SerializedName(SERIALIZED_NAME_ACCESS_MODES) private List accessModes = null; - @SerializedName("dataSource") - private V1TypedLocalObjectReference dataSource = null; + public static final String SERIALIZED_NAME_DATA_SOURCE = "dataSource"; + @SerializedName(SERIALIZED_NAME_DATA_SOURCE) + private V1TypedLocalObjectReference dataSource; + + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private V1ResourceRequirements resources; - @SerializedName("resources") - private V1ResourceRequirements resources = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_STORAGE_CLASS_NAME = "storageClassName"; + @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) + private String storageClassName; - @SerializedName("storageClassName") - private String storageClassName = null; + public static final String SERIALIZED_NAME_VOLUME_MODE = "volumeMode"; + @SerializedName(SERIALIZED_NAME_VOLUME_MODE) + private String volumeMode; - @SerializedName("volumeMode") - private String volumeMode = null; + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + private String volumeName; - @SerializedName("volumeName") - private String volumeName = null; public V1PersistentVolumeClaimSpec accessModes(List accessModes) { + this.accessModes = accessModes; return this; } @@ -72,70 +84,94 @@ public V1PersistentVolumeClaimSpec addAccessModesItem(String accessModesItem) { * AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 * @return accessModes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") + public List getAccessModes() { return accessModes; } + + public void setAccessModes(List accessModes) { this.accessModes = accessModes; } + public V1PersistentVolumeClaimSpec dataSource(V1TypedLocalObjectReference dataSource) { + this.dataSource = dataSource; return this; } /** - * This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change. + * Get dataSource * @return dataSource **/ - @ApiModelProperty(value = "This field requires the VolumeSnapshotDataSource alpha feature gate to be enabled and currently VolumeSnapshot is the only supported data source. If the provisioner can support VolumeSnapshot data source, it will create a new volume and data will be restored to the volume at the same time. If the provisioner does not support VolumeSnapshot data source, volume will not be created and the failure will be reported as an event. In the future, we plan to support more data source types and the behavior of the provisioner may change.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1TypedLocalObjectReference getDataSource() { return dataSource; } + + public void setDataSource(V1TypedLocalObjectReference dataSource) { this.dataSource = dataSource; } + public V1PersistentVolumeClaimSpec resources(V1ResourceRequirements resources) { + this.resources = resources; return this; } /** - * Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources + * Get resources * @return resources **/ - @ApiModelProperty(value = "Resources represents the minimum resources the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceRequirements getResources() { return resources; } + + public void setResources(V1ResourceRequirements resources) { this.resources = resources; } + public V1PersistentVolumeClaimSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * A label query over volumes to consider for binding. + * Get selector * @return selector **/ - @ApiModelProperty(value = "A label query over volumes to consider for binding.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1PersistentVolumeClaimSpec storageClassName(String storageClassName) { + this.storageClassName = storageClassName; return this; } @@ -144,16 +180,22 @@ public V1PersistentVolumeClaimSpec storageClassName(String storageClassName) { * Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 * @return storageClassName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1") + public String getStorageClassName() { return storageClassName; } + + public void setStorageClassName(String storageClassName) { this.storageClassName = storageClassName; } + public V1PersistentVolumeClaimSpec volumeMode(String volumeMode) { + this.volumeMode = volumeMode; return this; } @@ -162,16 +204,22 @@ public V1PersistentVolumeClaimSpec volumeMode(String volumeMode) { * volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature. * @return volumeMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. This is a beta feature.") + public String getVolumeMode() { return volumeMode; } + + public void setVolumeMode(String volumeMode) { this.volumeMode = volumeMode; } + public V1PersistentVolumeClaimSpec volumeName(String volumeName) { + this.volumeName = volumeName; return this; } @@ -180,11 +228,15 @@ public V1PersistentVolumeClaimSpec volumeName(String volumeName) { * VolumeName is the binding reference to the PersistentVolume backing this claim. * @return volumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeName is the binding reference to the PersistentVolume backing this claim.") + public String getVolumeName() { return volumeName; } + + public void setVolumeName(String volumeName) { this.volumeName = volumeName; } @@ -192,25 +244,12 @@ public void setVolumeName(String volumeName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeClaimSpec v1PersistentVolumeClaimSpec = (V1PersistentVolumeClaimSpec) o; - return Objects.equals(this.accessModes, v1PersistentVolumeClaimSpec.accessModes) && - Objects.equals(this.dataSource, v1PersistentVolumeClaimSpec.dataSource) && - Objects.equals(this.resources, v1PersistentVolumeClaimSpec.resources) && - Objects.equals(this.selector, v1PersistentVolumeClaimSpec.selector) && - Objects.equals(this.storageClassName, v1PersistentVolumeClaimSpec.storageClassName) && - Objects.equals(this.volumeMode, v1PersistentVolumeClaimSpec.volumeMode) && - Objects.equals(this.volumeName, v1PersistentVolumeClaimSpec.volumeName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(accessModes, dataSource, resources, selector, storageClassName, volumeMode, volumeName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -218,7 +257,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeClaimSpec {\n"); - sb.append(" accessModes: ").append(toIndentedString(accessModes)).append("\n"); sb.append(" dataSource: ").append(toIndentedString(dataSource)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatus.java index ad19dab57f..431c9e1bf0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,21 +36,27 @@ * PersistentVolumeClaimStatus is the current status of a persistent volume claim. */ @ApiModel(description = "PersistentVolumeClaimStatus is the current status of a persistent volume claim.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeClaimStatus { - @SerializedName("accessModes") + public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; + @SerializedName(SERIALIZED_NAME_ACCESS_MODES) private List accessModes = null; - @SerializedName("capacity") + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) private Map capacity = null; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("phase") - private String phase = null; + public static final String SERIALIZED_NAME_PHASE = "phase"; + @SerializedName(SERIALIZED_NAME_PHASE) + private String phase; + public V1PersistentVolumeClaimStatus accessModes(List accessModes) { + this.accessModes = accessModes; return this; } @@ -64,16 +73,22 @@ public V1PersistentVolumeClaimStatus addAccessModesItem(String accessModesItem) * AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 * @return accessModes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AccessModes contains the actual access modes the volume backing the PVC has. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1") + public List getAccessModes() { return accessModes; } + + public void setAccessModes(List accessModes) { this.accessModes = accessModes; } + public V1PersistentVolumeClaimStatus capacity(Map capacity) { + this.capacity = capacity; return this; } @@ -90,16 +105,22 @@ public V1PersistentVolumeClaimStatus putCapacityItem(String key, Quantity capaci * Represents the actual resources of the underlying volume. * @return capacity **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the actual resources of the underlying volume.") + public Map getCapacity() { return capacity; } + + public void setCapacity(Map capacity) { this.capacity = capacity; } + public V1PersistentVolumeClaimStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -116,16 +137,22 @@ public V1PersistentVolumeClaimStatus addConditionsItem(V1PersistentVolumeClaimCo * Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Current Condition of persistent volume claim. If underlying persistent volume is being resized then the Condition will be set to 'ResizeStarted'.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1PersistentVolumeClaimStatus phase(String phase) { + this.phase = phase; return this; } @@ -134,11 +161,15 @@ public V1PersistentVolumeClaimStatus phase(String phase) { * Phase represents the current phase of PersistentVolumeClaim. * @return phase **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Phase represents the current phase of PersistentVolumeClaim.") + public String getPhase() { return phase; } + + public void setPhase(String phase) { this.phase = phase; } @@ -146,22 +177,12 @@ public void setPhase(String phase) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeClaimStatus v1PersistentVolumeClaimStatus = (V1PersistentVolumeClaimStatus) o; - return Objects.equals(this.accessModes, v1PersistentVolumeClaimStatus.accessModes) && - Objects.equals(this.capacity, v1PersistentVolumeClaimStatus.capacity) && - Objects.equals(this.conditions, v1PersistentVolumeClaimStatus.conditions) && - Objects.equals(this.phase, v1PersistentVolumeClaimStatus.phase); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(accessModes, capacity, conditions, phase); + return HashCodeBuilder.reflectionHashCode(this); } @@ -169,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeClaimStatus {\n"); - sb.append(" accessModes: ").append(toIndentedString(accessModes)).append("\n"); sb.append(" capacity: ").append(toIndentedString(capacity)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSource.java index 1837af526d..deb216e20d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system). */ @ApiModel(description = "PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. This volume finds the bound PV and mounts that volume for the pod. A PersistentVolumeClaimVolumeSource is, essentially, a wrapper around another type of volume that is owned by someone else (the system).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeClaimVolumeSource { - @SerializedName("claimName") - private String claimName = null; + public static final String SERIALIZED_NAME_CLAIM_NAME = "claimName"; + @SerializedName(SERIALIZED_NAME_CLAIM_NAME) + private String claimName; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; public V1PersistentVolumeClaimVolumeSource claimName(String claimName) { + this.claimName = claimName; return this; } @@ -45,15 +52,20 @@ public V1PersistentVolumeClaimVolumeSource claimName(String claimName) { * @return claimName **/ @ApiModelProperty(required = true, value = "ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") + public String getClaimName() { return claimName; } + + public void setClaimName(String claimName) { this.claimName = claimName; } + public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -62,11 +74,15 @@ public V1PersistentVolumeClaimVolumeSource readOnly(Boolean readOnly) { * Will force the ReadOnly setting in VolumeMounts. Default false. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Will force the ReadOnly setting in VolumeMounts. Default false.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } @@ -74,20 +90,12 @@ public void setReadOnly(Boolean readOnly) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeClaimVolumeSource v1PersistentVolumeClaimVolumeSource = (V1PersistentVolumeClaimVolumeSource) o; - return Objects.equals(this.claimName, v1PersistentVolumeClaimVolumeSource.claimName) && - Objects.equals(this.readOnly, v1PersistentVolumeClaimVolumeSource.readOnly); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(claimName, readOnly); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeClaimVolumeSource {\n"); - sb.append(" claimName: ").append(toIndentedString(claimName)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeList.java index 2f5e9db24a..c030553890 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PersistentVolumeList is a list of PersistentVolume items. */ @ApiModel(description = "PersistentVolumeList is a list of PersistentVolume items.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1PersistentVolumeList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1PersistentVolumeList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PersistentVolumeList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1PersistentVolumeList addItemsItem(V1PersistentVolume itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of persistent volumes. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1PersistentVolumeList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1PersistentVolumeList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PersistentVolumeList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeList v1PersistentVolumeList = (V1PersistentVolumeList) o; - return Objects.equals(this.apiVersion, v1PersistentVolumeList.apiVersion) && - Objects.equals(this.items, v1PersistentVolumeList.items) && - Objects.equals(this.kind, v1PersistentVolumeList.kind) && - Objects.equals(this.metadata, v1PersistentVolumeList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeSpec.java index 5db8847493..191d8683d5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -56,99 +59,131 @@ * PersistentVolumeSpec is the specification of a persistent volume. */ @ApiModel(description = "PersistentVolumeSpec is the specification of a persistent volume.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeSpec { - @SerializedName("accessModes") + public static final String SERIALIZED_NAME_ACCESS_MODES = "accessModes"; + @SerializedName(SERIALIZED_NAME_ACCESS_MODES) private List accessModes = null; - @SerializedName("awsElasticBlockStore") - private V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = null; + public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; + @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) + private V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore; - @SerializedName("azureDisk") - private V1AzureDiskVolumeSource azureDisk = null; + public static final String SERIALIZED_NAME_AZURE_DISK = "azureDisk"; + @SerializedName(SERIALIZED_NAME_AZURE_DISK) + private V1AzureDiskVolumeSource azureDisk; - @SerializedName("azureFile") - private V1AzureFilePersistentVolumeSource azureFile = null; + public static final String SERIALIZED_NAME_AZURE_FILE = "azureFile"; + @SerializedName(SERIALIZED_NAME_AZURE_FILE) + private V1AzureFilePersistentVolumeSource azureFile; - @SerializedName("capacity") + public static final String SERIALIZED_NAME_CAPACITY = "capacity"; + @SerializedName(SERIALIZED_NAME_CAPACITY) private Map capacity = null; - @SerializedName("cephfs") - private V1CephFSPersistentVolumeSource cephfs = null; + public static final String SERIALIZED_NAME_CEPHFS = "cephfs"; + @SerializedName(SERIALIZED_NAME_CEPHFS) + private V1CephFSPersistentVolumeSource cephfs; - @SerializedName("cinder") - private V1CinderPersistentVolumeSource cinder = null; + public static final String SERIALIZED_NAME_CINDER = "cinder"; + @SerializedName(SERIALIZED_NAME_CINDER) + private V1CinderPersistentVolumeSource cinder; - @SerializedName("claimRef") - private V1ObjectReference claimRef = null; + public static final String SERIALIZED_NAME_CLAIM_REF = "claimRef"; + @SerializedName(SERIALIZED_NAME_CLAIM_REF) + private V1ObjectReference claimRef; - @SerializedName("csi") - private V1CSIPersistentVolumeSource csi = null; + public static final String SERIALIZED_NAME_CSI = "csi"; + @SerializedName(SERIALIZED_NAME_CSI) + private V1CSIPersistentVolumeSource csi; - @SerializedName("fc") - private V1FCVolumeSource fc = null; + public static final String SERIALIZED_NAME_FC = "fc"; + @SerializedName(SERIALIZED_NAME_FC) + private V1FCVolumeSource fc; - @SerializedName("flexVolume") - private V1FlexPersistentVolumeSource flexVolume = null; + public static final String SERIALIZED_NAME_FLEX_VOLUME = "flexVolume"; + @SerializedName(SERIALIZED_NAME_FLEX_VOLUME) + private V1FlexPersistentVolumeSource flexVolume; - @SerializedName("flocker") - private V1FlockerVolumeSource flocker = null; + public static final String SERIALIZED_NAME_FLOCKER = "flocker"; + @SerializedName(SERIALIZED_NAME_FLOCKER) + private V1FlockerVolumeSource flocker; - @SerializedName("gcePersistentDisk") - private V1GCEPersistentDiskVolumeSource gcePersistentDisk = null; + public static final String SERIALIZED_NAME_GCE_PERSISTENT_DISK = "gcePersistentDisk"; + @SerializedName(SERIALIZED_NAME_GCE_PERSISTENT_DISK) + private V1GCEPersistentDiskVolumeSource gcePersistentDisk; - @SerializedName("glusterfs") - private V1GlusterfsPersistentVolumeSource glusterfs = null; + public static final String SERIALIZED_NAME_GLUSTERFS = "glusterfs"; + @SerializedName(SERIALIZED_NAME_GLUSTERFS) + private V1GlusterfsPersistentVolumeSource glusterfs; - @SerializedName("hostPath") - private V1HostPathVolumeSource hostPath = null; + public static final String SERIALIZED_NAME_HOST_PATH = "hostPath"; + @SerializedName(SERIALIZED_NAME_HOST_PATH) + private V1HostPathVolumeSource hostPath; - @SerializedName("iscsi") - private V1ISCSIPersistentVolumeSource iscsi = null; + public static final String SERIALIZED_NAME_ISCSI = "iscsi"; + @SerializedName(SERIALIZED_NAME_ISCSI) + private V1ISCSIPersistentVolumeSource iscsi; - @SerializedName("local") - private V1LocalVolumeSource local = null; + public static final String SERIALIZED_NAME_LOCAL = "local"; + @SerializedName(SERIALIZED_NAME_LOCAL) + private V1LocalVolumeSource local; - @SerializedName("mountOptions") + public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; + @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) private List mountOptions = null; - @SerializedName("nfs") - private V1NFSVolumeSource nfs = null; + public static final String SERIALIZED_NAME_NFS = "nfs"; + @SerializedName(SERIALIZED_NAME_NFS) + private V1NFSVolumeSource nfs; + + public static final String SERIALIZED_NAME_NODE_AFFINITY = "nodeAffinity"; + @SerializedName(SERIALIZED_NAME_NODE_AFFINITY) + private V1VolumeNodeAffinity nodeAffinity; - @SerializedName("nodeAffinity") - private V1VolumeNodeAffinity nodeAffinity = null; + public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_RECLAIM_POLICY = "persistentVolumeReclaimPolicy"; + @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_RECLAIM_POLICY) + private String persistentVolumeReclaimPolicy; - @SerializedName("persistentVolumeReclaimPolicy") - private String persistentVolumeReclaimPolicy = null; + public static final String SERIALIZED_NAME_PHOTON_PERSISTENT_DISK = "photonPersistentDisk"; + @SerializedName(SERIALIZED_NAME_PHOTON_PERSISTENT_DISK) + private V1PhotonPersistentDiskVolumeSource photonPersistentDisk; - @SerializedName("photonPersistentDisk") - private V1PhotonPersistentDiskVolumeSource photonPersistentDisk = null; + public static final String SERIALIZED_NAME_PORTWORX_VOLUME = "portworxVolume"; + @SerializedName(SERIALIZED_NAME_PORTWORX_VOLUME) + private V1PortworxVolumeSource portworxVolume; - @SerializedName("portworxVolume") - private V1PortworxVolumeSource portworxVolume = null; + public static final String SERIALIZED_NAME_QUOBYTE = "quobyte"; + @SerializedName(SERIALIZED_NAME_QUOBYTE) + private V1QuobyteVolumeSource quobyte; - @SerializedName("quobyte") - private V1QuobyteVolumeSource quobyte = null; + public static final String SERIALIZED_NAME_RBD = "rbd"; + @SerializedName(SERIALIZED_NAME_RBD) + private V1RBDPersistentVolumeSource rbd; - @SerializedName("rbd") - private V1RBDPersistentVolumeSource rbd = null; + public static final String SERIALIZED_NAME_SCALE_I_O = "scaleIO"; + @SerializedName(SERIALIZED_NAME_SCALE_I_O) + private V1ScaleIOPersistentVolumeSource scaleIO; - @SerializedName("scaleIO") - private V1ScaleIOPersistentVolumeSource scaleIO = null; + public static final String SERIALIZED_NAME_STORAGE_CLASS_NAME = "storageClassName"; + @SerializedName(SERIALIZED_NAME_STORAGE_CLASS_NAME) + private String storageClassName; - @SerializedName("storageClassName") - private String storageClassName = null; + public static final String SERIALIZED_NAME_STORAGEOS = "storageos"; + @SerializedName(SERIALIZED_NAME_STORAGEOS) + private V1StorageOSPersistentVolumeSource storageos; - @SerializedName("storageos") - private V1StorageOSPersistentVolumeSource storageos = null; + public static final String SERIALIZED_NAME_VOLUME_MODE = "volumeMode"; + @SerializedName(SERIALIZED_NAME_VOLUME_MODE) + private String volumeMode; - @SerializedName("volumeMode") - private String volumeMode = null; + public static final String SERIALIZED_NAME_VSPHERE_VOLUME = "vsphereVolume"; + @SerializedName(SERIALIZED_NAME_VSPHERE_VOLUME) + private V1VsphereVirtualDiskVolumeSource vsphereVolume; - @SerializedName("vsphereVolume") - private V1VsphereVirtualDiskVolumeSource vsphereVolume = null; public V1PersistentVolumeSpec accessModes(List accessModes) { + this.accessModes = accessModes; return this; } @@ -165,70 +200,94 @@ public V1PersistentVolumeSpec addAccessModesItem(String accessModesItem) { * AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes * @return accessModes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AccessModes contains all ways the volume can be mounted. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes") + public List getAccessModes() { return accessModes; } + + public void setAccessModes(List accessModes) { this.accessModes = accessModes; } + public V1PersistentVolumeSpec awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this.awsElasticBlockStore = awsElasticBlockStore; return this; } /** - * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * Get awsElasticBlockStore * @return awsElasticBlockStore **/ - @ApiModelProperty(value = "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } + + public void setAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { this.awsElasticBlockStore = awsElasticBlockStore; } + public V1PersistentVolumeSpec azureDisk(V1AzureDiskVolumeSource azureDisk) { + this.azureDisk = azureDisk; return this; } /** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * Get azureDisk * @return azureDisk **/ - @ApiModelProperty(value = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } + + public void setAzureDisk(V1AzureDiskVolumeSource azureDisk) { this.azureDisk = azureDisk; } + public V1PersistentVolumeSpec azureFile(V1AzureFilePersistentVolumeSource azureFile) { + this.azureFile = azureFile; return this; } /** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * Get azureFile * @return azureFile **/ - @ApiModelProperty(value = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AzureFilePersistentVolumeSource getAzureFile() { return azureFile; } + + public void setAzureFile(V1AzureFilePersistentVolumeSource azureFile) { this.azureFile = azureFile; } + public V1PersistentVolumeSpec capacity(Map capacity) { + this.capacity = capacity; return this; } @@ -245,232 +304,310 @@ public V1PersistentVolumeSpec putCapacityItem(String key, Quantity capacityItem) * A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity * @return capacity **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A description of the persistent volume's resources and capacity. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#capacity") + public Map getCapacity() { return capacity; } + + public void setCapacity(Map capacity) { this.capacity = capacity; } + public V1PersistentVolumeSpec cephfs(V1CephFSPersistentVolumeSource cephfs) { + this.cephfs = cephfs; return this; } /** - * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * Get cephfs * @return cephfs **/ - @ApiModelProperty(value = "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1CephFSPersistentVolumeSource getCephfs() { return cephfs; } + + public void setCephfs(V1CephFSPersistentVolumeSource cephfs) { this.cephfs = cephfs; } + public V1PersistentVolumeSpec cinder(V1CinderPersistentVolumeSource cinder) { + this.cinder = cinder; return this; } /** - * Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + * Get cinder * @return cinder **/ - @ApiModelProperty(value = "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1CinderPersistentVolumeSource getCinder() { return cinder; } + + public void setCinder(V1CinderPersistentVolumeSource cinder) { this.cinder = cinder; } + public V1PersistentVolumeSpec claimRef(V1ObjectReference claimRef) { + this.claimRef = claimRef; return this; } /** - * ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding + * Get claimRef * @return claimRef **/ - @ApiModelProperty(value = "ClaimRef is part of a bi-directional binding between PersistentVolume and PersistentVolumeClaim. Expected to be non-nil when bound. claim.VolumeName is the authoritative bind between PV and PVC. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#binding") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectReference getClaimRef() { return claimRef; } + + public void setClaimRef(V1ObjectReference claimRef) { this.claimRef = claimRef; } + public V1PersistentVolumeSpec csi(V1CSIPersistentVolumeSource csi) { + this.csi = csi; return this; } /** - * CSI represents storage that is handled by an external CSI driver (Beta feature). + * Get csi * @return csi **/ - @ApiModelProperty(value = "CSI represents storage that is handled by an external CSI driver (Beta feature).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1CSIPersistentVolumeSource getCsi() { return csi; } + + public void setCsi(V1CSIPersistentVolumeSource csi) { this.csi = csi; } + public V1PersistentVolumeSpec fc(V1FCVolumeSource fc) { + this.fc = fc; return this; } /** - * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * Get fc * @return fc **/ - @ApiModelProperty(value = "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1FCVolumeSource getFc() { return fc; } + + public void setFc(V1FCVolumeSource fc) { this.fc = fc; } + public V1PersistentVolumeSpec flexVolume(V1FlexPersistentVolumeSource flexVolume) { + this.flexVolume = flexVolume; return this; } /** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * Get flexVolume * @return flexVolume **/ - @ApiModelProperty(value = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1FlexPersistentVolumeSource getFlexVolume() { return flexVolume; } + + public void setFlexVolume(V1FlexPersistentVolumeSource flexVolume) { this.flexVolume = flexVolume; } + public V1PersistentVolumeSpec flocker(V1FlockerVolumeSource flocker) { + this.flocker = flocker; return this; } /** - * Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running + * Get flocker * @return flocker **/ - @ApiModelProperty(value = "Flocker represents a Flocker volume attached to a kubelet's host machine and exposed to the pod for its usage. This depends on the Flocker control service being running") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1FlockerVolumeSource getFlocker() { return flocker; } + + public void setFlocker(V1FlockerVolumeSource flocker) { this.flocker = flocker; } + public V1PersistentVolumeSpec gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + this.gcePersistentDisk = gcePersistentDisk; return this; } /** - * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * Get gcePersistentDisk * @return gcePersistentDisk **/ - @ApiModelProperty(value = "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } + + public void setGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { this.gcePersistentDisk = gcePersistentDisk; } + public V1PersistentVolumeSpec glusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { + this.glusterfs = glusterfs; return this; } /** - * Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + * Get glusterfs * @return glusterfs **/ - @ApiModelProperty(value = "Glusterfs represents a Glusterfs volume that is attached to a host and exposed to the pod. Provisioned by an admin. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1GlusterfsPersistentVolumeSource getGlusterfs() { return glusterfs; } + + public void setGlusterfs(V1GlusterfsPersistentVolumeSource glusterfs) { this.glusterfs = glusterfs; } + public V1PersistentVolumeSpec hostPath(V1HostPathVolumeSource hostPath) { + this.hostPath = hostPath; return this; } /** - * HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * Get hostPath * @return hostPath **/ - @ApiModelProperty(value = "HostPath represents a directory on the host. Provisioned by a developer or tester. This is useful for single-node development and testing only! On-host storage is not supported in any way and WILL NOT WORK in a multi-node cluster. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1HostPathVolumeSource getHostPath() { return hostPath; } + + public void setHostPath(V1HostPathVolumeSource hostPath) { this.hostPath = hostPath; } + public V1PersistentVolumeSpec iscsi(V1ISCSIPersistentVolumeSource iscsi) { + this.iscsi = iscsi; return this; } /** - * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin. + * Get iscsi * @return iscsi **/ - @ApiModelProperty(value = "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. Provisioned by an admin.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ISCSIPersistentVolumeSource getIscsi() { return iscsi; } + + public void setIscsi(V1ISCSIPersistentVolumeSource iscsi) { this.iscsi = iscsi; } + public V1PersistentVolumeSpec local(V1LocalVolumeSource local) { + this.local = local; return this; } /** - * Local represents directly-attached storage with node affinity + * Get local * @return local **/ - @ApiModelProperty(value = "Local represents directly-attached storage with node affinity") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalVolumeSource getLocal() { return local; } + + public void setLocal(V1LocalVolumeSource local) { this.local = local; } + public V1PersistentVolumeSpec mountOptions(List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -487,52 +624,70 @@ public V1PersistentVolumeSpec addMountOptionsItem(String mountOptionsItem) { * A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options * @return mountOptions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of mount options, e.g. [\"ro\", \"soft\"]. Not validated - mount will simply fail if one is invalid. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes/#mount-options") + public List getMountOptions() { return mountOptions; } + + public void setMountOptions(List mountOptions) { this.mountOptions = mountOptions; } + public V1PersistentVolumeSpec nfs(V1NFSVolumeSource nfs) { + this.nfs = nfs; return this; } /** - * NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * Get nfs * @return nfs **/ - @ApiModelProperty(value = "NFS represents an NFS mount on the host. Provisioned by an admin. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NFSVolumeSource getNfs() { return nfs; } + + public void setNfs(V1NFSVolumeSource nfs) { this.nfs = nfs; } + public V1PersistentVolumeSpec nodeAffinity(V1VolumeNodeAffinity nodeAffinity) { + this.nodeAffinity = nodeAffinity; return this; } /** - * NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume. + * Get nodeAffinity * @return nodeAffinity **/ - @ApiModelProperty(value = "NodeAffinity defines constraints that limit what nodes this volume can be accessed from. This field influences the scheduling of pods that use this volume.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1VolumeNodeAffinity getNodeAffinity() { return nodeAffinity; } + + public void setNodeAffinity(V1VolumeNodeAffinity nodeAffinity) { this.nodeAffinity = nodeAffinity; } + public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { + this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; return this; } @@ -541,106 +696,142 @@ public V1PersistentVolumeSpec persistentVolumeReclaimPolicy(String persistentVol * What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming * @return persistentVolumeReclaimPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "What happens to a persistent volume when released from its claim. Valid options are Retain (default for manually created PersistentVolumes), Delete (default for dynamically provisioned PersistentVolumes), and Recycle (deprecated). Recycle must be supported by the volume plugin underlying this PersistentVolume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#reclaiming") + public String getPersistentVolumeReclaimPolicy() { return persistentVolumeReclaimPolicy; } + + public void setPersistentVolumeReclaimPolicy(String persistentVolumeReclaimPolicy) { this.persistentVolumeReclaimPolicy = persistentVolumeReclaimPolicy; } + public V1PersistentVolumeSpec photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + this.photonPersistentDisk = photonPersistentDisk; return this; } /** - * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * Get photonPersistentDisk * @return photonPersistentDisk **/ - @ApiModelProperty(value = "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } + + public void setPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this.photonPersistentDisk = photonPersistentDisk; } + public V1PersistentVolumeSpec portworxVolume(V1PortworxVolumeSource portworxVolume) { + this.portworxVolume = portworxVolume; return this; } /** - * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * Get portworxVolume * @return portworxVolume **/ - @ApiModelProperty(value = "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } + + public void setPortworxVolume(V1PortworxVolumeSource portworxVolume) { this.portworxVolume = portworxVolume; } + public V1PersistentVolumeSpec quobyte(V1QuobyteVolumeSource quobyte) { + this.quobyte = quobyte; return this; } /** - * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * Get quobyte * @return quobyte **/ - @ApiModelProperty(value = "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1QuobyteVolumeSource getQuobyte() { return quobyte; } + + public void setQuobyte(V1QuobyteVolumeSource quobyte) { this.quobyte = quobyte; } + public V1PersistentVolumeSpec rbd(V1RBDPersistentVolumeSource rbd) { + this.rbd = rbd; return this; } /** - * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + * Get rbd * @return rbd **/ - @ApiModelProperty(value = "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1RBDPersistentVolumeSource getRbd() { return rbd; } + + public void setRbd(V1RBDPersistentVolumeSource rbd) { this.rbd = rbd; } + public V1PersistentVolumeSpec scaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { + this.scaleIO = scaleIO; return this; } /** - * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * Get scaleIO * @return scaleIO **/ - @ApiModelProperty(value = "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ScaleIOPersistentVolumeSource getScaleIO() { return scaleIO; } + + public void setScaleIO(V1ScaleIOPersistentVolumeSource scaleIO) { this.scaleIO = scaleIO; } + public V1PersistentVolumeSpec storageClassName(String storageClassName) { + this.storageClassName = storageClassName; return this; } @@ -649,34 +840,46 @@ public V1PersistentVolumeSpec storageClassName(String storageClassName) { * Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass. * @return storageClassName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of StorageClass to which this persistent volume belongs. Empty value means that this volume does not belong to any StorageClass.") + public String getStorageClassName() { return storageClassName; } + + public void setStorageClassName(String storageClassName) { this.storageClassName = storageClassName; } + public V1PersistentVolumeSpec storageos(V1StorageOSPersistentVolumeSource storageos) { + this.storageos = storageos; return this; } /** - * StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md + * Get storageos * @return storageos **/ - @ApiModelProperty(value = "StorageOS represents a StorageOS volume that is attached to the kubelet's host machine and mounted into the pod More info: https://releases.k8s.io/HEAD/examples/volumes/storageos/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1StorageOSPersistentVolumeSource getStorageos() { return storageos; } + + public void setStorageos(V1StorageOSPersistentVolumeSource storageos) { this.storageos = storageos; } + public V1PersistentVolumeSpec volumeMode(String volumeMode) { + this.volumeMode = volumeMode; return this; } @@ -685,29 +888,39 @@ public V1PersistentVolumeSpec volumeMode(String volumeMode) { * volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature. * @return volumeMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumeMode defines if a volume is intended to be used with a formatted filesystem or to remain in raw block state. Value of Filesystem is implied when not included in spec. This is a beta feature.") + public String getVolumeMode() { return volumeMode; } + + public void setVolumeMode(String volumeMode) { this.volumeMode = volumeMode; } + public V1PersistentVolumeSpec vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + this.vsphereVolume = vsphereVolume; return this; } /** - * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * Get vsphereVolume * @return vsphereVolume **/ - @ApiModelProperty(value = "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } + + public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = vsphereVolume; } @@ -715,48 +928,12 @@ public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeSpec v1PersistentVolumeSpec = (V1PersistentVolumeSpec) o; - return Objects.equals(this.accessModes, v1PersistentVolumeSpec.accessModes) && - Objects.equals(this.awsElasticBlockStore, v1PersistentVolumeSpec.awsElasticBlockStore) && - Objects.equals(this.azureDisk, v1PersistentVolumeSpec.azureDisk) && - Objects.equals(this.azureFile, v1PersistentVolumeSpec.azureFile) && - Objects.equals(this.capacity, v1PersistentVolumeSpec.capacity) && - Objects.equals(this.cephfs, v1PersistentVolumeSpec.cephfs) && - Objects.equals(this.cinder, v1PersistentVolumeSpec.cinder) && - Objects.equals(this.claimRef, v1PersistentVolumeSpec.claimRef) && - Objects.equals(this.csi, v1PersistentVolumeSpec.csi) && - Objects.equals(this.fc, v1PersistentVolumeSpec.fc) && - Objects.equals(this.flexVolume, v1PersistentVolumeSpec.flexVolume) && - Objects.equals(this.flocker, v1PersistentVolumeSpec.flocker) && - Objects.equals(this.gcePersistentDisk, v1PersistentVolumeSpec.gcePersistentDisk) && - Objects.equals(this.glusterfs, v1PersistentVolumeSpec.glusterfs) && - Objects.equals(this.hostPath, v1PersistentVolumeSpec.hostPath) && - Objects.equals(this.iscsi, v1PersistentVolumeSpec.iscsi) && - Objects.equals(this.local, v1PersistentVolumeSpec.local) && - Objects.equals(this.mountOptions, v1PersistentVolumeSpec.mountOptions) && - Objects.equals(this.nfs, v1PersistentVolumeSpec.nfs) && - Objects.equals(this.nodeAffinity, v1PersistentVolumeSpec.nodeAffinity) && - Objects.equals(this.persistentVolumeReclaimPolicy, v1PersistentVolumeSpec.persistentVolumeReclaimPolicy) && - Objects.equals(this.photonPersistentDisk, v1PersistentVolumeSpec.photonPersistentDisk) && - Objects.equals(this.portworxVolume, v1PersistentVolumeSpec.portworxVolume) && - Objects.equals(this.quobyte, v1PersistentVolumeSpec.quobyte) && - Objects.equals(this.rbd, v1PersistentVolumeSpec.rbd) && - Objects.equals(this.scaleIO, v1PersistentVolumeSpec.scaleIO) && - Objects.equals(this.storageClassName, v1PersistentVolumeSpec.storageClassName) && - Objects.equals(this.storageos, v1PersistentVolumeSpec.storageos) && - Objects.equals(this.volumeMode, v1PersistentVolumeSpec.volumeMode) && - Objects.equals(this.vsphereVolume, v1PersistentVolumeSpec.vsphereVolume); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(accessModes, awsElasticBlockStore, azureDisk, azureFile, capacity, cephfs, cinder, claimRef, csi, fc, flexVolume, flocker, gcePersistentDisk, glusterfs, hostPath, iscsi, local, mountOptions, nfs, nodeAffinity, persistentVolumeReclaimPolicy, photonPersistentDisk, portworxVolume, quobyte, rbd, scaleIO, storageClassName, storageos, volumeMode, vsphereVolume); + return HashCodeBuilder.reflectionHashCode(this); } @@ -764,7 +941,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeSpec {\n"); - sb.append(" accessModes: ").append(toIndentedString(accessModes)).append("\n"); sb.append(" awsElasticBlockStore: ").append(toIndentedString(awsElasticBlockStore)).append("\n"); sb.append(" azureDisk: ").append(toIndentedString(azureDisk)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeStatus.java index 0fd0d2f320..7b35b802d8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PersistentVolumeStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * PersistentVolumeStatus is the current status of a persistent volume. */ @ApiModel(description = "PersistentVolumeStatus is the current status of a persistent volume.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PersistentVolumeStatus { - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_PHASE = "phase"; + @SerializedName(SERIALIZED_NAME_PHASE) + private String phase; - @SerializedName("phase") - private String phase = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; public V1PersistentVolumeStatus message(String message) { + this.message = message; return this; } @@ -47,16 +55,22 @@ public V1PersistentVolumeStatus message(String message) { * A human-readable message indicating details about why the volume is in this state. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human-readable message indicating details about why the volume is in this state.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1PersistentVolumeStatus phase(String phase) { + this.phase = phase; return this; } @@ -65,16 +79,22 @@ public V1PersistentVolumeStatus phase(String phase) { * Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase * @return phase **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Phase indicates if a volume is available, bound to a claim, or released by a claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#phase") + public String getPhase() { return phase; } + + public void setPhase(String phase) { this.phase = phase; } + public V1PersistentVolumeStatus reason(String reason) { + this.reason = reason; return this; } @@ -83,11 +103,15 @@ public V1PersistentVolumeStatus reason(String reason) { * Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Reason is a brief CamelCase string that describes any failure and is meant for machine parsing and tidy display in the CLI.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } @@ -95,21 +119,12 @@ public void setReason(String reason) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PersistentVolumeStatus v1PersistentVolumeStatus = (V1PersistentVolumeStatus) o; - return Objects.equals(this.message, v1PersistentVolumeStatus.message) && - Objects.equals(this.phase, v1PersistentVolumeStatus.phase) && - Objects.equals(this.reason, v1PersistentVolumeStatus.reason); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(message, phase, reason); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PersistentVolumeStatus {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" phase: ").append(toIndentedString(phase)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSource.java index d36fad0004..a13c8ad0a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * Represents a Photon Controller persistent disk resource. */ @ApiModel(description = "Represents a Photon Controller persistent disk resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PhotonPersistentDiskVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_PD_I_D = "pdID"; + @SerializedName(SERIALIZED_NAME_PD_I_D) + private String pdID; - @SerializedName("pdID") - private String pdID = null; public V1PhotonPersistentDiskVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -44,16 +51,22 @@ public V1PhotonPersistentDiskVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1PhotonPersistentDiskVolumeSource pdID(String pdID) { + this.pdID = pdID; return this; } @@ -63,10 +76,13 @@ public V1PhotonPersistentDiskVolumeSource pdID(String pdID) { * @return pdID **/ @ApiModelProperty(required = true, value = "ID that identifies Photon Controller persistent disk") + public String getPdID() { return pdID; } + + public void setPdID(String pdID) { this.pdID = pdID; } @@ -74,20 +90,12 @@ public void setPdID(String pdID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PhotonPersistentDiskVolumeSource v1PhotonPersistentDiskVolumeSource = (V1PhotonPersistentDiskVolumeSource) o; - return Objects.equals(this.fsType, v1PhotonPersistentDiskVolumeSource.fsType) && - Objects.equals(this.pdID, v1PhotonPersistentDiskVolumeSource.pdID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, pdID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PhotonPersistentDiskVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" pdID: ").append(toIndentedString(pdID)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Pod.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Pod.java index 1ad63d6f55..38509b8185 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Pod.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Pod.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts. */ @ApiModel(description = "Pod is a collection of containers that can run on a host. This resource is created by clients and scheduled onto hosts.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Pod { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1PodSpec spec; - @SerializedName("spec") - private V1PodSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1PodStatus status; - @SerializedName("status") - private V1PodStatus status = null; public V1Pod apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Pod apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Pod kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Pod kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Pod metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Pod spec(V1PodSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodSpec getSpec() { return spec; } + + public void setSpec(V1PodSpec spec) { this.spec = spec; } + public V1Pod status(V1PodStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the pod. This data may not be up to date. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodStatus getStatus() { return status; } + + public void setStatus(V1PodStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1PodStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Pod v1Pod = (V1Pod) o; - return Objects.equals(this.apiVersion, v1Pod.apiVersion) && - Objects.equals(this.kind, v1Pod.kind) && - Objects.equals(this.metadata, v1Pod.metadata) && - Objects.equals(this.spec, v1Pod.spec) && - Objects.equals(this.status, v1Pod.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Pod {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAffinity.java index 75fae08eb3..06c95b716d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAffinity.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * Pod affinity is a group of inter pod affinity scheduling rules. */ @ApiModel(description = "Pod affinity is a group of inter pod affinity scheduling rules.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodAffinity { - @SerializedName("preferredDuringSchedulingIgnoredDuringExecution") + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) private List preferredDuringSchedulingIgnoredDuringExecution = null; - @SerializedName("requiredDuringSchedulingIgnoredDuringExecution") + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) private List requiredDuringSchedulingIgnoredDuringExecution = null; + public V1PodAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -56,16 +63,22 @@ public V1PodAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem(V1We * The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; } + public V1PodAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -82,11 +95,15 @@ public V1PodAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V1Pod * If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. * @return requiredDuringSchedulingIgnoredDuringExecution **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If the affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") + public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } + + public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; } @@ -94,20 +111,12 @@ public void setRequiredDuringSchedulingIgnoredDuringExecution(List namespaces = null; - @SerializedName("topologyKey") - private String topologyKey = null; + public static final String SERIALIZED_NAME_TOPOLOGY_KEY = "topologyKey"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEY) + private String topologyKey; + public V1PodAffinityTerm labelSelector(V1LabelSelector labelSelector) { + this.labelSelector = labelSelector; return this; } /** - * A label query over a set of resources, in this case pods. + * Get labelSelector * @return labelSelector **/ - @ApiModelProperty(value = "A label query over a set of resources, in this case pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getLabelSelector() { return labelSelector; } + + public void setLabelSelector(V1LabelSelector labelSelector) { this.labelSelector = labelSelector; } + public V1PodAffinityTerm namespaces(List namespaces) { + this.namespaces = namespaces; return this; } @@ -76,16 +90,22 @@ public V1PodAffinityTerm addNamespacesItem(String namespacesItem) { * namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" * @return namespaces **/ + @javax.annotation.Nullable @ApiModelProperty(value = "namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\"") + public List getNamespaces() { return namespaces; } + + public void setNamespaces(List namespaces) { this.namespaces = namespaces; } + public V1PodAffinityTerm topologyKey(String topologyKey) { + this.topologyKey = topologyKey; return this; } @@ -95,10 +115,13 @@ public V1PodAffinityTerm topologyKey(String topologyKey) { * @return topologyKey **/ @ApiModelProperty(required = true, value = "This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed.") + public String getTopologyKey() { return topologyKey; } + + public void setTopologyKey(String topologyKey) { this.topologyKey = topologyKey; } @@ -106,21 +129,12 @@ public void setTopologyKey(String topologyKey) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodAffinityTerm v1PodAffinityTerm = (V1PodAffinityTerm) o; - return Objects.equals(this.labelSelector, v1PodAffinityTerm.labelSelector) && - Objects.equals(this.namespaces, v1PodAffinityTerm.namespaces) && - Objects.equals(this.topologyKey, v1PodAffinityTerm.topologyKey); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(labelSelector, namespaces, topologyKey); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +142,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodAffinityTerm {\n"); - sb.append(" labelSelector: ").append(toIndentedString(labelSelector)).append("\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); sb.append(" topologyKey: ").append(toIndentedString(topologyKey)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAntiAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAntiAffinity.java index 16cc7855af..76a9defe18 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAntiAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodAntiAffinity.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * Pod anti affinity is a group of inter pod anti affinity scheduling rules. */ @ApiModel(description = "Pod anti affinity is a group of inter pod anti affinity scheduling rules.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodAntiAffinity { - @SerializedName("preferredDuringSchedulingIgnoredDuringExecution") + public static final String SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "preferredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_PREFERRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) private List preferredDuringSchedulingIgnoredDuringExecution = null; - @SerializedName("requiredDuringSchedulingIgnoredDuringExecution") + public static final String SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION = "requiredDuringSchedulingIgnoredDuringExecution"; + @SerializedName(SERIALIZED_NAME_REQUIRED_DURING_SCHEDULING_IGNORED_DURING_EXECUTION) private List requiredDuringSchedulingIgnoredDuringExecution = null; + public V1PodAntiAffinity preferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { + this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; return this; } @@ -56,16 +63,22 @@ public V1PodAntiAffinity addPreferredDuringSchedulingIgnoredDuringExecutionItem( * The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. * @return preferredDuringSchedulingIgnoredDuringExecution **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred.") + public List getPreferredDuringSchedulingIgnoredDuringExecution() { return preferredDuringSchedulingIgnoredDuringExecution; } + + public void setPreferredDuringSchedulingIgnoredDuringExecution(List preferredDuringSchedulingIgnoredDuringExecution) { this.preferredDuringSchedulingIgnoredDuringExecution = preferredDuringSchedulingIgnoredDuringExecution; } + public V1PodAntiAffinity requiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { + this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; return this; } @@ -82,11 +95,15 @@ public V1PodAntiAffinity addRequiredDuringSchedulingIgnoredDuringExecutionItem(V * If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. * @return requiredDuringSchedulingIgnoredDuringExecution **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied.") + public List getRequiredDuringSchedulingIgnoredDuringExecution() { return requiredDuringSchedulingIgnoredDuringExecution; } + + public void setRequiredDuringSchedulingIgnoredDuringExecution(List requiredDuringSchedulingIgnoredDuringExecution) { this.requiredDuringSchedulingIgnoredDuringExecution = requiredDuringSchedulingIgnoredDuringExecution; } @@ -94,20 +111,12 @@ public void setRequiredDuringSchedulingIgnoredDuringExecution(List nameservers = null; - @SerializedName("options") + public static final String SERIALIZED_NAME_OPTIONS = "options"; + @SerializedName(SERIALIZED_NAME_OPTIONS) private List options = null; - @SerializedName("searches") + public static final String SERIALIZED_NAME_SEARCHES = "searches"; + @SerializedName(SERIALIZED_NAME_SEARCHES) private List searches = null; + public V1PodDNSConfig nameservers(List nameservers) { + this.nameservers = nameservers; return this; } @@ -58,16 +66,22 @@ public V1PodDNSConfig addNameserversItem(String nameserversItem) { * A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed. * @return nameservers **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.") + public List getNameservers() { return nameservers; } + + public void setNameservers(List nameservers) { this.nameservers = nameservers; } + public V1PodDNSConfig options(List options) { + this.options = options; return this; } @@ -84,16 +98,22 @@ public V1PodDNSConfig addOptionsItem(V1PodDNSConfigOption optionsItem) { * A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy. * @return options **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.") + public List getOptions() { return options; } + + public void setOptions(List options) { this.options = options; } + public V1PodDNSConfig searches(List searches) { + this.searches = searches; return this; } @@ -110,11 +130,15 @@ public V1PodDNSConfig addSearchesItem(String searchesItem) { * A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed. * @return searches **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.") + public List getSearches() { return searches; } + + public void setSearches(List searches) { this.searches = searches; } @@ -122,21 +146,12 @@ public void setSearches(List searches) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodDNSConfig v1PodDNSConfig = (V1PodDNSConfig) o; - return Objects.equals(this.nameservers, v1PodDNSConfig.nameservers) && - Objects.equals(this.options, v1PodDNSConfig.options) && - Objects.equals(this.searches, v1PodDNSConfig.searches); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nameservers, options, searches); + return HashCodeBuilder.reflectionHashCode(this); } @@ -144,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodDNSConfig {\n"); - sb.append(" nameservers: ").append(toIndentedString(nameservers)).append("\n"); sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append(" searches: ").append(toIndentedString(searches)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodDNSConfigOption.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodDNSConfigOption.java index 95ccdf5c5b..cc4db54371 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodDNSConfigOption.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodDNSConfigOption.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * PodDNSConfigOption defines DNS resolver options of a pod. */ @ApiModel(description = "PodDNSConfigOption defines DNS resolver options of a pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodDNSConfigOption { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - @SerializedName("value") - private String value = null; public V1PodDNSConfigOption name(String name) { + this.name = name; return this; } @@ -44,16 +51,22 @@ public V1PodDNSConfigOption name(String name) { * Required. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Required.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1PodDNSConfigOption value(String value) { + this.value = value; return this; } @@ -62,11 +75,15 @@ public V1PodDNSConfigOption value(String value) { * Get value * @return value **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getValue() { return value; } + + public void setValue(String value) { this.value = value; } @@ -74,20 +91,12 @@ public void setValue(String value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodDNSConfigOption v1PodDNSConfigOption = (V1PodDNSConfigOption) o; - return Objects.equals(this.name, v1PodDNSConfigOption.name) && - Objects.equals(this.value, v1PodDNSConfigOption.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodDNSConfigOption {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodList.java index 989adaae38..91abd5b9d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PodList is a list of Pods. */ @ApiModel(description = "PodList is a list of Pods.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1PodList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1PodList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PodList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1PodList addItemsItem(V1Pod itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of pods. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1PodList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1PodList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PodList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodList v1PodList = (V1PodList) o; - return Objects.equals(this.apiVersion, v1PodList.apiVersion) && - Objects.equals(this.items, v1PodList.items) && - Objects.equals(this.kind, v1PodList.kind) && - Objects.equals(this.metadata, v1PodList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodReadinessGate.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodReadinessGate.java index f080daa77a..5cb4333d2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodReadinessGate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodReadinessGate.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * PodReadinessGate contains the reference to a pod condition */ @ApiModel(description = "PodReadinessGate contains the reference to a pod condition") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodReadinessGate { - @SerializedName("conditionType") - private String conditionType = null; + public static final String SERIALIZED_NAME_CONDITION_TYPE = "conditionType"; + @SerializedName(SERIALIZED_NAME_CONDITION_TYPE) + private String conditionType; + public V1PodReadinessGate conditionType(String conditionType) { + this.conditionType = conditionType; return this; } @@ -42,10 +48,13 @@ public V1PodReadinessGate conditionType(String conditionType) { * @return conditionType **/ @ApiModelProperty(required = true, value = "ConditionType refers to a condition in the pod's condition list with matching type.") + public String getConditionType() { return conditionType; } + + public void setConditionType(String conditionType) { this.conditionType = conditionType; } @@ -53,19 +62,12 @@ public void setConditionType(String conditionType) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodReadinessGate v1PodReadinessGate = (V1PodReadinessGate) o; - return Objects.equals(this.conditionType, v1PodReadinessGate.conditionType); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conditionType); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodReadinessGate {\n"); - sb.append(" conditionType: ").append(toIndentedString(conditionType)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSecurityContext.java index c0bad6d923..6b91a35dc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSecurityContext.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -21,6 +24,7 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.models.V1SELinuxOptions; import io.kubernetes.client.models.V1Sysctl; +import io.kubernetes.client.models.V1WindowsSecurityContextOptions; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -31,30 +35,43 @@ * PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext. */ @ApiModel(description = "PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodSecurityContext { - @SerializedName("fsGroup") - private Long fsGroup = null; + public static final String SERIALIZED_NAME_FS_GROUP = "fsGroup"; + @SerializedName(SERIALIZED_NAME_FS_GROUP) + private Long fsGroup; - @SerializedName("runAsGroup") - private Long runAsGroup = null; + public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; + @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) + private Long runAsGroup; - @SerializedName("runAsNonRoot") - private Boolean runAsNonRoot = null; + public static final String SERIALIZED_NAME_RUN_AS_NON_ROOT = "runAsNonRoot"; + @SerializedName(SERIALIZED_NAME_RUN_AS_NON_ROOT) + private Boolean runAsNonRoot; - @SerializedName("runAsUser") - private Long runAsUser = null; + public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; + @SerializedName(SERIALIZED_NAME_RUN_AS_USER) + private Long runAsUser; - @SerializedName("seLinuxOptions") - private V1SELinuxOptions seLinuxOptions = null; + public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; + @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) + private V1SELinuxOptions seLinuxOptions; - @SerializedName("supplementalGroups") + public static final String SERIALIZED_NAME_SUPPLEMENTAL_GROUPS = "supplementalGroups"; + @SerializedName(SERIALIZED_NAME_SUPPLEMENTAL_GROUPS) private List supplementalGroups = null; - @SerializedName("sysctls") + public static final String SERIALIZED_NAME_SYSCTLS = "sysctls"; + @SerializedName(SERIALIZED_NAME_SYSCTLS) private List sysctls = null; + public static final String SERIALIZED_NAME_WINDOWS_OPTIONS = "windowsOptions"; + @SerializedName(SERIALIZED_NAME_WINDOWS_OPTIONS) + private V1WindowsSecurityContextOptions windowsOptions; + + public V1PodSecurityContext fsGroup(Long fsGroup) { + this.fsGroup = fsGroup; return this; } @@ -63,16 +80,22 @@ public V1PodSecurityContext fsGroup(Long fsGroup) { * A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. * @return fsGroup **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume.") + public Long getFsGroup() { return fsGroup; } + + public void setFsGroup(Long fsGroup) { this.fsGroup = fsGroup; } + public V1PodSecurityContext runAsGroup(Long runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @@ -81,16 +104,22 @@ public V1PodSecurityContext runAsGroup(Long runAsGroup) { * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. * @return runAsGroup **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.") + public Long getRunAsGroup() { return runAsGroup; } + + public void setRunAsGroup(Long runAsGroup) { this.runAsGroup = runAsGroup; } + public V1PodSecurityContext runAsNonRoot(Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; return this; } @@ -99,16 +128,22 @@ public V1PodSecurityContext runAsNonRoot(Boolean runAsNonRoot) { * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsNonRoot **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") - public Boolean isRunAsNonRoot() { + + public Boolean getRunAsNonRoot() { return runAsNonRoot; } + + public void setRunAsNonRoot(Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; } + public V1PodSecurityContext runAsUser(Long runAsUser) { + this.runAsUser = runAsUser; return this; } @@ -117,34 +152,46 @@ public V1PodSecurityContext runAsUser(Long runAsUser) { * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. * @return runAsUser **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.") + public Long getRunAsUser() { return runAsUser; } + + public void setRunAsUser(Long runAsUser) { this.runAsUser = runAsUser; } + public V1PodSecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } /** - * The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + * Get seLinuxOptions * @return seLinuxOptions **/ - @ApiModelProperty(value = "The SELinux context to be applied to all containers. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } + + public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; } + public V1PodSecurityContext supplementalGroups(List supplementalGroups) { + this.supplementalGroups = supplementalGroups; return this; } @@ -161,16 +208,22 @@ public V1PodSecurityContext addSupplementalGroupsItem(Long supplementalGroupsIte * A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. * @return supplementalGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container.") + public List getSupplementalGroups() { return supplementalGroups; } + + public void setSupplementalGroups(List supplementalGroups) { this.supplementalGroups = supplementalGroups; } + public V1PodSecurityContext sysctls(List sysctls) { + this.sysctls = sysctls; return this; } @@ -187,37 +240,52 @@ public V1PodSecurityContext addSysctlsItem(V1Sysctl sysctlsItem) { * Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. * @return sysctls **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch.") + public List getSysctls() { return sysctls; } + + public void setSysctls(List sysctls) { this.sysctls = sysctls; } + public V1PodSecurityContext windowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + + this.windowsOptions = windowsOptions; + return this; + } + + /** + * Get windowsOptions + * @return windowsOptions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1WindowsSecurityContextOptions getWindowsOptions() { + return windowsOptions; + } + + + + public void setWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + this.windowsOptions = windowsOptions; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodSecurityContext v1PodSecurityContext = (V1PodSecurityContext) o; - return Objects.equals(this.fsGroup, v1PodSecurityContext.fsGroup) && - Objects.equals(this.runAsGroup, v1PodSecurityContext.runAsGroup) && - Objects.equals(this.runAsNonRoot, v1PodSecurityContext.runAsNonRoot) && - Objects.equals(this.runAsUser, v1PodSecurityContext.runAsUser) && - Objects.equals(this.seLinuxOptions, v1PodSecurityContext.seLinuxOptions) && - Objects.equals(this.supplementalGroups, v1PodSecurityContext.supplementalGroups) && - Objects.equals(this.sysctls, v1PodSecurityContext.sysctls); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsGroup, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions, supplementalGroups, sysctls); + return HashCodeBuilder.reflectionHashCode(this); } @@ -225,7 +293,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodSecurityContext {\n"); - sb.append(" fsGroup: ").append(toIndentedString(fsGroup)).append("\n"); sb.append(" runAsGroup: ").append(toIndentedString(runAsGroup)).append("\n"); sb.append(" runAsNonRoot: ").append(toIndentedString(runAsNonRoot)).append("\n"); @@ -233,6 +300,7 @@ public String toString() { sb.append(" seLinuxOptions: ").append(toIndentedString(seLinuxOptions)).append("\n"); sb.append(" supplementalGroups: ").append(toIndentedString(supplementalGroups)).append("\n"); sb.append(" sysctls: ").append(toIndentedString(sysctls)).append("\n"); + sb.append(" windowsOptions: ").append(toIndentedString(windowsOptions)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSpec.java index a75d6496d0..58dcfe5bc4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -40,99 +43,135 @@ * PodSpec is a description of a pod. */ @ApiModel(description = "PodSpec is a description of a pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodSpec { - @SerializedName("activeDeadlineSeconds") - private Long activeDeadlineSeconds = null; + public static final String SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS = "activeDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_ACTIVE_DEADLINE_SECONDS) + private Long activeDeadlineSeconds; - @SerializedName("affinity") - private V1Affinity affinity = null; + public static final String SERIALIZED_NAME_AFFINITY = "affinity"; + @SerializedName(SERIALIZED_NAME_AFFINITY) + private V1Affinity affinity; - @SerializedName("automountServiceAccountToken") - private Boolean automountServiceAccountToken = null; + public static final String SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN = "automountServiceAccountToken"; + @SerializedName(SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN) + private Boolean automountServiceAccountToken; - @SerializedName("containers") + public static final String SERIALIZED_NAME_CONTAINERS = "containers"; + @SerializedName(SERIALIZED_NAME_CONTAINERS) private List containers = new ArrayList(); - @SerializedName("dnsConfig") - private V1PodDNSConfig dnsConfig = null; + public static final String SERIALIZED_NAME_DNS_CONFIG = "dnsConfig"; + @SerializedName(SERIALIZED_NAME_DNS_CONFIG) + private V1PodDNSConfig dnsConfig; - @SerializedName("dnsPolicy") - private String dnsPolicy = null; + public static final String SERIALIZED_NAME_DNS_POLICY = "dnsPolicy"; + @SerializedName(SERIALIZED_NAME_DNS_POLICY) + private String dnsPolicy; - @SerializedName("enableServiceLinks") - private Boolean enableServiceLinks = null; + public static final String SERIALIZED_NAME_ENABLE_SERVICE_LINKS = "enableServiceLinks"; + @SerializedName(SERIALIZED_NAME_ENABLE_SERVICE_LINKS) + private Boolean enableServiceLinks; - @SerializedName("hostAliases") + public static final String SERIALIZED_NAME_HOST_ALIASES = "hostAliases"; + @SerializedName(SERIALIZED_NAME_HOST_ALIASES) private List hostAliases = null; - @SerializedName("hostIPC") - private Boolean hostIPC = null; + public static final String SERIALIZED_NAME_HOST_I_P_C = "hostIPC"; + @SerializedName(SERIALIZED_NAME_HOST_I_P_C) + private Boolean hostIPC; - @SerializedName("hostNetwork") - private Boolean hostNetwork = null; + public static final String SERIALIZED_NAME_HOST_NETWORK = "hostNetwork"; + @SerializedName(SERIALIZED_NAME_HOST_NETWORK) + private Boolean hostNetwork; - @SerializedName("hostPID") - private Boolean hostPID = null; + public static final String SERIALIZED_NAME_HOST_P_I_D = "hostPID"; + @SerializedName(SERIALIZED_NAME_HOST_P_I_D) + private Boolean hostPID; - @SerializedName("hostname") - private String hostname = null; + public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; + @SerializedName(SERIALIZED_NAME_HOSTNAME) + private String hostname; - @SerializedName("imagePullSecrets") + public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; + @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) private List imagePullSecrets = null; - @SerializedName("initContainers") + public static final String SERIALIZED_NAME_INIT_CONTAINERS = "initContainers"; + @SerializedName(SERIALIZED_NAME_INIT_CONTAINERS) private List initContainers = null; - @SerializedName("nodeName") - private String nodeName = null; + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; - @SerializedName("nodeSelector") + public static final String SERIALIZED_NAME_NODE_SELECTOR = "nodeSelector"; + @SerializedName(SERIALIZED_NAME_NODE_SELECTOR) private Map nodeSelector = null; - @SerializedName("priority") - private Integer priority = null; + public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; + @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) + private String preemptionPolicy; + + public static final String SERIALIZED_NAME_PRIORITY = "priority"; + @SerializedName(SERIALIZED_NAME_PRIORITY) + private Integer priority; - @SerializedName("priorityClassName") - private String priorityClassName = null; + public static final String SERIALIZED_NAME_PRIORITY_CLASS_NAME = "priorityClassName"; + @SerializedName(SERIALIZED_NAME_PRIORITY_CLASS_NAME) + private String priorityClassName; - @SerializedName("readinessGates") + public static final String SERIALIZED_NAME_READINESS_GATES = "readinessGates"; + @SerializedName(SERIALIZED_NAME_READINESS_GATES) private List readinessGates = null; - @SerializedName("restartPolicy") - private String restartPolicy = null; + public static final String SERIALIZED_NAME_RESTART_POLICY = "restartPolicy"; + @SerializedName(SERIALIZED_NAME_RESTART_POLICY) + private String restartPolicy; - @SerializedName("runtimeClassName") - private String runtimeClassName = null; + public static final String SERIALIZED_NAME_RUNTIME_CLASS_NAME = "runtimeClassName"; + @SerializedName(SERIALIZED_NAME_RUNTIME_CLASS_NAME) + private String runtimeClassName; - @SerializedName("schedulerName") - private String schedulerName = null; + public static final String SERIALIZED_NAME_SCHEDULER_NAME = "schedulerName"; + @SerializedName(SERIALIZED_NAME_SCHEDULER_NAME) + private String schedulerName; - @SerializedName("securityContext") - private V1PodSecurityContext securityContext = null; + public static final String SERIALIZED_NAME_SECURITY_CONTEXT = "securityContext"; + @SerializedName(SERIALIZED_NAME_SECURITY_CONTEXT) + private V1PodSecurityContext securityContext; - @SerializedName("serviceAccount") - private String serviceAccount = null; + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT = "serviceAccount"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT) + private String serviceAccount; - @SerializedName("serviceAccountName") - private String serviceAccountName = null; + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_NAME = "serviceAccountName"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_NAME) + private String serviceAccountName; - @SerializedName("shareProcessNamespace") - private Boolean shareProcessNamespace = null; + public static final String SERIALIZED_NAME_SHARE_PROCESS_NAMESPACE = "shareProcessNamespace"; + @SerializedName(SERIALIZED_NAME_SHARE_PROCESS_NAMESPACE) + private Boolean shareProcessNamespace; - @SerializedName("subdomain") - private String subdomain = null; + public static final String SERIALIZED_NAME_SUBDOMAIN = "subdomain"; + @SerializedName(SERIALIZED_NAME_SUBDOMAIN) + private String subdomain; - @SerializedName("terminationGracePeriodSeconds") - private Long terminationGracePeriodSeconds = null; + public static final String SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS = "terminationGracePeriodSeconds"; + @SerializedName(SERIALIZED_NAME_TERMINATION_GRACE_PERIOD_SECONDS) + private Long terminationGracePeriodSeconds; - @SerializedName("tolerations") + public static final String SERIALIZED_NAME_TOLERATIONS = "tolerations"; + @SerializedName(SERIALIZED_NAME_TOLERATIONS) private List tolerations = null; - @SerializedName("volumes") + public static final String SERIALIZED_NAME_VOLUMES = "volumes"; + @SerializedName(SERIALIZED_NAME_VOLUMES) private List volumes = null; + public V1PodSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { + this.activeDeadlineSeconds = activeDeadlineSeconds; return this; } @@ -141,34 +180,46 @@ public V1PodSpec activeDeadlineSeconds(Long activeDeadlineSeconds) { * Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer. * @return activeDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional duration in seconds the pod may be active on the node relative to StartTime before the system will actively try to mark it failed and kill associated containers. Value must be a positive integer.") + public Long getActiveDeadlineSeconds() { return activeDeadlineSeconds; } + + public void setActiveDeadlineSeconds(Long activeDeadlineSeconds) { this.activeDeadlineSeconds = activeDeadlineSeconds; } + public V1PodSpec affinity(V1Affinity affinity) { + this.affinity = affinity; return this; } /** - * If specified, the pod's scheduling constraints + * Get affinity * @return affinity **/ - @ApiModelProperty(value = "If specified, the pod's scheduling constraints") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Affinity getAffinity() { return affinity; } + + public void setAffinity(V1Affinity affinity) { this.affinity = affinity; } + public V1PodSpec automountServiceAccountToken(Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; return this; } @@ -177,16 +228,22 @@ public V1PodSpec automountServiceAccountToken(Boolean automountServiceAccountTok * AutomountServiceAccountToken indicates whether a service account token should be automatically mounted. * @return automountServiceAccountToken **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether a service account token should be automatically mounted.") - public Boolean isAutomountServiceAccountToken() { + + public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } + + public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; } + public V1PodSpec containers(List containers) { + this.containers = containers; return this; } @@ -201,33 +258,44 @@ public V1PodSpec addContainersItem(V1Container containersItem) { * @return containers **/ @ApiModelProperty(required = true, value = "List of containers belonging to the pod. Containers cannot currently be added or removed. There must be at least one container in a Pod. Cannot be updated.") + public List getContainers() { return containers; } + + public void setContainers(List containers) { this.containers = containers; } + public V1PodSpec dnsConfig(V1PodDNSConfig dnsConfig) { + this.dnsConfig = dnsConfig; return this; } /** - * Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy. + * Get dnsConfig * @return dnsConfig **/ - @ApiModelProperty(value = "Specifies the DNS parameters of a pod. Parameters specified here will be merged to the generated DNS configuration based on DNSPolicy.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodDNSConfig getDnsConfig() { return dnsConfig; } + + public void setDnsConfig(V1PodDNSConfig dnsConfig) { this.dnsConfig = dnsConfig; } + public V1PodSpec dnsPolicy(String dnsPolicy) { + this.dnsPolicy = dnsPolicy; return this; } @@ -236,16 +304,22 @@ public V1PodSpec dnsPolicy(String dnsPolicy) { * Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'. * @return dnsPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Set DNS policy for the pod. Defaults to \"ClusterFirst\". Valid values are 'ClusterFirstWithHostNet', 'ClusterFirst', 'Default' or 'None'. DNS parameters given in DNSConfig will be merged with the policy selected with DNSPolicy. To have DNS options set along with hostNetwork, you have to specify DNS policy explicitly to 'ClusterFirstWithHostNet'.") + public String getDnsPolicy() { return dnsPolicy; } + + public void setDnsPolicy(String dnsPolicy) { this.dnsPolicy = dnsPolicy; } + public V1PodSpec enableServiceLinks(Boolean enableServiceLinks) { + this.enableServiceLinks = enableServiceLinks; return this; } @@ -254,16 +328,22 @@ public V1PodSpec enableServiceLinks(Boolean enableServiceLinks) { * EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. * @return enableServiceLinks **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.") - public Boolean isEnableServiceLinks() { + + public Boolean getEnableServiceLinks() { return enableServiceLinks; } + + public void setEnableServiceLinks(Boolean enableServiceLinks) { this.enableServiceLinks = enableServiceLinks; } + public V1PodSpec hostAliases(List hostAliases) { + this.hostAliases = hostAliases; return this; } @@ -280,16 +360,22 @@ public V1PodSpec addHostAliasesItem(V1HostAlias hostAliasesItem) { * HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. * @return hostAliases **/ + @javax.annotation.Nullable @ApiModelProperty(value = "HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods.") + public List getHostAliases() { return hostAliases; } + + public void setHostAliases(List hostAliases) { this.hostAliases = hostAliases; } + public V1PodSpec hostIPC(Boolean hostIPC) { + this.hostIPC = hostIPC; return this; } @@ -298,16 +384,22 @@ public V1PodSpec hostIPC(Boolean hostIPC) { * Use the host's ipc namespace. Optional: Default to false. * @return hostIPC **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Use the host's ipc namespace. Optional: Default to false.") - public Boolean isHostIPC() { + + public Boolean getHostIPC() { return hostIPC; } + + public void setHostIPC(Boolean hostIPC) { this.hostIPC = hostIPC; } + public V1PodSpec hostNetwork(Boolean hostNetwork) { + this.hostNetwork = hostNetwork; return this; } @@ -316,16 +408,22 @@ public V1PodSpec hostNetwork(Boolean hostNetwork) { * Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. * @return hostNetwork **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false.") - public Boolean isHostNetwork() { + + public Boolean getHostNetwork() { return hostNetwork; } + + public void setHostNetwork(Boolean hostNetwork) { this.hostNetwork = hostNetwork; } + public V1PodSpec hostPID(Boolean hostPID) { + this.hostPID = hostPID; return this; } @@ -334,16 +432,22 @@ public V1PodSpec hostPID(Boolean hostPID) { * Use the host's pid namespace. Optional: Default to false. * @return hostPID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Use the host's pid namespace. Optional: Default to false.") - public Boolean isHostPID() { + + public Boolean getHostPID() { return hostPID; } + + public void setHostPID(Boolean hostPID) { this.hostPID = hostPID; } + public V1PodSpec hostname(String hostname) { + this.hostname = hostname; return this; } @@ -352,16 +456,22 @@ public V1PodSpec hostname(String hostname) { * Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. * @return hostname **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value.") + public String getHostname() { return hostname; } + + public void setHostname(String hostname) { this.hostname = hostname; } + public V1PodSpec imagePullSecrets(List imagePullSecrets) { + this.imagePullSecrets = imagePullSecrets; return this; } @@ -378,16 +488,22 @@ public V1PodSpec addImagePullSecretsItem(V1LocalObjectReference imagePullSecrets * ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod * @return imagePullSecrets **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod") + public List getImagePullSecrets() { return imagePullSecrets; } + + public void setImagePullSecrets(List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; } + public V1PodSpec initContainers(List initContainers) { + this.initContainers = initContainers; return this; } @@ -404,16 +520,22 @@ public V1PodSpec addInitContainersItem(V1Container initContainersItem) { * List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ * @return initContainers **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, or Liveness probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/") + public List getInitContainers() { return initContainers; } + + public void setInitContainers(List initContainers) { this.initContainers = initContainers; } + public V1PodSpec nodeName(String nodeName) { + this.nodeName = nodeName; return this; } @@ -422,16 +544,22 @@ public V1PodSpec nodeName(String nodeName) { * NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. * @return nodeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements.") + public String getNodeName() { return nodeName; } + + public void setNodeName(String nodeName) { this.nodeName = nodeName; } + public V1PodSpec nodeSelector(Map nodeSelector) { + this.nodeSelector = nodeSelector; return this; } @@ -448,16 +576,46 @@ public V1PodSpec putNodeSelectorItem(String key, String nodeSelectorItem) { * NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ * @return nodeSelector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/") + public Map getNodeSelector() { return nodeSelector; } + + public void setNodeSelector(Map nodeSelector) { this.nodeSelector = nodeSelector; } + + public V1PodSpec preemptionPolicy(String preemptionPolicy) { + + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * @return preemptionPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.") + + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + + + public void setPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + public V1PodSpec priority(Integer priority) { + this.priority = priority; return this; } @@ -466,16 +624,22 @@ public V1PodSpec priority(Integer priority) { * The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. * @return priority **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.") + public Integer getPriority() { return priority; } + + public void setPriority(Integer priority) { this.priority = priority; } + public V1PodSpec priorityClassName(String priorityClassName) { + this.priorityClassName = priorityClassName; return this; } @@ -484,16 +648,22 @@ public V1PodSpec priorityClassName(String priorityClassName) { * If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. * @return priorityClassName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default.") + public String getPriorityClassName() { return priorityClassName; } + + public void setPriorityClassName(String priorityClassName) { this.priorityClassName = priorityClassName; } + public V1PodSpec readinessGates(List readinessGates) { + this.readinessGates = readinessGates; return this; } @@ -510,16 +680,22 @@ public V1PodSpec addReadinessGatesItem(V1PodReadinessGate readinessGatesItem) { * If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md * @return readinessGates **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md") + public List getReadinessGates() { return readinessGates; } + + public void setReadinessGates(List readinessGates) { this.readinessGates = readinessGates; } + public V1PodSpec restartPolicy(String restartPolicy) { + this.restartPolicy = restartPolicy; return this; } @@ -528,34 +704,46 @@ public V1PodSpec restartPolicy(String restartPolicy) { * Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy * @return restartPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Restart policy for all containers within the pod. One of Always, OnFailure, Never. Default to Always. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#restart-policy") + public String getRestartPolicy() { return restartPolicy; } + + public void setRestartPolicy(String restartPolicy) { this.restartPolicy = restartPolicy; } + public V1PodSpec runtimeClassName(String runtimeClassName) { + this.runtimeClassName = runtimeClassName; return this; } /** - * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future. + * RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. * @return runtimeClassName **/ - @ApiModelProperty(value = "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future.") + @javax.annotation.Nullable + @ApiModelProperty(value = "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.") + public String getRuntimeClassName() { return runtimeClassName; } + + public void setRuntimeClassName(String runtimeClassName) { this.runtimeClassName = runtimeClassName; } + public V1PodSpec schedulerName(String schedulerName) { + this.schedulerName = schedulerName; return this; } @@ -564,34 +752,46 @@ public V1PodSpec schedulerName(String schedulerName) { * If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. * @return schedulerName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler.") + public String getSchedulerName() { return schedulerName; } + + public void setSchedulerName(String schedulerName) { this.schedulerName = schedulerName; } + public V1PodSpec securityContext(V1PodSecurityContext securityContext) { + this.securityContext = securityContext; return this; } /** - * SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field. + * Get securityContext * @return securityContext **/ - @ApiModelProperty(value = "SecurityContext holds pod-level security attributes and common container settings. Optional: Defaults to empty. See type description for default values of each field.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodSecurityContext getSecurityContext() { return securityContext; } + + public void setSecurityContext(V1PodSecurityContext securityContext) { this.securityContext = securityContext; } + public V1PodSpec serviceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; return this; } @@ -600,16 +800,22 @@ public V1PodSpec serviceAccount(String serviceAccount) { * DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. * @return serviceAccount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead.") + public String getServiceAccount() { return serviceAccount; } + + public void setServiceAccount(String serviceAccount) { this.serviceAccount = serviceAccount; } + public V1PodSpec serviceAccountName(String serviceAccountName) { + this.serviceAccountName = serviceAccountName; return this; } @@ -618,16 +824,22 @@ public V1PodSpec serviceAccountName(String serviceAccountName) { * ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ * @return serviceAccountName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") + public String getServiceAccountName() { return serviceAccountName; } + + public void setServiceAccountName(String serviceAccountName) { this.serviceAccountName = serviceAccountName; } + public V1PodSpec shareProcessNamespace(Boolean shareProcessNamespace) { + this.shareProcessNamespace = shareProcessNamespace; return this; } @@ -636,16 +848,22 @@ public V1PodSpec shareProcessNamespace(Boolean shareProcessNamespace) { * Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature. * @return shareProcessNamespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. This field is beta-level and may be disabled with the PodShareProcessNamespace feature.") - public Boolean isShareProcessNamespace() { + + public Boolean getShareProcessNamespace() { return shareProcessNamespace; } + + public void setShareProcessNamespace(Boolean shareProcessNamespace) { this.shareProcessNamespace = shareProcessNamespace; } + public V1PodSpec subdomain(String subdomain) { + this.subdomain = subdomain; return this; } @@ -654,16 +872,22 @@ public V1PodSpec subdomain(String subdomain) { * If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. * @return subdomain **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, the fully qualified Pod hostname will be \"...svc.\". If not specified, the pod will not have a domainname at all.") + public String getSubdomain() { return subdomain; } + + public void setSubdomain(String subdomain) { this.subdomain = subdomain; } + public V1PodSpec terminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { + this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; return this; } @@ -672,16 +896,22 @@ public V1PodSpec terminationGracePeriodSeconds(Long terminationGracePeriodSecond * Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. * @return terminationGracePeriodSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.") + public Long getTerminationGracePeriodSeconds() { return terminationGracePeriodSeconds; } + + public void setTerminationGracePeriodSeconds(Long terminationGracePeriodSeconds) { this.terminationGracePeriodSeconds = terminationGracePeriodSeconds; } + public V1PodSpec tolerations(List tolerations) { + this.tolerations = tolerations; return this; } @@ -698,16 +928,22 @@ public V1PodSpec addTolerationsItem(V1Toleration tolerationsItem) { * If specified, the pod's tolerations. * @return tolerations **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, the pod's tolerations.") + public List getTolerations() { return tolerations; } + + public void setTolerations(List tolerations) { this.tolerations = tolerations; } + public V1PodSpec volumes(List volumes) { + this.volumes = volumes; return this; } @@ -724,11 +960,15 @@ public V1PodSpec addVolumesItem(V1Volume volumesItem) { * List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes * @return volumes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes") + public List getVolumes() { return volumes; } + + public void setVolumes(List volumes) { this.volumes = volumes; } @@ -736,48 +976,12 @@ public void setVolumes(List volumes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodSpec v1PodSpec = (V1PodSpec) o; - return Objects.equals(this.activeDeadlineSeconds, v1PodSpec.activeDeadlineSeconds) && - Objects.equals(this.affinity, v1PodSpec.affinity) && - Objects.equals(this.automountServiceAccountToken, v1PodSpec.automountServiceAccountToken) && - Objects.equals(this.containers, v1PodSpec.containers) && - Objects.equals(this.dnsConfig, v1PodSpec.dnsConfig) && - Objects.equals(this.dnsPolicy, v1PodSpec.dnsPolicy) && - Objects.equals(this.enableServiceLinks, v1PodSpec.enableServiceLinks) && - Objects.equals(this.hostAliases, v1PodSpec.hostAliases) && - Objects.equals(this.hostIPC, v1PodSpec.hostIPC) && - Objects.equals(this.hostNetwork, v1PodSpec.hostNetwork) && - Objects.equals(this.hostPID, v1PodSpec.hostPID) && - Objects.equals(this.hostname, v1PodSpec.hostname) && - Objects.equals(this.imagePullSecrets, v1PodSpec.imagePullSecrets) && - Objects.equals(this.initContainers, v1PodSpec.initContainers) && - Objects.equals(this.nodeName, v1PodSpec.nodeName) && - Objects.equals(this.nodeSelector, v1PodSpec.nodeSelector) && - Objects.equals(this.priority, v1PodSpec.priority) && - Objects.equals(this.priorityClassName, v1PodSpec.priorityClassName) && - Objects.equals(this.readinessGates, v1PodSpec.readinessGates) && - Objects.equals(this.restartPolicy, v1PodSpec.restartPolicy) && - Objects.equals(this.runtimeClassName, v1PodSpec.runtimeClassName) && - Objects.equals(this.schedulerName, v1PodSpec.schedulerName) && - Objects.equals(this.securityContext, v1PodSpec.securityContext) && - Objects.equals(this.serviceAccount, v1PodSpec.serviceAccount) && - Objects.equals(this.serviceAccountName, v1PodSpec.serviceAccountName) && - Objects.equals(this.shareProcessNamespace, v1PodSpec.shareProcessNamespace) && - Objects.equals(this.subdomain, v1PodSpec.subdomain) && - Objects.equals(this.terminationGracePeriodSeconds, v1PodSpec.terminationGracePeriodSeconds) && - Objects.equals(this.tolerations, v1PodSpec.tolerations) && - Objects.equals(this.volumes, v1PodSpec.volumes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(activeDeadlineSeconds, affinity, automountServiceAccountToken, containers, dnsConfig, dnsPolicy, enableServiceLinks, hostAliases, hostIPC, hostNetwork, hostPID, hostname, imagePullSecrets, initContainers, nodeName, nodeSelector, priority, priorityClassName, readinessGates, restartPolicy, runtimeClassName, schedulerName, securityContext, serviceAccount, serviceAccountName, shareProcessNamespace, subdomain, terminationGracePeriodSeconds, tolerations, volumes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -785,7 +989,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodSpec {\n"); - sb.append(" activeDeadlineSeconds: ").append(toIndentedString(activeDeadlineSeconds)).append("\n"); sb.append(" affinity: ").append(toIndentedString(affinity)).append("\n"); sb.append(" automountServiceAccountToken: ").append(toIndentedString(automountServiceAccountToken)).append("\n"); @@ -802,6 +1005,7 @@ public String toString() { sb.append(" initContainers: ").append(toIndentedString(initContainers)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" nodeSelector: ").append(toIndentedString(nodeSelector)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); sb.append(" priorityClassName: ").append(toIndentedString(priorityClassName)).append("\n"); sb.append(" readinessGates: ").append(toIndentedString(readinessGates)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodStatus.java index bd6e304199..b6890db859 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,42 +35,55 @@ * PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane. */ @ApiModel(description = "PodStatus represents information about the status of a pod. Status may trail the actual state of a system, especially if the node that hosts the pod cannot contact the control plane.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodStatus { - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("containerStatuses") + public static final String SERIALIZED_NAME_CONTAINER_STATUSES = "containerStatuses"; + @SerializedName(SERIALIZED_NAME_CONTAINER_STATUSES) private List containerStatuses = null; - @SerializedName("hostIP") - private String hostIP = null; + public static final String SERIALIZED_NAME_HOST_I_P = "hostIP"; + @SerializedName(SERIALIZED_NAME_HOST_I_P) + private String hostIP; - @SerializedName("initContainerStatuses") + public static final String SERIALIZED_NAME_INIT_CONTAINER_STATUSES = "initContainerStatuses"; + @SerializedName(SERIALIZED_NAME_INIT_CONTAINER_STATUSES) private List initContainerStatuses = null; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_NOMINATED_NODE_NAME = "nominatedNodeName"; + @SerializedName(SERIALIZED_NAME_NOMINATED_NODE_NAME) + private String nominatedNodeName; - @SerializedName("nominatedNodeName") - private String nominatedNodeName = null; + public static final String SERIALIZED_NAME_PHASE = "phase"; + @SerializedName(SERIALIZED_NAME_PHASE) + private String phase; - @SerializedName("phase") - private String phase = null; + public static final String SERIALIZED_NAME_POD_I_P = "podIP"; + @SerializedName(SERIALIZED_NAME_POD_I_P) + private String podIP; - @SerializedName("podIP") - private String podIP = null; + public static final String SERIALIZED_NAME_QOS_CLASS = "qosClass"; + @SerializedName(SERIALIZED_NAME_QOS_CLASS) + private String qosClass; - @SerializedName("qosClass") - private String qosClass = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_START_TIME = "startTime"; + @SerializedName(SERIALIZED_NAME_START_TIME) + private DateTime startTime; - @SerializedName("startTime") - private DateTime startTime = null; public V1PodStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -84,16 +100,22 @@ public V1PodStatus addConditionsItem(V1PodCondition conditionsItem) { * Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1PodStatus containerStatuses(List containerStatuses) { + this.containerStatuses = containerStatuses; return this; } @@ -110,16 +132,22 @@ public V1PodStatus addContainerStatusesItem(V1ContainerStatus containerStatusesI * The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status * @return containerStatuses **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") + public List getContainerStatuses() { return containerStatuses; } + + public void setContainerStatuses(List containerStatuses) { this.containerStatuses = containerStatuses; } + public V1PodStatus hostIP(String hostIP) { + this.hostIP = hostIP; return this; } @@ -128,16 +156,22 @@ public V1PodStatus hostIP(String hostIP) { * IP address of the host to which the pod is assigned. Empty if not yet scheduled. * @return hostIP **/ + @javax.annotation.Nullable @ApiModelProperty(value = "IP address of the host to which the pod is assigned. Empty if not yet scheduled.") + public String getHostIP() { return hostIP; } + + public void setHostIP(String hostIP) { this.hostIP = hostIP; } + public V1PodStatus initContainerStatuses(List initContainerStatuses) { + this.initContainerStatuses = initContainerStatuses; return this; } @@ -154,16 +188,22 @@ public V1PodStatus addInitContainerStatusesItem(V1ContainerStatus initContainerS * The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status * @return initContainerStatuses **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status") + public List getInitContainerStatuses() { return initContainerStatuses; } + + public void setInitContainerStatuses(List initContainerStatuses) { this.initContainerStatuses = initContainerStatuses; } + public V1PodStatus message(String message) { + this.message = message; return this; } @@ -172,16 +212,22 @@ public V1PodStatus message(String message) { * A human readable message indicating details about why the pod is in this condition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about why the pod is in this condition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1PodStatus nominatedNodeName(String nominatedNodeName) { + this.nominatedNodeName = nominatedNodeName; return this; } @@ -190,16 +236,22 @@ public V1PodStatus nominatedNodeName(String nominatedNodeName) { * nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. * @return nominatedNodeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled.") + public String getNominatedNodeName() { return nominatedNodeName; } + + public void setNominatedNodeName(String nominatedNodeName) { this.nominatedNodeName = nominatedNodeName; } + public V1PodStatus phase(String phase) { + this.phase = phase; return this; } @@ -208,16 +260,22 @@ public V1PodStatus phase(String phase) { * The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase * @return phase **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The phase of a Pod is a simple, high-level summary of where the Pod is in its lifecycle. The conditions array, the reason and message fields, and the individual container status arrays contain more detail about the pod's status. There are five possible phase values: Pending: The pod has been accepted by the Kubernetes system, but one or more of the container images has not been created. This includes time before being scheduled as well as time spent downloading images over the network, which could take a while. Running: The pod has been bound to a node, and all of the containers have been created. At least one container is still running, or is in the process of starting or restarting. Succeeded: All containers in the pod have terminated in success, and will not be restarted. Failed: All containers in the pod have terminated, and at least one container has terminated in failure. The container either exited with non-zero status or was terminated by the system. Unknown: For some reason the state of the pod could not be obtained, typically due to an error in communicating with the host of the pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-phase") + public String getPhase() { return phase; } + + public void setPhase(String phase) { this.phase = phase; } + public V1PodStatus podIP(String podIP) { + this.podIP = podIP; return this; } @@ -226,16 +284,22 @@ public V1PodStatus podIP(String podIP) { * IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. * @return podIP **/ + @javax.annotation.Nullable @ApiModelProperty(value = "IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated.") + public String getPodIP() { return podIP; } + + public void setPodIP(String podIP) { this.podIP = podIP; } + public V1PodStatus qosClass(String qosClass) { + this.qosClass = qosClass; return this; } @@ -244,16 +308,22 @@ public V1PodStatus qosClass(String qosClass) { * The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md * @return qosClass **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The Quality of Service (QOS) classification assigned to the pod based on resource requirements See PodQOSClass type for available QOS classes More info: https://git.k8s.io/community/contributors/design-proposals/node/resource-qos.md") + public String getQosClass() { return qosClass; } + + public void setQosClass(String qosClass) { this.qosClass = qosClass; } + public V1PodStatus reason(String reason) { + this.reason = reason; return this; } @@ -262,16 +332,22 @@ public V1PodStatus reason(String reason) { * A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted'") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1PodStatus startTime(DateTime startTime) { + this.startTime = startTime; return this; } @@ -280,11 +356,15 @@ public V1PodStatus startTime(DateTime startTime) { * RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. * @return startTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod.") + public DateTime getStartTime() { return startTime; } + + public void setStartTime(DateTime startTime) { this.startTime = startTime; } @@ -292,29 +372,12 @@ public void setStartTime(DateTime startTime) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodStatus v1PodStatus = (V1PodStatus) o; - return Objects.equals(this.conditions, v1PodStatus.conditions) && - Objects.equals(this.containerStatuses, v1PodStatus.containerStatuses) && - Objects.equals(this.hostIP, v1PodStatus.hostIP) && - Objects.equals(this.initContainerStatuses, v1PodStatus.initContainerStatuses) && - Objects.equals(this.message, v1PodStatus.message) && - Objects.equals(this.nominatedNodeName, v1PodStatus.nominatedNodeName) && - Objects.equals(this.phase, v1PodStatus.phase) && - Objects.equals(this.podIP, v1PodStatus.podIP) && - Objects.equals(this.qosClass, v1PodStatus.qosClass) && - Objects.equals(this.reason, v1PodStatus.reason) && - Objects.equals(this.startTime, v1PodStatus.startTime); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conditions, containerStatuses, hostIP, initContainerStatuses, message, nominatedNodeName, phase, podIP, qosClass, reason, startTime); + return HashCodeBuilder.reflectionHashCode(this); } @@ -322,7 +385,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" containerStatuses: ").append(toIndentedString(containerStatuses)).append("\n"); sb.append(" hostIP: ").append(toIndentedString(hostIP)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplate.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplate.java index 17e92dce00..23f03eb47e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplate.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplate.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * PodTemplate describes a template for creating copies of a predefined pod. */ @ApiModel(description = "PodTemplate describes a template for creating copies of a predefined pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodTemplate { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public V1PodTemplate apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1PodTemplate apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PodTemplate kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public V1PodTemplate kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PodTemplate metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1PodTemplate template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get template * @return template **/ - @ApiModelProperty(value = "Template defines the pods that will be created from this pod template. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -118,22 +149,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodTemplate v1PodTemplate = (V1PodTemplate) o; - return Objects.equals(this.apiVersion, v1PodTemplate.apiVersion) && - Objects.equals(this.kind, v1PodTemplate.kind) && - Objects.equals(this.metadata, v1PodTemplate.metadata) && - Objects.equals(this.template, v1PodTemplate.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodTemplate {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateList.java index 1ff52f3352..f3d2828f81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PodTemplateList is a list of PodTemplates. */ @ApiModel(description = "PodTemplateList is a list of PodTemplates.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodTemplateList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1PodTemplateList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1PodTemplateList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PodTemplateList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1PodTemplateList addItemsItem(V1PodTemplate itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of pod templates") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1PodTemplateList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1PodTemplateList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PodTemplateList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodTemplateList v1PodTemplateList = (V1PodTemplateList) o; - return Objects.equals(this.apiVersion, v1PodTemplateList.apiVersion) && - Objects.equals(this.items, v1PodTemplateList.items) && - Objects.equals(this.kind, v1PodTemplateList.kind) && - Objects.equals(this.metadata, v1PodTemplateList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodTemplateList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateSpec.java index e910aa48c5..cb8ef7f1d0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PodTemplateSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,60 @@ * PodTemplateSpec describes the data a pod should have when created from a template */ @ApiModel(description = "PodTemplateSpec describes the data a pod should have when created from a template") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PodTemplateSpec { - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1PodSpec spec; - @SerializedName("spec") - private V1PodSpec spec = null; public V1PodTemplateSpec metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1PodTemplateSpec spec(V1PodSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the pod. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodSpec getSpec() { return spec; } + + public void setSpec(V1PodSpec spec) { this.spec = spec; } @@ -76,20 +93,12 @@ public void setSpec(V1PodSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PodTemplateSpec v1PodTemplateSpec = (V1PodTemplateSpec) o; - return Objects.equals(this.metadata, v1PodTemplateSpec.metadata) && - Objects.equals(this.spec, v1PodTemplateSpec.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +106,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PodTemplateSpec {\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PolicyRule.java index a8a466d5fe..4e346aac82 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PolicyRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. */ @ApiModel(description = "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PolicyRule { - @SerializedName("apiGroups") + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) private List apiGroups = null; - @SerializedName("nonResourceURLs") + public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) private List nonResourceURLs = null; - @SerializedName("resourceNames") + public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) private List resourceNames = null; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1PolicyRule apiGroups(List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -63,16 +73,22 @@ public V1PolicyRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. * @return apiGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.") + public List getApiGroups() { return apiGroups; } + + public void setApiGroups(List apiGroups) { this.apiGroups = apiGroups; } + public V1PolicyRule nonResourceURLs(List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -89,16 +105,22 @@ public V1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. * @return nonResourceURLs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") + public List getNonResourceURLs() { return nonResourceURLs; } + + public void setNonResourceURLs(List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } + public V1PolicyRule resourceNames(List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -115,16 +137,22 @@ public V1PolicyRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + public List getResourceNames() { return resourceNames; } + + public void setResourceNames(List resourceNames) { this.resourceNames = resourceNames; } + public V1PolicyRule resources(List resources) { + this.resources = resources; return this; } @@ -141,16 +169,22 @@ public V1PolicyRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. ResourceAll represents all resources. * @return resources **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. ResourceAll represents all resources.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } + public V1PolicyRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -165,10 +199,13 @@ public V1PolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -176,23 +213,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PolicyRule v1PolicyRule = (V1PolicyRule) o; - return Objects.equals(this.apiGroups, v1PolicyRule.apiGroups) && - Objects.equals(this.nonResourceURLs, v1PolicyRule.nonResourceURLs) && - Objects.equals(this.resourceNames, v1PolicyRule.resourceNames) && - Objects.equals(this.resources, v1PolicyRule.resources) && - Objects.equals(this.verbs, v1PolicyRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -200,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PolicyRule {\n"); - sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n"); sb.append(" resourceNames: ").append(toIndentedString(resourceNames)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PortworxVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PortworxVolumeSource.java index 87215ab6db..ec8c0ca596 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PortworxVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PortworxVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * PortworxVolumeSource represents a Portworx volume resource. */ @ApiModel(description = "PortworxVolumeSource represents a Portworx volume resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PortworxVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_VOLUME_I_D = "volumeID"; + @SerializedName(SERIALIZED_NAME_VOLUME_I_D) + private String volumeID; - @SerializedName("volumeID") - private String volumeID = null; public V1PortworxVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -47,16 +55,22 @@ public V1PortworxVolumeSource fsType(String fsType) { * FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1PortworxVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -65,16 +79,22 @@ public V1PortworxVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1PortworxVolumeSource volumeID(String volumeID) { + this.volumeID = volumeID; return this; } @@ -84,10 +104,13 @@ public V1PortworxVolumeSource volumeID(String volumeID) { * @return volumeID **/ @ApiModelProperty(required = true, value = "VolumeID uniquely identifies a Portworx volume") + public String getVolumeID() { return volumeID; } + + public void setVolumeID(String volumeID) { this.volumeID = volumeID; } @@ -95,21 +118,12 @@ public void setVolumeID(String volumeID) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PortworxVolumeSource v1PortworxVolumeSource = (V1PortworxVolumeSource) o; - return Objects.equals(this.fsType, v1PortworxVolumeSource.fsType) && - Objects.equals(this.readOnly, v1PortworxVolumeSource.readOnly) && - Objects.equals(this.volumeID, v1PortworxVolumeSource.volumeID); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, readOnly, volumeID); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PortworxVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" volumeID: ").append(toIndentedString(volumeID)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Preconditions.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Preconditions.java index 0b1ac6d762..0d41bfaa52 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Preconditions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Preconditions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. */ @ApiModel(description = "Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Preconditions { - @SerializedName("resourceVersion") - private String resourceVersion = null; + public static final String SERIALIZED_NAME_RESOURCE_VERSION = "resourceVersion"; + @SerializedName(SERIALIZED_NAME_RESOURCE_VERSION) + private String resourceVersion; + + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; public V1Preconditions resourceVersion(String resourceVersion) { + this.resourceVersion = resourceVersion; return this; } @@ -44,16 +51,22 @@ public V1Preconditions resourceVersion(String resourceVersion) { * Specifies the target ResourceVersion * @return resourceVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the target ResourceVersion") + public String getResourceVersion() { return resourceVersion; } + + public void setResourceVersion(String resourceVersion) { this.resourceVersion = resourceVersion; } + public V1Preconditions uid(String uid) { + this.uid = uid; return this; } @@ -62,11 +75,15 @@ public V1Preconditions uid(String uid) { * Specifies the target UID. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies the target UID.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } @@ -74,20 +91,12 @@ public void setUid(String uid) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Preconditions v1Preconditions = (V1Preconditions) o; - return Objects.equals(this.resourceVersion, v1Preconditions.resourceVersion) && - Objects.equals(this.uid, v1Preconditions.uid); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(resourceVersion, uid); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Preconditions {\n"); - sb.append(" resourceVersion: ").append(toIndentedString(resourceVersion)).append("\n"); sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PreferredSchedulingTerm.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PreferredSchedulingTerm.java index 8fad88adcd..e770d0054d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PreferredSchedulingTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PreferredSchedulingTerm.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,42 @@ * An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op). */ @ApiModel(description = "An empty preferred scheduling term matches all objects with implicit weight 0 (i.e. it's a no-op). A null preferred scheduling term matches no objects (i.e. is also a no-op).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PreferredSchedulingTerm { - @SerializedName("preference") - private V1NodeSelectorTerm preference = null; + public static final String SERIALIZED_NAME_PREFERENCE = "preference"; + @SerializedName(SERIALIZED_NAME_PREFERENCE) + private V1NodeSelectorTerm preference; + + public static final String SERIALIZED_NAME_WEIGHT = "weight"; + @SerializedName(SERIALIZED_NAME_WEIGHT) + private Integer weight; - @SerializedName("weight") - private Integer weight = null; public V1PreferredSchedulingTerm preference(V1NodeSelectorTerm preference) { + this.preference = preference; return this; } /** - * A node selector term, associated with the corresponding weight. + * Get preference * @return preference **/ - @ApiModelProperty(required = true, value = "A node selector term, associated with the corresponding weight.") + @ApiModelProperty(required = true, value = "") + public V1NodeSelectorTerm getPreference() { return preference; } + + public void setPreference(V1NodeSelectorTerm preference) { this.preference = preference; } + public V1PreferredSchedulingTerm weight(Integer weight) { + this.weight = weight; return this; } @@ -64,10 +76,13 @@ public V1PreferredSchedulingTerm weight(Integer weight) { * @return weight **/ @ApiModelProperty(required = true, value = "Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100.") + public Integer getWeight() { return weight; } + + public void setWeight(Integer weight) { this.weight = weight; } @@ -75,20 +90,12 @@ public void setWeight(Integer weight) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PreferredSchedulingTerm v1PreferredSchedulingTerm = (V1PreferredSchedulingTerm) o; - return Objects.equals(this.preference, v1PreferredSchedulingTerm.preference) && - Objects.equals(this.weight, v1PreferredSchedulingTerm.weight); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(preference, weight); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PreferredSchedulingTerm {\n"); - sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClass.java index 4cbe9faa43..2e1568f1ae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,39 @@ * PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PriorityClass { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; - @SerializedName("description") - private String description = null; + public static final String SERIALIZED_NAME_GLOBAL_DEFAULT = "globalDefault"; + @SerializedName(SERIALIZED_NAME_GLOBAL_DEFAULT) + private Boolean globalDefault; - @SerializedName("globalDefault") - private Boolean globalDefault = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; + @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) + private String preemptionPolicy; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Integer value; - @SerializedName("value") - private Integer value = null; public V1PriorityClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,16 +72,22 @@ public V1PriorityClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PriorityClass description(String description) { + this.description = description; return this; } @@ -75,16 +96,22 @@ public V1PriorityClass description(String description) { * description is an arbitrary string that usually provides guidelines on when this priority class should be used. * @return description **/ + @javax.annotation.Nullable @ApiModelProperty(value = "description is an arbitrary string that usually provides guidelines on when this priority class should be used.") + public String getDescription() { return description; } + + public void setDescription(String description) { this.description = description; } + public V1PriorityClass globalDefault(Boolean globalDefault) { + this.globalDefault = globalDefault; return this; } @@ -93,16 +120,22 @@ public V1PriorityClass globalDefault(Boolean globalDefault) { * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. * @return globalDefault **/ + @javax.annotation.Nullable @ApiModelProperty(value = "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.") - public Boolean isGlobalDefault() { + + public Boolean getGlobalDefault() { return globalDefault; } + + public void setGlobalDefault(Boolean globalDefault) { this.globalDefault = globalDefault; } + public V1PriorityClass kind(String kind) { + this.kind = kind; return this; } @@ -111,34 +144,70 @@ public V1PriorityClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PriorityClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + + public V1PriorityClass preemptionPolicy(String preemptionPolicy) { + + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * @return preemptionPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.") + + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + + + public void setPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + public V1PriorityClass value(Integer value) { + this.value = value; return this; } @@ -148,10 +217,13 @@ public V1PriorityClass value(Integer value) { * @return value **/ @ApiModelProperty(required = true, value = "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") + public Integer getValue() { return value; } + + public void setValue(Integer value) { this.value = value; } @@ -159,24 +231,12 @@ public void setValue(Integer value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PriorityClass v1PriorityClass = (V1PriorityClass) o; - return Objects.equals(this.apiVersion, v1PriorityClass.apiVersion) && - Objects.equals(this.description, v1PriorityClass.description) && - Objects.equals(this.globalDefault, v1PriorityClass.globalDefault) && - Objects.equals(this.kind, v1PriorityClass.kind) && - Objects.equals(this.metadata, v1PriorityClass.metadata) && - Objects.equals(this.value, v1PriorityClass.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, description, globalDefault, kind, metadata, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,12 +244,12 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PriorityClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" globalDefault: ").append(toIndentedString(globalDefault)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClassList.java index 0d545b4831..b6b23d376e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1PriorityClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1PriorityClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1PriorityClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1PriorityClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1PriorityClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1PriorityClassList addItemsItem(V1PriorityClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of PriorityClasses") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1PriorityClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1PriorityClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1PriorityClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1PriorityClassList v1PriorityClassList = (V1PriorityClassList) o; - return Objects.equals(this.apiVersion, v1PriorityClassList.apiVersion) && - Objects.equals(this.items, v1PriorityClassList.items) && - Objects.equals(this.kind, v1PriorityClassList.kind) && - Objects.equals(this.metadata, v1PriorityClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1PriorityClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Probe.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Probe.java index 77ff3dbe19..8b795bd42d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Probe.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Probe.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,51 +33,67 @@ * Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic. */ @ApiModel(description = "Probe describes a health check to be performed against a container to determine whether it is alive or ready to receive traffic.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Probe { - @SerializedName("exec") - private V1ExecAction exec = null; + public static final String SERIALIZED_NAME_EXEC = "exec"; + @SerializedName(SERIALIZED_NAME_EXEC) + private V1ExecAction exec; + + public static final String SERIALIZED_NAME_FAILURE_THRESHOLD = "failureThreshold"; + @SerializedName(SERIALIZED_NAME_FAILURE_THRESHOLD) + private Integer failureThreshold; - @SerializedName("failureThreshold") - private Integer failureThreshold = null; + public static final String SERIALIZED_NAME_HTTP_GET = "httpGet"; + @SerializedName(SERIALIZED_NAME_HTTP_GET) + private V1HTTPGetAction httpGet; - @SerializedName("httpGet") - private V1HTTPGetAction httpGet = null; + public static final String SERIALIZED_NAME_INITIAL_DELAY_SECONDS = "initialDelaySeconds"; + @SerializedName(SERIALIZED_NAME_INITIAL_DELAY_SECONDS) + private Integer initialDelaySeconds; - @SerializedName("initialDelaySeconds") - private Integer initialDelaySeconds = null; + public static final String SERIALIZED_NAME_PERIOD_SECONDS = "periodSeconds"; + @SerializedName(SERIALIZED_NAME_PERIOD_SECONDS) + private Integer periodSeconds; - @SerializedName("periodSeconds") - private Integer periodSeconds = null; + public static final String SERIALIZED_NAME_SUCCESS_THRESHOLD = "successThreshold"; + @SerializedName(SERIALIZED_NAME_SUCCESS_THRESHOLD) + private Integer successThreshold; - @SerializedName("successThreshold") - private Integer successThreshold = null; + public static final String SERIALIZED_NAME_TCP_SOCKET = "tcpSocket"; + @SerializedName(SERIALIZED_NAME_TCP_SOCKET) + private V1TCPSocketAction tcpSocket; - @SerializedName("tcpSocket") - private V1TCPSocketAction tcpSocket = null; + public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; + @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + private Integer timeoutSeconds; - @SerializedName("timeoutSeconds") - private Integer timeoutSeconds = null; public V1Probe exec(V1ExecAction exec) { + this.exec = exec; return this; } /** - * One and only one of the following should be specified. Exec specifies the action to take. + * Get exec * @return exec **/ - @ApiModelProperty(value = "One and only one of the following should be specified. Exec specifies the action to take.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ExecAction getExec() { return exec; } + + public void setExec(V1ExecAction exec) { this.exec = exec; } + public V1Probe failureThreshold(Integer failureThreshold) { + this.failureThreshold = failureThreshold; return this; } @@ -83,34 +102,46 @@ public V1Probe failureThreshold(Integer failureThreshold) { * Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. * @return failureThreshold **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1.") + public Integer getFailureThreshold() { return failureThreshold; } + + public void setFailureThreshold(Integer failureThreshold) { this.failureThreshold = failureThreshold; } + public V1Probe httpGet(V1HTTPGetAction httpGet) { + this.httpGet = httpGet; return this; } /** - * HTTPGet specifies the http request to perform. + * Get httpGet * @return httpGet **/ - @ApiModelProperty(value = "HTTPGet specifies the http request to perform.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1HTTPGetAction getHttpGet() { return httpGet; } + + public void setHttpGet(V1HTTPGetAction httpGet) { this.httpGet = httpGet; } + public V1Probe initialDelaySeconds(Integer initialDelaySeconds) { + this.initialDelaySeconds = initialDelaySeconds; return this; } @@ -119,16 +150,22 @@ public V1Probe initialDelaySeconds(Integer initialDelaySeconds) { * Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * @return initialDelaySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") + public Integer getInitialDelaySeconds() { return initialDelaySeconds; } + + public void setInitialDelaySeconds(Integer initialDelaySeconds) { this.initialDelaySeconds = initialDelaySeconds; } + public V1Probe periodSeconds(Integer periodSeconds) { + this.periodSeconds = periodSeconds; return this; } @@ -137,16 +174,22 @@ public V1Probe periodSeconds(Integer periodSeconds) { * How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. * @return periodSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1.") + public Integer getPeriodSeconds() { return periodSeconds; } + + public void setPeriodSeconds(Integer periodSeconds) { this.periodSeconds = periodSeconds; } + public V1Probe successThreshold(Integer successThreshold) { + this.successThreshold = successThreshold; return this; } @@ -155,34 +198,46 @@ public V1Probe successThreshold(Integer successThreshold) { * Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1. * @return successThreshold **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness. Minimum value is 1.") + public Integer getSuccessThreshold() { return successThreshold; } + + public void setSuccessThreshold(Integer successThreshold) { this.successThreshold = successThreshold; } + public V1Probe tcpSocket(V1TCPSocketAction tcpSocket) { + this.tcpSocket = tcpSocket; return this; } /** - * TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported + * Get tcpSocket * @return tcpSocket **/ - @ApiModelProperty(value = "TCPSocket specifies an action involving a TCP port. TCP hooks not yet supported") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1TCPSocketAction getTcpSocket() { return tcpSocket; } + + public void setTcpSocket(V1TCPSocketAction tcpSocket) { this.tcpSocket = tcpSocket; } + public V1Probe timeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } @@ -191,11 +246,15 @@ public V1Probe timeoutSeconds(Integer timeoutSeconds) { * Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes * @return timeoutSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes") + public Integer getTimeoutSeconds() { return timeoutSeconds; } + + public void setTimeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -203,26 +262,12 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Probe v1Probe = (V1Probe) o; - return Objects.equals(this.exec, v1Probe.exec) && - Objects.equals(this.failureThreshold, v1Probe.failureThreshold) && - Objects.equals(this.httpGet, v1Probe.httpGet) && - Objects.equals(this.initialDelaySeconds, v1Probe.initialDelaySeconds) && - Objects.equals(this.periodSeconds, v1Probe.periodSeconds) && - Objects.equals(this.successThreshold, v1Probe.successThreshold) && - Objects.equals(this.tcpSocket, v1Probe.tcpSocket) && - Objects.equals(this.timeoutSeconds, v1Probe.timeoutSeconds); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(exec, failureThreshold, httpGet, initialDelaySeconds, periodSeconds, successThreshold, tcpSocket, timeoutSeconds); + return HashCodeBuilder.reflectionHashCode(this); } @@ -230,7 +275,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Probe {\n"); - sb.append(" exec: ").append(toIndentedString(exec)).append("\n"); sb.append(" failureThreshold: ").append(toIndentedString(failureThreshold)).append("\n"); sb.append(" httpGet: ").append(toIndentedString(httpGet)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ProjectedVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ProjectedVolumeSource.java index 72cb0a348b..1689ba1ed5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ProjectedVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ProjectedVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,15 +33,19 @@ * Represents a projected volume source */ @ApiModel(description = "Represents a projected volume source") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ProjectedVolumeSource { - @SerializedName("defaultMode") - private Integer defaultMode = null; + public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; + @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + private Integer defaultMode; - @SerializedName("sources") + public static final String SERIALIZED_NAME_SOURCES = "sources"; + @SerializedName(SERIALIZED_NAME_SOURCES) private List sources = new ArrayList(); + public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @@ -47,16 +54,22 @@ public V1ProjectedVolumeSource defaultMode(Integer defaultMode) { * Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Mode bits to use on created files by default. Must be a value between 0 and 0777. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + public Integer getDefaultMode() { return defaultMode; } + + public void setDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; } + public V1ProjectedVolumeSource sources(List sources) { + this.sources = sources; return this; } @@ -71,10 +84,13 @@ public V1ProjectedVolumeSource addSourcesItem(V1VolumeProjection sourcesItem) { * @return sources **/ @ApiModelProperty(required = true, value = "list of volume projections") + public List getSources() { return sources; } + + public void setSources(List sources) { this.sources = sources; } @@ -82,20 +98,12 @@ public void setSources(List sources) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ProjectedVolumeSource v1ProjectedVolumeSource = (V1ProjectedVolumeSource) o; - return Objects.equals(this.defaultMode, v1ProjectedVolumeSource.defaultMode) && - Objects.equals(this.sources, v1ProjectedVolumeSource.sources); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(defaultMode, sources); + return HashCodeBuilder.reflectionHashCode(this); } @@ -103,7 +111,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ProjectedVolumeSource {\n"); - sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); sb.append(" sources: ").append(toIndentedString(sources)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1QuobyteVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1QuobyteVolumeSource.java index f6bd1cb59f..2d2e76eb9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1QuobyteVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1QuobyteVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,27 +30,35 @@ * Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling. */ @ApiModel(description = "Represents a Quobyte mount that lasts the lifetime of a pod. Quobyte volumes do not support ownership management or SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1QuobyteVolumeSource { - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_REGISTRY = "registry"; + @SerializedName(SERIALIZED_NAME_REGISTRY) + private String registry; - @SerializedName("registry") - private String registry = null; + public static final String SERIALIZED_NAME_TENANT = "tenant"; + @SerializedName(SERIALIZED_NAME_TENANT) + private String tenant; - @SerializedName("tenant") - private String tenant = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; + public static final String SERIALIZED_NAME_VOLUME = "volume"; + @SerializedName(SERIALIZED_NAME_VOLUME) + private String volume; - @SerializedName("volume") - private String volume = null; public V1QuobyteVolumeSource group(String group) { + this.group = group; return this; } @@ -56,16 +67,22 @@ public V1QuobyteVolumeSource group(String group) { * Group to map volume access to Default is no group * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Group to map volume access to Default is no group") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1QuobyteVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -74,16 +91,22 @@ public V1QuobyteVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1QuobyteVolumeSource registry(String registry) { + this.registry = registry; return this; } @@ -93,15 +116,20 @@ public V1QuobyteVolumeSource registry(String registry) { * @return registry **/ @ApiModelProperty(required = true, value = "Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes") + public String getRegistry() { return registry; } + + public void setRegistry(String registry) { this.registry = registry; } + public V1QuobyteVolumeSource tenant(String tenant) { + this.tenant = tenant; return this; } @@ -110,16 +138,22 @@ public V1QuobyteVolumeSource tenant(String tenant) { * Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin * @return tenant **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin") + public String getTenant() { return tenant; } + + public void setTenant(String tenant) { this.tenant = tenant; } + public V1QuobyteVolumeSource user(String user) { + this.user = user; return this; } @@ -128,16 +162,22 @@ public V1QuobyteVolumeSource user(String user) { * User to map volume access to Defaults to serivceaccount user * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "User to map volume access to Defaults to serivceaccount user") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } + public V1QuobyteVolumeSource volume(String volume) { + this.volume = volume; return this; } @@ -147,10 +187,13 @@ public V1QuobyteVolumeSource volume(String volume) { * @return volume **/ @ApiModelProperty(required = true, value = "Volume is a string that references an already created Quobyte volume by name.") + public String getVolume() { return volume; } + + public void setVolume(String volume) { this.volume = volume; } @@ -158,24 +201,12 @@ public void setVolume(String volume) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1QuobyteVolumeSource v1QuobyteVolumeSource = (V1QuobyteVolumeSource) o; - return Objects.equals(this.group, v1QuobyteVolumeSource.group) && - Objects.equals(this.readOnly, v1QuobyteVolumeSource.readOnly) && - Objects.equals(this.registry, v1QuobyteVolumeSource.registry) && - Objects.equals(this.tenant, v1QuobyteVolumeSource.tenant) && - Objects.equals(this.user, v1QuobyteVolumeSource.user) && - Objects.equals(this.volume, v1QuobyteVolumeSource.volume); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(group, readOnly, registry, tenant, user, volume); + return HashCodeBuilder.reflectionHashCode(this); } @@ -183,7 +214,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1QuobyteVolumeSource {\n"); - sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" registry: ").append(toIndentedString(registry)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDPersistentVolumeSource.java index 90049d5e7e..f3868728e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RBDPersistentVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("image") - private String image = null; + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + private String image; - @SerializedName("keyring") - private String keyring = null; + public static final String SERIALIZED_NAME_KEYRING = "keyring"; + @SerializedName(SERIALIZED_NAME_KEYRING) + private String keyring; - @SerializedName("monitors") + public static final String SERIALIZED_NAME_MONITORS = "monitors"; + @SerializedName(SERIALIZED_NAME_MONITORS) private List monitors = new ArrayList(); - @SerializedName("pool") - private String pool = null; + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + private String pool; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretReference secretRef; - @SerializedName("secretRef") - private V1SecretReference secretRef = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1RBDPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -65,16 +78,22 @@ public V1RBDPersistentVolumeSource fsType(String fsType) { * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1RBDPersistentVolumeSource image(String image) { + this.image = image; return this; } @@ -84,15 +103,20 @@ public V1RBDPersistentVolumeSource image(String image) { * @return image **/ @ApiModelProperty(required = true, value = "The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getImage() { return image; } + + public void setImage(String image) { this.image = image; } + public V1RBDPersistentVolumeSource keyring(String keyring) { + this.keyring = keyring; return this; } @@ -101,16 +125,22 @@ public V1RBDPersistentVolumeSource keyring(String keyring) { * Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return keyring **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getKeyring() { return keyring; } + + public void setKeyring(String keyring) { this.keyring = keyring; } + public V1RBDPersistentVolumeSource monitors(List monitors) { + this.monitors = monitors; return this; } @@ -125,15 +155,20 @@ public V1RBDPersistentVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @ApiModelProperty(required = true, value = "A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public List getMonitors() { return monitors; } + + public void setMonitors(List monitors) { this.monitors = monitors; } + public V1RBDPersistentVolumeSource pool(String pool) { + this.pool = pool; return this; } @@ -142,16 +177,22 @@ public V1RBDPersistentVolumeSource pool(String pool) { * The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return pool **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getPool() { return pool; } + + public void setPool(String pool) { this.pool = pool; } + public V1RBDPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -160,34 +201,46 @@ public V1RBDPersistentVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1RBDPersistentVolumeSource secretRef(V1SecretReference secretRef) { + this.secretRef = secretRef; return this; } /** - * SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretReference secretRef) { this.secretRef = secretRef; } + public V1RBDPersistentVolumeSource user(String user) { + this.user = user; return this; } @@ -196,11 +249,15 @@ public V1RBDPersistentVolumeSource user(String user) { * The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -208,26 +265,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RBDPersistentVolumeSource v1RBDPersistentVolumeSource = (V1RBDPersistentVolumeSource) o; - return Objects.equals(this.fsType, v1RBDPersistentVolumeSource.fsType) && - Objects.equals(this.image, v1RBDPersistentVolumeSource.image) && - Objects.equals(this.keyring, v1RBDPersistentVolumeSource.keyring) && - Objects.equals(this.monitors, v1RBDPersistentVolumeSource.monitors) && - Objects.equals(this.pool, v1RBDPersistentVolumeSource.pool) && - Objects.equals(this.readOnly, v1RBDPersistentVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1RBDPersistentVolumeSource.secretRef) && - Objects.equals(this.user, v1RBDPersistentVolumeSource.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -235,7 +278,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RBDPersistentVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" keyring: ").append(toIndentedString(keyring)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDVolumeSource.java index a200455f5c..5e59de5dce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RBDVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Represents a Rados Block Device mount that lasts the lifetime of a pod. RBD volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RBDVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; - @SerializedName("image") - private String image = null; + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + private String image; - @SerializedName("keyring") - private String keyring = null; + public static final String SERIALIZED_NAME_KEYRING = "keyring"; + @SerializedName(SERIALIZED_NAME_KEYRING) + private String keyring; - @SerializedName("monitors") + public static final String SERIALIZED_NAME_MONITORS = "monitors"; + @SerializedName(SERIALIZED_NAME_MONITORS) private List monitors = new ArrayList(); - @SerializedName("pool") - private String pool = null; + public static final String SERIALIZED_NAME_POOL = "pool"; + @SerializedName(SERIALIZED_NAME_POOL) + private String pool; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1RBDVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -65,16 +78,22 @@ public V1RBDVolumeSource fsType(String fsType) { * Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1RBDVolumeSource image(String image) { + this.image = image; return this; } @@ -84,15 +103,20 @@ public V1RBDVolumeSource image(String image) { * @return image **/ @ApiModelProperty(required = true, value = "The rados image name. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getImage() { return image; } + + public void setImage(String image) { this.image = image; } + public V1RBDVolumeSource keyring(String keyring) { + this.keyring = keyring; return this; } @@ -101,16 +125,22 @@ public V1RBDVolumeSource keyring(String keyring) { * Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return keyring **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getKeyring() { return keyring; } + + public void setKeyring(String keyring) { this.keyring = keyring; } + public V1RBDVolumeSource monitors(List monitors) { + this.monitors = monitors; return this; } @@ -125,15 +155,20 @@ public V1RBDVolumeSource addMonitorsItem(String monitorsItem) { * @return monitors **/ @ApiModelProperty(required = true, value = "A collection of Ceph monitors. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public List getMonitors() { return monitors; } + + public void setMonitors(List monitors) { this.monitors = monitors; } + public V1RBDVolumeSource pool(String pool) { + this.pool = pool; return this; } @@ -142,16 +177,22 @@ public V1RBDVolumeSource pool(String pool) { * The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return pool **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The rados pool name. Default is rbd. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getPool() { return pool; } + + public void setPool(String pool) { this.pool = pool; } + public V1RBDVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -160,34 +201,46 @@ public V1RBDVolumeSource readOnly(Boolean readOnly) { * ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1RBDVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "SecretRef is name of the authentication secret for RBDUser. If provided overrides keyring. Default is nil. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } + public V1RBDVolumeSource user(String user) { + this.user = user; return this; } @@ -196,11 +249,15 @@ public V1RBDVolumeSource user(String user) { * The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The rados user name. Default is admin. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md#how-to-use-it") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -208,26 +265,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RBDVolumeSource v1RBDVolumeSource = (V1RBDVolumeSource) o; - return Objects.equals(this.fsType, v1RBDVolumeSource.fsType) && - Objects.equals(this.image, v1RBDVolumeSource.image) && - Objects.equals(this.keyring, v1RBDVolumeSource.keyring) && - Objects.equals(this.monitors, v1RBDVolumeSource.monitors) && - Objects.equals(this.pool, v1RBDVolumeSource.pool) && - Objects.equals(this.readOnly, v1RBDVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1RBDVolumeSource.secretRef) && - Objects.equals(this.user, v1RBDVolumeSource.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, image, keyring, monitors, pool, readOnly, secretRef, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -235,7 +278,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RBDVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" keyring: ").append(toIndentedString(keyring)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSet.java index acfba07efc..d19c4f0ff4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "ReplicaSet ensures that a specified number of pod replicas are running at any given time.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicaSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ReplicaSetSpec spec; - @SerializedName("spec") - private V1ReplicaSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ReplicaSetStatus status; - @SerializedName("status") - private V1ReplicaSetStatus status = null; public V1ReplicaSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1ReplicaSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ReplicaSet kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1ReplicaSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ReplicaSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ReplicaSet spec(V1ReplicaSetSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ReplicaSetSpec getSpec() { return spec; } + + public void setSpec(V1ReplicaSetSpec spec) { this.spec = spec; } + public V1ReplicaSet status(V1ReplicaSetStatus status) { + this.status = status; return this; } /** - * Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ReplicaSetStatus getStatus() { return status; } + + public void setStatus(V1ReplicaSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1ReplicaSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicaSet v1ReplicaSet = (V1ReplicaSet) o; - return Objects.equals(this.apiVersion, v1ReplicaSet.apiVersion) && - Objects.equals(this.kind, v1ReplicaSet.kind) && - Objects.equals(this.metadata, v1ReplicaSet.metadata) && - Objects.equals(this.spec, v1ReplicaSet.spec) && - Objects.equals(this.status, v1ReplicaSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicaSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetCondition.java index e7d2ab5279..2ed311eda6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicaSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime) { * The last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1ReplicaSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1ReplicaSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1ReplicaSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1ReplicaSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1ReplicaSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1ReplicaSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1ReplicaSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1ReplicaSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of replica set condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicaSetCondition v1ReplicaSetCondition = (V1ReplicaSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1ReplicaSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1ReplicaSetCondition.message) && - Objects.equals(this.reason, v1ReplicaSetCondition.reason) && - Objects.equals(this.status, v1ReplicaSetCondition.status) && - Objects.equals(this.type, v1ReplicaSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicaSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetList.java index a4d20d8293..7dd730bad6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicaSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ReplicaSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ReplicaSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ReplicaSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ReplicaSetList addItemsItem(V1ReplicaSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ReplicaSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ReplicaSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ReplicaSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicaSetList v1ReplicaSetList = (V1ReplicaSetList) o; - return Objects.equals(this.apiVersion, v1ReplicaSetList.apiVersion) && - Objects.equals(this.items, v1ReplicaSetList.items) && - Objects.equals(this.kind, v1ReplicaSetList.kind) && - Objects.equals(this.metadata, v1ReplicaSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicaSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetSpec.java index be8a9fe736..ee695e6bc7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicaSetSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -52,16 +61,22 @@ public V1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1ReplicaSetSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -70,47 +85,62 @@ public V1ReplicaSetSpec replicas(Integer replicas) { * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1ReplicaSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1ReplicaSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(value = "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -118,22 +148,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicaSetSpec v1ReplicaSetSpec = (V1ReplicaSetSpec) o; - return Objects.equals(this.minReadySeconds, v1ReplicaSetSpec.minReadySeconds) && - Objects.equals(this.replicas, v1ReplicaSetSpec.replicas) && - Objects.equals(this.selector, v1ReplicaSetSpec.selector) && - Objects.equals(this.template, v1ReplicaSetSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, replicas, selector, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicaSetSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetStatus.java index 8b24352a85..684b422d59 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicaSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicaSetStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("fullyLabeledReplicas") - private Integer fullyLabeledReplicas = null; + public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; + @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) + private Integer fullyLabeledReplicas; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -59,16 +70,22 @@ public V1ReplicaSetStatus availableReplicas(Integer availableReplicas) { * The number of available replicas (ready for at least minReadySeconds) for this replica set. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public V1ReplicaSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -85,16 +102,22 @@ public V1ReplicaSetStatus addConditionsItem(V1ReplicaSetCondition conditionsItem * Represents the latest available observations of a replica set's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a replica set's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @@ -103,16 +126,22 @@ public V1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { * The number of pods that have labels matching the labels of the pod template of the replicaset. * @return fullyLabeledReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") + public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } + + public void setFullyLabeledReplicas(Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; } + public V1ReplicaSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -121,16 +150,22 @@ public V1ReplicaSetStatus observedGeneration(Long observedGeneration) { * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1ReplicaSetStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -139,16 +174,22 @@ public V1ReplicaSetStatus readyReplicas(Integer readyReplicas) { * The number of ready replicas for this replica set. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of ready replicas for this replica set.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1ReplicaSetStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -158,10 +199,13 @@ public V1ReplicaSetStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -169,24 +213,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicaSetStatus v1ReplicaSetStatus = (V1ReplicaSetStatus) o; - return Objects.equals(this.availableReplicas, v1ReplicaSetStatus.availableReplicas) && - Objects.equals(this.conditions, v1ReplicaSetStatus.conditions) && - Objects.equals(this.fullyLabeledReplicas, v1ReplicaSetStatus.fullyLabeledReplicas) && - Objects.equals(this.observedGeneration, v1ReplicaSetStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1ReplicaSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1ReplicaSetStatus.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -194,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicaSetStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" fullyLabeledReplicas: ").append(toIndentedString(fullyLabeledReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationController.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationController.java index 82c1759bb2..57034359a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationController.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationController.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * ReplicationController represents the configuration of a replication controller. */ @ApiModel(description = "ReplicationController represents the configuration of a replication controller.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicationController { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ReplicationControllerSpec spec; - @SerializedName("spec") - private V1ReplicationControllerSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ReplicationControllerStatus status; - @SerializedName("status") - private V1ReplicationControllerStatus status = null; public V1ReplicationController apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1ReplicationController apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ReplicationController kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1ReplicationController kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ReplicationController metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "If the Labels of a ReplicationController are empty, they are defaulted to be the same as the Pod(s) that the replication controller manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ReplicationController spec(V1ReplicationControllerSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the specification of the desired behavior of the replication controller. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ReplicationControllerSpec getSpec() { return spec; } + + public void setSpec(V1ReplicationControllerSpec spec) { this.spec = spec; } + public V1ReplicationController status(V1ReplicationControllerStatus status) { + this.status = status; return this; } /** - * Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the most recently observed status of the replication controller. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ReplicationControllerStatus getStatus() { return status; } + + public void setStatus(V1ReplicationControllerStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1ReplicationControllerStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicationController v1ReplicationController = (V1ReplicationController) o; - return Objects.equals(this.apiVersion, v1ReplicationController.apiVersion) && - Objects.equals(this.kind, v1ReplicationController.kind) && - Objects.equals(this.metadata, v1ReplicationController.metadata) && - Objects.equals(this.spec, v1ReplicationController.spec) && - Objects.equals(this.status, v1ReplicationController.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicationController {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerCondition.java index d861357cdd..fea9cb43f1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * ReplicationControllerCondition describes the state of a replication controller at a certain point. */ @ApiModel(description = "ReplicationControllerCondition describes the state of a replication controller at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicationControllerCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1ReplicationControllerCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1ReplicationControllerCondition lastTransitionTime(DateTime lastTransiti * The last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1ReplicationControllerCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1ReplicationControllerCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1ReplicationControllerCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1ReplicationControllerCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1ReplicationControllerCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1ReplicationControllerCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1ReplicationControllerCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1ReplicationControllerCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of replication controller condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicationControllerCondition v1ReplicationControllerCondition = (V1ReplicationControllerCondition) o; - return Objects.equals(this.lastTransitionTime, v1ReplicationControllerCondition.lastTransitionTime) && - Objects.equals(this.message, v1ReplicationControllerCondition.message) && - Objects.equals(this.reason, v1ReplicationControllerCondition.reason) && - Objects.equals(this.status, v1ReplicationControllerCondition.status) && - Objects.equals(this.type, v1ReplicationControllerCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicationControllerCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerList.java index 4ea5d106e2..6867c55033 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ReplicationControllerList is a collection of replication controllers. */ @ApiModel(description = "ReplicationControllerList is a collection of replication controllers.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicationControllerList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ReplicationControllerList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ReplicationControllerList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ReplicationControllerList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ReplicationControllerList addItemsItem(V1ReplicationController itemsIte * @return items **/ @ApiModelProperty(required = true, value = "List of replication controllers. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ReplicationControllerList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ReplicationControllerList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ReplicationControllerList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicationControllerList v1ReplicationControllerList = (V1ReplicationControllerList) o; - return Objects.equals(this.apiVersion, v1ReplicationControllerList.apiVersion) && - Objects.equals(this.items, v1ReplicationControllerList.items) && - Objects.equals(this.kind, v1ReplicationControllerList.kind) && - Objects.equals(this.metadata, v1ReplicationControllerList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicationControllerList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerSpec.java index 74ca9699b3..93e4c7ea98 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ReplicationControllerSpec is the specification of a replication controller. */ @ApiModel(description = "ReplicationControllerSpec is the specification of a replication controller.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicationControllerSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("selector") + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) private Map selector = null; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; + public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -54,16 +63,22 @@ public V1ReplicationControllerSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1ReplicationControllerSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -72,16 +87,22 @@ public V1ReplicationControllerSpec replicas(Integer replicas) { * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1ReplicationControllerSpec selector(Map selector) { + this.selector = selector; return this; } @@ -98,29 +119,39 @@ public V1ReplicationControllerSpec putSelectorItem(String key, String selectorIt * Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors * @return selector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Selector is a label query over pods that should match the Replicas count. If Selector is empty, it is defaulted to the labels present on the Pod template. Label keys and values that must match in order to be controlled by this replication controller, if empty defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + public Map getSelector() { return selector; } + + public void setSelector(Map selector) { this.selector = selector; } + public V1ReplicationControllerSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(value = "Template is the object that describes the pod that will be created if insufficient replicas are detected. This takes precedence over a TemplateRef. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -128,22 +159,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicationControllerSpec v1ReplicationControllerSpec = (V1ReplicationControllerSpec) o; - return Objects.equals(this.minReadySeconds, v1ReplicationControllerSpec.minReadySeconds) && - Objects.equals(this.replicas, v1ReplicationControllerSpec.replicas) && - Objects.equals(this.selector, v1ReplicationControllerSpec.selector) && - Objects.equals(this.template, v1ReplicationControllerSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, replicas, selector, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicationControllerSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerStatus.java index d9c973c248..3fe3a662cd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ReplicationControllerStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * ReplicationControllerStatus represents the current status of a replication controller. */ @ApiModel(description = "ReplicationControllerStatus represents the current status of a replication controller.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ReplicationControllerStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("fullyLabeledReplicas") - private Integer fullyLabeledReplicas = null; + public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; + @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) + private Integer fullyLabeledReplicas; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; public V1ReplicationControllerStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -59,16 +70,22 @@ public V1ReplicationControllerStatus availableReplicas(Integer availableReplicas * The number of available replicas (ready for at least minReadySeconds) for this replication controller. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replication controller.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public V1ReplicationControllerStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -85,16 +102,22 @@ public V1ReplicationControllerStatus addConditionsItem(V1ReplicationControllerCo * Represents the latest available observations of a replication controller's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a replication controller's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1ReplicationControllerStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @@ -103,16 +126,22 @@ public V1ReplicationControllerStatus fullyLabeledReplicas(Integer fullyLabeledRe * The number of pods that have labels matching the labels of the pod template of the replication controller. * @return fullyLabeledReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replication controller.") + public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } + + public void setFullyLabeledReplicas(Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; } + public V1ReplicationControllerStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -121,16 +150,22 @@ public V1ReplicationControllerStatus observedGeneration(Long observedGeneration) * ObservedGeneration reflects the generation of the most recently observed replication controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed replication controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1ReplicationControllerStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -139,16 +174,22 @@ public V1ReplicationControllerStatus readyReplicas(Integer readyReplicas) { * The number of ready replicas for this replication controller. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of ready replicas for this replication controller.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1ReplicationControllerStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -158,10 +199,13 @@ public V1ReplicationControllerStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -169,24 +213,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ReplicationControllerStatus v1ReplicationControllerStatus = (V1ReplicationControllerStatus) o; - return Objects.equals(this.availableReplicas, v1ReplicationControllerStatus.availableReplicas) && - Objects.equals(this.conditions, v1ReplicationControllerStatus.conditions) && - Objects.equals(this.fullyLabeledReplicas, v1ReplicationControllerStatus.fullyLabeledReplicas) && - Objects.equals(this.observedGeneration, v1ReplicationControllerStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1ReplicationControllerStatus.readyReplicas) && - Objects.equals(this.replicas, v1ReplicationControllerStatus.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -194,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ReplicationControllerStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" fullyLabeledReplicas: ").append(toIndentedString(fullyLabeledReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceAttributes.java index b9a0049729..efd8c2be8e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceAttributes.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,30 +30,39 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceAttributes { - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; - @SerializedName("resource") - private String resource = null; + public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCE) + private String subresource; - @SerializedName("subresource") - private String subresource = null; + public static final String SERIALIZED_NAME_VERB = "verb"; + @SerializedName(SERIALIZED_NAME_VERB) + private String verb; - @SerializedName("verb") - private String verb = null; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; - @SerializedName("version") - private String version = null; public V1ResourceAttributes group(String group) { + this.group = group; return this; } @@ -59,16 +71,22 @@ public V1ResourceAttributes group(String group) { * Group is the API Group of the Resource. \"*\" means all. * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Group is the API Group of the Resource. \"*\" means all.") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1ResourceAttributes name(String name) { + this.name = name; return this; } @@ -77,16 +95,22 @@ public V1ResourceAttributes name(String name) { * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ResourceAttributes namespace(String namespace) { + this.namespace = namespace; return this; } @@ -95,16 +119,22 @@ public V1ResourceAttributes namespace(String namespace) { * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1ResourceAttributes resource(String resource) { + this.resource = resource; return this; } @@ -113,16 +143,22 @@ public V1ResourceAttributes resource(String resource) { * Resource is one of the existing resource types. \"*\" means all. * @return resource **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resource is one of the existing resource types. \"*\" means all.") + public String getResource() { return resource; } + + public void setResource(String resource) { this.resource = resource; } + public V1ResourceAttributes subresource(String subresource) { + this.subresource = subresource; return this; } @@ -131,16 +167,22 @@ public V1ResourceAttributes subresource(String subresource) { * Subresource is one of the existing resource types. \"\" means none. * @return subresource **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subresource is one of the existing resource types. \"\" means none.") + public String getSubresource() { return subresource; } + + public void setSubresource(String subresource) { this.subresource = subresource; } + public V1ResourceAttributes verb(String verb) { + this.verb = verb; return this; } @@ -149,16 +191,22 @@ public V1ResourceAttributes verb(String verb) { * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verb **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") + public String getVerb() { return verb; } + + public void setVerb(String verb) { this.verb = verb; } + public V1ResourceAttributes version(String version) { + this.version = version; return this; } @@ -167,11 +215,15 @@ public V1ResourceAttributes version(String version) { * Version is the API Version of the Resource. \"*\" means all. * @return version **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Version is the API Version of the Resource. \"*\" means all.") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } @@ -179,25 +231,12 @@ public void setVersion(String version) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceAttributes v1ResourceAttributes = (V1ResourceAttributes) o; - return Objects.equals(this.group, v1ResourceAttributes.group) && - Objects.equals(this.name, v1ResourceAttributes.name) && - Objects.equals(this.namespace, v1ResourceAttributes.namespace) && - Objects.equals(this.resource, v1ResourceAttributes.resource) && - Objects.equals(this.subresource, v1ResourceAttributes.subresource) && - Objects.equals(this.verb, v1ResourceAttributes.verb) && - Objects.equals(this.version, v1ResourceAttributes.version); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(group, name, namespace, resource, subresource, verb, version); + return HashCodeBuilder.reflectionHashCode(this); } @@ -205,7 +244,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceAttributes {\n"); - sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceFieldSelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceFieldSelector.java index 049aea241e..a84362ec10 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceFieldSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceFieldSelector.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,18 +31,23 @@ * ResourceFieldSelector represents container resources (cpu, memory) and their output format */ @ApiModel(description = "ResourceFieldSelector represents container resources (cpu, memory) and their output format") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceFieldSelector { - @SerializedName("containerName") - private String containerName = null; + public static final String SERIALIZED_NAME_CONTAINER_NAME = "containerName"; + @SerializedName(SERIALIZED_NAME_CONTAINER_NAME) + private String containerName; + + public static final String SERIALIZED_NAME_DIVISOR = "divisor"; + @SerializedName(SERIALIZED_NAME_DIVISOR) + private Quantity divisor; - @SerializedName("divisor") - private String divisor = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; - @SerializedName("resource") - private String resource = null; public V1ResourceFieldSelector containerName(String containerName) { + this.containerName = containerName; return this; } @@ -47,34 +56,46 @@ public V1ResourceFieldSelector containerName(String containerName) { * Container name: required for volumes, optional for env vars * @return containerName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Container name: required for volumes, optional for env vars") + public String getContainerName() { return containerName; } + + public void setContainerName(String containerName) { this.containerName = containerName; } - public V1ResourceFieldSelector divisor(String divisor) { + + public V1ResourceFieldSelector divisor(Quantity divisor) { + this.divisor = divisor; return this; } /** - * Specifies the output format of the exposed resources, defaults to \"1\" + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return divisor **/ - @ApiModelProperty(value = "Specifies the output format of the exposed resources, defaults to \"1\"") - public String getDivisor() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getDivisor() { return divisor; } - public void setDivisor(String divisor) { + + + public void setDivisor(Quantity divisor) { this.divisor = divisor; } + public V1ResourceFieldSelector resource(String resource) { + this.resource = resource; return this; } @@ -84,10 +105,13 @@ public V1ResourceFieldSelector resource(String resource) { * @return resource **/ @ApiModelProperty(required = true, value = "Required: resource to select") + public String getResource() { return resource; } + + public void setResource(String resource) { this.resource = resource; } @@ -95,21 +119,12 @@ public void setResource(String resource) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceFieldSelector v1ResourceFieldSelector = (V1ResourceFieldSelector) o; - return Objects.equals(this.containerName, v1ResourceFieldSelector.containerName) && - Objects.equals(this.divisor, v1ResourceFieldSelector.divisor) && - Objects.equals(this.resource, v1ResourceFieldSelector.resource); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(containerName, divisor, resource); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceFieldSelector {\n"); - sb.append(" containerName: ").append(toIndentedString(containerName)).append("\n"); sb.append(" divisor: ").append(toIndentedString(divisor)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuota.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuota.java index e9e4a1eb73..cb9965b08c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuota.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuota.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * ResourceQuota sets aggregate quota restrictions enforced per namespace */ @ApiModel(description = "ResourceQuota sets aggregate quota restrictions enforced per namespace") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceQuota { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ResourceQuotaSpec spec; - @SerializedName("spec") - private V1ResourceQuotaSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ResourceQuotaStatus status; - @SerializedName("status") - private V1ResourceQuotaStatus status = null; public V1ResourceQuota apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1ResourceQuota apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ResourceQuota kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1ResourceQuota kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ResourceQuota metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ResourceQuota spec(V1ResourceQuotaSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the desired quota. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceQuotaSpec getSpec() { return spec; } + + public void setSpec(V1ResourceQuotaSpec spec) { this.spec = spec; } + public V1ResourceQuota status(V1ResourceQuotaStatus status) { + this.status = status; return this; } /** - * Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status defines the actual enforced quota and its current usage. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceQuotaStatus getStatus() { return status; } + + public void setStatus(V1ResourceQuotaStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1ResourceQuotaStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceQuota v1ResourceQuota = (V1ResourceQuota) o; - return Objects.equals(this.apiVersion, v1ResourceQuota.apiVersion) && - Objects.equals(this.kind, v1ResourceQuota.kind) && - Objects.equals(this.metadata, v1ResourceQuota.metadata) && - Objects.equals(this.spec, v1ResourceQuota.spec) && - Objects.equals(this.status, v1ResourceQuota.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceQuota {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaList.java index 1faa803106..59597c9508 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ResourceQuotaList is a list of ResourceQuota items. */ @ApiModel(description = "ResourceQuotaList is a list of ResourceQuota items.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceQuotaList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ResourceQuotaList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ResourceQuotaList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ResourceQuotaList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ResourceQuotaList addItemsItem(V1ResourceQuota itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ResourceQuota objects. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ResourceQuotaList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ResourceQuotaList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ResourceQuotaList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceQuotaList v1ResourceQuotaList = (V1ResourceQuotaList) o; - return Objects.equals(this.apiVersion, v1ResourceQuotaList.apiVersion) && - Objects.equals(this.items, v1ResourceQuotaList.items) && - Objects.equals(this.kind, v1ResourceQuotaList.kind) && - Objects.equals(this.metadata, v1ResourceQuotaList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceQuotaList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaSpec.java index 9ee31c2251..8768440d7b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,18 +36,23 @@ * ResourceQuotaSpec defines the desired hard limits to enforce for Quota. */ @ApiModel(description = "ResourceQuotaSpec defines the desired hard limits to enforce for Quota.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceQuotaSpec { - @SerializedName("hard") + public static final String SERIALIZED_NAME_HARD = "hard"; + @SerializedName(SERIALIZED_NAME_HARD) private Map hard = null; - @SerializedName("scopeSelector") - private V1ScopeSelector scopeSelector = null; + public static final String SERIALIZED_NAME_SCOPE_SELECTOR = "scopeSelector"; + @SerializedName(SERIALIZED_NAME_SCOPE_SELECTOR) + private V1ScopeSelector scopeSelector; - @SerializedName("scopes") + public static final String SERIALIZED_NAME_SCOPES = "scopes"; + @SerializedName(SERIALIZED_NAME_SCOPES) private List scopes = null; + public V1ResourceQuotaSpec hard(Map hard) { + this.hard = hard; return this; } @@ -61,34 +69,46 @@ public V1ResourceQuotaSpec putHardItem(String key, Quantity hardItem) { * hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return hard **/ + @javax.annotation.Nullable @ApiModelProperty(value = "hard is the set of desired hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") + public Map getHard() { return hard; } + + public void setHard(Map hard) { this.hard = hard; } + public V1ResourceQuotaSpec scopeSelector(V1ScopeSelector scopeSelector) { + this.scopeSelector = scopeSelector; return this; } /** - * scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched. + * Get scopeSelector * @return scopeSelector **/ - @ApiModelProperty(value = "scopeSelector is also a collection of filters like scopes that must match each object tracked by a quota but expressed using ScopeSelectorOperator in combination with possible values. For a resource to match, both scopes AND scopeSelector (if specified in spec), must be matched.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ScopeSelector getScopeSelector() { return scopeSelector; } + + public void setScopeSelector(V1ScopeSelector scopeSelector) { this.scopeSelector = scopeSelector; } + public V1ResourceQuotaSpec scopes(List scopes) { + this.scopes = scopes; return this; } @@ -105,11 +125,15 @@ public V1ResourceQuotaSpec addScopesItem(String scopesItem) { * A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects. * @return scopes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A collection of filters that must match each object tracked by a quota. If not specified, the quota matches all objects.") + public List getScopes() { return scopes; } + + public void setScopes(List scopes) { this.scopes = scopes; } @@ -117,21 +141,12 @@ public void setScopes(List scopes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceQuotaSpec v1ResourceQuotaSpec = (V1ResourceQuotaSpec) o; - return Objects.equals(this.hard, v1ResourceQuotaSpec.hard) && - Objects.equals(this.scopeSelector, v1ResourceQuotaSpec.scopeSelector) && - Objects.equals(this.scopes, v1ResourceQuotaSpec.scopes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hard, scopeSelector, scopes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +154,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceQuotaSpec {\n"); - sb.append(" hard: ").append(toIndentedString(hard)).append("\n"); sb.append(" scopeSelector: ").append(toIndentedString(scopeSelector)).append("\n"); sb.append(" scopes: ").append(toIndentedString(scopes)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaStatus.java index 7ea9bd1b5f..901026f0f2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceQuotaStatus.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -30,22 +34,26 @@ * ResourceQuotaStatus defines the enforced hard limits and observed use. */ @ApiModel(description = "ResourceQuotaStatus defines the enforced hard limits and observed use.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceQuotaStatus { - @SerializedName("hard") - private Map hard = null; + public static final String SERIALIZED_NAME_HARD = "hard"; + @SerializedName(SERIALIZED_NAME_HARD) + private Map hard = null; + + public static final String SERIALIZED_NAME_USED = "used"; + @SerializedName(SERIALIZED_NAME_USED) + private Map used = null; - @SerializedName("used") - private Map used = null; - public V1ResourceQuotaStatus hard(Map hard) { + public V1ResourceQuotaStatus hard(Map hard) { + this.hard = hard; return this; } - public V1ResourceQuotaStatus putHardItem(String key, String hardItem) { + public V1ResourceQuotaStatus putHardItem(String key, Quantity hardItem) { if (this.hard == null) { - this.hard = new HashMap(); + this.hard = new HashMap(); } this.hard.put(key, hardItem); return this; @@ -55,23 +63,29 @@ public V1ResourceQuotaStatus putHardItem(String key, String hardItem) { * Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/ * @return hard **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Hard is the set of enforced hard limits for each named resource. More info: https://kubernetes.io/docs/concepts/policy/resource-quotas/") - public Map getHard() { + + public Map getHard() { return hard; } - public void setHard(Map hard) { + + + public void setHard(Map hard) { this.hard = hard; } - public V1ResourceQuotaStatus used(Map used) { + + public V1ResourceQuotaStatus used(Map used) { + this.used = used; return this; } - public V1ResourceQuotaStatus putUsedItem(String key, String usedItem) { + public V1ResourceQuotaStatus putUsedItem(String key, Quantity usedItem) { if (this.used == null) { - this.used = new HashMap(); + this.used = new HashMap(); } this.used.put(key, usedItem); return this; @@ -81,32 +95,28 @@ public V1ResourceQuotaStatus putUsedItem(String key, String usedItem) { * Used is the current observed total usage of the resource in the namespace. * @return used **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Used is the current observed total usage of the resource in the namespace.") - public Map getUsed() { + + public Map getUsed() { return used; } - public void setUsed(Map used) { + + + public void setUsed(Map used) { this.used = used; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceQuotaStatus v1ResourceQuotaStatus = (V1ResourceQuotaStatus) o; - return Objects.equals(this.hard, v1ResourceQuotaStatus.hard) && - Objects.equals(this.used, v1ResourceQuotaStatus.used); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(hard, used); + return HashCodeBuilder.reflectionHashCode(this); } @@ -114,7 +124,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceQuotaStatus {\n"); - sb.append(" hard: ").append(toIndentedString(hard)).append("\n"); sb.append(" used: ").append(toIndentedString(used)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRequirements.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRequirements.java index 20b0252f55..6304c89d0b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRequirements.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRequirements.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * ResourceRequirements describes the compute resource requirements. */ @ApiModel(description = "ResourceRequirements describes the compute resource requirements.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceRequirements { - @SerializedName("limits") + public static final String SERIALIZED_NAME_LIMITS = "limits"; + @SerializedName(SERIALIZED_NAME_LIMITS) private Map limits = null; - @SerializedName("requests") + public static final String SERIALIZED_NAME_REQUESTS = "requests"; + @SerializedName(SERIALIZED_NAME_REQUESTS) private Map requests = null; + public V1ResourceRequirements limits(Map limits) { + this.limits = limits; return this; } @@ -56,16 +63,22 @@ public V1ResourceRequirements putLimitsItem(String key, Quantity limitsItem) { * Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ * @return limits **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") + public Map getLimits() { return limits; } + + public void setLimits(Map limits) { this.limits = limits; } + public V1ResourceRequirements requests(Map requests) { + this.requests = requests; return this; } @@ -82,11 +95,15 @@ public V1ResourceRequirements putRequestsItem(String key, Quantity requestsItem) * Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ * @return requests **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. More info: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/") + public Map getRequests() { return requests; } + + public void setRequests(Map requests) { this.requests = requests; } @@ -94,20 +111,12 @@ public void setRequests(Map requests) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceRequirements v1ResourceRequirements = (V1ResourceRequirements) o; - return Objects.equals(this.limits, v1ResourceRequirements.limits) && - Objects.equals(this.requests, v1ResourceRequirements.requests); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(limits, requests); + return HashCodeBuilder.reflectionHashCode(this); } @@ -115,7 +124,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceRequirements {\n"); - sb.append(" limits: ").append(toIndentedString(limits)).append("\n"); sb.append(" requests: ").append(toIndentedString(requests)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRule.java index dbdb9b2338..60b84b45f5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ResourceRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. */ @ApiModel(description = "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ResourceRule { - @SerializedName("apiGroups") + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) private List apiGroups = null; - @SerializedName("resourceNames") + public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) private List resourceNames = null; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1ResourceRule apiGroups(List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -60,16 +69,22 @@ public V1ResourceRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. * @return apiGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") + public List getApiGroups() { return apiGroups; } + + public void setApiGroups(List apiGroups) { this.apiGroups = apiGroups; } + public V1ResourceRule resourceNames(List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -86,16 +101,22 @@ public V1ResourceRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. * @return resourceNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") + public List getResourceNames() { return resourceNames; } + + public void setResourceNames(List resourceNames) { this.resourceNames = resourceNames; } + public V1ResourceRule resources(List resources) { + this.resources = resources; return this; } @@ -112,16 +133,22 @@ public V1ResourceRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. * @return resources **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } + public V1ResourceRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -136,10 +163,13 @@ public V1ResourceRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -147,22 +177,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ResourceRule v1ResourceRule = (V1ResourceRule) o; - return Objects.equals(this.apiGroups, v1ResourceRule.apiGroups) && - Objects.equals(this.resourceNames, v1ResourceRule.resourceNames) && - Objects.equals(this.resources, v1ResourceRule.resources) && - Objects.equals(this.verbs, v1ResourceRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroups, resourceNames, resources, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -170,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ResourceRule {\n"); - sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); sb.append(" resourceNames: ").append(toIndentedString(resourceNames)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Role.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Role.java index a7778e4e95..6abe8b8547 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Role.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Role { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; + public V1Role apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1Role apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Role kind(String kind) { + this.kind = kind; return this; } @@ -72,34 +87,46 @@ public V1Role kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Role metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Role rules(List rules) { + this.rules = rules; return this; } @@ -116,11 +143,15 @@ public V1Role addRulesItem(V1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this Role * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } @@ -128,22 +159,12 @@ public void setRules(List rules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Role v1Role = (V1Role) o; - return Objects.equals(this.apiVersion, v1Role.apiVersion) && - Objects.equals(this.kind, v1Role.kind) && - Objects.equals(this.metadata, v1Role.metadata) && - Objects.equals(this.rules, v1Role.rules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, rules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Role {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBinding.java index 1f75a7afae..d7a41a7151 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBinding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,24 +35,31 @@ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. */ @ApiModel(description = "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RoleBinding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("roleRef") - private V1RoleRef roleRef = null; + public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; + @SerializedName(SERIALIZED_NAME_ROLE_REF) + private V1RoleRef roleRef; - @SerializedName("subjects") + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = null; + public V1RoleBinding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -58,16 +68,22 @@ public V1RoleBinding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1RoleBinding kind(String kind) { + this.kind = kind; return this; } @@ -76,52 +92,69 @@ public V1RoleBinding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1RoleBinding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1RoleBinding roleRef(V1RoleRef roleRef) { + this.roleRef = roleRef; return this; } /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.") + @ApiModelProperty(required = true, value = "") + public V1RoleRef getRoleRef() { return roleRef; } + + public void setRoleRef(V1RoleRef roleRef) { this.roleRef = roleRef; } + public V1RoleBinding subjects(List subjects) { + this.subjects = subjects; return this; } @@ -138,11 +171,15 @@ public V1RoleBinding addSubjectsItem(V1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") + public List getSubjects() { return subjects; } + + public void setSubjects(List subjects) { this.subjects = subjects; } @@ -150,23 +187,12 @@ public void setSubjects(List subjects) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RoleBinding v1RoleBinding = (V1RoleBinding) o; - return Objects.equals(this.apiVersion, v1RoleBinding.apiVersion) && - Objects.equals(this.kind, v1RoleBinding.kind) && - Objects.equals(this.metadata, v1RoleBinding.metadata) && - Objects.equals(this.roleRef, v1RoleBinding.roleRef) && - Objects.equals(this.subjects, v1RoleBinding.subjects); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +200,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RoleBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBindingList.java index 211e752d52..852b7d7697 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleBindingList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RoleBindingList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1RoleBindingList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1RoleBindingList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1RoleBindingList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1RoleBindingList addItemsItem(V1RoleBinding itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of RoleBindings") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1RoleBindingList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1RoleBindingList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1RoleBindingList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RoleBindingList v1RoleBindingList = (V1RoleBindingList) o; - return Objects.equals(this.apiVersion, v1RoleBindingList.apiVersion) && - Objects.equals(this.items, v1RoleBindingList.items) && - Objects.equals(this.kind, v1RoleBindingList.kind) && - Objects.equals(this.metadata, v1RoleBindingList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RoleBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleList.java index 92f7a73b6f..16b8274c09 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RoleList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1RoleList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1RoleList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1RoleList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1RoleList addItemsItem(V1Role itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of Roles") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1RoleList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1RoleList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1RoleList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RoleList v1RoleList = (V1RoleList) o; - return Objects.equals(this.apiVersion, v1RoleList.apiVersion) && - Objects.equals(this.items, v1RoleList.items) && - Objects.equals(this.kind, v1RoleList.kind) && - Objects.equals(this.metadata, v1RoleList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RoleList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleRef.java index c726af9c31..7439905b61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RoleRef.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RoleRef { - @SerializedName("apiGroup") - private String apiGroup = null; + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1RoleRef apiGroup(String apiGroup) { + this.apiGroup = apiGroup; return this; } @@ -48,15 +56,20 @@ public V1RoleRef apiGroup(String apiGroup) { * @return apiGroup **/ @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") + public String getApiGroup() { return apiGroup; } + + public void setApiGroup(String apiGroup) { this.apiGroup = apiGroup; } + public V1RoleRef kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +79,20 @@ public V1RoleRef kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1RoleRef name(String name) { + this.name = name; return this; } @@ -84,10 +102,13 @@ public V1RoleRef name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +116,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RoleRef v1RoleRef = (V1RoleRef) o; - return Objects.equals(this.apiGroup, v1RoleRef.apiGroup) && - Objects.equals(this.kind, v1RoleRef.kind) && - Objects.equals(this.name, v1RoleRef.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroup, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +129,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RoleRef {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDaemonSet.java index 96af9b7756..905947625f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDaemonSet.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.IntOrString; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,45 +31,45 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RollingUpdateDaemonSet { - @SerializedName("maxUnavailable") - private String maxUnavailable = null; + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; + - public V1RollingUpdateDaemonSet maxUnavailable(String maxUnavailable) { + public V1RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.") - public String getMaxUnavailable() { + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + + public IntOrString getMaxUnavailable() { return maxUnavailable; } - public void setMaxUnavailable(String maxUnavailable) { + + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RollingUpdateDaemonSet v1RollingUpdateDaemonSet = (V1RollingUpdateDaemonSet) o; - return Objects.equals(this.maxUnavailable, v1RollingUpdateDaemonSet.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RollingUpdateDaemonSet {\n"); - sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDeployment.java index a362dc0d2e..5c8a6f5a19 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateDeployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,46 +31,60 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RollingUpdateDeployment { - @SerializedName("maxSurge") - private IntOrString maxSurge = null; + public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; + @SerializedName(SERIALIZED_NAME_MAX_SURGE) + private IntOrString maxSurge; + + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; - @SerializedName("maxUnavailable") - private IntOrString maxUnavailable = null; public V1RollingUpdateDeployment maxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; return this; } /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxSurge **/ - @ApiModelProperty(value = "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxSurge() { return maxSurge; } + + public void setMaxSurge(IntOrString maxSurge) { this.maxSurge = maxSurge; } + public V1RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxUnavailable() { return maxUnavailable; } + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -75,20 +92,12 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RollingUpdateDeployment v1RollingUpdateDeployment = (V1RollingUpdateDeployment) o; - return Objects.equals(this.maxSurge, v1RollingUpdateDeployment.maxSurge) && - Objects.equals(this.maxUnavailable, v1RollingUpdateDeployment.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxSurge, maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RollingUpdateDeployment {\n"); - sb.append(" maxSurge: ").append(toIndentedString(maxSurge)).append("\n"); sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategy.java index f14578f807..c6226e9c4f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1RollingUpdateStatefulSetStrategy { - @SerializedName("partition") - private Integer partition = null; + public static final String SERIALIZED_NAME_PARTITION = "partition"; + @SerializedName(SERIALIZED_NAME_PARTITION) + private Integer partition; + public V1RollingUpdateStatefulSetStrategy partition(Integer partition) { + this.partition = partition; return this; } @@ -41,11 +47,15 @@ public V1RollingUpdateStatefulSetStrategy partition(Integer partition) { * Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. * @return partition **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.") + public Integer getPartition() { return partition; } + + public void setPartition(Integer partition) { this.partition = partition; } @@ -53,19 +63,12 @@ public void setPartition(Integer partition) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1RollingUpdateStatefulSetStrategy v1RollingUpdateStatefulSetStrategy = (V1RollingUpdateStatefulSetStrategy) o; - return Objects.equals(this.partition, v1RollingUpdateStatefulSetStrategy.partition); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(partition); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1RollingUpdateStatefulSetStrategy {\n"); - sb.append(" partition: ").append(toIndentedString(partition)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SELinuxOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SELinuxOptions.java index ce0da9a7ce..07608bc478 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SELinuxOptions.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SELinuxOptions.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * SELinuxOptions are the labels to be applied to the container */ @ApiModel(description = "SELinuxOptions are the labels to be applied to the container") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SELinuxOptions { - @SerializedName("level") - private String level = null; + public static final String SERIALIZED_NAME_LEVEL = "level"; + @SerializedName(SERIALIZED_NAME_LEVEL) + private String level; + + public static final String SERIALIZED_NAME_ROLE = "role"; + @SerializedName(SERIALIZED_NAME_ROLE) + private String role; - @SerializedName("role") - private String role = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1SELinuxOptions level(String level) { + this.level = level; return this; } @@ -50,16 +59,22 @@ public V1SELinuxOptions level(String level) { * Level is SELinux level label that applies to the container. * @return level **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Level is SELinux level label that applies to the container.") + public String getLevel() { return level; } + + public void setLevel(String level) { this.level = level; } + public V1SELinuxOptions role(String role) { + this.role = role; return this; } @@ -68,16 +83,22 @@ public V1SELinuxOptions role(String role) { * Role is a SELinux role label that applies to the container. * @return role **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Role is a SELinux role label that applies to the container.") + public String getRole() { return role; } + + public void setRole(String role) { this.role = role; } + public V1SELinuxOptions type(String type) { + this.type = type; return this; } @@ -86,16 +107,22 @@ public V1SELinuxOptions type(String type) { * Type is a SELinux type label that applies to the container. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type is a SELinux type label that applies to the container.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public V1SELinuxOptions user(String user) { + this.user = user; return this; } @@ -104,11 +131,15 @@ public V1SELinuxOptions user(String user) { * User is a SELinux user label that applies to the container. * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "User is a SELinux user label that applies to the container.") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -116,22 +147,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SELinuxOptions v1SELinuxOptions = (V1SELinuxOptions) o; - return Objects.equals(this.level, v1SELinuxOptions.level) && - Objects.equals(this.role, v1SELinuxOptions.role) && - Objects.equals(this.type, v1SELinuxOptions.type) && - Objects.equals(this.user, v1SELinuxOptions.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(level, role, type, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SELinuxOptions {\n"); - sb.append(" level: ").append(toIndentedString(level)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Scale.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Scale.java index d9010620ea..2386ae3057 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Scale.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Scale { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ScaleSpec spec; - @SerializedName("spec") - private V1ScaleSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ScaleStatus status; - @SerializedName("status") - private V1ScaleStatus status = null; public V1Scale apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Scale apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Scale kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Scale kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Scale metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Scale spec(V1ScaleSpec spec) { + this.spec = spec; return this; } /** - * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ScaleSpec getSpec() { return spec; } + + public void setSpec(V1ScaleSpec spec) { this.spec = spec; } + public V1Scale status(V1ScaleStatus status) { + this.status = status; return this; } /** - * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only. + * Get status * @return status **/ - @ApiModelProperty(value = "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. Read-only.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ScaleStatus getStatus() { return status; } + + public void setStatus(V1ScaleStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1ScaleStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Scale v1Scale = (V1Scale) o; - return Objects.equals(this.apiVersion, v1Scale.apiVersion) && - Objects.equals(this.kind, v1Scale.kind) && - Objects.equals(this.metadata, v1Scale.metadata) && - Objects.equals(this.spec, v1Scale.spec) && - Objects.equals(this.status, v1Scale.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Scale {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSource.java index 3b7d8affcf..f37cbc8264 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,39 +31,51 @@ * ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOPersistentVolumeSource represents a persistent ScaleIO volume") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ScaleIOPersistentVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_GATEWAY = "gateway"; + @SerializedName(SERIALIZED_NAME_GATEWAY) + private String gateway; - @SerializedName("gateway") - private String gateway = null; + public static final String SERIALIZED_NAME_PROTECTION_DOMAIN = "protectionDomain"; + @SerializedName(SERIALIZED_NAME_PROTECTION_DOMAIN) + private String protectionDomain; - @SerializedName("protectionDomain") - private String protectionDomain = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1SecretReference secretRef; - @SerializedName("secretRef") - private V1SecretReference secretRef = null; + public static final String SERIALIZED_NAME_SSL_ENABLED = "sslEnabled"; + @SerializedName(SERIALIZED_NAME_SSL_ENABLED) + private Boolean sslEnabled; - @SerializedName("sslEnabled") - private Boolean sslEnabled = null; + public static final String SERIALIZED_NAME_STORAGE_MODE = "storageMode"; + @SerializedName(SERIALIZED_NAME_STORAGE_MODE) + private String storageMode; - @SerializedName("storageMode") - private String storageMode = null; + public static final String SERIALIZED_NAME_STORAGE_POOL = "storagePool"; + @SerializedName(SERIALIZED_NAME_STORAGE_POOL) + private String storagePool; - @SerializedName("storagePool") - private String storagePool = null; + public static final String SERIALIZED_NAME_SYSTEM = "system"; + @SerializedName(SERIALIZED_NAME_SYSTEM) + private String system; - @SerializedName("system") - private String system = null; + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + private String volumeName; - @SerializedName("volumeName") - private String volumeName = null; public V1ScaleIOPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -69,16 +84,22 @@ public V1ScaleIOPersistentVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\" * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\"") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1ScaleIOPersistentVolumeSource gateway(String gateway) { + this.gateway = gateway; return this; } @@ -88,15 +109,20 @@ public V1ScaleIOPersistentVolumeSource gateway(String gateway) { * @return gateway **/ @ApiModelProperty(required = true, value = "The host address of the ScaleIO API Gateway.") + public String getGateway() { return gateway; } + + public void setGateway(String gateway) { this.gateway = gateway; } + public V1ScaleIOPersistentVolumeSource protectionDomain(String protectionDomain) { + this.protectionDomain = protectionDomain; return this; } @@ -105,16 +131,22 @@ public V1ScaleIOPersistentVolumeSource protectionDomain(String protectionDomain) * The name of the ScaleIO Protection Domain for the configured storage. * @return protectionDomain **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of the ScaleIO Protection Domain for the configured storage.") + public String getProtectionDomain() { return protectionDomain; } + + public void setProtectionDomain(String protectionDomain) { this.protectionDomain = protectionDomain; } + public V1ScaleIOPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -123,34 +155,45 @@ public V1ScaleIOPersistentVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1ScaleIOPersistentVolumeSource secretRef(V1SecretReference secretRef) { + this.secretRef = secretRef; return this; } /** - * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(required = true, value = "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.") + @ApiModelProperty(required = true, value = "") + public V1SecretReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1SecretReference secretRef) { this.secretRef = secretRef; } + public V1ScaleIOPersistentVolumeSource sslEnabled(Boolean sslEnabled) { + this.sslEnabled = sslEnabled; return this; } @@ -159,16 +202,22 @@ public V1ScaleIOPersistentVolumeSource sslEnabled(Boolean sslEnabled) { * Flag to enable/disable SSL communication with Gateway, default false * @return sslEnabled **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Flag to enable/disable SSL communication with Gateway, default false") - public Boolean isSslEnabled() { + + public Boolean getSslEnabled() { return sslEnabled; } + + public void setSslEnabled(Boolean sslEnabled) { this.sslEnabled = sslEnabled; } + public V1ScaleIOPersistentVolumeSource storageMode(String storageMode) { + this.storageMode = storageMode; return this; } @@ -177,16 +226,22 @@ public V1ScaleIOPersistentVolumeSource storageMode(String storageMode) { * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. * @return storageMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") + public String getStorageMode() { return storageMode; } + + public void setStorageMode(String storageMode) { this.storageMode = storageMode; } + public V1ScaleIOPersistentVolumeSource storagePool(String storagePool) { + this.storagePool = storagePool; return this; } @@ -195,16 +250,22 @@ public V1ScaleIOPersistentVolumeSource storagePool(String storagePool) { * The ScaleIO Storage Pool associated with the protection domain. * @return storagePool **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The ScaleIO Storage Pool associated with the protection domain.") + public String getStoragePool() { return storagePool; } + + public void setStoragePool(String storagePool) { this.storagePool = storagePool; } + public V1ScaleIOPersistentVolumeSource system(String system) { + this.system = system; return this; } @@ -214,15 +275,20 @@ public V1ScaleIOPersistentVolumeSource system(String system) { * @return system **/ @ApiModelProperty(required = true, value = "The name of the storage system as configured in ScaleIO.") + public String getSystem() { return system; } + + public void setSystem(String system) { this.system = system; } + public V1ScaleIOPersistentVolumeSource volumeName(String volumeName) { + this.volumeName = volumeName; return this; } @@ -231,11 +297,15 @@ public V1ScaleIOPersistentVolumeSource volumeName(String volumeName) { * The name of a volume already created in the ScaleIO system that is associated with this volume source. * @return volumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of a volume already created in the ScaleIO system that is associated with this volume source.") + public String getVolumeName() { return volumeName; } + + public void setVolumeName(String volumeName) { this.volumeName = volumeName; } @@ -243,28 +313,12 @@ public void setVolumeName(String volumeName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ScaleIOPersistentVolumeSource v1ScaleIOPersistentVolumeSource = (V1ScaleIOPersistentVolumeSource) o; - return Objects.equals(this.fsType, v1ScaleIOPersistentVolumeSource.fsType) && - Objects.equals(this.gateway, v1ScaleIOPersistentVolumeSource.gateway) && - Objects.equals(this.protectionDomain, v1ScaleIOPersistentVolumeSource.protectionDomain) && - Objects.equals(this.readOnly, v1ScaleIOPersistentVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1ScaleIOPersistentVolumeSource.secretRef) && - Objects.equals(this.sslEnabled, v1ScaleIOPersistentVolumeSource.sslEnabled) && - Objects.equals(this.storageMode, v1ScaleIOPersistentVolumeSource.storageMode) && - Objects.equals(this.storagePool, v1ScaleIOPersistentVolumeSource.storagePool) && - Objects.equals(this.system, v1ScaleIOPersistentVolumeSource.system) && - Objects.equals(this.volumeName, v1ScaleIOPersistentVolumeSource.volumeName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -272,7 +326,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ScaleIOPersistentVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); sb.append(" protectionDomain: ").append(toIndentedString(protectionDomain)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOVolumeSource.java index f90b277c39..67e8c6e94e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleIOVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,39 +31,51 @@ * ScaleIOVolumeSource represents a persistent ScaleIO volume */ @ApiModel(description = "ScaleIOVolumeSource represents a persistent ScaleIO volume") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ScaleIOVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_GATEWAY = "gateway"; + @SerializedName(SERIALIZED_NAME_GATEWAY) + private String gateway; - @SerializedName("gateway") - private String gateway = null; + public static final String SERIALIZED_NAME_PROTECTION_DOMAIN = "protectionDomain"; + @SerializedName(SERIALIZED_NAME_PROTECTION_DOMAIN) + private String protectionDomain; - @SerializedName("protectionDomain") - private String protectionDomain = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; + public static final String SERIALIZED_NAME_SSL_ENABLED = "sslEnabled"; + @SerializedName(SERIALIZED_NAME_SSL_ENABLED) + private Boolean sslEnabled; - @SerializedName("sslEnabled") - private Boolean sslEnabled = null; + public static final String SERIALIZED_NAME_STORAGE_MODE = "storageMode"; + @SerializedName(SERIALIZED_NAME_STORAGE_MODE) + private String storageMode; - @SerializedName("storageMode") - private String storageMode = null; + public static final String SERIALIZED_NAME_STORAGE_POOL = "storagePool"; + @SerializedName(SERIALIZED_NAME_STORAGE_POOL) + private String storagePool; - @SerializedName("storagePool") - private String storagePool = null; + public static final String SERIALIZED_NAME_SYSTEM = "system"; + @SerializedName(SERIALIZED_NAME_SYSTEM) + private String system; - @SerializedName("system") - private String system = null; + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + private String volumeName; - @SerializedName("volumeName") - private String volumeName = null; public V1ScaleIOVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -69,16 +84,22 @@ public V1ScaleIOVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\".") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1ScaleIOVolumeSource gateway(String gateway) { + this.gateway = gateway; return this; } @@ -88,15 +109,20 @@ public V1ScaleIOVolumeSource gateway(String gateway) { * @return gateway **/ @ApiModelProperty(required = true, value = "The host address of the ScaleIO API Gateway.") + public String getGateway() { return gateway; } + + public void setGateway(String gateway) { this.gateway = gateway; } + public V1ScaleIOVolumeSource protectionDomain(String protectionDomain) { + this.protectionDomain = protectionDomain; return this; } @@ -105,16 +131,22 @@ public V1ScaleIOVolumeSource protectionDomain(String protectionDomain) { * The name of the ScaleIO Protection Domain for the configured storage. * @return protectionDomain **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of the ScaleIO Protection Domain for the configured storage.") + public String getProtectionDomain() { return protectionDomain; } + + public void setProtectionDomain(String protectionDomain) { this.protectionDomain = protectionDomain; } + public V1ScaleIOVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -123,34 +155,45 @@ public V1ScaleIOVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1ScaleIOVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(required = true, value = "SecretRef references to the secret for ScaleIO user and other sensitive information. If this is not provided, Login operation will fail.") + @ApiModelProperty(required = true, value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } + public V1ScaleIOVolumeSource sslEnabled(Boolean sslEnabled) { + this.sslEnabled = sslEnabled; return this; } @@ -159,16 +202,22 @@ public V1ScaleIOVolumeSource sslEnabled(Boolean sslEnabled) { * Flag to enable/disable SSL communication with Gateway, default false * @return sslEnabled **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Flag to enable/disable SSL communication with Gateway, default false") - public Boolean isSslEnabled() { + + public Boolean getSslEnabled() { return sslEnabled; } + + public void setSslEnabled(Boolean sslEnabled) { this.sslEnabled = sslEnabled; } + public V1ScaleIOVolumeSource storageMode(String storageMode) { + this.storageMode = storageMode; return this; } @@ -177,16 +226,22 @@ public V1ScaleIOVolumeSource storageMode(String storageMode) { * Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. * @return storageMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned.") + public String getStorageMode() { return storageMode; } + + public void setStorageMode(String storageMode) { this.storageMode = storageMode; } + public V1ScaleIOVolumeSource storagePool(String storagePool) { + this.storagePool = storagePool; return this; } @@ -195,16 +250,22 @@ public V1ScaleIOVolumeSource storagePool(String storagePool) { * The ScaleIO Storage Pool associated with the protection domain. * @return storagePool **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The ScaleIO Storage Pool associated with the protection domain.") + public String getStoragePool() { return storagePool; } + + public void setStoragePool(String storagePool) { this.storagePool = storagePool; } + public V1ScaleIOVolumeSource system(String system) { + this.system = system; return this; } @@ -214,15 +275,20 @@ public V1ScaleIOVolumeSource system(String system) { * @return system **/ @ApiModelProperty(required = true, value = "The name of the storage system as configured in ScaleIO.") + public String getSystem() { return system; } + + public void setSystem(String system) { this.system = system; } + public V1ScaleIOVolumeSource volumeName(String volumeName) { + this.volumeName = volumeName; return this; } @@ -231,11 +297,15 @@ public V1ScaleIOVolumeSource volumeName(String volumeName) { * The name of a volume already created in the ScaleIO system that is associated with this volume source. * @return volumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of a volume already created in the ScaleIO system that is associated with this volume source.") + public String getVolumeName() { return volumeName; } + + public void setVolumeName(String volumeName) { this.volumeName = volumeName; } @@ -243,28 +313,12 @@ public void setVolumeName(String volumeName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ScaleIOVolumeSource v1ScaleIOVolumeSource = (V1ScaleIOVolumeSource) o; - return Objects.equals(this.fsType, v1ScaleIOVolumeSource.fsType) && - Objects.equals(this.gateway, v1ScaleIOVolumeSource.gateway) && - Objects.equals(this.protectionDomain, v1ScaleIOVolumeSource.protectionDomain) && - Objects.equals(this.readOnly, v1ScaleIOVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1ScaleIOVolumeSource.secretRef) && - Objects.equals(this.sslEnabled, v1ScaleIOVolumeSource.sslEnabled) && - Objects.equals(this.storageMode, v1ScaleIOVolumeSource.storageMode) && - Objects.equals(this.storagePool, v1ScaleIOVolumeSource.storagePool) && - Objects.equals(this.system, v1ScaleIOVolumeSource.system) && - Objects.equals(this.volumeName, v1ScaleIOVolumeSource.volumeName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, gateway, protectionDomain, readOnly, secretRef, sslEnabled, storageMode, storagePool, system, volumeName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -272,7 +326,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ScaleIOVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); sb.append(" protectionDomain: ").append(toIndentedString(protectionDomain)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleSpec.java index fb7a36193a..11332c63bf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * ScaleSpec describes the attributes of a scale subresource. */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ScaleSpec { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + public V1ScaleSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -41,11 +47,15 @@ public V1ScaleSpec replicas(Integer replicas) { * desired number of instances for the scaled object. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "desired number of instances for the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -53,19 +63,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ScaleSpec v1ScaleSpec = (V1ScaleSpec) o; - return Objects.equals(this.replicas, v1ScaleSpec.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ScaleSpec {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleStatus.java index 9bf235c75d..060587c4b2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScaleStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ScaleStatus { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private String selector; - @SerializedName("selector") - private String selector = null; public V1ScaleStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -45,15 +52,20 @@ public V1ScaleStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "actual number of observed instances of the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1ScaleStatus selector(String selector) { + this.selector = selector; return this; } @@ -62,11 +74,15 @@ public V1ScaleStatus selector(String selector) { * label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors * @return selector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label query over pods that should match the replicas count. This is same as the label selector but in the string format to avoid introspection by clients. The string will be in the same format as the query-param syntax. More info about label selectors: http://kubernetes.io/docs/user-guide/labels#label-selectors") + public String getSelector() { return selector; } + + public void setSelector(String selector) { this.selector = selector; } @@ -74,20 +90,12 @@ public void setSelector(String selector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ScaleStatus v1ScaleStatus = (V1ScaleStatus) o; - return Objects.equals(this.replicas, v1ScaleStatus.replicas) && - Objects.equals(this.selector, v1ScaleStatus.selector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas, selector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ScaleStatus {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopeSelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopeSelector.java index 16e2c02141..337391487d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopeSelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopeSelector.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements. */ @ApiModel(description = "A scope selector represents the AND of the selectors represented by the scoped-resource selector requirements.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ScopeSelector { - @SerializedName("matchExpressions") + public static final String SERIALIZED_NAME_MATCH_EXPRESSIONS = "matchExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_EXPRESSIONS) private List matchExpressions = null; + public V1ScopeSelector matchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; return this; } @@ -52,11 +58,15 @@ public V1ScopeSelector addMatchExpressionsItem(V1ScopedResourceSelectorRequireme * A list of scope selector requirements by scope of the resources. * @return matchExpressions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of scope selector requirements by scope of the resources.") + public List getMatchExpressions() { return matchExpressions; } + + public void setMatchExpressions(List matchExpressions) { this.matchExpressions = matchExpressions; } @@ -64,19 +74,12 @@ public void setMatchExpressions(List matchE @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ScopeSelector v1ScopeSelector = (V1ScopeSelector) o; - return Objects.equals(this.matchExpressions, v1ScopeSelector.matchExpressions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(matchExpressions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ScopeSelector {\n"); - sb.append(" matchExpressions: ").append(toIndentedString(matchExpressions)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirement.java index 2caac24fb8..1cf43ba157 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirement.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,18 +32,23 @@ * A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values. */ @ApiModel(description = "A scoped-resource selector requirement is a selector that contains values, a scope name, and an operator that relates the scope name and values.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ScopedResourceSelectorRequirement { - @SerializedName("operator") - private String operator = null; + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; - @SerializedName("scopeName") - private String scopeName = null; + public static final String SERIALIZED_NAME_SCOPE_NAME = "scopeName"; + @SerializedName(SERIALIZED_NAME_SCOPE_NAME) + private String scopeName; - @SerializedName("values") + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) private List values = null; + public V1ScopedResourceSelectorRequirement operator(String operator) { + this.operator = operator; return this; } @@ -50,15 +58,20 @@ public V1ScopedResourceSelectorRequirement operator(String operator) { * @return operator **/ @ApiModelProperty(required = true, value = "Represents a scope's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist.") + public String getOperator() { return operator; } + + public void setOperator(String operator) { this.operator = operator; } + public V1ScopedResourceSelectorRequirement scopeName(String scopeName) { + this.scopeName = scopeName; return this; } @@ -68,15 +81,20 @@ public V1ScopedResourceSelectorRequirement scopeName(String scopeName) { * @return scopeName **/ @ApiModelProperty(required = true, value = "The name of the scope that the selector applies to.") + public String getScopeName() { return scopeName; } + + public void setScopeName(String scopeName) { this.scopeName = scopeName; } + public V1ScopedResourceSelectorRequirement values(List values) { + this.values = values; return this; } @@ -93,11 +111,15 @@ public V1ScopedResourceSelectorRequirement addValuesItem(String valuesItem) { * An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. * @return values **/ + @javax.annotation.Nullable @ApiModelProperty(value = "An array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch.") + public List getValues() { return values; } + + public void setValues(List values) { this.values = values; } @@ -105,21 +127,12 @@ public void setValues(List values) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ScopedResourceSelectorRequirement v1ScopedResourceSelectorRequirement = (V1ScopedResourceSelectorRequirement) o; - return Objects.equals(this.operator, v1ScopedResourceSelectorRequirement.operator) && - Objects.equals(this.scopeName, v1ScopedResourceSelectorRequirement.scopeName) && - Objects.equals(this.values, v1ScopedResourceSelectorRequirement.values); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(operator, scopeName, values); + return HashCodeBuilder.reflectionHashCode(this); } @@ -127,7 +140,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ScopedResourceSelectorRequirement {\n"); - sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); sb.append(" scopeName: ").append(toIndentedString(scopeName)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Secret.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Secret.java index be510614ea..c70df35c99 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Secret.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Secret.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,27 +34,35 @@ * Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes. */ @ApiModel(description = "Secret holds secret data of a certain type. The total bytes of the values in the Data field must be less than MaxSecretSize bytes.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Secret { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("data") + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) private Map data = null; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("stringData") + public static final String SERIALIZED_NAME_STRING_DATA = "stringData"; + @SerializedName(SERIALIZED_NAME_STRING_DATA) private Map stringData = null; - @SerializedName("type") - private String type = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + public V1Secret apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -60,16 +71,22 @@ public V1Secret apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Secret data(Map data) { + this.data = data; return this; } @@ -86,16 +103,22 @@ public V1Secret putDataItem(String key, byte[] dataItem) { * Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4 * @return data **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Data contains the secret data. Each key must consist of alphanumeric characters, '-', '_' or '.'. The serialized form of the secret data is a base64 encoded string, representing the arbitrary (possibly non-string) data value here. Described in https://tools.ietf.org/html/rfc4648#section-4") + public Map getData() { return data; } + + public void setData(Map data) { this.data = data; } + public V1Secret kind(String kind) { + this.kind = kind; return this; } @@ -104,34 +127,46 @@ public V1Secret kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Secret metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Secret stringData(Map stringData) { + this.stringData = stringData; return this; } @@ -148,16 +183,22 @@ public V1Secret putStringDataItem(String key, String stringDataItem) { * stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API. * @return stringData **/ + @javax.annotation.Nullable @ApiModelProperty(value = "stringData allows specifying non-binary secret data in string form. It is provided as a write-only convenience method. All keys and values are merged into the data field on write, overwriting any existing values. It is never output when reading from the API.") + public Map getStringData() { return stringData; } + + public void setStringData(Map stringData) { this.stringData = stringData; } + public V1Secret type(String type) { + this.type = type; return this; } @@ -166,11 +207,15 @@ public V1Secret type(String type) { * Used to facilitate programmatic handling of secret data. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Used to facilitate programmatic handling of secret data.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -178,24 +223,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Secret v1Secret = (V1Secret) o; - return Objects.equals(this.apiVersion, v1Secret.apiVersion) && - Objects.equals(this.data, v1Secret.data) && - Objects.equals(this.kind, v1Secret.kind) && - Objects.equals(this.metadata, v1Secret.metadata) && - Objects.equals(this.stringData, v1Secret.stringData) && - Objects.equals(this.type, v1Secret.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, data, kind, metadata, stringData, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -203,7 +236,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Secret {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretEnvSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretEnvSource.java index 0c599df791..181a7089eb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretEnvSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretEnvSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables. */ @ApiModel(description = "SecretEnvSource selects a Secret to populate the environment variables with. The contents of the target Secret's Data field will represent the key-value pairs as environment variables.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecretEnvSource { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1SecretEnvSource name(String name) { + this.name = name; return this; } @@ -44,16 +51,22 @@ public V1SecretEnvSource name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1SecretEnvSource optional(Boolean optional) { + this.optional = optional; return this; } @@ -62,11 +75,15 @@ public V1SecretEnvSource optional(Boolean optional) { * Specify whether the Secret must be defined * @return optional **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret must be defined") - public Boolean isOptional() { + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -74,20 +91,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecretEnvSource v1SecretEnvSource = (V1SecretEnvSource) o; - return Objects.equals(this.name, v1SecretEnvSource.name) && - Objects.equals(this.optional, v1SecretEnvSource.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretEnvSource {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretKeySelector.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretKeySelector.java index c7eee09e0f..0f71489079 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretKeySelector.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretKeySelector.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * SecretKeySelector selects a key of a Secret. */ @ApiModel(description = "SecretKeySelector selects a key of a Secret.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecretKeySelector { - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1SecretKeySelector key(String key) { + this.key = key; return this; } @@ -48,15 +56,20 @@ public V1SecretKeySelector key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "The key of the secret to select from. Must be a valid secret key.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1SecretKeySelector name(String name) { + this.name = name; return this; } @@ -65,29 +78,39 @@ public V1SecretKeySelector name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1SecretKeySelector optional(Boolean optional) { + this.optional = optional; return this; } /** - * Specify whether the Secret or it's key must be defined + * Specify whether the Secret or its key must be defined * @return optional **/ - @ApiModelProperty(value = "Specify whether the Secret or it's key must be defined") - public Boolean isOptional() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -95,21 +118,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecretKeySelector v1SecretKeySelector = (V1SecretKeySelector) o; - return Objects.equals(this.key, v1SecretKeySelector.key) && - Objects.equals(this.name, v1SecretKeySelector.name) && - Objects.equals(this.optional, v1SecretKeySelector.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(key, name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretKeySelector {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretList.java index 7e4fe63f4c..103c08ceb0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * SecretList is a list of Secret. */ @ApiModel(description = "SecretList is a list of Secret.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecretList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1SecretList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1SecretList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1SecretList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1SecretList addItemsItem(V1Secret itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of secret objects. More info: https://kubernetes.io/docs/concepts/configuration/secret") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1SecretList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1SecretList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1SecretList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecretList v1SecretList = (V1SecretList) o; - return Objects.equals(this.apiVersion, v1SecretList.apiVersion) && - Objects.equals(this.items, v1SecretList.items) && - Objects.equals(this.kind, v1SecretList.kind) && - Objects.equals(this.metadata, v1SecretList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretProjection.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretProjection.java index 80cb8aa49d..d5014f49f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretProjection.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode. */ @ApiModel(description = "Adapts a secret into a projected volume. The contents of the target Secret's Data field will be presented in a projected volume as files using the keys in the Data field as the file names. Note that this is identical to a secret volume source without the default mode.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecretProjection { - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = null; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; - @SerializedName("optional") - private Boolean optional = null; public V1SecretProjection items(List items) { + this.items = items; return this; } @@ -58,16 +66,22 @@ public V1SecretProjection addItemsItem(V1KeyToPath itemsItem) { * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1SecretProjection name(String name) { + this.name = name; return this; } @@ -76,16 +90,22 @@ public V1SecretProjection name(String name) { * Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1SecretProjection optional(Boolean optional) { + this.optional = optional; return this; } @@ -94,11 +114,15 @@ public V1SecretProjection optional(Boolean optional) { * Specify whether the Secret or its key must be defined * @return optional **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specify whether the Secret or its key must be defined") - public Boolean isOptional() { + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } @@ -106,21 +130,12 @@ public void setOptional(Boolean optional) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecretProjection v1SecretProjection = (V1SecretProjection) o; - return Objects.equals(this.items, v1SecretProjection.items) && - Objects.equals(this.name, v1SecretProjection.name) && - Objects.equals(this.optional, v1SecretProjection.optional); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(items, name, optional); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +143,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretProjection {\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretReference.java index e23d082899..b8cd031088 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace */ @ApiModel(description = "SecretReference represents a Secret Reference. It has enough information to retrieve secret in any namespace") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecretReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; public V1SecretReference name(String name) { + this.name = name; return this; } @@ -44,16 +51,22 @@ public V1SecretReference name(String name) { * Name is unique within a namespace to reference a secret resource. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name is unique within a namespace to reference a secret resource.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1SecretReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -62,11 +75,15 @@ public V1SecretReference namespace(String namespace) { * Namespace defines the space within which the secret name must be unique. * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace defines the space within which the secret name must be unique.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -74,20 +91,12 @@ public void setNamespace(String namespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecretReference v1SecretReference = (V1SecretReference) o; - return Objects.equals(this.name, v1SecretReference.name) && - Objects.equals(this.namespace, v1SecretReference.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretVolumeSource.java index 0a47072697..bdaf5a4860 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecretVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ * Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling. */ @ApiModel(description = "Adapts a Secret into a volume. The contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecretVolumeSource { - @SerializedName("defaultMode") - private Integer defaultMode = null; + public static final String SERIALIZED_NAME_DEFAULT_MODE = "defaultMode"; + @SerializedName(SERIALIZED_NAME_DEFAULT_MODE) + private Integer defaultMode; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = null; - @SerializedName("optional") - private Boolean optional = null; + public static final String SERIALIZED_NAME_OPTIONAL = "optional"; + @SerializedName(SERIALIZED_NAME_OPTIONAL) + private Boolean optional; + + public static final String SERIALIZED_NAME_SECRET_NAME = "secretName"; + @SerializedName(SERIALIZED_NAME_SECRET_NAME) + private String secretName; - @SerializedName("secretName") - private String secretName = null; public V1SecretVolumeSource defaultMode(Integer defaultMode) { + this.defaultMode = defaultMode; return this; } @@ -53,16 +62,22 @@ public V1SecretVolumeSource defaultMode(Integer defaultMode) { * Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. * @return defaultMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: mode bits to use on created files by default. Must be a value between 0 and 0777. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set.") + public Integer getDefaultMode() { return defaultMode; } + + public void setDefaultMode(Integer defaultMode) { this.defaultMode = defaultMode; } + public V1SecretVolumeSource items(List items) { + this.items = items; return this; } @@ -79,34 +94,46 @@ public V1SecretVolumeSource addItemsItem(V1KeyToPath itemsItem) { * If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1SecretVolumeSource optional(Boolean optional) { + this.optional = optional; return this; } /** - * Specify whether the Secret or it's keys must be defined + * Specify whether the Secret or its keys must be defined * @return optional **/ - @ApiModelProperty(value = "Specify whether the Secret or it's keys must be defined") - public Boolean isOptional() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Specify whether the Secret or its keys must be defined") + + public Boolean getOptional() { return optional; } + + public void setOptional(Boolean optional) { this.optional = optional; } + public V1SecretVolumeSource secretName(String secretName) { + this.secretName = secretName; return this; } @@ -115,11 +142,15 @@ public V1SecretVolumeSource secretName(String secretName) { * Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret * @return secretName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") + public String getSecretName() { return secretName; } + + public void setSecretName(String secretName) { this.secretName = secretName; } @@ -127,22 +158,12 @@ public void setSecretName(String secretName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecretVolumeSource v1SecretVolumeSource = (V1SecretVolumeSource) o; - return Objects.equals(this.defaultMode, v1SecretVolumeSource.defaultMode) && - Objects.equals(this.items, v1SecretVolumeSource.items) && - Objects.equals(this.optional, v1SecretVolumeSource.optional) && - Objects.equals(this.secretName, v1SecretVolumeSource.secretName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(defaultMode, items, optional, secretName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -150,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecretVolumeSource {\n"); - sb.append(" defaultMode: ").append(toIndentedString(defaultMode)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecurityContext.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecurityContext.java index 6ac85a406f..2e63611e92 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SecurityContext.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SecurityContext.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -21,6 +24,7 @@ import com.google.gson.stream.JsonWriter; import io.kubernetes.client.models.V1Capabilities; import io.kubernetes.client.models.V1SELinuxOptions; +import io.kubernetes.client.models.V1WindowsSecurityContextOptions; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -29,36 +33,51 @@ * SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence. */ @ApiModel(description = "SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SecurityContext { - @SerializedName("allowPrivilegeEscalation") - private Boolean allowPrivilegeEscalation = null; + public static final String SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION = "allowPrivilegeEscalation"; + @SerializedName(SERIALIZED_NAME_ALLOW_PRIVILEGE_ESCALATION) + private Boolean allowPrivilegeEscalation; + + public static final String SERIALIZED_NAME_CAPABILITIES = "capabilities"; + @SerializedName(SERIALIZED_NAME_CAPABILITIES) + private V1Capabilities capabilities; - @SerializedName("capabilities") - private V1Capabilities capabilities = null; + public static final String SERIALIZED_NAME_PRIVILEGED = "privileged"; + @SerializedName(SERIALIZED_NAME_PRIVILEGED) + private Boolean privileged; - @SerializedName("privileged") - private Boolean privileged = null; + public static final String SERIALIZED_NAME_PROC_MOUNT = "procMount"; + @SerializedName(SERIALIZED_NAME_PROC_MOUNT) + private String procMount; - @SerializedName("procMount") - private String procMount = null; + public static final String SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM = "readOnlyRootFilesystem"; + @SerializedName(SERIALIZED_NAME_READ_ONLY_ROOT_FILESYSTEM) + private Boolean readOnlyRootFilesystem; - @SerializedName("readOnlyRootFilesystem") - private Boolean readOnlyRootFilesystem = null; + public static final String SERIALIZED_NAME_RUN_AS_GROUP = "runAsGroup"; + @SerializedName(SERIALIZED_NAME_RUN_AS_GROUP) + private Long runAsGroup; - @SerializedName("runAsGroup") - private Long runAsGroup = null; + public static final String SERIALIZED_NAME_RUN_AS_NON_ROOT = "runAsNonRoot"; + @SerializedName(SERIALIZED_NAME_RUN_AS_NON_ROOT) + private Boolean runAsNonRoot; - @SerializedName("runAsNonRoot") - private Boolean runAsNonRoot = null; + public static final String SERIALIZED_NAME_RUN_AS_USER = "runAsUser"; + @SerializedName(SERIALIZED_NAME_RUN_AS_USER) + private Long runAsUser; - @SerializedName("runAsUser") - private Long runAsUser = null; + public static final String SERIALIZED_NAME_SE_LINUX_OPTIONS = "seLinuxOptions"; + @SerializedName(SERIALIZED_NAME_SE_LINUX_OPTIONS) + private V1SELinuxOptions seLinuxOptions; + + public static final String SERIALIZED_NAME_WINDOWS_OPTIONS = "windowsOptions"; + @SerializedName(SERIALIZED_NAME_WINDOWS_OPTIONS) + private V1WindowsSecurityContextOptions windowsOptions; - @SerializedName("seLinuxOptions") - private V1SELinuxOptions seLinuxOptions = null; public V1SecurityContext allowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { + this.allowPrivilegeEscalation = allowPrivilegeEscalation; return this; } @@ -67,34 +86,46 @@ public V1SecurityContext allowPrivilegeEscalation(Boolean allowPrivilegeEscalati * AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN * @return allowPrivilegeEscalation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN") - public Boolean isAllowPrivilegeEscalation() { + + public Boolean getAllowPrivilegeEscalation() { return allowPrivilegeEscalation; } + + public void setAllowPrivilegeEscalation(Boolean allowPrivilegeEscalation) { this.allowPrivilegeEscalation = allowPrivilegeEscalation; } + public V1SecurityContext capabilities(V1Capabilities capabilities) { + this.capabilities = capabilities; return this; } /** - * The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime. + * Get capabilities * @return capabilities **/ - @ApiModelProperty(value = "The capabilities to add/drop when running containers. Defaults to the default set of capabilities granted by the container runtime.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1Capabilities getCapabilities() { return capabilities; } + + public void setCapabilities(V1Capabilities capabilities) { this.capabilities = capabilities; } + public V1SecurityContext privileged(Boolean privileged) { + this.privileged = privileged; return this; } @@ -103,16 +134,22 @@ public V1SecurityContext privileged(Boolean privileged) { * Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. * @return privileged **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false.") - public Boolean isPrivileged() { + + public Boolean getPrivileged() { return privileged; } + + public void setPrivileged(Boolean privileged) { this.privileged = privileged; } + public V1SecurityContext procMount(String procMount) { + this.procMount = procMount; return this; } @@ -121,16 +158,22 @@ public V1SecurityContext procMount(String procMount) { * procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled. * @return procMount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "procMount denotes the type of proc mount to use for the containers. The default is DefaultProcMount which uses the container runtime defaults for readonly paths and masked paths. This requires the ProcMountType feature flag to be enabled.") + public String getProcMount() { return procMount; } + + public void setProcMount(String procMount) { this.procMount = procMount; } + public V1SecurityContext readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { + this.readOnlyRootFilesystem = readOnlyRootFilesystem; return this; } @@ -139,16 +182,22 @@ public V1SecurityContext readOnlyRootFilesystem(Boolean readOnlyRootFilesystem) * Whether this container has a read-only root filesystem. Default is false. * @return readOnlyRootFilesystem **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Whether this container has a read-only root filesystem. Default is false.") - public Boolean isReadOnlyRootFilesystem() { + + public Boolean getReadOnlyRootFilesystem() { return readOnlyRootFilesystem; } + + public void setReadOnlyRootFilesystem(Boolean readOnlyRootFilesystem) { this.readOnlyRootFilesystem = readOnlyRootFilesystem; } + public V1SecurityContext runAsGroup(Long runAsGroup) { + this.runAsGroup = runAsGroup; return this; } @@ -157,16 +206,22 @@ public V1SecurityContext runAsGroup(Long runAsGroup) { * The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsGroup **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") + public Long getRunAsGroup() { return runAsGroup; } + + public void setRunAsGroup(Long runAsGroup) { this.runAsGroup = runAsGroup; } + public V1SecurityContext runAsNonRoot(Boolean runAsNonRoot) { + this.runAsNonRoot = runAsNonRoot; return this; } @@ -175,16 +230,22 @@ public V1SecurityContext runAsNonRoot(Boolean runAsNonRoot) { * Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsNonRoot **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") - public Boolean isRunAsNonRoot() { + + public Boolean getRunAsNonRoot() { return runAsNonRoot; } + + public void setRunAsNonRoot(Boolean runAsNonRoot) { this.runAsNonRoot = runAsNonRoot; } + public V1SecurityContext runAsUser(Long runAsUser) { + this.runAsUser = runAsUser; return this; } @@ -193,57 +254,76 @@ public V1SecurityContext runAsUser(Long runAsUser) { * The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. * @return runAsUser **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") + public Long getRunAsUser() { return runAsUser; } + + public void setRunAsUser(Long runAsUser) { this.runAsUser = runAsUser; } + public V1SecurityContext seLinuxOptions(V1SELinuxOptions seLinuxOptions) { + this.seLinuxOptions = seLinuxOptions; return this; } /** - * The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + * Get seLinuxOptions * @return seLinuxOptions **/ - @ApiModelProperty(value = "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SELinuxOptions getSeLinuxOptions() { return seLinuxOptions; } + + public void setSeLinuxOptions(V1SELinuxOptions seLinuxOptions) { this.seLinuxOptions = seLinuxOptions; } + public V1SecurityContext windowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + + this.windowsOptions = windowsOptions; + return this; + } + + /** + * Get windowsOptions + * @return windowsOptions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1WindowsSecurityContextOptions getWindowsOptions() { + return windowsOptions; + } + + + + public void setWindowsOptions(V1WindowsSecurityContextOptions windowsOptions) { + this.windowsOptions = windowsOptions; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SecurityContext v1SecurityContext = (V1SecurityContext) o; - return Objects.equals(this.allowPrivilegeEscalation, v1SecurityContext.allowPrivilegeEscalation) && - Objects.equals(this.capabilities, v1SecurityContext.capabilities) && - Objects.equals(this.privileged, v1SecurityContext.privileged) && - Objects.equals(this.procMount, v1SecurityContext.procMount) && - Objects.equals(this.readOnlyRootFilesystem, v1SecurityContext.readOnlyRootFilesystem) && - Objects.equals(this.runAsGroup, v1SecurityContext.runAsGroup) && - Objects.equals(this.runAsNonRoot, v1SecurityContext.runAsNonRoot) && - Objects.equals(this.runAsUser, v1SecurityContext.runAsUser) && - Objects.equals(this.seLinuxOptions, v1SecurityContext.seLinuxOptions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowPrivilegeEscalation, capabilities, privileged, procMount, readOnlyRootFilesystem, runAsGroup, runAsNonRoot, runAsUser, seLinuxOptions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -251,7 +331,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SecurityContext {\n"); - sb.append(" allowPrivilegeEscalation: ").append(toIndentedString(allowPrivilegeEscalation)).append("\n"); sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); sb.append(" privileged: ").append(toIndentedString(privileged)).append("\n"); @@ -261,6 +340,7 @@ public String toString() { sb.append(" runAsNonRoot: ").append(toIndentedString(runAsNonRoot)).append("\n"); sb.append(" runAsUser: ").append(toIndentedString(runAsUser)).append("\n"); sb.append(" seLinuxOptions: ").append(toIndentedString(seLinuxOptions)).append("\n"); + sb.append(" windowsOptions: ").append(toIndentedString(windowsOptions)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReview.java index 4fa576520f..672e7f43e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action */ @ApiModel(description = "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SelfSubjectAccessReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1SelfSubjectAccessReviewSpec spec; - @SerializedName("spec") - private V1SelfSubjectAccessReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1SubjectAccessReviewStatus status; - @SerializedName("status") - private V1SubjectAccessReviewStatus status = null; public V1SelfSubjectAccessReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1SelfSubjectAccessReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1SelfSubjectAccessReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1SelfSubjectAccessReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1SelfSubjectAccessReview spec(V1SelfSubjectAccessReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated. user and groups must be empty + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated. user and groups must be empty") + @ApiModelProperty(required = true, value = "") + public V1SelfSubjectAccessReviewSpec getSpec() { return spec; } + + public void setSpec(V1SelfSubjectAccessReviewSpec spec) { this.spec = spec; } + public V1SelfSubjectAccessReview status(V1SubjectAccessReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request is allowed or not + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request is allowed or not") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SubjectAccessReviewStatus getStatus() { return status; } + + public void setStatus(V1SubjectAccessReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1SubjectAccessReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SelfSubjectAccessReview v1SelfSubjectAccessReview = (V1SelfSubjectAccessReview) o; - return Objects.equals(this.apiVersion, v1SelfSubjectAccessReview.apiVersion) && - Objects.equals(this.kind, v1SelfSubjectAccessReview.kind) && - Objects.equals(this.metadata, v1SelfSubjectAccessReview.metadata) && - Objects.equals(this.spec, v1SelfSubjectAccessReview.spec) && - Objects.equals(this.status, v1SelfSubjectAccessReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SelfSubjectAccessReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpec.java index cdcbbb579d..077c0c2747 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,60 @@ * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SelfSubjectAccessReviewSpec { - @SerializedName("nonResourceAttributes") - private V1NonResourceAttributes nonResourceAttributes = null; + public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) + private V1NonResourceAttributes nonResourceAttributes; + + public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES = "resourceAttributes"; + @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) + private V1ResourceAttributes resourceAttributes; - @SerializedName("resourceAttributes") - private V1ResourceAttributes resourceAttributes = null; public V1SelfSubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + this.nonResourceAttributes = nonResourceAttributes; return this; } /** - * NonResourceAttributes describes information for a non-resource access request + * Get nonResourceAttributes * @return nonResourceAttributes **/ - @ApiModelProperty(value = "NonResourceAttributes describes information for a non-resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } + + public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; } + public V1SelfSubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes) { + this.resourceAttributes = resourceAttributes; return this; } /** - * ResourceAuthorizationAttributes describes information for a resource access request + * Get resourceAttributes * @return resourceAttributes **/ - @ApiModelProperty(value = "ResourceAuthorizationAttributes describes information for a resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } + + public void setResourceAttributes(V1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; } @@ -76,20 +93,12 @@ public void setResourceAttributes(V1ResourceAttributes resourceAttributes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SelfSubjectAccessReviewSpec v1SelfSubjectAccessReviewSpec = (V1SelfSubjectAccessReviewSpec) o; - return Objects.equals(this.nonResourceAttributes, v1SelfSubjectAccessReviewSpec.nonResourceAttributes) && - Objects.equals(this.resourceAttributes, v1SelfSubjectAccessReviewSpec.resourceAttributes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nonResourceAttributes, resourceAttributes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +106,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SelfSubjectAccessReviewSpec {\n"); - sb.append(" nonResourceAttributes: ").append(toIndentedString(nonResourceAttributes)).append("\n"); sb.append(" resourceAttributes: ").append(toIndentedString(resourceAttributes)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReview.java index adf1d534f2..c0fc482fde 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. */ @ApiModel(description = "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SelfSubjectRulesReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1SelfSubjectRulesReviewSpec spec; - @SerializedName("spec") - private V1SelfSubjectRulesReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1SubjectRulesReviewStatus status; - @SerializedName("status") - private V1SubjectRulesReviewStatus status = null; public V1SelfSubjectRulesReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1SelfSubjectRulesReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1SelfSubjectRulesReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1SelfSubjectRulesReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1SelfSubjectRulesReview spec(V1SelfSubjectRulesReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated.") + @ApiModelProperty(required = true, value = "") + public V1SelfSubjectRulesReviewSpec getSpec() { return spec; } + + public void setSpec(V1SelfSubjectRulesReviewSpec spec) { this.spec = spec; } + public V1SelfSubjectRulesReview status(V1SubjectRulesReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates the set of actions a user can perform. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates the set of actions a user can perform.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SubjectRulesReviewStatus getStatus() { return status; } + + public void setStatus(V1SubjectRulesReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1SubjectRulesReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SelfSubjectRulesReview v1SelfSubjectRulesReview = (V1SelfSubjectRulesReview) o; - return Objects.equals(this.apiVersion, v1SelfSubjectRulesReview.apiVersion) && - Objects.equals(this.kind, v1SelfSubjectRulesReview.kind) && - Objects.equals(this.metadata, v1SelfSubjectRulesReview.metadata) && - Objects.equals(this.spec, v1SelfSubjectRulesReview.spec) && - Objects.equals(this.status, v1SelfSubjectRulesReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SelfSubjectRulesReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpec.java index 0c63fbadd5..0cd4b58a3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,12 +29,15 @@ /** * V1SelfSubjectRulesReviewSpec */ - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SelfSubjectRulesReviewSpec { - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + public V1SelfSubjectRulesReviewSpec namespace(String namespace) { + this.namespace = namespace; return this; } @@ -40,11 +46,15 @@ public V1SelfSubjectRulesReviewSpec namespace(String namespace) { * Namespace to evaluate rules for. Required. * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace to evaluate rules for. Required.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -52,19 +62,12 @@ public void setNamespace(String namespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SelfSubjectRulesReviewSpec v1SelfSubjectRulesReviewSpec = (V1SelfSubjectRulesReviewSpec) o; - return Objects.equals(this.namespace, v1SelfSubjectRulesReviewSpec.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -72,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SelfSubjectRulesReviewSpec {\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServerAddressByClientCIDR.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServerAddressByClientCIDR.java index 6a65f000fe..07da43f192 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServerAddressByClientCIDR.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServerAddressByClientCIDR.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match. */ @ApiModel(description = "ServerAddressByClientCIDR helps the client to determine the server address that they should use, depending on the clientCIDR that they match.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServerAddressByClientCIDR { - @SerializedName("clientCIDR") - private String clientCIDR = null; + public static final String SERIALIZED_NAME_CLIENT_C_I_D_R = "clientCIDR"; + @SerializedName(SERIALIZED_NAME_CLIENT_C_I_D_R) + private String clientCIDR; + + public static final String SERIALIZED_NAME_SERVER_ADDRESS = "serverAddress"; + @SerializedName(SERIALIZED_NAME_SERVER_ADDRESS) + private String serverAddress; - @SerializedName("serverAddress") - private String serverAddress = null; public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR) { + this.clientCIDR = clientCIDR; return this; } @@ -45,15 +52,20 @@ public V1ServerAddressByClientCIDR clientCIDR(String clientCIDR) { * @return clientCIDR **/ @ApiModelProperty(required = true, value = "The CIDR with which clients can match their IP to figure out the server address that they should use.") + public String getClientCIDR() { return clientCIDR; } + + public void setClientCIDR(String clientCIDR) { this.clientCIDR = clientCIDR; } + public V1ServerAddressByClientCIDR serverAddress(String serverAddress) { + this.serverAddress = serverAddress; return this; } @@ -63,10 +75,13 @@ public V1ServerAddressByClientCIDR serverAddress(String serverAddress) { * @return serverAddress **/ @ApiModelProperty(required = true, value = "Address of this server, suitable for a client that matches the above CIDR. This can be a hostname, hostname:port, IP or IP:port.") + public String getServerAddress() { return serverAddress; } + + public void setServerAddress(String serverAddress) { this.serverAddress = serverAddress; } @@ -74,20 +89,12 @@ public void setServerAddress(String serverAddress) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServerAddressByClientCIDR v1ServerAddressByClientCIDR = (V1ServerAddressByClientCIDR) o; - return Objects.equals(this.clientCIDR, v1ServerAddressByClientCIDR.clientCIDR) && - Objects.equals(this.serverAddress, v1ServerAddressByClientCIDR.serverAddress); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clientCIDR, serverAddress); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServerAddressByClientCIDR {\n"); - sb.append(" clientCIDR: ").append(toIndentedString(clientCIDR)).append("\n"); sb.append(" serverAddress: ").append(toIndentedString(serverAddress)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Service.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Service.java index e29944c240..c9a856896f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Service.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Service.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy. */ @ApiModel(description = "Service is a named abstraction of software service (for example, mysql) consisting of local port (for example 3306) that the proxy listens on, and the selector that determines which pods will answer requests sent through the proxy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Service { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1ServiceSpec spec; - @SerializedName("spec") - private V1ServiceSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1ServiceStatus status; - @SerializedName("status") - private V1ServiceStatus status = null; public V1Service apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1Service apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Service kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1Service kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Service metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1Service spec(V1ServiceSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the behavior of a service. https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ServiceSpec getSpec() { return spec; } + + public void setSpec(V1ServiceSpec spec) { this.spec = spec; } + public V1Service status(V1ServiceStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the service. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ServiceStatus getStatus() { return status; } + + public void setStatus(V1ServiceStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1ServiceStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Service v1Service = (V1Service) o; - return Objects.equals(this.apiVersion, v1Service.apiVersion) && - Objects.equals(this.kind, v1Service.kind) && - Objects.equals(this.metadata, v1Service.metadata) && - Objects.equals(this.spec, v1Service.spec) && - Objects.equals(this.status, v1Service.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Service {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccount.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccount.java index 579edd9275..cc3c257609 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccount.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,27 +35,35 @@ * ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets */ @ApiModel(description = "ServiceAccount binds together: * a name, understood by users, and perhaps by peripheral systems, for an identity * a principal that can be authenticated and authorized * a set of secrets") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceAccount { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("automountServiceAccountToken") - private Boolean automountServiceAccountToken = null; + public static final String SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN = "automountServiceAccountToken"; + @SerializedName(SERIALIZED_NAME_AUTOMOUNT_SERVICE_ACCOUNT_TOKEN) + private Boolean automountServiceAccountToken; - @SerializedName("imagePullSecrets") + public static final String SERIALIZED_NAME_IMAGE_PULL_SECRETS = "imagePullSecrets"; + @SerializedName(SERIALIZED_NAME_IMAGE_PULL_SECRETS) private List imagePullSecrets = null; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("secrets") + public static final String SERIALIZED_NAME_SECRETS = "secrets"; + @SerializedName(SERIALIZED_NAME_SECRETS) private List secrets = null; + public V1ServiceAccount apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -61,16 +72,22 @@ public V1ServiceAccount apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAccountToken) { + this.automountServiceAccountToken = automountServiceAccountToken; return this; } @@ -79,16 +96,22 @@ public V1ServiceAccount automountServiceAccountToken(Boolean automountServiceAcc * AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level. * @return automountServiceAccountToken **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AutomountServiceAccountToken indicates whether pods running as this service account should have an API token automatically mounted. Can be overridden at the pod level.") - public Boolean isAutomountServiceAccountToken() { + + public Boolean getAutomountServiceAccountToken() { return automountServiceAccountToken; } + + public void setAutomountServiceAccountToken(Boolean automountServiceAccountToken) { this.automountServiceAccountToken = automountServiceAccountToken; } + public V1ServiceAccount imagePullSecrets(List imagePullSecrets) { + this.imagePullSecrets = imagePullSecrets; return this; } @@ -105,16 +128,22 @@ public V1ServiceAccount addImagePullSecretsItem(V1LocalObjectReference imagePull * ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod * @return imagePullSecrets **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ImagePullSecrets is a list of references to secrets in the same namespace to use for pulling any images in pods that reference this ServiceAccount. ImagePullSecrets are distinct from Secrets because Secrets can be mounted in the pod, but ImagePullSecrets are only accessed by the kubelet. More info: https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod") + public List getImagePullSecrets() { return imagePullSecrets; } + + public void setImagePullSecrets(List imagePullSecrets) { this.imagePullSecrets = imagePullSecrets; } + public V1ServiceAccount kind(String kind) { + this.kind = kind; return this; } @@ -123,34 +152,46 @@ public V1ServiceAccount kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ServiceAccount metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1ServiceAccount secrets(List secrets) { + this.secrets = secrets; return this; } @@ -167,11 +208,15 @@ public V1ServiceAccount addSecretsItem(V1ObjectReference secretsItem) { * Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret * @return secrets **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Secrets is the list of secrets allowed to be used by pods running using this ServiceAccount. More info: https://kubernetes.io/docs/concepts/configuration/secret") + public List getSecrets() { return secrets; } + + public void setSecrets(List secrets) { this.secrets = secrets; } @@ -179,24 +224,12 @@ public void setSecrets(List secrets) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceAccount v1ServiceAccount = (V1ServiceAccount) o; - return Objects.equals(this.apiVersion, v1ServiceAccount.apiVersion) && - Objects.equals(this.automountServiceAccountToken, v1ServiceAccount.automountServiceAccountToken) && - Objects.equals(this.imagePullSecrets, v1ServiceAccount.imagePullSecrets) && - Objects.equals(this.kind, v1ServiceAccount.kind) && - Objects.equals(this.metadata, v1ServiceAccount.metadata) && - Objects.equals(this.secrets, v1ServiceAccount.secrets); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, automountServiceAccountToken, imagePullSecrets, kind, metadata, secrets); + return HashCodeBuilder.reflectionHashCode(this); } @@ -204,7 +237,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceAccount {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" automountServiceAccountToken: ").append(toIndentedString(automountServiceAccountToken)).append("\n"); sb.append(" imagePullSecrets: ").append(toIndentedString(imagePullSecrets)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountList.java index bd2d651900..27f044fcd1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ServiceAccountList is a list of ServiceAccount objects */ @ApiModel(description = "ServiceAccountList is a list of ServiceAccount objects") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceAccountList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ServiceAccountList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ServiceAccountList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ServiceAccountList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ServiceAccountList addItemsItem(V1ServiceAccount itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of ServiceAccounts. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ServiceAccountList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ServiceAccountList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ServiceAccountList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceAccountList v1ServiceAccountList = (V1ServiceAccountList) o; - return Objects.equals(this.apiVersion, v1ServiceAccountList.apiVersion) && - Objects.equals(this.items, v1ServiceAccountList.items) && - Objects.equals(this.kind, v1ServiceAccountList.kind) && - Objects.equals(this.metadata, v1ServiceAccountList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceAccountList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountTokenProjection.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountTokenProjection.java index cf5e4390b0..5c4d75153c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountTokenProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceAccountTokenProjection.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise). */ @ApiModel(description = "ServiceAccountTokenProjection represents a projected service account token volume. This projection can be used to insert a service account token into the pods runtime filesystem for use against APIs (Kubernetes API Server or otherwise).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceAccountTokenProjection { - @SerializedName("audience") - private String audience = null; + public static final String SERIALIZED_NAME_AUDIENCE = "audience"; + @SerializedName(SERIALIZED_NAME_AUDIENCE) + private String audience; + + public static final String SERIALIZED_NAME_EXPIRATION_SECONDS = "expirationSeconds"; + @SerializedName(SERIALIZED_NAME_EXPIRATION_SECONDS) + private Long expirationSeconds; - @SerializedName("expirationSeconds") - private Long expirationSeconds = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("path") - private String path = null; public V1ServiceAccountTokenProjection audience(String audience) { + this.audience = audience; return this; } @@ -47,16 +55,22 @@ public V1ServiceAccountTokenProjection audience(String audience) { * Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. * @return audience **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver.") + public String getAudience() { return audience; } + + public void setAudience(String audience) { this.audience = audience; } + public V1ServiceAccountTokenProjection expirationSeconds(Long expirationSeconds) { + this.expirationSeconds = expirationSeconds; return this; } @@ -65,16 +79,22 @@ public V1ServiceAccountTokenProjection expirationSeconds(Long expirationSeconds) * ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. * @return expirationSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes.") + public Long getExpirationSeconds() { return expirationSeconds; } + + public void setExpirationSeconds(Long expirationSeconds) { this.expirationSeconds = expirationSeconds; } + public V1ServiceAccountTokenProjection path(String path) { + this.path = path; return this; } @@ -84,10 +104,13 @@ public V1ServiceAccountTokenProjection path(String path) { * @return path **/ @ApiModelProperty(required = true, value = "Path is the path relative to the mount point of the file to project the token into.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } @@ -95,21 +118,12 @@ public void setPath(String path) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceAccountTokenProjection v1ServiceAccountTokenProjection = (V1ServiceAccountTokenProjection) o; - return Objects.equals(this.audience, v1ServiceAccountTokenProjection.audience) && - Objects.equals(this.expirationSeconds, v1ServiceAccountTokenProjection.expirationSeconds) && - Objects.equals(this.path, v1ServiceAccountTokenProjection.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(audience, expirationSeconds, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceAccountTokenProjection {\n"); - sb.append(" audience: ").append(toIndentedString(audience)).append("\n"); sb.append(" expirationSeconds: ").append(toIndentedString(expirationSeconds)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceList.java index 90252cc7f2..ee6b427af5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ServiceList holds a list of services. */ @ApiModel(description = "ServiceList holds a list of services.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1ServiceList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1ServiceList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1ServiceList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1ServiceList addItemsItem(V1Service itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of services") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1ServiceList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1ServiceList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1ServiceList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceList v1ServiceList = (V1ServiceList) o; - return Objects.equals(this.apiVersion, v1ServiceList.apiVersion) && - Objects.equals(this.items, v1ServiceList.items) && - Objects.equals(this.kind, v1ServiceList.kind) && - Objects.equals(this.metadata, v1ServiceList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServicePort.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServicePort.java index 0bd79495dc..afe96677bc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServicePort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServicePort.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * ServicePort contains information on service's port. */ @ApiModel(description = "ServicePort contains information on service's port.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServicePort { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NODE_PORT = "nodePort"; + @SerializedName(SERIALIZED_NAME_NODE_PORT) + private Integer nodePort; - @SerializedName("nodePort") - private Integer nodePort = null; + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("port") - private Integer port = null; + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; + @SerializedName(SERIALIZED_NAME_PROTOCOL) + private String protocol; - @SerializedName("protocol") - private String protocol = null; + public static final String SERIALIZED_NAME_TARGET_PORT = "targetPort"; + @SerializedName(SERIALIZED_NAME_TARGET_PORT) + private IntOrString targetPort; - @SerializedName("targetPort") - private IntOrString targetPort = null; public V1ServicePort name(String name) { + this.name = name; return this; } @@ -54,16 +64,22 @@ public V1ServicePort name(String name) { * The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. This maps to the 'Name' field in EndpointPort objects. Optional if only one ServicePort is defined on this service.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ServicePort nodePort(Integer nodePort) { + this.nodePort = nodePort; return this; } @@ -72,16 +88,22 @@ public V1ServicePort nodePort(Integer nodePort) { * The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport * @return nodePort **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport") + public Integer getNodePort() { return nodePort; } + + public void setNodePort(Integer nodePort) { this.nodePort = nodePort; } + public V1ServicePort port(Integer port) { + this.port = port; return this; } @@ -91,15 +113,20 @@ public V1ServicePort port(Integer port) { * @return port **/ @ApiModelProperty(required = true, value = "The port that will be exposed by this service.") + public Integer getPort() { return port; } + + public void setPort(Integer port) { this.port = port; } + public V1ServicePort protocol(String protocol) { + this.protocol = protocol; return this; } @@ -108,29 +135,39 @@ public V1ServicePort protocol(String protocol) { * The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP. * @return protocol **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The IP protocol for this port. Supports \"TCP\", \"UDP\", and \"SCTP\". Default is TCP.") + public String getProtocol() { return protocol; } + + public void setProtocol(String protocol) { this.protocol = protocol; } + public V1ServicePort targetPort(IntOrString targetPort) { + this.targetPort = targetPort; return this; } /** - * Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return targetPort **/ - @ApiModelProperty(value = "Number or name of the port to access on the pods targeted by the service. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. If this is a string, it will be looked up as a named port in the target Pod's container ports. If this is not specified, the value of the 'port' field is used (an identity map). This field is ignored for services with clusterIP=None, and should be omitted or set equal to the 'port' field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#defining-a-service") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getTargetPort() { return targetPort; } + + public void setTargetPort(IntOrString targetPort) { this.targetPort = targetPort; } @@ -138,23 +175,12 @@ public void setTargetPort(IntOrString targetPort) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServicePort v1ServicePort = (V1ServicePort) o; - return Objects.equals(this.name, v1ServicePort.name) && - Objects.equals(this.nodePort, v1ServicePort.nodePort) && - Objects.equals(this.port, v1ServicePort.port) && - Objects.equals(this.protocol, v1ServicePort.protocol) && - Objects.equals(this.targetPort, v1ServicePort.targetPort); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, nodePort, port, protocol, targetPort); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +188,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServicePort {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" nodePort: ").append(toIndentedString(nodePort)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceReference.java index 30a78f0d75..5645aef49e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,23 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("namespace") - private String namespace = null; public V1ServiceReference name(String name) { + this.name = name; return this; } @@ -44,16 +55,22 @@ public V1ServiceReference name(String name) { * Name is the name of the service * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name is the name of the service") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1ServiceReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -62,32 +79,52 @@ public V1ServiceReference namespace(String namespace) { * Namespace is the namespace of the service * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of the service") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1ServiceReference port(Integer port) { + + this.port = port; + return this; + } + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @return port + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") + + public Integer getPort() { + return port; + } + + + + public void setPort(Integer port) { + this.port = port; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceReference v1ServiceReference = (V1ServiceReference) o; - return Objects.equals(this.name, v1ServiceReference.name) && - Objects.equals(this.namespace, v1ServiceReference.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,9 +132,9 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceSpec.java index a60cb53e77..ebe1b95f34 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,48 +36,63 @@ * ServiceSpec describes the attributes that a user creates on a service. */ @ApiModel(description = "ServiceSpec describes the attributes that a user creates on a service.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceSpec { - @SerializedName("clusterIP") - private String clusterIP = null; + public static final String SERIALIZED_NAME_CLUSTER_I_P = "clusterIP"; + @SerializedName(SERIALIZED_NAME_CLUSTER_I_P) + private String clusterIP; - @SerializedName("externalIPs") + public static final String SERIALIZED_NAME_EXTERNAL_I_PS = "externalIPs"; + @SerializedName(SERIALIZED_NAME_EXTERNAL_I_PS) private List externalIPs = null; - @SerializedName("externalName") - private String externalName = null; + public static final String SERIALIZED_NAME_EXTERNAL_NAME = "externalName"; + @SerializedName(SERIALIZED_NAME_EXTERNAL_NAME) + private String externalName; - @SerializedName("externalTrafficPolicy") - private String externalTrafficPolicy = null; + public static final String SERIALIZED_NAME_EXTERNAL_TRAFFIC_POLICY = "externalTrafficPolicy"; + @SerializedName(SERIALIZED_NAME_EXTERNAL_TRAFFIC_POLICY) + private String externalTrafficPolicy; - @SerializedName("healthCheckNodePort") - private Integer healthCheckNodePort = null; + public static final String SERIALIZED_NAME_HEALTH_CHECK_NODE_PORT = "healthCheckNodePort"; + @SerializedName(SERIALIZED_NAME_HEALTH_CHECK_NODE_PORT) + private Integer healthCheckNodePort; - @SerializedName("loadBalancerIP") - private String loadBalancerIP = null; + public static final String SERIALIZED_NAME_LOAD_BALANCER_I_P = "loadBalancerIP"; + @SerializedName(SERIALIZED_NAME_LOAD_BALANCER_I_P) + private String loadBalancerIP; - @SerializedName("loadBalancerSourceRanges") + public static final String SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES = "loadBalancerSourceRanges"; + @SerializedName(SERIALIZED_NAME_LOAD_BALANCER_SOURCE_RANGES) private List loadBalancerSourceRanges = null; - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; - @SerializedName("publishNotReadyAddresses") - private Boolean publishNotReadyAddresses = null; + public static final String SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES = "publishNotReadyAddresses"; + @SerializedName(SERIALIZED_NAME_PUBLISH_NOT_READY_ADDRESSES) + private Boolean publishNotReadyAddresses; - @SerializedName("selector") + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) private Map selector = null; - @SerializedName("sessionAffinity") - private String sessionAffinity = null; + public static final String SERIALIZED_NAME_SESSION_AFFINITY = "sessionAffinity"; + @SerializedName(SERIALIZED_NAME_SESSION_AFFINITY) + private String sessionAffinity; + + public static final String SERIALIZED_NAME_SESSION_AFFINITY_CONFIG = "sessionAffinityConfig"; + @SerializedName(SERIALIZED_NAME_SESSION_AFFINITY_CONFIG) + private V1SessionAffinityConfig sessionAffinityConfig; - @SerializedName("sessionAffinityConfig") - private V1SessionAffinityConfig sessionAffinityConfig = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1ServiceSpec clusterIP(String clusterIP) { + this.clusterIP = clusterIP; return this; } @@ -83,16 +101,22 @@ public V1ServiceSpec clusterIP(String clusterIP) { * clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return clusterIP **/ + @javax.annotation.Nullable @ApiModelProperty(value = "clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") + public String getClusterIP() { return clusterIP; } + + public void setClusterIP(String clusterIP) { this.clusterIP = clusterIP; } + public V1ServiceSpec externalIPs(List externalIPs) { + this.externalIPs = externalIPs; return this; } @@ -109,16 +133,22 @@ public V1ServiceSpec addExternalIPsItem(String externalIPsItem) { * externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. * @return externalIPs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system.") + public List getExternalIPs() { return externalIPs; } + + public void setExternalIPs(List externalIPs) { this.externalIPs = externalIPs; } + public V1ServiceSpec externalName(String externalName) { + this.externalName = externalName; return this; } @@ -127,16 +157,22 @@ public V1ServiceSpec externalName(String externalName) { * externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. * @return externalName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName.") + public String getExternalName() { return externalName; } + + public void setExternalName(String externalName) { this.externalName = externalName; } + public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy) { + this.externalTrafficPolicy = externalTrafficPolicy; return this; } @@ -145,16 +181,22 @@ public V1ServiceSpec externalTrafficPolicy(String externalTrafficPolicy) { * externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading. * @return externalTrafficPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "externalTrafficPolicy denotes if this Service desires to route external traffic to node-local or cluster-wide endpoints. \"Local\" preserves the client source IP and avoids a second hop for LoadBalancer and Nodeport type services, but risks potentially imbalanced traffic spreading. \"Cluster\" obscures the client source IP and may cause a second hop to another node, but should have good overall load-spreading.") + public String getExternalTrafficPolicy() { return externalTrafficPolicy; } + + public void setExternalTrafficPolicy(String externalTrafficPolicy) { this.externalTrafficPolicy = externalTrafficPolicy; } + public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort) { + this.healthCheckNodePort = healthCheckNodePort; return this; } @@ -163,16 +205,22 @@ public V1ServiceSpec healthCheckNodePort(Integer healthCheckNodePort) { * healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. * @return healthCheckNodePort **/ + @javax.annotation.Nullable @ApiModelProperty(value = "healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local.") + public Integer getHealthCheckNodePort() { return healthCheckNodePort; } + + public void setHealthCheckNodePort(Integer healthCheckNodePort) { this.healthCheckNodePort = healthCheckNodePort; } + public V1ServiceSpec loadBalancerIP(String loadBalancerIP) { + this.loadBalancerIP = loadBalancerIP; return this; } @@ -181,16 +229,22 @@ public V1ServiceSpec loadBalancerIP(String loadBalancerIP) { * Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. * @return loadBalancerIP **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature.") + public String getLoadBalancerIP() { return loadBalancerIP; } + + public void setLoadBalancerIP(String loadBalancerIP) { this.loadBalancerIP = loadBalancerIP; } + public V1ServiceSpec loadBalancerSourceRanges(List loadBalancerSourceRanges) { + this.loadBalancerSourceRanges = loadBalancerSourceRanges; return this; } @@ -207,16 +261,22 @@ public V1ServiceSpec addLoadBalancerSourceRangesItem(String loadBalancerSourceRa * If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ * @return loadBalancerSourceRanges **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/") + public List getLoadBalancerSourceRanges() { return loadBalancerSourceRanges; } + + public void setLoadBalancerSourceRanges(List loadBalancerSourceRanges) { this.loadBalancerSourceRanges = loadBalancerSourceRanges; } + public V1ServiceSpec ports(List ports) { + this.ports = ports; return this; } @@ -233,16 +293,22 @@ public V1ServiceSpec addPortsItem(V1ServicePort portsItem) { * The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } + public V1ServiceSpec publishNotReadyAddresses(Boolean publishNotReadyAddresses) { + this.publishNotReadyAddresses = publishNotReadyAddresses; return this; } @@ -251,16 +317,22 @@ public V1ServiceSpec publishNotReadyAddresses(Boolean publishNotReadyAddresses) * publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery. * @return publishNotReadyAddresses **/ + @javax.annotation.Nullable @ApiModelProperty(value = "publishNotReadyAddresses, when set to true, indicates that DNS implementations must publish the notReadyAddresses of subsets for the Endpoints associated with the Service. The default value is false. The primary use case for setting this field is to use a StatefulSet's Headless Service to propagate SRV records for its Pods without respect to their readiness for purpose of peer discovery.") - public Boolean isPublishNotReadyAddresses() { + + public Boolean getPublishNotReadyAddresses() { return publishNotReadyAddresses; } + + public void setPublishNotReadyAddresses(Boolean publishNotReadyAddresses) { this.publishNotReadyAddresses = publishNotReadyAddresses; } + public V1ServiceSpec selector(Map selector) { + this.selector = selector; return this; } @@ -277,16 +349,22 @@ public V1ServiceSpec putSelectorItem(String key, String selectorItem) { * Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ * @return selector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/") + public Map getSelector() { return selector; } + + public void setSelector(Map selector) { this.selector = selector; } + public V1ServiceSpec sessionAffinity(String sessionAffinity) { + this.sessionAffinity = sessionAffinity; return this; } @@ -295,34 +373,46 @@ public V1ServiceSpec sessionAffinity(String sessionAffinity) { * Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies * @return sessionAffinity **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Supports \"ClientIP\" and \"None\". Used to maintain session affinity. Enable client IP based session affinity. Must be ClientIP or None. Defaults to None. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies") + public String getSessionAffinity() { return sessionAffinity; } + + public void setSessionAffinity(String sessionAffinity) { this.sessionAffinity = sessionAffinity; } + public V1ServiceSpec sessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { + this.sessionAffinityConfig = sessionAffinityConfig; return this; } /** - * sessionAffinityConfig contains the configurations of session affinity. + * Get sessionAffinityConfig * @return sessionAffinityConfig **/ - @ApiModelProperty(value = "sessionAffinityConfig contains the configurations of session affinity.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SessionAffinityConfig getSessionAffinityConfig() { return sessionAffinityConfig; } + + public void setSessionAffinityConfig(V1SessionAffinityConfig sessionAffinityConfig) { this.sessionAffinityConfig = sessionAffinityConfig; } + public V1ServiceSpec type(String type) { + this.type = type; return this; } @@ -331,11 +421,15 @@ public V1ServiceSpec type(String type) { * type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "type determines how the Service is exposed. Defaults to ClusterIP. Valid options are ExternalName, ClusterIP, NodePort, and LoadBalancer. \"ExternalName\" maps to the specified externalName. \"ClusterIP\" allocates a cluster-internal IP address for load-balancing to endpoints. Endpoints are determined by the selector or if that is not specified, by manual construction of an Endpoints object. If clusterIP is \"None\", no virtual IP is allocated and the endpoints are published as a set of endpoints rather than a stable IP. \"NodePort\" builds on ClusterIP and allocates a port on every node which routes to the clusterIP. \"LoadBalancer\" builds on NodePort and creates an external load-balancer (if supported in the current cloud) which routes to the clusterIP. More info: https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -343,31 +437,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceSpec v1ServiceSpec = (V1ServiceSpec) o; - return Objects.equals(this.clusterIP, v1ServiceSpec.clusterIP) && - Objects.equals(this.externalIPs, v1ServiceSpec.externalIPs) && - Objects.equals(this.externalName, v1ServiceSpec.externalName) && - Objects.equals(this.externalTrafficPolicy, v1ServiceSpec.externalTrafficPolicy) && - Objects.equals(this.healthCheckNodePort, v1ServiceSpec.healthCheckNodePort) && - Objects.equals(this.loadBalancerIP, v1ServiceSpec.loadBalancerIP) && - Objects.equals(this.loadBalancerSourceRanges, v1ServiceSpec.loadBalancerSourceRanges) && - Objects.equals(this.ports, v1ServiceSpec.ports) && - Objects.equals(this.publishNotReadyAddresses, v1ServiceSpec.publishNotReadyAddresses) && - Objects.equals(this.selector, v1ServiceSpec.selector) && - Objects.equals(this.sessionAffinity, v1ServiceSpec.sessionAffinity) && - Objects.equals(this.sessionAffinityConfig, v1ServiceSpec.sessionAffinityConfig) && - Objects.equals(this.type, v1ServiceSpec.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clusterIP, externalIPs, externalName, externalTrafficPolicy, healthCheckNodePort, loadBalancerIP, loadBalancerSourceRanges, ports, publishNotReadyAddresses, selector, sessionAffinity, sessionAffinityConfig, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -375,7 +450,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceSpec {\n"); - sb.append(" clusterIP: ").append(toIndentedString(clusterIP)).append("\n"); sb.append(" externalIPs: ").append(toIndentedString(externalIPs)).append("\n"); sb.append(" externalName: ").append(toIndentedString(externalName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceStatus.java index 149e7cd25e..9164f408f8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1ServiceStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * ServiceStatus represents the current status of a service. */ @ApiModel(description = "ServiceStatus represents the current status of a service.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1ServiceStatus { - @SerializedName("loadBalancer") - private V1LoadBalancerStatus loadBalancer = null; + public static final String SERIALIZED_NAME_LOAD_BALANCER = "loadBalancer"; + @SerializedName(SERIALIZED_NAME_LOAD_BALANCER) + private V1LoadBalancerStatus loadBalancer; + public V1ServiceStatus loadBalancer(V1LoadBalancerStatus loadBalancer) { + this.loadBalancer = loadBalancer; return this; } /** - * LoadBalancer contains the current status of the load-balancer, if one is present. + * Get loadBalancer * @return loadBalancer **/ - @ApiModelProperty(value = "LoadBalancer contains the current status of the load-balancer, if one is present.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LoadBalancerStatus getLoadBalancer() { return loadBalancer; } + + public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { this.loadBalancer = loadBalancer; } @@ -54,19 +64,12 @@ public void setLoadBalancer(V1LoadBalancerStatus loadBalancer) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1ServiceStatus v1ServiceStatus = (V1ServiceStatus) o; - return Objects.equals(this.loadBalancer, v1ServiceStatus.loadBalancer); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(loadBalancer); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1ServiceStatus {\n"); - sb.append(" loadBalancer: ").append(toIndentedString(loadBalancer)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SessionAffinityConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SessionAffinityConfig.java index 188203a9f6..2794837c08 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SessionAffinityConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SessionAffinityConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * SessionAffinityConfig represents the configurations of session affinity. */ @ApiModel(description = "SessionAffinityConfig represents the configurations of session affinity.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SessionAffinityConfig { - @SerializedName("clientIP") - private V1ClientIPConfig clientIP = null; + public static final String SERIALIZED_NAME_CLIENT_I_P = "clientIP"; + @SerializedName(SERIALIZED_NAME_CLIENT_I_P) + private V1ClientIPConfig clientIP; + public V1SessionAffinityConfig clientIP(V1ClientIPConfig clientIP) { + this.clientIP = clientIP; return this; } /** - * clientIP contains the configurations of Client IP based session affinity. + * Get clientIP * @return clientIP **/ - @ApiModelProperty(value = "clientIP contains the configurations of Client IP based session affinity.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ClientIPConfig getClientIP() { return clientIP; } + + public void setClientIP(V1ClientIPConfig clientIP) { this.clientIP = clientIP; } @@ -54,19 +64,12 @@ public void setClientIP(V1ClientIPConfig clientIP) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SessionAffinityConfig v1SessionAffinityConfig = (V1SessionAffinityConfig) o; - return Objects.equals(this.clientIP, v1SessionAffinityConfig.clientIP); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clientIP); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SessionAffinityConfig {\n"); - sb.append(" clientIP: ").append(toIndentedString(clientIP)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSet.java index 3ab293ebde..71470b2e63 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. */ @ApiModel(description = "StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatefulSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1StatefulSetSpec spec; - @SerializedName("spec") - private V1StatefulSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1StatefulSetStatus status; - @SerializedName("status") - private V1StatefulSetStatus status = null; public V1StatefulSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1StatefulSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1StatefulSet kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1StatefulSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1StatefulSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1StatefulSet metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1StatefulSet spec(V1StatefulSetSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the desired identities of pods in this set. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the desired identities of pods in this set.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1StatefulSetSpec getSpec() { return spec; } + + public void setSpec(V1StatefulSetSpec spec) { this.spec = spec; } + public V1StatefulSet status(V1StatefulSetStatus status) { + this.status = status; return this; } /** - * Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1StatefulSetStatus getStatus() { return status; } + + public void setStatus(V1StatefulSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1StatefulSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatefulSet v1StatefulSet = (V1StatefulSet) o; - return Objects.equals(this.apiVersion, v1StatefulSet.apiVersion) && - Objects.equals(this.kind, v1StatefulSet.kind) && - Objects.equals(this.metadata, v1StatefulSet.metadata) && - Objects.equals(this.spec, v1StatefulSet.spec) && - Objects.equals(this.status, v1StatefulSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatefulSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetCondition.java index 644d235a10..5864abb552 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatefulSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1StatefulSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1StatefulSetCondition lastTransitionTime(DateTime lastTransitionTime) { * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1StatefulSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1StatefulSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1StatefulSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1StatefulSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1StatefulSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1StatefulSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1StatefulSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1StatefulSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of statefulset condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatefulSetCondition v1StatefulSetCondition = (V1StatefulSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1StatefulSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1StatefulSetCondition.message) && - Objects.equals(this.reason, v1StatefulSetCondition.reason) && - Objects.equals(this.status, v1StatefulSetCondition.status) && - Objects.equals(this.type, v1StatefulSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatefulSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetList.java index e3e7befd80..368da64d17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatefulSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1StatefulSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1StatefulSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1StatefulSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1StatefulSetList addItemsItem(V1StatefulSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1StatefulSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1StatefulSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1StatefulSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1StatefulSetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatefulSetList v1StatefulSetList = (V1StatefulSetList) o; - return Objects.equals(this.apiVersion, v1StatefulSetList.apiVersion) && - Objects.equals(this.items, v1StatefulSetList.items) && - Objects.equals(this.kind, v1StatefulSetList.kind) && - Objects.equals(this.metadata, v1StatefulSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatefulSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetSpec.java index 567eacad19..2ffcac6628 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,33 +36,43 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatefulSetSpec { - @SerializedName("podManagementPolicy") - private String podManagementPolicy = null; + public static final String SERIALIZED_NAME_POD_MANAGEMENT_POLICY = "podManagementPolicy"; + @SerializedName(SERIALIZED_NAME_POD_MANAGEMENT_POLICY) + private String podManagementPolicy; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("serviceName") - private String serviceName = null; + public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; + @SerializedName(SERIALIZED_NAME_SERVICE_NAME) + private String serviceName; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("updateStrategy") - private V1StatefulSetUpdateStrategy updateStrategy = null; + public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; + @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + private V1StatefulSetUpdateStrategy updateStrategy; - @SerializedName("volumeClaimTemplates") + public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES = "volumeClaimTemplates"; + @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES) private List volumeClaimTemplates = null; + public V1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @@ -68,16 +81,22 @@ public V1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. * @return podManagementPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.") + public String getPodManagementPolicy() { return podManagementPolicy; } + + public void setPodManagementPolicy(String podManagementPolicy) { this.podManagementPolicy = podManagementPolicy; } + public V1StatefulSetSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -86,16 +105,22 @@ public V1StatefulSetSpec replicas(Integer replicas) { * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -104,34 +129,45 @@ public V1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1StatefulSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1StatefulSetSpec serviceName(String serviceName) { + this.serviceName = serviceName; return this; } @@ -141,51 +177,67 @@ public V1StatefulSetSpec serviceName(String serviceName) { * @return serviceName **/ @ApiModelProperty(required = true, value = "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.") + public String getServiceName() { return serviceName; } + + public void setServiceName(String serviceName) { this.serviceName = serviceName; } + public V1StatefulSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1StatefulSetSpec updateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } /** - * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * Get updateStrategy * @return updateStrategy **/ - @ApiModelProperty(value = "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1StatefulSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } + + public void setUpdateStrategy(V1StatefulSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } + public V1StatefulSetSpec volumeClaimTemplates(List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -202,11 +254,15 @@ public V1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClaim vol * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. * @return volumeClaimTemplates **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.") + public List getVolumeClaimTemplates() { return volumeClaimTemplates; } + + public void setVolumeClaimTemplates(List volumeClaimTemplates) { this.volumeClaimTemplates = volumeClaimTemplates; } @@ -214,26 +270,12 @@ public void setVolumeClaimTemplates(List volumeClaimTem @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatefulSetSpec v1StatefulSetSpec = (V1StatefulSetSpec) o; - return Objects.equals(this.podManagementPolicy, v1StatefulSetSpec.podManagementPolicy) && - Objects.equals(this.replicas, v1StatefulSetSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, v1StatefulSetSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1StatefulSetSpec.selector) && - Objects.equals(this.serviceName, v1StatefulSetSpec.serviceName) && - Objects.equals(this.template, v1StatefulSetSpec.template) && - Objects.equals(this.updateStrategy, v1StatefulSetSpec.updateStrategy) && - Objects.equals(this.volumeClaimTemplates, v1StatefulSetSpec.volumeClaimTemplates); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); + return HashCodeBuilder.reflectionHashCode(this); } @@ -241,7 +283,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatefulSetSpec {\n"); - sb.append(" podManagementPolicy: ").append(toIndentedString(podManagementPolicy)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" revisionHistoryLimit: ").append(toIndentedString(revisionHistoryLimit)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetStatus.java index be166f9c9a..aaa03bcc97 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,36 +33,47 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatefulSetStatus { - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("currentReplicas") - private Integer currentReplicas = null; + public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; + @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + private Integer currentReplicas; + + public static final String SERIALIZED_NAME_CURRENT_REVISION = "currentRevision"; + @SerializedName(SERIALIZED_NAME_CURRENT_REVISION) + private String currentRevision; - @SerializedName("currentRevision") - private String currentRevision = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UPDATE_REVISION = "updateRevision"; + @SerializedName(SERIALIZED_NAME_UPDATE_REVISION) + private String updateRevision; - @SerializedName("updateRevision") - private String updateRevision = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public V1StatefulSetStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -68,16 +82,22 @@ public V1StatefulSetStatus collisionCount(Integer collisionCount) { * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1StatefulSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -94,16 +114,22 @@ public V1StatefulSetStatus addConditionsItem(V1StatefulSetCondition conditionsIt * Represents the latest available observations of a statefulset's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a statefulset's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1StatefulSetStatus currentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @@ -112,16 +138,22 @@ public V1StatefulSetStatus currentReplicas(Integer currentReplicas) { * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. * @return currentReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.") + public Integer getCurrentReplicas() { return currentReplicas; } + + public void setCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; } + public V1StatefulSetStatus currentRevision(String currentRevision) { + this.currentRevision = currentRevision; return this; } @@ -130,16 +162,22 @@ public V1StatefulSetStatus currentRevision(String currentRevision) { * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). * @return currentRevision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).") + public String getCurrentRevision() { return currentRevision; } + + public void setCurrentRevision(String currentRevision) { this.currentRevision = currentRevision; } + public V1StatefulSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -148,16 +186,22 @@ public V1StatefulSetStatus observedGeneration(Long observedGeneration) { * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1StatefulSetStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -166,16 +210,22 @@ public V1StatefulSetStatus readyReplicas(Integer readyReplicas) { * readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1StatefulSetStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -185,15 +235,20 @@ public V1StatefulSetStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "replicas is the number of Pods created by the StatefulSet controller.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1StatefulSetStatus updateRevision(String updateRevision) { + this.updateRevision = updateRevision; return this; } @@ -202,16 +257,22 @@ public V1StatefulSetStatus updateRevision(String updateRevision) { * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) * @return updateRevision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)") + public String getUpdateRevision() { return updateRevision; } + + public void setUpdateRevision(String updateRevision) { this.updateRevision = updateRevision; } + public V1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -220,11 +281,15 @@ public V1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -232,27 +297,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatefulSetStatus v1StatefulSetStatus = (V1StatefulSetStatus) o; - return Objects.equals(this.collisionCount, v1StatefulSetStatus.collisionCount) && - Objects.equals(this.conditions, v1StatefulSetStatus.conditions) && - Objects.equals(this.currentReplicas, v1StatefulSetStatus.currentReplicas) && - Objects.equals(this.currentRevision, v1StatefulSetStatus.currentRevision) && - Objects.equals(this.observedGeneration, v1StatefulSetStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1StatefulSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1StatefulSetStatus.replicas) && - Objects.equals(this.updateRevision, v1StatefulSetStatus.updateRevision) && - Objects.equals(this.updatedReplicas, v1StatefulSetStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -260,7 +310,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatefulSetStatus {\n"); - sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategy.java index c7cbc4075f..66f7a271f6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. */ @ApiModel(description = "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatefulSetUpdateStrategy { - @SerializedName("rollingUpdate") - private V1RollingUpdateStatefulSetStrategy rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1RollingUpdateStatefulSetStrategy rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1StatefulSetUpdateStrategy rollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1RollingUpdateStatefulSetStrategy getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1RollingUpdateStatefulSetStrategy rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1StatefulSetUpdateStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1StatefulSetUpdateStrategy type(String type) { * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatefulSetUpdateStrategy v1StatefulSetUpdateStrategy = (V1StatefulSetUpdateStrategy) o; - return Objects.equals(this.rollingUpdate, v1StatefulSetUpdateStrategy.rollingUpdate) && - Objects.equals(this.type, v1StatefulSetUpdateStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatefulSetUpdateStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Status.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Status.java index 49c782ef70..2c0966eb57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Status.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Status.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,33 +32,43 @@ * Status is a return value for calls that don't return other objects. */ @ApiModel(description = "Status is a return value for calls that don't return other objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Status { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private Integer code; - @SerializedName("code") - private Integer code = null; + public static final String SERIALIZED_NAME_DETAILS = "details"; + @SerializedName(SERIALIZED_NAME_DETAILS) + private V1StatusDetails details; - @SerializedName("details") - private V1StatusDetails details = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; public V1Status apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -64,16 +77,22 @@ public V1Status apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1Status code(Integer code) { + this.code = code; return this; } @@ -82,34 +101,46 @@ public V1Status code(Integer code) { * Suggested HTTP return code for this status, 0 if not set. * @return code **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Suggested HTTP return code for this status, 0 if not set.") + public Integer getCode() { return code; } + + public void setCode(Integer code) { this.code = code; } + public V1Status details(V1StatusDetails details) { + this.details = details; return this; } /** - * Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type. + * Get details * @return details **/ - @ApiModelProperty(value = "Extended data associated with the reason. Each reason may define its own extended details. This field is optional and the data returned is not guaranteed to conform to any schema except that defined by the reason type.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1StatusDetails getDetails() { return details; } + + public void setDetails(V1StatusDetails details) { this.details = details; } + public V1Status kind(String kind) { + this.kind = kind; return this; } @@ -118,16 +149,22 @@ public V1Status kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Status message(String message) { + this.message = message; return this; } @@ -136,34 +173,46 @@ public V1Status message(String message) { * A human-readable description of the status of this operation. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the status of this operation.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1Status metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } + public V1Status reason(String reason) { + this.reason = reason; return this; } @@ -172,16 +221,22 @@ public V1Status reason(String reason) { * A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A machine-readable description of why this operation is in the \"Failure\" status. If this value is empty there is no information available. A Reason clarifies an HTTP status code but does not override it.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1Status status(String status) { + this.status = status; return this; } @@ -190,11 +245,15 @@ public V1Status status(String status) { * Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status * @return status **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } @@ -202,26 +261,12 @@ public void setStatus(String status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Status v1Status = (V1Status) o; - return Objects.equals(this.apiVersion, v1Status.apiVersion) && - Objects.equals(this.code, v1Status.code) && - Objects.equals(this.details, v1Status.details) && - Objects.equals(this.kind, v1Status.kind) && - Objects.equals(this.message, v1Status.message) && - Objects.equals(this.metadata, v1Status.metadata) && - Objects.equals(this.reason, v1Status.reason) && - Objects.equals(this.status, v1Status.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, code, details, kind, message, metadata, reason, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -229,7 +274,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Status {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" details: ").append(toIndentedString(details)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusCause.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusCause.java index 67fee1477c..6ae34eaf61 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusCause.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusCause.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered. */ @ApiModel(description = "StatusCause provides more information about an api.Status failure, including cases when multiple errors are encountered.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatusCause { - @SerializedName("field") - private String field = null; + public static final String SERIALIZED_NAME_FIELD = "field"; + @SerializedName(SERIALIZED_NAME_FIELD) + private String field; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; public V1StatusCause field(String field) { + this.field = field; return this; } @@ -47,16 +55,22 @@ public V1StatusCause field(String field) { * The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\" * @return field **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The field of the resource that has caused this error, as named by its JSON serialization. May include dot and postfix notation for nested attributes. Arrays are zero-indexed. Fields may appear more than once in an array of causes due to fields having multiple errors. Optional. Examples: \"name\" - the field \"name\" on the current resource \"items[0].name\" - the field \"name\" on the first array entry in \"items\"") + public String getField() { return field; } + + public void setField(String field) { this.field = field; } + public V1StatusCause message(String message) { + this.message = message; return this; } @@ -65,16 +79,22 @@ public V1StatusCause message(String message) { * A human-readable description of the cause of the error. This field may be presented as-is to a reader. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human-readable description of the cause of the error. This field may be presented as-is to a reader.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1StatusCause reason(String reason) { + this.reason = reason; return this; } @@ -83,11 +103,15 @@ public V1StatusCause reason(String reason) { * A machine-readable description of the cause of the error. If this value is empty there is no information available. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A machine-readable description of the cause of the error. If this value is empty there is no information available.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } @@ -95,21 +119,12 @@ public void setReason(String reason) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatusCause v1StatusCause = (V1StatusCause) o; - return Objects.equals(this.field, v1StatusCause.field) && - Objects.equals(this.message, v1StatusCause.message) && - Objects.equals(this.reason, v1StatusCause.reason); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(field, message, reason); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatusCause {\n"); - sb.append(" field: ").append(toIndentedString(field)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusDetails.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusDetails.java index 42cc3fb49c..84241814dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusDetails.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StatusDetails.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined. */ @ApiModel(description = "StatusDetails is a set of additional properties that MAY be set by the server to provide additional information about a response. The Reason field of a Status object defines what attributes will be set. Clients must ignore fields that do not match the defined type of each attribute, and should assume that any attribute may be empty, invalid, or under defined.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StatusDetails { - @SerializedName("causes") + public static final String SERIALIZED_NAME_CAUSES = "causes"; + @SerializedName(SERIALIZED_NAME_CAUSES) private List causes = null; - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_RETRY_AFTER_SECONDS = "retryAfterSeconds"; + @SerializedName(SERIALIZED_NAME_RETRY_AFTER_SECONDS) + private Integer retryAfterSeconds; - @SerializedName("retryAfterSeconds") - private Integer retryAfterSeconds = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; public V1StatusDetails causes(List causes) { + this.causes = causes; return this; } @@ -67,16 +78,22 @@ public V1StatusDetails addCausesItem(V1StatusCause causesItem) { * The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes. * @return causes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The Causes array includes more details associated with the StatusReason failure. Not all StatusReasons may provide detailed causes.") + public List getCauses() { return causes; } + + public void setCauses(List causes) { this.causes = causes; } + public V1StatusDetails group(String group) { + this.group = group; return this; } @@ -85,16 +102,22 @@ public V1StatusDetails group(String group) { * The group attribute of the resource associated with the status StatusReason. * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The group attribute of the resource associated with the status StatusReason.") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1StatusDetails kind(String kind) { + this.kind = kind; return this; } @@ -103,16 +126,22 @@ public V1StatusDetails kind(String kind) { * The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The kind attribute of the resource associated with the status StatusReason. On some operations may differ from the requested resource Kind. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1StatusDetails name(String name) { + this.name = name; return this; } @@ -121,16 +150,22 @@ public V1StatusDetails name(String name) { * The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described). * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name attribute of the resource associated with the status StatusReason (when there is a single name which can be described).") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1StatusDetails retryAfterSeconds(Integer retryAfterSeconds) { + this.retryAfterSeconds = retryAfterSeconds; return this; } @@ -139,16 +174,22 @@ public V1StatusDetails retryAfterSeconds(Integer retryAfterSeconds) { * If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action. * @return retryAfterSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If specified, the time in seconds before the operation should be retried. Some errors may indicate the client must take an alternate action - for those errors this field may indicate how long to wait before taking the alternate action.") + public Integer getRetryAfterSeconds() { return retryAfterSeconds; } + + public void setRetryAfterSeconds(Integer retryAfterSeconds) { this.retryAfterSeconds = retryAfterSeconds; } + public V1StatusDetails uid(String uid) { + this.uid = uid; return this; } @@ -157,11 +198,15 @@ public V1StatusDetails uid(String uid) { * UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } @@ -169,24 +214,12 @@ public void setUid(String uid) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StatusDetails v1StatusDetails = (V1StatusDetails) o; - return Objects.equals(this.causes, v1StatusDetails.causes) && - Objects.equals(this.group, v1StatusDetails.group) && - Objects.equals(this.kind, v1StatusDetails.kind) && - Objects.equals(this.name, v1StatusDetails.name) && - Objects.equals(this.retryAfterSeconds, v1StatusDetails.retryAfterSeconds) && - Objects.equals(this.uid, v1StatusDetails.uid); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(causes, group, kind, name, retryAfterSeconds, uid); + return HashCodeBuilder.reflectionHashCode(this); } @@ -194,7 +227,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StatusDetails {\n"); - sb.append(" causes: ").append(toIndentedString(causes)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClass.java index 1a97ca040a..ce1f25177a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,39 +36,51 @@ * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. */ @ApiModel(description = "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StorageClass { - @SerializedName("allowVolumeExpansion") - private Boolean allowVolumeExpansion = null; + public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; + @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) + private Boolean allowVolumeExpansion; - @SerializedName("allowedTopologies") + public static final String SERIALIZED_NAME_ALLOWED_TOPOLOGIES = "allowedTopologies"; + @SerializedName(SERIALIZED_NAME_ALLOWED_TOPOLOGIES) private List allowedTopologies = null; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("mountOptions") + public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; + @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) private List mountOptions = null; - @SerializedName("parameters") + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + @SerializedName(SERIALIZED_NAME_PARAMETERS) private Map parameters = null; - @SerializedName("provisioner") - private String provisioner = null; + public static final String SERIALIZED_NAME_PROVISIONER = "provisioner"; + @SerializedName(SERIALIZED_NAME_PROVISIONER) + private String provisioner; + + public static final String SERIALIZED_NAME_RECLAIM_POLICY = "reclaimPolicy"; + @SerializedName(SERIALIZED_NAME_RECLAIM_POLICY) + private String reclaimPolicy; - @SerializedName("reclaimPolicy") - private String reclaimPolicy = null; + public static final String SERIALIZED_NAME_VOLUME_BINDING_MODE = "volumeBindingMode"; + @SerializedName(SERIALIZED_NAME_VOLUME_BINDING_MODE) + private String volumeBindingMode; - @SerializedName("volumeBindingMode") - private String volumeBindingMode = null; public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { + this.allowVolumeExpansion = allowVolumeExpansion; return this; } @@ -74,16 +89,22 @@ public V1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { * AllowVolumeExpansion shows whether the storage class allow volume expand * @return allowVolumeExpansion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AllowVolumeExpansion shows whether the storage class allow volume expand") - public Boolean isAllowVolumeExpansion() { + + public Boolean getAllowVolumeExpansion() { return allowVolumeExpansion; } + + public void setAllowVolumeExpansion(Boolean allowVolumeExpansion) { this.allowVolumeExpansion = allowVolumeExpansion; } + public V1StorageClass allowedTopologies(List allowedTopologies) { + this.allowedTopologies = allowedTopologies; return this; } @@ -100,16 +121,22 @@ public V1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allowedTop * Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. * @return allowedTopologies **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.") + public List getAllowedTopologies() { return allowedTopologies; } + + public void setAllowedTopologies(List allowedTopologies) { this.allowedTopologies = allowedTopologies; } + public V1StorageClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -118,16 +145,22 @@ public V1StorageClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1StorageClass kind(String kind) { + this.kind = kind; return this; } @@ -136,34 +169,46 @@ public V1StorageClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1StorageClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1StorageClass mountOptions(List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -180,16 +225,22 @@ public V1StorageClass addMountOptionsItem(String mountOptionsItem) { * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. * @return mountOptions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.") + public List getMountOptions() { return mountOptions; } + + public void setMountOptions(List mountOptions) { this.mountOptions = mountOptions; } + public V1StorageClass parameters(Map parameters) { + this.parameters = parameters; return this; } @@ -206,16 +257,22 @@ public V1StorageClass putParametersItem(String key, String parametersItem) { * Parameters holds the parameters for the provisioner that should create volumes of this storage class. * @return parameters **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Parameters holds the parameters for the provisioner that should create volumes of this storage class.") + public Map getParameters() { return parameters; } + + public void setParameters(Map parameters) { this.parameters = parameters; } + public V1StorageClass provisioner(String provisioner) { + this.provisioner = provisioner; return this; } @@ -225,15 +282,20 @@ public V1StorageClass provisioner(String provisioner) { * @return provisioner **/ @ApiModelProperty(required = true, value = "Provisioner indicates the type of the provisioner.") + public String getProvisioner() { return provisioner; } + + public void setProvisioner(String provisioner) { this.provisioner = provisioner; } + public V1StorageClass reclaimPolicy(String reclaimPolicy) { + this.reclaimPolicy = reclaimPolicy; return this; } @@ -242,16 +304,22 @@ public V1StorageClass reclaimPolicy(String reclaimPolicy) { * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. * @return reclaimPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.") + public String getReclaimPolicy() { return reclaimPolicy; } + + public void setReclaimPolicy(String reclaimPolicy) { this.reclaimPolicy = reclaimPolicy; } + public V1StorageClass volumeBindingMode(String volumeBindingMode) { + this.volumeBindingMode = volumeBindingMode; return this; } @@ -260,11 +328,15 @@ public V1StorageClass volumeBindingMode(String volumeBindingMode) { * VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. * @return volumeBindingMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.") + public String getVolumeBindingMode() { return volumeBindingMode; } + + public void setVolumeBindingMode(String volumeBindingMode) { this.volumeBindingMode = volumeBindingMode; } @@ -272,28 +344,12 @@ public void setVolumeBindingMode(String volumeBindingMode) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StorageClass v1StorageClass = (V1StorageClass) o; - return Objects.equals(this.allowVolumeExpansion, v1StorageClass.allowVolumeExpansion) && - Objects.equals(this.allowedTopologies, v1StorageClass.allowedTopologies) && - Objects.equals(this.apiVersion, v1StorageClass.apiVersion) && - Objects.equals(this.kind, v1StorageClass.kind) && - Objects.equals(this.metadata, v1StorageClass.metadata) && - Objects.equals(this.mountOptions, v1StorageClass.mountOptions) && - Objects.equals(this.parameters, v1StorageClass.parameters) && - Objects.equals(this.provisioner, v1StorageClass.provisioner) && - Objects.equals(this.reclaimPolicy, v1StorageClass.reclaimPolicy) && - Objects.equals(this.volumeBindingMode, v1StorageClass.volumeBindingMode); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); + return HashCodeBuilder.reflectionHashCode(this); } @@ -301,7 +357,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StorageClass {\n"); - sb.append(" allowVolumeExpansion: ").append(toIndentedString(allowVolumeExpansion)).append("\n"); sb.append(" allowedTopologies: ").append(toIndentedString(allowedTopologies)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClassList.java index faf0b5f015..c9ac7981ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StorageClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1StorageClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1StorageClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1StorageClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1StorageClassList addItemsItem(V1StorageClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of StorageClasses") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1StorageClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1StorageClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1StorageClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StorageClassList v1StorageClassList = (V1StorageClassList) o; - return Objects.equals(this.apiVersion, v1StorageClassList.apiVersion) && - Objects.equals(this.items, v1StorageClassList.items) && - Objects.equals(this.kind, v1StorageClassList.kind) && - Objects.equals(this.metadata, v1StorageClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StorageClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSource.java index f2542152d8..909dba2777 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StorageOSPersistentVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1ObjectReference secretRef; - @SerializedName("secretRef") - private V1ObjectReference secretRef = null; + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + private String volumeName; - @SerializedName("volumeName") - private String volumeName = null; + public static final String SERIALIZED_NAME_VOLUME_NAMESPACE = "volumeNamespace"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAMESPACE) + private String volumeNamespace; - @SerializedName("volumeNamespace") - private String volumeNamespace = null; public V1StorageOSPersistentVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -54,16 +64,22 @@ public V1StorageOSPersistentVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1StorageOSPersistentVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -72,34 +88,46 @@ public V1StorageOSPersistentVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1StorageOSPersistentVolumeSource secretRef(V1ObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1ObjectReference secretRef) { this.secretRef = secretRef; } + public V1StorageOSPersistentVolumeSource volumeName(String volumeName) { + this.volumeName = volumeName; return this; } @@ -108,16 +136,22 @@ public V1StorageOSPersistentVolumeSource volumeName(String volumeName) { * VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. * @return volumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") + public String getVolumeName() { return volumeName; } + + public void setVolumeName(String volumeName) { this.volumeName = volumeName; } + public V1StorageOSPersistentVolumeSource volumeNamespace(String volumeNamespace) { + this.volumeNamespace = volumeNamespace; return this; } @@ -126,11 +160,15 @@ public V1StorageOSPersistentVolumeSource volumeNamespace(String volumeNamespace) * VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. * @return volumeNamespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") + public String getVolumeNamespace() { return volumeNamespace; } + + public void setVolumeNamespace(String volumeNamespace) { this.volumeNamespace = volumeNamespace; } @@ -138,23 +176,12 @@ public void setVolumeNamespace(String volumeNamespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StorageOSPersistentVolumeSource v1StorageOSPersistentVolumeSource = (V1StorageOSPersistentVolumeSource) o; - return Objects.equals(this.fsType, v1StorageOSPersistentVolumeSource.fsType) && - Objects.equals(this.readOnly, v1StorageOSPersistentVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1StorageOSPersistentVolumeSource.secretRef) && - Objects.equals(this.volumeName, v1StorageOSPersistentVolumeSource.volumeName) && - Objects.equals(this.volumeNamespace, v1StorageOSPersistentVolumeSource.volumeNamespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StorageOSPersistentVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSVolumeSource.java index 1a54dfe14d..8af707fb5a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1StorageOSVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * Represents a StorageOS persistent volume resource. */ @ApiModel(description = "Represents a StorageOS persistent volume resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1StorageOSVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SECRET_REF = "secretRef"; + @SerializedName(SERIALIZED_NAME_SECRET_REF) + private V1LocalObjectReference secretRef; - @SerializedName("secretRef") - private V1LocalObjectReference secretRef = null; + public static final String SERIALIZED_NAME_VOLUME_NAME = "volumeName"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAME) + private String volumeName; - @SerializedName("volumeName") - private String volumeName = null; + public static final String SERIALIZED_NAME_VOLUME_NAMESPACE = "volumeNamespace"; + @SerializedName(SERIALIZED_NAME_VOLUME_NAMESPACE) + private String volumeNamespace; - @SerializedName("volumeNamespace") - private String volumeNamespace = null; public V1StorageOSVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -54,16 +64,22 @@ public V1StorageOSVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1StorageOSVolumeSource readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -72,34 +88,46 @@ public V1StorageOSVolumeSource readOnly(Boolean readOnly) { * Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1StorageOSVolumeSource secretRef(V1LocalObjectReference secretRef) { + this.secretRef = secretRef; return this; } /** - * SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted. + * Get secretRef * @return secretRef **/ - @ApiModelProperty(value = "SecretRef specifies the secret to use for obtaining the StorageOS API credentials. If not specified, default values will be attempted.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LocalObjectReference getSecretRef() { return secretRef; } + + public void setSecretRef(V1LocalObjectReference secretRef) { this.secretRef = secretRef; } + public V1StorageOSVolumeSource volumeName(String volumeName) { + this.volumeName = volumeName; return this; } @@ -108,16 +136,22 @@ public V1StorageOSVolumeSource volumeName(String volumeName) { * VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. * @return volumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace.") + public String getVolumeName() { return volumeName; } + + public void setVolumeName(String volumeName) { this.volumeName = volumeName; } + public V1StorageOSVolumeSource volumeNamespace(String volumeNamespace) { + this.volumeNamespace = volumeNamespace; return this; } @@ -126,11 +160,15 @@ public V1StorageOSVolumeSource volumeNamespace(String volumeNamespace) { * VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. * @return volumeNamespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created.") + public String getVolumeNamespace() { return volumeNamespace; } + + public void setVolumeNamespace(String volumeNamespace) { this.volumeNamespace = volumeNamespace; } @@ -138,23 +176,12 @@ public void setVolumeNamespace(String volumeNamespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1StorageOSVolumeSource v1StorageOSVolumeSource = (V1StorageOSVolumeSource) o; - return Objects.equals(this.fsType, v1StorageOSVolumeSource.fsType) && - Objects.equals(this.readOnly, v1StorageOSVolumeSource.readOnly) && - Objects.equals(this.secretRef, v1StorageOSVolumeSource.secretRef) && - Objects.equals(this.volumeName, v1StorageOSVolumeSource.volumeName) && - Objects.equals(this.volumeNamespace, v1StorageOSVolumeSource.volumeNamespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, readOnly, secretRef, volumeName, volumeNamespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1StorageOSVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); sb.append(" secretRef: ").append(toIndentedString(secretRef)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Subject.java index e1d776951b..41e2a5938d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Subject.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. */ @ApiModel(description = "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Subject { - @SerializedName("apiGroup") - private String apiGroup = null; + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; public V1Subject apiGroup(String apiGroup) { + this.apiGroup = apiGroup; return this; } @@ -50,16 +59,22 @@ public V1Subject apiGroup(String apiGroup) { * APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. * @return apiGroup **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") + public String getApiGroup() { return apiGroup; } + + public void setApiGroup(String apiGroup) { this.apiGroup = apiGroup; } + public V1Subject kind(String kind) { + this.kind = kind; return this; } @@ -69,15 +84,20 @@ public V1Subject kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1Subject name(String name) { + this.name = name; return this; } @@ -87,15 +107,20 @@ public V1Subject name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the object being referenced.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1Subject namespace(String namespace) { + this.namespace = namespace; return this; } @@ -104,11 +129,15 @@ public V1Subject namespace(String namespace) { * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -116,22 +145,12 @@ public void setNamespace(String namespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Subject v1Subject = (V1Subject) o; - return Objects.equals(this.apiGroup, v1Subject.apiGroup) && - Objects.equals(this.kind, v1Subject.kind) && - Objects.equals(this.name, v1Subject.name) && - Objects.equals(this.namespace, v1Subject.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroup, kind, name, namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +158,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Subject {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReview.java index 6f891f84ce..7fd47a2ab9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * SubjectAccessReview checks whether or not a user or group can perform an action. */ @ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SubjectAccessReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1SubjectAccessReviewSpec spec; - @SerializedName("spec") - private V1SubjectAccessReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1SubjectAccessReviewStatus status; - @SerializedName("status") - private V1SubjectAccessReviewStatus status = null; public V1SubjectAccessReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1SubjectAccessReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1SubjectAccessReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1SubjectAccessReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1SubjectAccessReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1SubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1SubjectAccessReview spec(V1SubjectAccessReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated") + @ApiModelProperty(required = true, value = "") + public V1SubjectAccessReviewSpec getSpec() { return spec; } + + public void setSpec(V1SubjectAccessReviewSpec spec) { this.spec = spec; } + public V1SubjectAccessReview status(V1SubjectAccessReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request is allowed or not + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request is allowed or not") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SubjectAccessReviewStatus getStatus() { return status; } + + public void setStatus(V1SubjectAccessReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1SubjectAccessReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SubjectAccessReview v1SubjectAccessReview = (V1SubjectAccessReview) o; - return Objects.equals(this.apiVersion, v1SubjectAccessReview.apiVersion) && - Objects.equals(this.kind, v1SubjectAccessReview.kind) && - Objects.equals(this.metadata, v1SubjectAccessReview.metadata) && - Objects.equals(this.spec, v1SubjectAccessReview.spec) && - Objects.equals(this.status, v1SubjectAccessReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SubjectAccessReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewSpec.java index 49122c92fb..64348df61b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,27 +36,35 @@ * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SubjectAccessReviewSpec { - @SerializedName("extra") + public static final String SERIALIZED_NAME_EXTRA = "extra"; + @SerializedName(SERIALIZED_NAME_EXTRA) private Map> extra = null; - @SerializedName("groups") + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) private List groups = null; - @SerializedName("nonResourceAttributes") - private V1NonResourceAttributes nonResourceAttributes = null; + public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) + private V1NonResourceAttributes nonResourceAttributes; + + public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES = "resourceAttributes"; + @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) + private V1ResourceAttributes resourceAttributes; - @SerializedName("resourceAttributes") - private V1ResourceAttributes resourceAttributes = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1SubjectAccessReviewSpec extra(Map> extra) { + this.extra = extra; return this; } @@ -70,16 +81,22 @@ public V1SubjectAccessReviewSpec putExtraItem(String key, List extraItem * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. * @return extra **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") + public Map> getExtra() { return extra; } + + public void setExtra(Map> extra) { this.extra = extra; } + public V1SubjectAccessReviewSpec groups(List groups) { + this.groups = groups; return this; } @@ -96,52 +113,70 @@ public V1SubjectAccessReviewSpec addGroupsItem(String groupsItem) { * Groups is the groups you're testing for. * @return groups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Groups is the groups you're testing for.") + public List getGroups() { return groups; } + + public void setGroups(List groups) { this.groups = groups; } + public V1SubjectAccessReviewSpec nonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { + this.nonResourceAttributes = nonResourceAttributes; return this; } /** - * NonResourceAttributes describes information for a non-resource access request + * Get nonResourceAttributes * @return nonResourceAttributes **/ - @ApiModelProperty(value = "NonResourceAttributes describes information for a non-resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } + + public void setNonResourceAttributes(V1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; } + public V1SubjectAccessReviewSpec resourceAttributes(V1ResourceAttributes resourceAttributes) { + this.resourceAttributes = resourceAttributes; return this; } /** - * ResourceAuthorizationAttributes describes information for a resource access request + * Get resourceAttributes * @return resourceAttributes **/ - @ApiModelProperty(value = "ResourceAuthorizationAttributes describes information for a resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ResourceAttributes getResourceAttributes() { return resourceAttributes; } + + public void setResourceAttributes(V1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; } + public V1SubjectAccessReviewSpec uid(String uid) { + this.uid = uid; return this; } @@ -150,16 +185,22 @@ public V1SubjectAccessReviewSpec uid(String uid) { * UID information about the requesting user. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID information about the requesting user.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } + public V1SubjectAccessReviewSpec user(String user) { + this.user = user; return this; } @@ -168,11 +209,15 @@ public V1SubjectAccessReviewSpec user(String user) { * User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "User is the user you're testing for. If you specify \"User\" but not \"Groups\", then is it interpreted as \"What if User were not a member of any groups") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -180,24 +225,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SubjectAccessReviewSpec v1SubjectAccessReviewSpec = (V1SubjectAccessReviewSpec) o; - return Objects.equals(this.extra, v1SubjectAccessReviewSpec.extra) && - Objects.equals(this.groups, v1SubjectAccessReviewSpec.groups) && - Objects.equals(this.nonResourceAttributes, v1SubjectAccessReviewSpec.nonResourceAttributes) && - Objects.equals(this.resourceAttributes, v1SubjectAccessReviewSpec.resourceAttributes) && - Objects.equals(this.uid, v1SubjectAccessReviewSpec.uid) && - Objects.equals(this.user, v1SubjectAccessReviewSpec.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(extra, groups, nonResourceAttributes, resourceAttributes, uid, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -205,7 +238,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SubjectAccessReviewSpec {\n"); - sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" nonResourceAttributes: ").append(toIndentedString(nonResourceAttributes)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewStatus.java index c919cdc242..07613b35b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectAccessReviewStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SubjectAccessReviewStatus { - @SerializedName("allowed") - private Boolean allowed = null; + public static final String SERIALIZED_NAME_ALLOWED = "allowed"; + @SerializedName(SERIALIZED_NAME_ALLOWED) + private Boolean allowed; + + public static final String SERIALIZED_NAME_DENIED = "denied"; + @SerializedName(SERIALIZED_NAME_DENIED) + private Boolean denied; - @SerializedName("denied") - private Boolean denied = null; + public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; + @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) + private String evaluationError; - @SerializedName("evaluationError") - private String evaluationError = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; public V1SubjectAccessReviewStatus allowed(Boolean allowed) { + this.allowed = allowed; return this; } @@ -51,15 +60,20 @@ public V1SubjectAccessReviewStatus allowed(Boolean allowed) { * @return allowed **/ @ApiModelProperty(required = true, value = "Allowed is required. True if the action would be allowed, false otherwise.") - public Boolean isAllowed() { + + public Boolean getAllowed() { return allowed; } + + public void setAllowed(Boolean allowed) { this.allowed = allowed; } + public V1SubjectAccessReviewStatus denied(Boolean denied) { + this.denied = denied; return this; } @@ -68,16 +82,22 @@ public V1SubjectAccessReviewStatus denied(Boolean denied) { * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. * @return denied **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") - public Boolean isDenied() { + + public Boolean getDenied() { return denied; } + + public void setDenied(Boolean denied) { this.denied = denied; } + public V1SubjectAccessReviewStatus evaluationError(String evaluationError) { + this.evaluationError = evaluationError; return this; } @@ -86,16 +106,22 @@ public V1SubjectAccessReviewStatus evaluationError(String evaluationError) { * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. * @return evaluationError **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") + public String getEvaluationError() { return evaluationError; } + + public void setEvaluationError(String evaluationError) { this.evaluationError = evaluationError; } + public V1SubjectAccessReviewStatus reason(String reason) { + this.reason = reason; return this; } @@ -104,11 +130,15 @@ public V1SubjectAccessReviewStatus reason(String reason) { * Reason is optional. It indicates why a request was allowed or denied. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Reason is optional. It indicates why a request was allowed or denied.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } @@ -116,22 +146,12 @@ public void setReason(String reason) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SubjectAccessReviewStatus v1SubjectAccessReviewStatus = (V1SubjectAccessReviewStatus) o; - return Objects.equals(this.allowed, v1SubjectAccessReviewStatus.allowed) && - Objects.equals(this.denied, v1SubjectAccessReviewStatus.denied) && - Objects.equals(this.evaluationError, v1SubjectAccessReviewStatus.evaluationError) && - Objects.equals(this.reason, v1SubjectAccessReviewStatus.reason); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowed, denied, evaluationError, reason); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SubjectAccessReviewStatus {\n"); - sb.append(" allowed: ").append(toIndentedString(allowed)).append("\n"); sb.append(" denied: ").append(toIndentedString(denied)).append("\n"); sb.append(" evaluationError: ").append(toIndentedString(evaluationError)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectRulesReviewStatus.java index ae1b7a7baa..faec88267c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1SubjectRulesReviewStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. */ @ApiModel(description = "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1SubjectRulesReviewStatus { - @SerializedName("evaluationError") - private String evaluationError = null; + public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; + @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) + private String evaluationError; - @SerializedName("incomplete") - private Boolean incomplete = null; + public static final String SERIALIZED_NAME_INCOMPLETE = "incomplete"; + @SerializedName(SERIALIZED_NAME_INCOMPLETE) + private Boolean incomplete; - @SerializedName("nonResourceRules") + public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) private List nonResourceRules = new ArrayList(); - @SerializedName("resourceRules") + public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; + @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) private List resourceRules = new ArrayList(); + public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { + this.evaluationError = evaluationError; return this; } @@ -54,16 +63,22 @@ public V1SubjectRulesReviewStatus evaluationError(String evaluationError) { * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. * @return evaluationError **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") + public String getEvaluationError() { return evaluationError; } + + public void setEvaluationError(String evaluationError) { this.evaluationError = evaluationError; } + public V1SubjectRulesReviewStatus incomplete(Boolean incomplete) { + this.incomplete = incomplete; return this; } @@ -73,15 +88,20 @@ public V1SubjectRulesReviewStatus incomplete(Boolean incomplete) { * @return incomplete **/ @ApiModelProperty(required = true, value = "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") - public Boolean isIncomplete() { + + public Boolean getIncomplete() { return incomplete; } + + public void setIncomplete(Boolean incomplete) { this.incomplete = incomplete; } + public V1SubjectRulesReviewStatus nonResourceRules(List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -96,15 +116,20 @@ public V1SubjectRulesReviewStatus addNonResourceRulesItem(V1NonResourceRule nonR * @return nonResourceRules **/ @ApiModelProperty(required = true, value = "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") + public List getNonResourceRules() { return nonResourceRules; } + + public void setNonResourceRules(List nonResourceRules) { this.nonResourceRules = nonResourceRules; } + public V1SubjectRulesReviewStatus resourceRules(List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -119,10 +144,13 @@ public V1SubjectRulesReviewStatus addResourceRulesItem(V1ResourceRule resourceRu * @return resourceRules **/ @ApiModelProperty(required = true, value = "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") + public List getResourceRules() { return resourceRules; } + + public void setResourceRules(List resourceRules) { this.resourceRules = resourceRules; } @@ -130,22 +158,12 @@ public void setResourceRules(List resourceRules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1SubjectRulesReviewStatus v1SubjectRulesReviewStatus = (V1SubjectRulesReviewStatus) o; - return Objects.equals(this.evaluationError, v1SubjectRulesReviewStatus.evaluationError) && - Objects.equals(this.incomplete, v1SubjectRulesReviewStatus.incomplete) && - Objects.equals(this.nonResourceRules, v1SubjectRulesReviewStatus.nonResourceRules) && - Objects.equals(this.resourceRules, v1SubjectRulesReviewStatus.resourceRules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -153,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1SubjectRulesReviewStatus {\n"); - sb.append(" evaluationError: ").append(toIndentedString(evaluationError)).append("\n"); sb.append(" incomplete: ").append(toIndentedString(incomplete)).append("\n"); sb.append(" nonResourceRules: ").append(toIndentedString(nonResourceRules)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Sysctl.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Sysctl.java index c9b713b910..14359a68c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Sysctl.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Sysctl.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * Sysctl defines a kernel parameter to be set */ @ApiModel(description = "Sysctl defines a kernel parameter to be set") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Sysctl { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - @SerializedName("value") - private String value = null; public V1Sysctl name(String name) { + this.name = name; return this; } @@ -45,15 +52,20 @@ public V1Sysctl name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of a property to set") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1Sysctl value(String value) { + this.value = value; return this; } @@ -63,10 +75,13 @@ public V1Sysctl value(String value) { * @return value **/ @ApiModelProperty(required = true, value = "Value of a property to set") + public String getValue() { return value; } + + public void setValue(String value) { this.value = value; } @@ -74,20 +89,12 @@ public void setValue(String value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Sysctl v1Sysctl = (V1Sysctl) o; - return Objects.equals(this.name, v1Sysctl.name) && - Objects.equals(this.value, v1Sysctl.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Sysctl {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TCPSocketAction.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TCPSocketAction.java index 8cafbfc327..ce39cfa7e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TCPSocketAction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TCPSocketAction.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * TCPSocketAction describes an action based on opening a socket */ @ApiModel(description = "TCPSocketAction describes an action based on opening a socket") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TCPSocketAction { - @SerializedName("host") - private String host = null; + public static final String SERIALIZED_NAME_HOST = "host"; + @SerializedName(SERIALIZED_NAME_HOST) + private String host; + + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private IntOrString port; - @SerializedName("port") - private IntOrString port = null; public V1TCPSocketAction host(String host) { + this.host = host; return this; } @@ -45,29 +52,38 @@ public V1TCPSocketAction host(String host) { * Optional: Host name to connect to, defaults to the pod IP. * @return host **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional: Host name to connect to, defaults to the pod IP.") + public String getHost() { return host; } + + public void setHost(String host) { this.host = host; } + public V1TCPSocketAction port(IntOrString port) { + this.port = port; return this; } /** - * Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port **/ - @ApiModelProperty(required = true, value = "Number or name of the port to access on the container. Number must be in the range 1 to 65535. Name must be an IANA_SVC_NAME.") + @ApiModelProperty(required = true, value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getPort() { return port; } + + public void setPort(IntOrString port) { this.port = port; } @@ -75,20 +91,12 @@ public void setPort(IntOrString port) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TCPSocketAction v1TCPSocketAction = (V1TCPSocketAction) o; - return Objects.equals(this.host, v1TCPSocketAction.host) && - Objects.equals(this.port, v1TCPSocketAction.port); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(host, port); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TCPSocketAction {\n"); - sb.append(" host: ").append(toIndentedString(host)).append("\n"); sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Taint.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Taint.java index 100a8ad9cf..97d65bd4b5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Taint.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Taint.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint. */ @ApiModel(description = "The node this Taint is attached to has the \"effect\" on any pod that does not tolerate the Taint.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Taint { - @SerializedName("effect") - private String effect = null; + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_TIME_ADDED = "timeAdded"; + @SerializedName(SERIALIZED_NAME_TIME_ADDED) + private DateTime timeAdded; - @SerializedName("timeAdded") - private DateTime timeAdded = null; + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - @SerializedName("value") - private String value = null; public V1Taint effect(String effect) { + this.effect = effect; return this; } @@ -52,15 +61,20 @@ public V1Taint effect(String effect) { * @return effect **/ @ApiModelProperty(required = true, value = "Required. The effect of the taint on pods that do not tolerate the taint. Valid effects are NoSchedule, PreferNoSchedule and NoExecute.") + public String getEffect() { return effect; } + + public void setEffect(String effect) { this.effect = effect; } + public V1Taint key(String key) { + this.key = key; return this; } @@ -70,15 +84,20 @@ public V1Taint key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "Required. The taint key to be applied to a node.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1Taint timeAdded(DateTime timeAdded) { + this.timeAdded = timeAdded; return this; } @@ -87,16 +106,22 @@ public V1Taint timeAdded(DateTime timeAdded) { * TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. * @return timeAdded **/ + @javax.annotation.Nullable @ApiModelProperty(value = "TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints.") + public DateTime getTimeAdded() { return timeAdded; } + + public void setTimeAdded(DateTime timeAdded) { this.timeAdded = timeAdded; } + public V1Taint value(String value) { + this.value = value; return this; } @@ -105,11 +130,15 @@ public V1Taint value(String value) { * Required. The taint value corresponding to the taint key. * @return value **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Required. The taint value corresponding to the taint key.") + public String getValue() { return value; } + + public void setValue(String value) { this.value = value; } @@ -117,22 +146,12 @@ public void setValue(String value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Taint v1Taint = (V1Taint) o; - return Objects.equals(this.effect, v1Taint.effect) && - Objects.equals(this.key, v1Taint.key) && - Objects.equals(this.timeAdded, v1Taint.timeAdded) && - Objects.equals(this.value, v1Taint.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(effect, key, timeAdded, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Taint {\n"); - sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" timeAdded: ").append(toIndentedString(timeAdded)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReview.java index 7db95b15af..8994c17b28 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. */ @ApiModel(description = "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TokenReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1TokenReviewSpec spec; - @SerializedName("spec") - private V1TokenReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1TokenReviewStatus status; - @SerializedName("status") - private V1TokenReviewStatus status = null; public V1TokenReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1TokenReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1TokenReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1TokenReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1TokenReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1TokenReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1TokenReview spec(V1TokenReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated") + @ApiModelProperty(required = true, value = "") + public V1TokenReviewSpec getSpec() { return spec; } + + public void setSpec(V1TokenReviewSpec spec) { this.spec = spec; } + public V1TokenReview status(V1TokenReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request can be authenticated. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request can be authenticated.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1TokenReviewStatus getStatus() { return status; } + + public void setStatus(V1TokenReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1TokenReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TokenReview v1TokenReview = (V1TokenReview) o; - return Objects.equals(this.apiVersion, v1TokenReview.apiVersion) && - Objects.equals(this.kind, v1TokenReview.kind) && - Objects.equals(this.metadata, v1TokenReview.metadata) && - Objects.equals(this.spec, v1TokenReview.spec) && - Objects.equals(this.status, v1TokenReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TokenReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewSpec.java index 238cbf62a3..e630fc80e6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TokenReviewSpec { - @SerializedName("audiences") + public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; + @SerializedName(SERIALIZED_NAME_AUDIENCES) private List audiences = null; - @SerializedName("token") - private String token = null; + public static final String SERIALIZED_NAME_TOKEN = "token"; + @SerializedName(SERIALIZED_NAME_TOKEN) + private String token; + public V1TokenReviewSpec audiences(List audiences) { + this.audiences = audiences; return this; } @@ -54,16 +61,22 @@ public V1TokenReviewSpec addAudiencesItem(String audiencesItem) { * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. * @return audiences **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") + public List getAudiences() { return audiences; } + + public void setAudiences(List audiences) { this.audiences = audiences; } + public V1TokenReviewSpec token(String token) { + this.token = token; return this; } @@ -72,11 +85,15 @@ public V1TokenReviewSpec token(String token) { * Token is the opaque bearer token. * @return token **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Token is the opaque bearer token.") + public String getToken() { return token; } + + public void setToken(String token) { this.token = token; } @@ -84,20 +101,12 @@ public void setToken(String token) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TokenReviewSpec v1TokenReviewSpec = (V1TokenReviewSpec) o; - return Objects.equals(this.audiences, v1TokenReviewSpec.audiences) && - Objects.equals(this.token, v1TokenReviewSpec.token); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(audiences, token); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TokenReviewSpec {\n"); - sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewStatus.java index a6761f4194..96845370a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TokenReviewStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TokenReviewStatus { - @SerializedName("audiences") + public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; + @SerializedName(SERIALIZED_NAME_AUDIENCES) private List audiences = null; - @SerializedName("authenticated") - private Boolean authenticated = null; + public static final String SERIALIZED_NAME_AUTHENTICATED = "authenticated"; + @SerializedName(SERIALIZED_NAME_AUTHENTICATED) + private Boolean authenticated; + + public static final String SERIALIZED_NAME_ERROR = "error"; + @SerializedName(SERIALIZED_NAME_ERROR) + private String error; - @SerializedName("error") - private String error = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private V1UserInfo user; - @SerializedName("user") - private V1UserInfo user = null; public V1TokenReviewStatus audiences(List audiences) { + this.audiences = audiences; return this; } @@ -61,16 +70,22 @@ public V1TokenReviewStatus addAudiencesItem(String audiencesItem) { * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. * @return audiences **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") + public List getAudiences() { return audiences; } + + public void setAudiences(List audiences) { this.audiences = audiences; } + public V1TokenReviewStatus authenticated(Boolean authenticated) { + this.authenticated = authenticated; return this; } @@ -79,16 +94,22 @@ public V1TokenReviewStatus authenticated(Boolean authenticated) { * Authenticated indicates that the token was associated with a known user. * @return authenticated **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Authenticated indicates that the token was associated with a known user.") - public Boolean isAuthenticated() { + + public Boolean getAuthenticated() { return authenticated; } + + public void setAuthenticated(Boolean authenticated) { this.authenticated = authenticated; } + public V1TokenReviewStatus error(String error) { + this.error = error; return this; } @@ -97,29 +118,39 @@ public V1TokenReviewStatus error(String error) { * Error indicates that the token couldn't be checked * @return error **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Error indicates that the token couldn't be checked") + public String getError() { return error; } + + public void setError(String error) { this.error = error; } + public V1TokenReviewStatus user(V1UserInfo user) { + this.user = user; return this; } /** - * User is the UserInfo associated with the provided token. + * Get user * @return user **/ - @ApiModelProperty(value = "User is the UserInfo associated with the provided token.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1UserInfo getUser() { return user; } + + public void setUser(V1UserInfo user) { this.user = user; } @@ -127,22 +158,12 @@ public void setUser(V1UserInfo user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TokenReviewStatus v1TokenReviewStatus = (V1TokenReviewStatus) o; - return Objects.equals(this.audiences, v1TokenReviewStatus.audiences) && - Objects.equals(this.authenticated, v1TokenReviewStatus.authenticated) && - Objects.equals(this.error, v1TokenReviewStatus.error) && - Objects.equals(this.user, v1TokenReviewStatus.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(audiences, authenticated, error, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -150,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TokenReviewStatus {\n"); - sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); sb.append(" authenticated: ").append(toIndentedString(authenticated)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Toleration.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Toleration.java index f78efaa2cc..c850d7f928 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Toleration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Toleration.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,24 +30,31 @@ * The pod this Toleration is attached to tolerates any taint that matches the triple <key,value,effect> using the matching operator <operator>. */ @ApiModel(description = "The pod this Toleration is attached to tolerates any taint that matches the triple using the matching operator .") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Toleration { - @SerializedName("effect") - private String effect = null; + public static final String SERIALIZED_NAME_EFFECT = "effect"; + @SerializedName(SERIALIZED_NAME_EFFECT) + private String effect; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_OPERATOR = "operator"; + @SerializedName(SERIALIZED_NAME_OPERATOR) + private String operator; - @SerializedName("operator") - private String operator = null; + public static final String SERIALIZED_NAME_TOLERATION_SECONDS = "tolerationSeconds"; + @SerializedName(SERIALIZED_NAME_TOLERATION_SECONDS) + private Long tolerationSeconds; - @SerializedName("tolerationSeconds") - private Long tolerationSeconds = null; + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private String value; - @SerializedName("value") - private String value = null; public V1Toleration effect(String effect) { + this.effect = effect; return this; } @@ -53,16 +63,22 @@ public V1Toleration effect(String effect) { * Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute. * @return effect **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule, PreferNoSchedule and NoExecute.") + public String getEffect() { return effect; } + + public void setEffect(String effect) { this.effect = effect; } + public V1Toleration key(String key) { + this.key = key; return this; } @@ -71,16 +87,22 @@ public V1Toleration key(String key) { * Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. * @return key **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1Toleration operator(String operator) { + this.operator = operator; return this; } @@ -89,16 +111,22 @@ public V1Toleration operator(String operator) { * Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category. * @return operator **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a pod can tolerate all taints of a particular category.") + public String getOperator() { return operator; } + + public void setOperator(String operator) { this.operator = operator; } + public V1Toleration tolerationSeconds(Long tolerationSeconds) { + this.tolerationSeconds = tolerationSeconds; return this; } @@ -107,16 +135,22 @@ public V1Toleration tolerationSeconds(Long tolerationSeconds) { * TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. * @return tolerationSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system.") + public Long getTolerationSeconds() { return tolerationSeconds; } + + public void setTolerationSeconds(Long tolerationSeconds) { this.tolerationSeconds = tolerationSeconds; } + public V1Toleration value(String value) { + this.value = value; return this; } @@ -125,11 +159,15 @@ public V1Toleration value(String value) { * Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. * @return value **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string.") + public String getValue() { return value; } + + public void setValue(String value) { this.value = value; } @@ -137,23 +175,12 @@ public void setValue(String value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Toleration v1Toleration = (V1Toleration) o; - return Objects.equals(this.effect, v1Toleration.effect) && - Objects.equals(this.key, v1Toleration.key) && - Objects.equals(this.operator, v1Toleration.operator) && - Objects.equals(this.tolerationSeconds, v1Toleration.tolerationSeconds) && - Objects.equals(this.value, v1Toleration.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(effect, key, operator, tolerationSeconds, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -161,7 +188,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Toleration {\n"); - sb.append(" effect: ").append(toIndentedString(effect)).append("\n"); sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirement.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirement.java index c21eaea919..ac441f715c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirement.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirement.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector requirement is a selector that matches given label. This is an alpha feature and may change in the future.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TopologySelectorLabelRequirement { - @SerializedName("key") - private String key = null; + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + private String key; - @SerializedName("values") + public static final String SERIALIZED_NAME_VALUES = "values"; + @SerializedName(SERIALIZED_NAME_VALUES) private List values = new ArrayList(); + public V1TopologySelectorLabelRequirement key(String key) { + this.key = key; return this; } @@ -47,15 +54,20 @@ public V1TopologySelectorLabelRequirement key(String key) { * @return key **/ @ApiModelProperty(required = true, value = "The label key that the selector applies to.") + public String getKey() { return key; } + + public void setKey(String key) { this.key = key; } + public V1TopologySelectorLabelRequirement values(List values) { + this.values = values; return this; } @@ -70,10 +82,13 @@ public V1TopologySelectorLabelRequirement addValuesItem(String valuesItem) { * @return values **/ @ApiModelProperty(required = true, value = "An array of string values. One value must match the label to be selected. Each entry in Values is ORed.") + public List getValues() { return values; } + + public void setValues(List values) { this.values = values; } @@ -81,20 +96,12 @@ public void setValues(List values) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TopologySelectorLabelRequirement v1TopologySelectorLabelRequirement = (V1TopologySelectorLabelRequirement) o; - return Objects.equals(this.key, v1TopologySelectorLabelRequirement.key) && - Objects.equals(this.values, v1TopologySelectorLabelRequirement.values); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(key, values); + return HashCodeBuilder.reflectionHashCode(this); } @@ -102,7 +109,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TopologySelectorLabelRequirement {\n"); - sb.append(" key: ").append(toIndentedString(key)).append("\n"); sb.append(" values: ").append(toIndentedString(values)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorTerm.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorTerm.java index d8b6488a5f..b949351ee6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TopologySelectorTerm.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future. */ @ApiModel(description = "A topology selector term represents the result of label queries. A null or empty topology selector term matches no objects. The requirements of them are ANDed. It provides a subset of functionality as NodeSelectorTerm. This is an alpha feature and may change in the future.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TopologySelectorTerm { - @SerializedName("matchLabelExpressions") + public static final String SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS = "matchLabelExpressions"; + @SerializedName(SERIALIZED_NAME_MATCH_LABEL_EXPRESSIONS) private List matchLabelExpressions = null; + public V1TopologySelectorTerm matchLabelExpressions(List matchLabelExpressions) { + this.matchLabelExpressions = matchLabelExpressions; return this; } @@ -52,11 +58,15 @@ public V1TopologySelectorTerm addMatchLabelExpressionsItem(V1TopologySelectorLab * A list of topology selector requirements by labels. * @return matchLabelExpressions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of topology selector requirements by labels.") + public List getMatchLabelExpressions() { return matchLabelExpressions; } + + public void setMatchLabelExpressions(List matchLabelExpressions) { this.matchLabelExpressions = matchLabelExpressions; } @@ -64,19 +74,12 @@ public void setMatchLabelExpressions(List ma @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TopologySelectorTerm v1TopologySelectorTerm = (V1TopologySelectorTerm) o; - return Objects.equals(this.matchLabelExpressions, v1TopologySelectorTerm.matchLabelExpressions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(matchLabelExpressions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TopologySelectorTerm {\n"); - sb.append(" matchLabelExpressions: ").append(toIndentedString(matchLabelExpressions)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1TypedLocalObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1TypedLocalObjectReference.java index 6e5e1a2233..d366b9e12a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1TypedLocalObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1TypedLocalObjectReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. */ @ApiModel(description = "TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1TypedLocalObjectReference { - @SerializedName("apiGroup") - private String apiGroup = null; + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1TypedLocalObjectReference apiGroup(String apiGroup) { + this.apiGroup = apiGroup; return this; } @@ -47,16 +55,22 @@ public V1TypedLocalObjectReference apiGroup(String apiGroup) { * APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. * @return apiGroup **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required.") + public String getApiGroup() { return apiGroup; } + + public void setApiGroup(String apiGroup) { this.apiGroup = apiGroup; } + public V1TypedLocalObjectReference kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +80,20 @@ public V1TypedLocalObjectReference kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1TypedLocalObjectReference name(String name) { + this.name = name; return this; } @@ -84,10 +103,13 @@ public V1TypedLocalObjectReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +117,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1TypedLocalObjectReference v1TypedLocalObjectReference = (V1TypedLocalObjectReference) o; - return Objects.equals(this.apiGroup, v1TypedLocalObjectReference.apiGroup) && - Objects.equals(this.kind, v1TypedLocalObjectReference.kind) && - Objects.equals(this.name, v1TypedLocalObjectReference.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroup, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1TypedLocalObjectReference {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1UserInfo.java index 7e7afb3105..d152389ff0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1UserInfo.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * UserInfo holds the information about the user needed to implement the user.Info interface. */ @ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1UserInfo { - @SerializedName("extra") + public static final String SERIALIZED_NAME_EXTRA = "extra"; + @SerializedName(SERIALIZED_NAME_EXTRA) private Map> extra = null; - @SerializedName("groups") + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) private List groups = null; - @SerializedName("uid") - private String uid = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + private String username; - @SerializedName("username") - private String username = null; public V1UserInfo extra(Map> extra) { + this.extra = extra; return this; } @@ -62,16 +71,22 @@ public V1UserInfo putExtraItem(String key, List extraItem) { * Any additional information provided by the authenticator. * @return extra **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Any additional information provided by the authenticator.") + public Map> getExtra() { return extra; } + + public void setExtra(Map> extra) { this.extra = extra; } + public V1UserInfo groups(List groups) { + this.groups = groups; return this; } @@ -88,16 +103,22 @@ public V1UserInfo addGroupsItem(String groupsItem) { * The names of groups this user is a part of. * @return groups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The names of groups this user is a part of.") + public List getGroups() { return groups; } + + public void setGroups(List groups) { this.groups = groups; } + public V1UserInfo uid(String uid) { + this.uid = uid; return this; } @@ -106,16 +127,22 @@ public V1UserInfo uid(String uid) { * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } + public V1UserInfo username(String username) { + this.username = username; return this; } @@ -124,11 +151,15 @@ public V1UserInfo username(String username) { * The name that uniquely identifies this user among all active users. * @return username **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } @@ -136,22 +167,12 @@ public void setUsername(String username) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1UserInfo v1UserInfo = (V1UserInfo) o; - return Objects.equals(this.extra, v1UserInfo.extra) && - Objects.equals(this.groups, v1UserInfo.groups) && - Objects.equals(this.uid, v1UserInfo.uid) && - Objects.equals(this.username, v1UserInfo.username); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(extra, groups, uid, username); + return HashCodeBuilder.reflectionHashCode(this); } @@ -159,7 +180,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1UserInfo {\n"); - sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1Volume.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1Volume.java index 9ddd208b27..15247970e7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1Volume.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1Volume.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -55,402 +58,535 @@ * Volume represents a named volume in a pod that may be accessed by any container in the pod. */ @ApiModel(description = "Volume represents a named volume in a pod that may be accessed by any container in the pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1Volume { - @SerializedName("awsElasticBlockStore") - private V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore = null; + public static final String SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE = "awsElasticBlockStore"; + @SerializedName(SERIALIZED_NAME_AWS_ELASTIC_BLOCK_STORE) + private V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore; + + public static final String SERIALIZED_NAME_AZURE_DISK = "azureDisk"; + @SerializedName(SERIALIZED_NAME_AZURE_DISK) + private V1AzureDiskVolumeSource azureDisk; - @SerializedName("azureDisk") - private V1AzureDiskVolumeSource azureDisk = null; + public static final String SERIALIZED_NAME_AZURE_FILE = "azureFile"; + @SerializedName(SERIALIZED_NAME_AZURE_FILE) + private V1AzureFileVolumeSource azureFile; - @SerializedName("azureFile") - private V1AzureFileVolumeSource azureFile = null; + public static final String SERIALIZED_NAME_CEPHFS = "cephfs"; + @SerializedName(SERIALIZED_NAME_CEPHFS) + private V1CephFSVolumeSource cephfs; - @SerializedName("cephfs") - private V1CephFSVolumeSource cephfs = null; + public static final String SERIALIZED_NAME_CINDER = "cinder"; + @SerializedName(SERIALIZED_NAME_CINDER) + private V1CinderVolumeSource cinder; - @SerializedName("cinder") - private V1CinderVolumeSource cinder = null; + public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP) + private V1ConfigMapVolumeSource configMap; - @SerializedName("configMap") - private V1ConfigMapVolumeSource configMap = null; + public static final String SERIALIZED_NAME_CSI = "csi"; + @SerializedName(SERIALIZED_NAME_CSI) + private V1CSIVolumeSource csi; - @SerializedName("csi") - private V1CSIVolumeSource csi = null; + public static final String SERIALIZED_NAME_DOWNWARD_A_P_I = "downwardAPI"; + @SerializedName(SERIALIZED_NAME_DOWNWARD_A_P_I) + private V1DownwardAPIVolumeSource downwardAPI; - @SerializedName("downwardAPI") - private V1DownwardAPIVolumeSource downwardAPI = null; + public static final String SERIALIZED_NAME_EMPTY_DIR = "emptyDir"; + @SerializedName(SERIALIZED_NAME_EMPTY_DIR) + private V1EmptyDirVolumeSource emptyDir; - @SerializedName("emptyDir") - private V1EmptyDirVolumeSource emptyDir = null; + public static final String SERIALIZED_NAME_FC = "fc"; + @SerializedName(SERIALIZED_NAME_FC) + private V1FCVolumeSource fc; - @SerializedName("fc") - private V1FCVolumeSource fc = null; + public static final String SERIALIZED_NAME_FLEX_VOLUME = "flexVolume"; + @SerializedName(SERIALIZED_NAME_FLEX_VOLUME) + private V1FlexVolumeSource flexVolume; - @SerializedName("flexVolume") - private V1FlexVolumeSource flexVolume = null; + public static final String SERIALIZED_NAME_FLOCKER = "flocker"; + @SerializedName(SERIALIZED_NAME_FLOCKER) + private V1FlockerVolumeSource flocker; - @SerializedName("flocker") - private V1FlockerVolumeSource flocker = null; + public static final String SERIALIZED_NAME_GCE_PERSISTENT_DISK = "gcePersistentDisk"; + @SerializedName(SERIALIZED_NAME_GCE_PERSISTENT_DISK) + private V1GCEPersistentDiskVolumeSource gcePersistentDisk; - @SerializedName("gcePersistentDisk") - private V1GCEPersistentDiskVolumeSource gcePersistentDisk = null; + public static final String SERIALIZED_NAME_GIT_REPO = "gitRepo"; + @SerializedName(SERIALIZED_NAME_GIT_REPO) + private V1GitRepoVolumeSource gitRepo; - @SerializedName("gitRepo") - private V1GitRepoVolumeSource gitRepo = null; + public static final String SERIALIZED_NAME_GLUSTERFS = "glusterfs"; + @SerializedName(SERIALIZED_NAME_GLUSTERFS) + private V1GlusterfsVolumeSource glusterfs; - @SerializedName("glusterfs") - private V1GlusterfsVolumeSource glusterfs = null; + public static final String SERIALIZED_NAME_HOST_PATH = "hostPath"; + @SerializedName(SERIALIZED_NAME_HOST_PATH) + private V1HostPathVolumeSource hostPath; - @SerializedName("hostPath") - private V1HostPathVolumeSource hostPath = null; + public static final String SERIALIZED_NAME_ISCSI = "iscsi"; + @SerializedName(SERIALIZED_NAME_ISCSI) + private V1ISCSIVolumeSource iscsi; - @SerializedName("iscsi") - private V1ISCSIVolumeSource iscsi = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NFS = "nfs"; + @SerializedName(SERIALIZED_NAME_NFS) + private V1NFSVolumeSource nfs; - @SerializedName("nfs") - private V1NFSVolumeSource nfs = null; + public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM = "persistentVolumeClaim"; + @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_CLAIM) + private V1PersistentVolumeClaimVolumeSource persistentVolumeClaim; - @SerializedName("persistentVolumeClaim") - private V1PersistentVolumeClaimVolumeSource persistentVolumeClaim = null; + public static final String SERIALIZED_NAME_PHOTON_PERSISTENT_DISK = "photonPersistentDisk"; + @SerializedName(SERIALIZED_NAME_PHOTON_PERSISTENT_DISK) + private V1PhotonPersistentDiskVolumeSource photonPersistentDisk; - @SerializedName("photonPersistentDisk") - private V1PhotonPersistentDiskVolumeSource photonPersistentDisk = null; + public static final String SERIALIZED_NAME_PORTWORX_VOLUME = "portworxVolume"; + @SerializedName(SERIALIZED_NAME_PORTWORX_VOLUME) + private V1PortworxVolumeSource portworxVolume; - @SerializedName("portworxVolume") - private V1PortworxVolumeSource portworxVolume = null; + public static final String SERIALIZED_NAME_PROJECTED = "projected"; + @SerializedName(SERIALIZED_NAME_PROJECTED) + private V1ProjectedVolumeSource projected; - @SerializedName("projected") - private V1ProjectedVolumeSource projected = null; + public static final String SERIALIZED_NAME_QUOBYTE = "quobyte"; + @SerializedName(SERIALIZED_NAME_QUOBYTE) + private V1QuobyteVolumeSource quobyte; - @SerializedName("quobyte") - private V1QuobyteVolumeSource quobyte = null; + public static final String SERIALIZED_NAME_RBD = "rbd"; + @SerializedName(SERIALIZED_NAME_RBD) + private V1RBDVolumeSource rbd; - @SerializedName("rbd") - private V1RBDVolumeSource rbd = null; + public static final String SERIALIZED_NAME_SCALE_I_O = "scaleIO"; + @SerializedName(SERIALIZED_NAME_SCALE_I_O) + private V1ScaleIOVolumeSource scaleIO; - @SerializedName("scaleIO") - private V1ScaleIOVolumeSource scaleIO = null; + public static final String SERIALIZED_NAME_SECRET = "secret"; + @SerializedName(SERIALIZED_NAME_SECRET) + private V1SecretVolumeSource secret; - @SerializedName("secret") - private V1SecretVolumeSource secret = null; + public static final String SERIALIZED_NAME_STORAGEOS = "storageos"; + @SerializedName(SERIALIZED_NAME_STORAGEOS) + private V1StorageOSVolumeSource storageos; - @SerializedName("storageos") - private V1StorageOSVolumeSource storageos = null; + public static final String SERIALIZED_NAME_VSPHERE_VOLUME = "vsphereVolume"; + @SerializedName(SERIALIZED_NAME_VSPHERE_VOLUME) + private V1VsphereVirtualDiskVolumeSource vsphereVolume; - @SerializedName("vsphereVolume") - private V1VsphereVirtualDiskVolumeSource vsphereVolume = null; public V1Volume awsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { + this.awsElasticBlockStore = awsElasticBlockStore; return this; } /** - * AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore + * Get awsElasticBlockStore * @return awsElasticBlockStore **/ - @ApiModelProperty(value = "AWSElasticBlockStore represents an AWS Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AWSElasticBlockStoreVolumeSource getAwsElasticBlockStore() { return awsElasticBlockStore; } + + public void setAwsElasticBlockStore(V1AWSElasticBlockStoreVolumeSource awsElasticBlockStore) { this.awsElasticBlockStore = awsElasticBlockStore; } + public V1Volume azureDisk(V1AzureDiskVolumeSource azureDisk) { + this.azureDisk = azureDisk; return this; } /** - * AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod. + * Get azureDisk * @return azureDisk **/ - @ApiModelProperty(value = "AzureDisk represents an Azure Data Disk mount on the host and bind mount to the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AzureDiskVolumeSource getAzureDisk() { return azureDisk; } + + public void setAzureDisk(V1AzureDiskVolumeSource azureDisk) { this.azureDisk = azureDisk; } + public V1Volume azureFile(V1AzureFileVolumeSource azureFile) { + this.azureFile = azureFile; return this; } /** - * AzureFile represents an Azure File Service mount on the host and bind mount to the pod. + * Get azureFile * @return azureFile **/ - @ApiModelProperty(value = "AzureFile represents an Azure File Service mount on the host and bind mount to the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1AzureFileVolumeSource getAzureFile() { return azureFile; } + + public void setAzureFile(V1AzureFileVolumeSource azureFile) { this.azureFile = azureFile; } + public V1Volume cephfs(V1CephFSVolumeSource cephfs) { + this.cephfs = cephfs; return this; } /** - * CephFS represents a Ceph FS mount on the host that shares a pod's lifetime + * Get cephfs * @return cephfs **/ - @ApiModelProperty(value = "CephFS represents a Ceph FS mount on the host that shares a pod's lifetime") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1CephFSVolumeSource getCephfs() { return cephfs; } + + public void setCephfs(V1CephFSVolumeSource cephfs) { this.cephfs = cephfs; } + public V1Volume cinder(V1CinderVolumeSource cinder) { + this.cinder = cinder; return this; } /** - * Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md + * Get cinder * @return cinder **/ - @ApiModelProperty(value = "Cinder represents a cinder volume attached and mounted on kubelets host machine More info: https://releases.k8s.io/HEAD/examples/mysql-cinder-pd/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1CinderVolumeSource getCinder() { return cinder; } + + public void setCinder(V1CinderVolumeSource cinder) { this.cinder = cinder; } + public V1Volume configMap(V1ConfigMapVolumeSource configMap) { + this.configMap = configMap; return this; } /** - * ConfigMap represents a configMap that should populate this volume + * Get configMap * @return configMap **/ - @ApiModelProperty(value = "ConfigMap represents a configMap that should populate this volume") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ConfigMapVolumeSource getConfigMap() { return configMap; } + + public void setConfigMap(V1ConfigMapVolumeSource configMap) { this.configMap = configMap; } + public V1Volume csi(V1CSIVolumeSource csi) { + this.csi = csi; return this; } /** - * CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature). + * Get csi * @return csi **/ - @ApiModelProperty(value = "CSI (Container Storage Interface) represents storage that is handled by an external CSI driver (Alpha feature).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1CSIVolumeSource getCsi() { return csi; } + + public void setCsi(V1CSIVolumeSource csi) { this.csi = csi; } + public V1Volume downwardAPI(V1DownwardAPIVolumeSource downwardAPI) { + this.downwardAPI = downwardAPI; return this; } /** - * DownwardAPI represents downward API about the pod that should populate this volume + * Get downwardAPI * @return downwardAPI **/ - @ApiModelProperty(value = "DownwardAPI represents downward API about the pod that should populate this volume") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DownwardAPIVolumeSource getDownwardAPI() { return downwardAPI; } + + public void setDownwardAPI(V1DownwardAPIVolumeSource downwardAPI) { this.downwardAPI = downwardAPI; } + public V1Volume emptyDir(V1EmptyDirVolumeSource emptyDir) { + this.emptyDir = emptyDir; return this; } /** - * EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir + * Get emptyDir * @return emptyDir **/ - @ApiModelProperty(value = "EmptyDir represents a temporary directory that shares a pod's lifetime. More info: https://kubernetes.io/docs/concepts/storage/volumes#emptydir") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1EmptyDirVolumeSource getEmptyDir() { return emptyDir; } + + public void setEmptyDir(V1EmptyDirVolumeSource emptyDir) { this.emptyDir = emptyDir; } + public V1Volume fc(V1FCVolumeSource fc) { + this.fc = fc; return this; } /** - * FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod. + * Get fc * @return fc **/ - @ApiModelProperty(value = "FC represents a Fibre Channel resource that is attached to a kubelet's host machine and then exposed to the pod.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1FCVolumeSource getFc() { return fc; } + + public void setFc(V1FCVolumeSource fc) { this.fc = fc; } + public V1Volume flexVolume(V1FlexVolumeSource flexVolume) { + this.flexVolume = flexVolume; return this; } /** - * FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin. + * Get flexVolume * @return flexVolume **/ - @ApiModelProperty(value = "FlexVolume represents a generic volume resource that is provisioned/attached using an exec based plugin.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1FlexVolumeSource getFlexVolume() { return flexVolume; } + + public void setFlexVolume(V1FlexVolumeSource flexVolume) { this.flexVolume = flexVolume; } + public V1Volume flocker(V1FlockerVolumeSource flocker) { + this.flocker = flocker; return this; } /** - * Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running + * Get flocker * @return flocker **/ - @ApiModelProperty(value = "Flocker represents a Flocker volume attached to a kubelet's host machine. This depends on the Flocker control service being running") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1FlockerVolumeSource getFlocker() { return flocker; } + + public void setFlocker(V1FlockerVolumeSource flocker) { this.flocker = flocker; } + public V1Volume gcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { + this.gcePersistentDisk = gcePersistentDisk; return this; } /** - * GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk + * Get gcePersistentDisk * @return gcePersistentDisk **/ - @ApiModelProperty(value = "GCEPersistentDisk represents a GCE Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1GCEPersistentDiskVolumeSource getGcePersistentDisk() { return gcePersistentDisk; } + + public void setGcePersistentDisk(V1GCEPersistentDiskVolumeSource gcePersistentDisk) { this.gcePersistentDisk = gcePersistentDisk; } + public V1Volume gitRepo(V1GitRepoVolumeSource gitRepo) { + this.gitRepo = gitRepo; return this; } /** - * GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container. + * Get gitRepo * @return gitRepo **/ - @ApiModelProperty(value = "GitRepo represents a git repository at a particular revision. DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an EmptyDir into an InitContainer that clones the repo using git, then mount the EmptyDir into the Pod's container.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1GitRepoVolumeSource getGitRepo() { return gitRepo; } + + public void setGitRepo(V1GitRepoVolumeSource gitRepo) { this.gitRepo = gitRepo; } + public V1Volume glusterfs(V1GlusterfsVolumeSource glusterfs) { + this.glusterfs = glusterfs; return this; } /** - * Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md + * Get glusterfs * @return glusterfs **/ - @ApiModelProperty(value = "Glusterfs represents a Glusterfs mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/glusterfs/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1GlusterfsVolumeSource getGlusterfs() { return glusterfs; } + + public void setGlusterfs(V1GlusterfsVolumeSource glusterfs) { this.glusterfs = glusterfs; } + public V1Volume hostPath(V1HostPathVolumeSource hostPath) { + this.hostPath = hostPath; return this; } /** - * HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath + * Get hostPath * @return hostPath **/ - @ApiModelProperty(value = "HostPath represents a pre-existing file or directory on the host machine that is directly exposed to the container. This is generally used for system agents or other privileged things that are allowed to see the host machine. Most containers will NOT need this. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1HostPathVolumeSource getHostPath() { return hostPath; } + + public void setHostPath(V1HostPathVolumeSource hostPath) { this.hostPath = hostPath; } + public V1Volume iscsi(V1ISCSIVolumeSource iscsi) { + this.iscsi = iscsi; return this; } /** - * ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md + * Get iscsi * @return iscsi **/ - @ApiModelProperty(value = "ISCSI represents an ISCSI Disk resource that is attached to a kubelet's host machine and then exposed to the pod. More info: https://releases.k8s.io/HEAD/examples/volumes/iscsi/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ISCSIVolumeSource getIscsi() { return iscsi; } + + public void setIscsi(V1ISCSIVolumeSource iscsi) { this.iscsi = iscsi; } + public V1Volume name(String name) { + this.name = name; return this; } @@ -460,208 +596,277 @@ public V1Volume name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1Volume nfs(V1NFSVolumeSource nfs) { + this.nfs = nfs; return this; } /** - * NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs + * Get nfs * @return nfs **/ - @ApiModelProperty(value = "NFS represents an NFS mount on the host that shares a pod's lifetime More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NFSVolumeSource getNfs() { return nfs; } + + public void setNfs(V1NFSVolumeSource nfs) { this.nfs = nfs; } + public V1Volume persistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { + this.persistentVolumeClaim = persistentVolumeClaim; return this; } /** - * PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims + * Get persistentVolumeClaim * @return persistentVolumeClaim **/ - @ApiModelProperty(value = "PersistentVolumeClaimVolumeSource represents a reference to a PersistentVolumeClaim in the same namespace. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PersistentVolumeClaimVolumeSource getPersistentVolumeClaim() { return persistentVolumeClaim; } + + public void setPersistentVolumeClaim(V1PersistentVolumeClaimVolumeSource persistentVolumeClaim) { this.persistentVolumeClaim = persistentVolumeClaim; } + public V1Volume photonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { + this.photonPersistentDisk = photonPersistentDisk; return this; } /** - * PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine + * Get photonPersistentDisk * @return photonPersistentDisk **/ - @ApiModelProperty(value = "PhotonPersistentDisk represents a PhotonController persistent disk attached and mounted on kubelets host machine") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PhotonPersistentDiskVolumeSource getPhotonPersistentDisk() { return photonPersistentDisk; } + + public void setPhotonPersistentDisk(V1PhotonPersistentDiskVolumeSource photonPersistentDisk) { this.photonPersistentDisk = photonPersistentDisk; } + public V1Volume portworxVolume(V1PortworxVolumeSource portworxVolume) { + this.portworxVolume = portworxVolume; return this; } /** - * PortworxVolume represents a portworx volume attached and mounted on kubelets host machine + * Get portworxVolume * @return portworxVolume **/ - @ApiModelProperty(value = "PortworxVolume represents a portworx volume attached and mounted on kubelets host machine") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PortworxVolumeSource getPortworxVolume() { return portworxVolume; } + + public void setPortworxVolume(V1PortworxVolumeSource portworxVolume) { this.portworxVolume = portworxVolume; } + public V1Volume projected(V1ProjectedVolumeSource projected) { + this.projected = projected; return this; } /** - * Items for all in one resources secrets, configmaps, and downward API + * Get projected * @return projected **/ - @ApiModelProperty(value = "Items for all in one resources secrets, configmaps, and downward API") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ProjectedVolumeSource getProjected() { return projected; } + + public void setProjected(V1ProjectedVolumeSource projected) { this.projected = projected; } + public V1Volume quobyte(V1QuobyteVolumeSource quobyte) { + this.quobyte = quobyte; return this; } /** - * Quobyte represents a Quobyte mount on the host that shares a pod's lifetime + * Get quobyte * @return quobyte **/ - @ApiModelProperty(value = "Quobyte represents a Quobyte mount on the host that shares a pod's lifetime") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1QuobyteVolumeSource getQuobyte() { return quobyte; } + + public void setQuobyte(V1QuobyteVolumeSource quobyte) { this.quobyte = quobyte; } + public V1Volume rbd(V1RBDVolumeSource rbd) { + this.rbd = rbd; return this; } /** - * RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md + * Get rbd * @return rbd **/ - @ApiModelProperty(value = "RBD represents a Rados Block Device mount on the host that shares a pod's lifetime. More info: https://releases.k8s.io/HEAD/examples/volumes/rbd/README.md") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1RBDVolumeSource getRbd() { return rbd; } + + public void setRbd(V1RBDVolumeSource rbd) { this.rbd = rbd; } + public V1Volume scaleIO(V1ScaleIOVolumeSource scaleIO) { + this.scaleIO = scaleIO; return this; } /** - * ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes. + * Get scaleIO * @return scaleIO **/ - @ApiModelProperty(value = "ScaleIO represents a ScaleIO persistent volume attached and mounted on Kubernetes nodes.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ScaleIOVolumeSource getScaleIO() { return scaleIO; } + + public void setScaleIO(V1ScaleIOVolumeSource scaleIO) { this.scaleIO = scaleIO; } + public V1Volume secret(V1SecretVolumeSource secret) { + this.secret = secret; return this; } /** - * Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret + * Get secret * @return secret **/ - @ApiModelProperty(value = "Secret represents a secret that should populate this volume. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretVolumeSource getSecret() { return secret; } + + public void setSecret(V1SecretVolumeSource secret) { this.secret = secret; } + public V1Volume storageos(V1StorageOSVolumeSource storageos) { + this.storageos = storageos; return this; } /** - * StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes. + * Get storageos * @return storageos **/ - @ApiModelProperty(value = "StorageOS represents a StorageOS volume attached and mounted on Kubernetes nodes.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1StorageOSVolumeSource getStorageos() { return storageos; } + + public void setStorageos(V1StorageOSVolumeSource storageos) { this.storageos = storageos; } + public V1Volume vsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { + this.vsphereVolume = vsphereVolume; return this; } /** - * VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine + * Get vsphereVolume * @return vsphereVolume **/ - @ApiModelProperty(value = "VsphereVolume represents a vSphere volume attached and mounted on kubelets host machine") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1VsphereVirtualDiskVolumeSource getVsphereVolume() { return vsphereVolume; } + + public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { this.vsphereVolume = vsphereVolume; } @@ -669,47 +874,12 @@ public void setVsphereVolume(V1VsphereVirtualDiskVolumeSource vsphereVolume) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1Volume v1Volume = (V1Volume) o; - return Objects.equals(this.awsElasticBlockStore, v1Volume.awsElasticBlockStore) && - Objects.equals(this.azureDisk, v1Volume.azureDisk) && - Objects.equals(this.azureFile, v1Volume.azureFile) && - Objects.equals(this.cephfs, v1Volume.cephfs) && - Objects.equals(this.cinder, v1Volume.cinder) && - Objects.equals(this.configMap, v1Volume.configMap) && - Objects.equals(this.csi, v1Volume.csi) && - Objects.equals(this.downwardAPI, v1Volume.downwardAPI) && - Objects.equals(this.emptyDir, v1Volume.emptyDir) && - Objects.equals(this.fc, v1Volume.fc) && - Objects.equals(this.flexVolume, v1Volume.flexVolume) && - Objects.equals(this.flocker, v1Volume.flocker) && - Objects.equals(this.gcePersistentDisk, v1Volume.gcePersistentDisk) && - Objects.equals(this.gitRepo, v1Volume.gitRepo) && - Objects.equals(this.glusterfs, v1Volume.glusterfs) && - Objects.equals(this.hostPath, v1Volume.hostPath) && - Objects.equals(this.iscsi, v1Volume.iscsi) && - Objects.equals(this.name, v1Volume.name) && - Objects.equals(this.nfs, v1Volume.nfs) && - Objects.equals(this.persistentVolumeClaim, v1Volume.persistentVolumeClaim) && - Objects.equals(this.photonPersistentDisk, v1Volume.photonPersistentDisk) && - Objects.equals(this.portworxVolume, v1Volume.portworxVolume) && - Objects.equals(this.projected, v1Volume.projected) && - Objects.equals(this.quobyte, v1Volume.quobyte) && - Objects.equals(this.rbd, v1Volume.rbd) && - Objects.equals(this.scaleIO, v1Volume.scaleIO) && - Objects.equals(this.secret, v1Volume.secret) && - Objects.equals(this.storageos, v1Volume.storageos) && - Objects.equals(this.vsphereVolume, v1Volume.vsphereVolume); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(awsElasticBlockStore, azureDisk, azureFile, cephfs, cinder, configMap, csi, downwardAPI, emptyDir, fc, flexVolume, flocker, gcePersistentDisk, gitRepo, glusterfs, hostPath, iscsi, name, nfs, persistentVolumeClaim, photonPersistentDisk, portworxVolume, projected, quobyte, rbd, scaleIO, secret, storageos, vsphereVolume); + return HashCodeBuilder.reflectionHashCode(this); } @@ -717,7 +887,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1Volume {\n"); - sb.append(" awsElasticBlockStore: ").append(toIndentedString(awsElasticBlockStore)).append("\n"); sb.append(" azureDisk: ").append(toIndentedString(azureDisk)).append("\n"); sb.append(" azureFile: ").append(toIndentedString(azureFile)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachment.java index 0d99a91c48..873657188c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeAttachment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1VolumeAttachmentSpec spec; - @SerializedName("spec") - private V1VolumeAttachmentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1VolumeAttachmentStatus status; - @SerializedName("status") - private V1VolumeAttachmentStatus status = null; public V1VolumeAttachment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1VolumeAttachment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1VolumeAttachment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,86 @@ public V1VolumeAttachment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1VolumeAttachment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1VolumeAttachment spec(V1VolumeAttachmentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.") + @ApiModelProperty(required = true, value = "") + public V1VolumeAttachmentSpec getSpec() { return spec; } + + public void setSpec(V1VolumeAttachmentSpec spec) { this.spec = spec; } + public V1VolumeAttachment status(V1VolumeAttachmentStatus status) { + this.status = status; return this; } /** - * Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * Get status * @return status **/ - @ApiModelProperty(value = "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1VolumeAttachmentStatus getStatus() { return status; } + + public void setStatus(V1VolumeAttachmentStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1VolumeAttachmentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeAttachment v1VolumeAttachment = (V1VolumeAttachment) o; - return Objects.equals(this.apiVersion, v1VolumeAttachment.apiVersion) && - Objects.equals(this.kind, v1VolumeAttachment.kind) && - Objects.equals(this.metadata, v1VolumeAttachment.metadata) && - Objects.equals(this.spec, v1VolumeAttachment.spec) && - Objects.equals(this.status, v1VolumeAttachment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeAttachment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentList.java index 0eb0367b36..d4f7b73f2f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeAttachmentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1VolumeAttachmentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1VolumeAttachmentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1VolumeAttachmentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1VolumeAttachmentList addItemsItem(V1VolumeAttachment itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of VolumeAttachments") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1VolumeAttachmentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1VolumeAttachmentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1VolumeAttachmentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeAttachmentList v1VolumeAttachmentList = (V1VolumeAttachmentList) o; - return Objects.equals(this.apiVersion, v1VolumeAttachmentList.apiVersion) && - Objects.equals(this.items, v1VolumeAttachmentList.items) && - Objects.equals(this.kind, v1VolumeAttachmentList.kind) && - Objects.equals(this.metadata, v1VolumeAttachmentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeAttachmentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSource.java index aa0cb64ca5..7637d5e309 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSource.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,12 +31,43 @@ * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. */ @ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeAttachmentSource { - @SerializedName("persistentVolumeName") - private String persistentVolumeName = null; + public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; + @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) + private V1PersistentVolumeSpec inlineVolumeSpec; + + public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_NAME = "persistentVolumeName"; + @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_NAME) + private String persistentVolumeName; + + + public V1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + + this.inlineVolumeSpec = inlineVolumeSpec; + return this; + } + + /** + * Get inlineVolumeSpec + * @return inlineVolumeSpec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PersistentVolumeSpec getInlineVolumeSpec() { + return inlineVolumeSpec; + } + + + + public void setInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; + } + public V1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } @@ -41,11 +76,15 @@ public V1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName * Name of the persistent volume to attach. * @return persistentVolumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the persistent volume to attach.") + public String getPersistentVolumeName() { return persistentVolumeName; } + + public void setPersistentVolumeName(String persistentVolumeName) { this.persistentVolumeName = persistentVolumeName; } @@ -53,19 +92,12 @@ public void setPersistentVolumeName(String persistentVolumeName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeAttachmentSource v1VolumeAttachmentSource = (V1VolumeAttachmentSource) o; - return Objects.equals(this.persistentVolumeName, v1VolumeAttachmentSource.persistentVolumeName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(persistentVolumeName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +105,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeAttachmentSource {\n"); - + sb.append(" inlineVolumeSpec: ").append(toIndentedString(inlineVolumeSpec)).append("\n"); sb.append(" persistentVolumeName: ").append(toIndentedString(persistentVolumeName)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSpec.java index f65a7c7606..de16ac8894 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeAttachmentSpec { - @SerializedName("attacher") - private String attacher = null; + public static final String SERIALIZED_NAME_ATTACHER = "attacher"; + @SerializedName(SERIALIZED_NAME_ATTACHER) + private String attacher; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; - @SerializedName("nodeName") - private String nodeName = null; + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private V1VolumeAttachmentSource source; - @SerializedName("source") - private V1VolumeAttachmentSource source = null; public V1VolumeAttachmentSpec attacher(String attacher) { + this.attacher = attacher; return this; } @@ -49,15 +57,20 @@ public V1VolumeAttachmentSpec attacher(String attacher) { * @return attacher **/ @ApiModelProperty(required = true, value = "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().") + public String getAttacher() { return attacher; } + + public void setAttacher(String attacher) { this.attacher = attacher; } + public V1VolumeAttachmentSpec nodeName(String nodeName) { + this.nodeName = nodeName; return this; } @@ -67,28 +80,36 @@ public V1VolumeAttachmentSpec nodeName(String nodeName) { * @return nodeName **/ @ApiModelProperty(required = true, value = "The node that the volume should be attached to.") + public String getNodeName() { return nodeName; } + + public void setNodeName(String nodeName) { this.nodeName = nodeName; } + public V1VolumeAttachmentSpec source(V1VolumeAttachmentSource source) { + this.source = source; return this; } /** - * Source represents the volume that should be attached. + * Get source * @return source **/ - @ApiModelProperty(required = true, value = "Source represents the volume that should be attached.") + @ApiModelProperty(required = true, value = "") + public V1VolumeAttachmentSource getSource() { return source; } + + public void setSource(V1VolumeAttachmentSource source) { this.source = source; } @@ -96,21 +117,12 @@ public void setSource(V1VolumeAttachmentSource source) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeAttachmentSpec v1VolumeAttachmentSpec = (V1VolumeAttachmentSpec) o; - return Objects.equals(this.attacher, v1VolumeAttachmentSpec.attacher) && - Objects.equals(this.nodeName, v1VolumeAttachmentSpec.nodeName) && - Objects.equals(this.source, v1VolumeAttachmentSpec.source); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attacher, nodeName, source); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeAttachmentSpec {\n"); - sb.append(" attacher: ").append(toIndentedString(attacher)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentStatus.java index 1f65575546..ae4bce9388 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeAttachmentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,39 +34,51 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeAttachmentStatus { - @SerializedName("attachError") - private V1VolumeError attachError = null; + public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; + @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) + private V1VolumeError attachError; - @SerializedName("attached") - private Boolean attached = null; + public static final String SERIALIZED_NAME_ATTACHED = "attached"; + @SerializedName(SERIALIZED_NAME_ATTACHED) + private Boolean attached; - @SerializedName("attachmentMetadata") + public static final String SERIALIZED_NAME_ATTACHMENT_METADATA = "attachmentMetadata"; + @SerializedName(SERIALIZED_NAME_ATTACHMENT_METADATA) private Map attachmentMetadata = null; - @SerializedName("detachError") - private V1VolumeError detachError = null; + public static final String SERIALIZED_NAME_DETACH_ERROR = "detachError"; + @SerializedName(SERIALIZED_NAME_DETACH_ERROR) + private V1VolumeError detachError; + public V1VolumeAttachmentStatus attachError(V1VolumeError attachError) { + this.attachError = attachError; return this; } /** - * The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * Get attachError * @return attachError **/ - @ApiModelProperty(value = "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1VolumeError getAttachError() { return attachError; } + + public void setAttachError(V1VolumeError attachError) { this.attachError = attachError; } + public V1VolumeAttachmentStatus attached(Boolean attached) { + this.attached = attached; return this; } @@ -73,15 +88,20 @@ public V1VolumeAttachmentStatus attached(Boolean attached) { * @return attached **/ @ApiModelProperty(required = true, value = "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") - public Boolean isAttached() { + + public Boolean getAttached() { return attached; } + + public void setAttached(Boolean attached) { this.attached = attached; } + public V1VolumeAttachmentStatus attachmentMetadata(Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @@ -98,29 +118,39 @@ public V1VolumeAttachmentStatus putAttachmentMetadataItem(String key, String att * Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. * @return attachmentMetadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") + public Map getAttachmentMetadata() { return attachmentMetadata; } + + public void setAttachmentMetadata(Map attachmentMetadata) { this.attachmentMetadata = attachmentMetadata; } + public V1VolumeAttachmentStatus detachError(V1VolumeError detachError) { + this.detachError = detachError; return this; } /** - * The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + * Get detachError * @return detachError **/ - @ApiModelProperty(value = "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1VolumeError getDetachError() { return detachError; } + + public void setDetachError(V1VolumeError detachError) { this.detachError = detachError; } @@ -128,22 +158,12 @@ public void setDetachError(V1VolumeError detachError) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeAttachmentStatus v1VolumeAttachmentStatus = (V1VolumeAttachmentStatus) o; - return Objects.equals(this.attachError, v1VolumeAttachmentStatus.attachError) && - Objects.equals(this.attached, v1VolumeAttachmentStatus.attached) && - Objects.equals(this.attachmentMetadata, v1VolumeAttachmentStatus.attachmentMetadata) && - Objects.equals(this.detachError, v1VolumeAttachmentStatus.detachError); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attachError, attached, attachmentMetadata, detachError); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeAttachmentStatus {\n"); - sb.append(" attachError: ").append(toIndentedString(attachError)).append("\n"); sb.append(" attached: ").append(toIndentedString(attached)).append("\n"); sb.append(" attachmentMetadata: ").append(toIndentedString(attachmentMetadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeDevice.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeDevice.java index d77d4124b5..46f69bddd0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeDevice.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeDevice.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * volumeDevice describes a mapping of a raw block device within a container. */ @ApiModel(description = "volumeDevice describes a mapping of a raw block device within a container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeDevice { - @SerializedName("devicePath") - private String devicePath = null; + public static final String SERIALIZED_NAME_DEVICE_PATH = "devicePath"; + @SerializedName(SERIALIZED_NAME_DEVICE_PATH) + private String devicePath; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1VolumeDevice devicePath(String devicePath) { + this.devicePath = devicePath; return this; } @@ -45,15 +52,20 @@ public V1VolumeDevice devicePath(String devicePath) { * @return devicePath **/ @ApiModelProperty(required = true, value = "devicePath is the path inside of the container that the device will be mapped to.") + public String getDevicePath() { return devicePath; } + + public void setDevicePath(String devicePath) { this.devicePath = devicePath; } + public V1VolumeDevice name(String name) { + this.name = name; return this; } @@ -63,10 +75,13 @@ public V1VolumeDevice name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name must match the name of a persistentVolumeClaim in the pod") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -74,20 +89,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeDevice v1VolumeDevice = (V1VolumeDevice) o; - return Objects.equals(this.devicePath, v1VolumeDevice.devicePath) && - Objects.equals(this.name, v1VolumeDevice.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(devicePath, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +102,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeDevice {\n"); - sb.append(" devicePath: ").append(toIndentedString(devicePath)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeError.java index c602e8f490..f79fb11f7f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeError.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeError { - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private DateTime time; - @SerializedName("time") - private DateTime time = null; public V1VolumeError message(String message) { + this.message = message; return this; } @@ -45,16 +52,22 @@ public V1VolumeError message(String message) { * String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1VolumeError time(DateTime time) { + this.time = time; return this; } @@ -63,11 +76,15 @@ public V1VolumeError time(DateTime time) { * Time the error was encountered. * @return time **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time the error was encountered.") + public DateTime getTime() { return time; } + + public void setTime(DateTime time) { this.time = time; } @@ -75,20 +92,12 @@ public void setTime(DateTime time) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeError v1VolumeError = (V1VolumeError) o; - return Objects.equals(this.message, v1VolumeError.message) && - Objects.equals(this.time, v1VolumeError.time); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(message, time); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeMount.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeMount.java index d75e297217..d5fb2244cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeMount.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeMount.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,27 +30,35 @@ * VolumeMount describes a mounting of a Volume within a container. */ @ApiModel(description = "VolumeMount describes a mounting of a Volume within a container.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeMount { - @SerializedName("mountPath") - private String mountPath = null; + public static final String SERIALIZED_NAME_MOUNT_PATH = "mountPath"; + @SerializedName(SERIALIZED_NAME_MOUNT_PATH) + private String mountPath; + + public static final String SERIALIZED_NAME_MOUNT_PROPAGATION = "mountPropagation"; + @SerializedName(SERIALIZED_NAME_MOUNT_PROPAGATION) + private String mountPropagation; - @SerializedName("mountPropagation") - private String mountPropagation = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_READ_ONLY = "readOnly"; + @SerializedName(SERIALIZED_NAME_READ_ONLY) + private Boolean readOnly; - @SerializedName("readOnly") - private Boolean readOnly = null; + public static final String SERIALIZED_NAME_SUB_PATH = "subPath"; + @SerializedName(SERIALIZED_NAME_SUB_PATH) + private String subPath; - @SerializedName("subPath") - private String subPath = null; + public static final String SERIALIZED_NAME_SUB_PATH_EXPR = "subPathExpr"; + @SerializedName(SERIALIZED_NAME_SUB_PATH_EXPR) + private String subPathExpr; - @SerializedName("subPathExpr") - private String subPathExpr = null; public V1VolumeMount mountPath(String mountPath) { + this.mountPath = mountPath; return this; } @@ -57,15 +68,20 @@ public V1VolumeMount mountPath(String mountPath) { * @return mountPath **/ @ApiModelProperty(required = true, value = "Path within the container at which the volume should be mounted. Must not contain ':'.") + public String getMountPath() { return mountPath; } + + public void setMountPath(String mountPath) { this.mountPath = mountPath; } + public V1VolumeMount mountPropagation(String mountPropagation) { + this.mountPropagation = mountPropagation; return this; } @@ -74,16 +90,22 @@ public V1VolumeMount mountPropagation(String mountPropagation) { * mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10. * @return mountPropagation **/ + @javax.annotation.Nullable @ApiModelProperty(value = "mountPropagation determines how mounts are propagated from the host to container and the other way around. When not set, MountPropagationNone is used. This field is beta in 1.10.") + public String getMountPropagation() { return mountPropagation; } + + public void setMountPropagation(String mountPropagation) { this.mountPropagation = mountPropagation; } + public V1VolumeMount name(String name) { + this.name = name; return this; } @@ -93,15 +115,20 @@ public V1VolumeMount name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "This must match the Name of a Volume.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1VolumeMount readOnly(Boolean readOnly) { + this.readOnly = readOnly; return this; } @@ -110,16 +137,22 @@ public V1VolumeMount readOnly(Boolean readOnly) { * Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false. * @return readOnly **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Mounted read-only if true, read-write otherwise (false or unspecified). Defaults to false.") - public Boolean isReadOnly() { + + public Boolean getReadOnly() { return readOnly; } + + public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + public V1VolumeMount subPath(String subPath) { + this.subPath = subPath; return this; } @@ -128,29 +161,39 @@ public V1VolumeMount subPath(String subPath) { * Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root). * @return subPath **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Path within the volume from which the container's volume should be mounted. Defaults to \"\" (volume's root).") + public String getSubPath() { return subPath; } + + public void setSubPath(String subPath) { this.subPath = subPath; } + public V1VolumeMount subPathExpr(String subPathExpr) { + this.subPathExpr = subPathExpr; return this; } /** - * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14. + * Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15. * @return subPathExpr **/ - @ApiModelProperty(value = "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14.") + @javax.annotation.Nullable + @ApiModelProperty(value = "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15.") + public String getSubPathExpr() { return subPathExpr; } + + public void setSubPathExpr(String subPathExpr) { this.subPathExpr = subPathExpr; } @@ -158,24 +201,12 @@ public void setSubPathExpr(String subPathExpr) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeMount v1VolumeMount = (V1VolumeMount) o; - return Objects.equals(this.mountPath, v1VolumeMount.mountPath) && - Objects.equals(this.mountPropagation, v1VolumeMount.mountPropagation) && - Objects.equals(this.name, v1VolumeMount.name) && - Objects.equals(this.readOnly, v1VolumeMount.readOnly) && - Objects.equals(this.subPath, v1VolumeMount.subPath) && - Objects.equals(this.subPathExpr, v1VolumeMount.subPathExpr); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(mountPath, mountPropagation, name, readOnly, subPath, subPathExpr); + return HashCodeBuilder.reflectionHashCode(this); } @@ -183,7 +214,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeMount {\n"); - sb.append(" mountPath: ").append(toIndentedString(mountPath)).append("\n"); sb.append(" mountPropagation: ").append(toIndentedString(mountPropagation)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeNodeAffinity.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeNodeAffinity.java index 918ecd2c2b..cd33709ebe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeNodeAffinity.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeNodeAffinity.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from. */ @ApiModel(description = "VolumeNodeAffinity defines constraints that limit what nodes this volume can be accessed from.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeNodeAffinity { - @SerializedName("required") - private V1NodeSelector required = null; + public static final String SERIALIZED_NAME_REQUIRED = "required"; + @SerializedName(SERIALIZED_NAME_REQUIRED) + private V1NodeSelector required; + public V1VolumeNodeAffinity required(V1NodeSelector required) { + this.required = required; return this; } /** - * Required specifies hard node constraints that must be met. + * Get required * @return required **/ - @ApiModelProperty(value = "Required specifies hard node constraints that must be met.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1NodeSelector getRequired() { return required; } + + public void setRequired(V1NodeSelector required) { this.required = required; } @@ -54,19 +64,12 @@ public void setRequired(V1NodeSelector required) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeNodeAffinity v1VolumeNodeAffinity = (V1VolumeNodeAffinity) o; - return Objects.equals(this.required, v1VolumeNodeAffinity.required); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(required); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeNodeAffinity {\n"); - sb.append(" required: ").append(toIndentedString(required)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeProjection.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeProjection.java index 9c99a390f5..b57eabd341 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeProjection.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VolumeProjection.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,88 +34,116 @@ * Projection that may be projected along with other supported volume types */ @ApiModel(description = "Projection that may be projected along with other supported volume types") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VolumeProjection { - @SerializedName("configMap") - private V1ConfigMapProjection configMap = null; + public static final String SERIALIZED_NAME_CONFIG_MAP = "configMap"; + @SerializedName(SERIALIZED_NAME_CONFIG_MAP) + private V1ConfigMapProjection configMap; + + public static final String SERIALIZED_NAME_DOWNWARD_A_P_I = "downwardAPI"; + @SerializedName(SERIALIZED_NAME_DOWNWARD_A_P_I) + private V1DownwardAPIProjection downwardAPI; - @SerializedName("downwardAPI") - private V1DownwardAPIProjection downwardAPI = null; + public static final String SERIALIZED_NAME_SECRET = "secret"; + @SerializedName(SERIALIZED_NAME_SECRET) + private V1SecretProjection secret; - @SerializedName("secret") - private V1SecretProjection secret = null; + public static final String SERIALIZED_NAME_SERVICE_ACCOUNT_TOKEN = "serviceAccountToken"; + @SerializedName(SERIALIZED_NAME_SERVICE_ACCOUNT_TOKEN) + private V1ServiceAccountTokenProjection serviceAccountToken; - @SerializedName("serviceAccountToken") - private V1ServiceAccountTokenProjection serviceAccountToken = null; public V1VolumeProjection configMap(V1ConfigMapProjection configMap) { + this.configMap = configMap; return this; } /** - * information about the configMap data to project + * Get configMap * @return configMap **/ - @ApiModelProperty(value = "information about the configMap data to project") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ConfigMapProjection getConfigMap() { return configMap; } + + public void setConfigMap(V1ConfigMapProjection configMap) { this.configMap = configMap; } + public V1VolumeProjection downwardAPI(V1DownwardAPIProjection downwardAPI) { + this.downwardAPI = downwardAPI; return this; } /** - * information about the downwardAPI data to project + * Get downwardAPI * @return downwardAPI **/ - @ApiModelProperty(value = "information about the downwardAPI data to project") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DownwardAPIProjection getDownwardAPI() { return downwardAPI; } + + public void setDownwardAPI(V1DownwardAPIProjection downwardAPI) { this.downwardAPI = downwardAPI; } + public V1VolumeProjection secret(V1SecretProjection secret) { + this.secret = secret; return this; } /** - * information about the secret data to project + * Get secret * @return secret **/ - @ApiModelProperty(value = "information about the secret data to project") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1SecretProjection getSecret() { return secret; } + + public void setSecret(V1SecretProjection secret) { this.secret = secret; } + public V1VolumeProjection serviceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { + this.serviceAccountToken = serviceAccountToken; return this; } /** - * information about the serviceAccountToken data to project + * Get serviceAccountToken * @return serviceAccountToken **/ - @ApiModelProperty(value = "information about the serviceAccountToken data to project") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ServiceAccountTokenProjection getServiceAccountToken() { return serviceAccountToken; } + + public void setServiceAccountToken(V1ServiceAccountTokenProjection serviceAccountToken) { this.serviceAccountToken = serviceAccountToken; } @@ -120,22 +151,12 @@ public void setServiceAccountToken(V1ServiceAccountTokenProjection serviceAccoun @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VolumeProjection v1VolumeProjection = (V1VolumeProjection) o; - return Objects.equals(this.configMap, v1VolumeProjection.configMap) && - Objects.equals(this.downwardAPI, v1VolumeProjection.downwardAPI) && - Objects.equals(this.secret, v1VolumeProjection.secret) && - Objects.equals(this.serviceAccountToken, v1VolumeProjection.serviceAccountToken); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(configMap, downwardAPI, secret, serviceAccountToken); + return HashCodeBuilder.reflectionHashCode(this); } @@ -143,7 +164,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VolumeProjection {\n"); - sb.append(" configMap: ").append(toIndentedString(configMap)).append("\n"); sb.append(" downwardAPI: ").append(toIndentedString(downwardAPI)).append("\n"); sb.append(" secret: ").append(toIndentedString(secret)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSource.java index 8e325a814a..b1501f841a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Represents a vSphere volume resource. */ @ApiModel(description = "Represents a vSphere volume resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1VsphereVirtualDiskVolumeSource { - @SerializedName("fsType") - private String fsType = null; + public static final String SERIALIZED_NAME_FS_TYPE = "fsType"; + @SerializedName(SERIALIZED_NAME_FS_TYPE) + private String fsType; + + public static final String SERIALIZED_NAME_STORAGE_POLICY_I_D = "storagePolicyID"; + @SerializedName(SERIALIZED_NAME_STORAGE_POLICY_I_D) + private String storagePolicyID; - @SerializedName("storagePolicyID") - private String storagePolicyID = null; + public static final String SERIALIZED_NAME_STORAGE_POLICY_NAME = "storagePolicyName"; + @SerializedName(SERIALIZED_NAME_STORAGE_POLICY_NAME) + private String storagePolicyName; - @SerializedName("storagePolicyName") - private String storagePolicyName = null; + public static final String SERIALIZED_NAME_VOLUME_PATH = "volumePath"; + @SerializedName(SERIALIZED_NAME_VOLUME_PATH) + private String volumePath; - @SerializedName("volumePath") - private String volumePath = null; public V1VsphereVirtualDiskVolumeSource fsType(String fsType) { + this.fsType = fsType; return this; } @@ -50,16 +59,22 @@ public V1VsphereVirtualDiskVolumeSource fsType(String fsType) { * Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. * @return fsType **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified.") + public String getFsType() { return fsType; } + + public void setFsType(String fsType) { this.fsType = fsType; } + public V1VsphereVirtualDiskVolumeSource storagePolicyID(String storagePolicyID) { + this.storagePolicyID = storagePolicyID; return this; } @@ -68,16 +83,22 @@ public V1VsphereVirtualDiskVolumeSource storagePolicyID(String storagePolicyID) * Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. * @return storagePolicyID **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName.") + public String getStoragePolicyID() { return storagePolicyID; } + + public void setStoragePolicyID(String storagePolicyID) { this.storagePolicyID = storagePolicyID; } + public V1VsphereVirtualDiskVolumeSource storagePolicyName(String storagePolicyName) { + this.storagePolicyName = storagePolicyName; return this; } @@ -86,16 +107,22 @@ public V1VsphereVirtualDiskVolumeSource storagePolicyName(String storagePolicyNa * Storage Policy Based Management (SPBM) profile name. * @return storagePolicyName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Storage Policy Based Management (SPBM) profile name.") + public String getStoragePolicyName() { return storagePolicyName; } + + public void setStoragePolicyName(String storagePolicyName) { this.storagePolicyName = storagePolicyName; } + public V1VsphereVirtualDiskVolumeSource volumePath(String volumePath) { + this.volumePath = volumePath; return this; } @@ -105,10 +132,13 @@ public V1VsphereVirtualDiskVolumeSource volumePath(String volumePath) { * @return volumePath **/ @ApiModelProperty(required = true, value = "Path that identifies vSphere volume vmdk") + public String getVolumePath() { return volumePath; } + + public void setVolumePath(String volumePath) { this.volumePath = volumePath; } @@ -116,22 +146,12 @@ public void setVolumePath(String volumePath) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1VsphereVirtualDiskVolumeSource v1VsphereVirtualDiskVolumeSource = (V1VsphereVirtualDiskVolumeSource) o; - return Objects.equals(this.fsType, v1VsphereVirtualDiskVolumeSource.fsType) && - Objects.equals(this.storagePolicyID, v1VsphereVirtualDiskVolumeSource.storagePolicyID) && - Objects.equals(this.storagePolicyName, v1VsphereVirtualDiskVolumeSource.storagePolicyName) && - Objects.equals(this.volumePath, v1VsphereVirtualDiskVolumeSource.volumePath); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(fsType, storagePolicyID, storagePolicyName, volumePath); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1VsphereVirtualDiskVolumeSource {\n"); - sb.append(" fsType: ").append(toIndentedString(fsType)).append("\n"); sb.append(" storagePolicyID: ").append(toIndentedString(storagePolicyID)).append("\n"); sb.append(" storagePolicyName: ").append(toIndentedString(storagePolicyName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1WatchEvent.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1WatchEvent.java index 3c84b07e1b..5623185682 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1WatchEvent.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1WatchEvent.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,42 @@ * Event represents a single event to a watched resource. */ @ApiModel(description = "Event represents a single event to a watched resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1WatchEvent { - @SerializedName("object") - private RuntimeRawExtension object = null; + public static final String SERIALIZED_NAME_OBJECT = "object"; + @SerializedName(SERIALIZED_NAME_OBJECT) + private RuntimeRawExtension _object; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; - public V1WatchEvent object(RuntimeRawExtension object) { - this.object = object; + public V1WatchEvent _object(RuntimeRawExtension _object) { + + this._object = _object; return this; } /** - * Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context. - * @return object + * Get _object + * @return _object **/ - @ApiModelProperty(required = true, value = "Object is: * If Type is Added or Modified: the new state of the object. * If Type is Deleted: the state of the object immediately before deletion. * If Type is Error: *Status is recommended; other types may make sense depending on context.") + @ApiModelProperty(required = true, value = "") + public RuntimeRawExtension getObject() { - return object; + return _object; } - public void setObject(RuntimeRawExtension object) { - this.object = object; + + + public void setObject(RuntimeRawExtension _object) { + this._object = _object; } + public V1WatchEvent type(String type) { + this.type = type; return this; } @@ -64,10 +76,13 @@ public V1WatchEvent type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +90,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1WatchEvent v1WatchEvent = (V1WatchEvent) o; - return Objects.equals(this.object, v1WatchEvent.object) && - Objects.equals(this.type, v1WatchEvent.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(object, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,8 +103,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1WatchEvent {\n"); - - sb.append(" object: ").append(toIndentedString(object)).append("\n"); + sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1WeightedPodAffinityTerm.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1WeightedPodAffinityTerm.java index 71692ea1d6..bbd94465fd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1WeightedPodAffinityTerm.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1WeightedPodAffinityTerm.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,42 @@ * The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s) */ @ApiModel(description = "The weights of all of the matched WeightedPodAffinityTerm fields are added per-node to find the most preferred node(s)") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1WeightedPodAffinityTerm { - @SerializedName("podAffinityTerm") - private V1PodAffinityTerm podAffinityTerm = null; + public static final String SERIALIZED_NAME_POD_AFFINITY_TERM = "podAffinityTerm"; + @SerializedName(SERIALIZED_NAME_POD_AFFINITY_TERM) + private V1PodAffinityTerm podAffinityTerm; + + public static final String SERIALIZED_NAME_WEIGHT = "weight"; + @SerializedName(SERIALIZED_NAME_WEIGHT) + private Integer weight; - @SerializedName("weight") - private Integer weight = null; public V1WeightedPodAffinityTerm podAffinityTerm(V1PodAffinityTerm podAffinityTerm) { + this.podAffinityTerm = podAffinityTerm; return this; } /** - * Required. A pod affinity term, associated with the corresponding weight. + * Get podAffinityTerm * @return podAffinityTerm **/ - @ApiModelProperty(required = true, value = "Required. A pod affinity term, associated with the corresponding weight.") + @ApiModelProperty(required = true, value = "") + public V1PodAffinityTerm getPodAffinityTerm() { return podAffinityTerm; } + + public void setPodAffinityTerm(V1PodAffinityTerm podAffinityTerm) { this.podAffinityTerm = podAffinityTerm; } + public V1WeightedPodAffinityTerm weight(Integer weight) { + this.weight = weight; return this; } @@ -64,10 +76,13 @@ public V1WeightedPodAffinityTerm weight(Integer weight) { * @return weight **/ @ApiModelProperty(required = true, value = "weight associated with matching the corresponding podAffinityTerm, in the range 1-100.") + public Integer getWeight() { return weight; } + + public void setWeight(Integer weight) { this.weight = weight; } @@ -75,20 +90,12 @@ public void setWeight(Integer weight) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1WeightedPodAffinityTerm v1WeightedPodAffinityTerm = (V1WeightedPodAffinityTerm) o; - return Objects.equals(this.podAffinityTerm, v1WeightedPodAffinityTerm.podAffinityTerm) && - Objects.equals(this.weight, v1WeightedPodAffinityTerm.weight); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(podAffinityTerm, weight); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1WeightedPodAffinityTerm {\n"); - sb.append(" podAffinityTerm: ").append(toIndentedString(podAffinityTerm)).append("\n"); sb.append(" weight: ").append(toIndentedString(weight)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1WindowsSecurityContextOptions.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1WindowsSecurityContextOptions.java new file mode 100644 index 0000000000..fa9b70c7c5 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1WindowsSecurityContextOptions.java @@ -0,0 +1,125 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +/** + * WindowsSecurityContextOptions contain Windows-specific options and credentials. + */ +@ApiModel(description = "WindowsSecurityContextOptions contain Windows-specific options and credentials.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") +public class V1WindowsSecurityContextOptions { + public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC = "gmsaCredentialSpec"; + @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC) + private String gmsaCredentialSpec; + + public static final String SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC_NAME = "gmsaCredentialSpecName"; + @SerializedName(SERIALIZED_NAME_GMSA_CREDENTIAL_SPEC_NAME) + private String gmsaCredentialSpecName; + + + public V1WindowsSecurityContextOptions gmsaCredentialSpec(String gmsaCredentialSpec) { + + this.gmsaCredentialSpec = gmsaCredentialSpec; + return this; + } + + /** + * GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. + * @return gmsaCredentialSpec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.") + + public String getGmsaCredentialSpec() { + return gmsaCredentialSpec; + } + + + + public void setGmsaCredentialSpec(String gmsaCredentialSpec) { + this.gmsaCredentialSpec = gmsaCredentialSpec; + } + + + public V1WindowsSecurityContextOptions gmsaCredentialSpecName(String gmsaCredentialSpecName) { + + this.gmsaCredentialSpecName = gmsaCredentialSpecName; + return this; + } + + /** + * GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag. + * @return gmsaCredentialSpecName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.") + + public String getGmsaCredentialSpecName() { + return gmsaCredentialSpecName; + } + + + + public void setGmsaCredentialSpecName(String gmsaCredentialSpecName) { + this.gmsaCredentialSpecName = gmsaCredentialSpecName; + } + + + @Override + public boolean equals(java.lang.Object o) { + return EqualsBuilder.reflectionEquals(this, o); + } + + @Override + public int hashCode() { + return HashCodeBuilder.reflectionHashCode(this); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1WindowsSecurityContextOptions {\n"); + sb.append(" gmsaCredentialSpec: ").append(toIndentedString(gmsaCredentialSpec)).append("\n"); + sb.append(" gmsaCredentialSpecName: ").append(toIndentedString(gmsaCredentialSpecName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AggregationRule.java index 215193d73f..483ed68e90 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AggregationRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1AggregationRule { - @SerializedName("clusterRoleSelectors") + public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; + @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) private List clusterRoleSelectors = null; + public V1alpha1AggregationRule clusterRoleSelectors(List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -52,11 +58,15 @@ public V1alpha1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector clust * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added * @return clusterRoleSelectors **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") + public List getClusterRoleSelectors() { return clusterRoleSelectors; } + + public void setClusterRoleSelectors(List clusterRoleSelectors) { this.clusterRoleSelectors = clusterRoleSelectors; } @@ -64,19 +74,12 @@ public void setClusterRoleSelectors(List clusterRoleSelectors) @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1AggregationRule v1alpha1AggregationRule = (V1alpha1AggregationRule) o; - return Objects.equals(this.clusterRoleSelectors, v1alpha1AggregationRule.clusterRoleSelectors); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clusterRoleSelectors); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1AggregationRule {\n"); - sb.append(" clusterRoleSelectors: ").append(toIndentedString(clusterRoleSelectors)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSink.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSink.java index 5b890b270e..dfc55a091b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSink.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSink.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * AuditSink represents a cluster level audit sink */ @ApiModel(description = "AuditSink represents a cluster level audit sink") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1AuditSink { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1AuditSinkSpec spec; - @SerializedName("spec") - private V1alpha1AuditSinkSpec spec = null; public V1alpha1AuditSink apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1alpha1AuditSink apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1AuditSink kind(String kind) { + this.kind = kind; return this; } @@ -70,16 +85,22 @@ public V1alpha1AuditSink kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1AuditSink metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -88,29 +109,39 @@ public V1alpha1AuditSink metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1AuditSink spec(V1alpha1AuditSinkSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the audit configuration spec + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the audit configuration spec") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1AuditSinkSpec getSpec() { return spec; } + + public void setSpec(V1alpha1AuditSinkSpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1alpha1AuditSinkSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1AuditSink v1alpha1AuditSink = (V1alpha1AuditSink) o; - return Objects.equals(this.apiVersion, v1alpha1AuditSink.apiVersion) && - Objects.equals(this.kind, v1alpha1AuditSink.kind) && - Objects.equals(this.metadata, v1alpha1AuditSink.metadata) && - Objects.equals(this.spec, v1alpha1AuditSink.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1AuditSink {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkList.java index 90bbd666c1..decd1a441a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * AuditSinkList is a list of AuditSink items. */ @ApiModel(description = "AuditSinkList is a list of AuditSink items.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1AuditSinkList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1AuditSinkList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1AuditSinkList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1AuditSinkList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1AuditSinkList addItemsItem(V1alpha1AuditSink itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of audit configurations.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1AuditSinkList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1alpha1AuditSinkList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1AuditSinkList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1alpha1AuditSinkList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1AuditSinkList v1alpha1AuditSinkList = (V1alpha1AuditSinkList) o; - return Objects.equals(this.apiVersion, v1alpha1AuditSinkList.apiVersion) && - Objects.equals(this.items, v1alpha1AuditSinkList.items) && - Objects.equals(this.kind, v1alpha1AuditSinkList.kind) && - Objects.equals(this.metadata, v1alpha1AuditSinkList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1AuditSinkList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkSpec.java index e12fdf0cf0..a122b0faa4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1AuditSinkSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,58 @@ * AuditSinkSpec holds the spec for the audit sink */ @ApiModel(description = "AuditSinkSpec holds the spec for the audit sink") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1AuditSinkSpec { - @SerializedName("policy") - private V1alpha1Policy policy = null; + public static final String SERIALIZED_NAME_POLICY = "policy"; + @SerializedName(SERIALIZED_NAME_POLICY) + private V1alpha1Policy policy; + + public static final String SERIALIZED_NAME_WEBHOOK = "webhook"; + @SerializedName(SERIALIZED_NAME_WEBHOOK) + private V1alpha1Webhook webhook; - @SerializedName("webhook") - private V1alpha1Webhook webhook = null; public V1alpha1AuditSinkSpec policy(V1alpha1Policy policy) { + this.policy = policy; return this; } /** - * Policy defines the policy for selecting which events should be sent to the webhook required + * Get policy * @return policy **/ - @ApiModelProperty(required = true, value = "Policy defines the policy for selecting which events should be sent to the webhook required") + @ApiModelProperty(required = true, value = "") + public V1alpha1Policy getPolicy() { return policy; } + + public void setPolicy(V1alpha1Policy policy) { this.policy = policy; } + public V1alpha1AuditSinkSpec webhook(V1alpha1Webhook webhook) { + this.webhook = webhook; return this; } /** - * Webhook to send events required + * Get webhook * @return webhook **/ - @ApiModelProperty(required = true, value = "Webhook to send events required") + @ApiModelProperty(required = true, value = "") + public V1alpha1Webhook getWebhook() { return webhook; } + + public void setWebhook(V1alpha1Webhook webhook) { this.webhook = webhook; } @@ -76,20 +91,12 @@ public void setWebhook(V1alpha1Webhook webhook) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1AuditSinkSpec v1alpha1AuditSinkSpec = (V1alpha1AuditSinkSpec) o; - return Objects.equals(this.policy, v1alpha1AuditSinkSpec.policy) && - Objects.equals(this.webhook, v1alpha1AuditSinkSpec.webhook); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(policy, webhook); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1AuditSinkSpec {\n"); - sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRole.java index 40489e5aa5..e28de68621 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRole.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,42 +35,55 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1ClusterRole { - @SerializedName("aggregationRule") - private V1alpha1AggregationRule aggregationRule = null; + public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; + @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) + private V1alpha1AggregationRule aggregationRule; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; + public V1alpha1ClusterRole aggregationRule(V1alpha1AggregationRule aggregationRule) { + this.aggregationRule = aggregationRule; return this; } /** - * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * Get aggregationRule * @return aggregationRule **/ - @ApiModelProperty(value = "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1AggregationRule getAggregationRule() { return aggregationRule; } + + public void setAggregationRule(V1alpha1AggregationRule aggregationRule) { this.aggregationRule = aggregationRule; } + public V1alpha1ClusterRole apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -76,16 +92,22 @@ public V1alpha1ClusterRole apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1ClusterRole kind(String kind) { + this.kind = kind; return this; } @@ -94,34 +116,46 @@ public V1alpha1ClusterRole kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1ClusterRole metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1ClusterRole rules(List rules) { + this.rules = rules; return this; } @@ -138,11 +172,15 @@ public V1alpha1ClusterRole addRulesItem(V1alpha1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this ClusterRole * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } @@ -150,23 +188,12 @@ public void setRules(List rules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterRole v1alpha1ClusterRole = (V1alpha1ClusterRole) o; - return Objects.equals(this.aggregationRule, v1alpha1ClusterRole.aggregationRule) && - Objects.equals(this.apiVersion, v1alpha1ClusterRole.apiVersion) && - Objects.equals(this.kind, v1alpha1ClusterRole.kind) && - Objects.equals(this.metadata, v1alpha1ClusterRole.metadata) && - Objects.equals(this.rules, v1alpha1ClusterRole.rules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(aggregationRule, apiVersion, kind, metadata, rules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +201,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1ClusterRole {\n"); - sb.append(" aggregationRule: ").append(toIndentedString(aggregationRule)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBinding.java index 8f2d41092d..c93267bfdc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBinding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,24 +35,31 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1ClusterRoleBinding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("roleRef") - private V1alpha1RoleRef roleRef = null; + public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; + @SerializedName(SERIALIZED_NAME_ROLE_REF) + private V1alpha1RoleRef roleRef; - @SerializedName("subjects") + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = null; + public V1alpha1ClusterRoleBinding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -58,16 +68,22 @@ public V1alpha1ClusterRoleBinding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1ClusterRoleBinding kind(String kind) { + this.kind = kind; return this; } @@ -76,52 +92,69 @@ public V1alpha1ClusterRoleBinding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1ClusterRoleBinding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1ClusterRoleBinding roleRef(V1alpha1RoleRef roleRef) { + this.roleRef = roleRef; return this; } /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.") + @ApiModelProperty(required = true, value = "") + public V1alpha1RoleRef getRoleRef() { return roleRef; } + + public void setRoleRef(V1alpha1RoleRef roleRef) { this.roleRef = roleRef; } + public V1alpha1ClusterRoleBinding subjects(List subjects) { + this.subjects = subjects; return this; } @@ -138,11 +171,15 @@ public V1alpha1ClusterRoleBinding addSubjectsItem(V1alpha1Subject subjectsItem) * Subjects holds references to the objects the role applies to. * @return subjects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") + public List getSubjects() { return subjects; } + + public void setSubjects(List subjects) { this.subjects = subjects; } @@ -150,23 +187,12 @@ public void setSubjects(List subjects) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterRoleBinding v1alpha1ClusterRoleBinding = (V1alpha1ClusterRoleBinding) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterRoleBinding.apiVersion) && - Objects.equals(this.kind, v1alpha1ClusterRoleBinding.kind) && - Objects.equals(this.metadata, v1alpha1ClusterRoleBinding.metadata) && - Objects.equals(this.roleRef, v1alpha1ClusterRoleBinding.roleRef) && - Objects.equals(this.subjects, v1alpha1ClusterRoleBinding.subjects); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +200,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1ClusterRoleBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingList.java index 0e0d726349..80a3d3cd3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1ClusterRoleBindingList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1ClusterRoleBindingList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1ClusterRoleBindingList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1ClusterRoleBindingList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1ClusterRoleBindingList addItemsItem(V1alpha1ClusterRoleBinding it * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ClusterRoleBindings") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1ClusterRoleBindingList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1ClusterRoleBindingList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1ClusterRoleBindingList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterRoleBindingList v1alpha1ClusterRoleBindingList = (V1alpha1ClusterRoleBindingList) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterRoleBindingList.apiVersion) && - Objects.equals(this.items, v1alpha1ClusterRoleBindingList.items) && - Objects.equals(this.kind, v1alpha1ClusterRoleBindingList.kind) && - Objects.equals(this.metadata, v1alpha1ClusterRoleBindingList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1ClusterRoleBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleList.java index 16c86e8f22..3c23be190f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ClusterRoleList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1ClusterRoleList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1ClusterRoleList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1ClusterRoleList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1ClusterRoleList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1ClusterRoleList addItemsItem(V1alpha1ClusterRole itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ClusterRoles") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1ClusterRoleList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1ClusterRoleList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1ClusterRoleList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ClusterRoleList v1alpha1ClusterRoleList = (V1alpha1ClusterRoleList) o; - return Objects.equals(this.apiVersion, v1alpha1ClusterRoleList.apiVersion) && - Objects.equals(this.items, v1alpha1ClusterRoleList.items) && - Objects.equals(this.kind, v1alpha1ClusterRoleList.kind) && - Objects.equals(this.metadata, v1alpha1ClusterRoleList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1ClusterRoleList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPreset.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPreset.java index 946823ccaa..ccb2d73acd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPreset.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPreset.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * PodPreset is a policy resource that defines additional runtime requirements for a Pod. */ @ApiModel(description = "PodPreset is a policy resource that defines additional runtime requirements for a Pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1PodPreset { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1PodPresetSpec spec; - @SerializedName("spec") - private V1alpha1PodPresetSpec spec = null; public V1alpha1PodPreset apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1alpha1PodPreset apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1PodPreset kind(String kind) { + this.kind = kind; return this; } @@ -70,16 +85,22 @@ public V1alpha1PodPreset kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1PodPreset metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -88,16 +109,22 @@ public V1alpha1PodPreset metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1PodPreset spec(V1alpha1PodPresetSpec spec) { + this.spec = spec; return this; } @@ -106,11 +133,15 @@ public V1alpha1PodPreset spec(V1alpha1PodPresetSpec spec) { * Get spec * @return spec **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1alpha1PodPresetSpec getSpec() { return spec; } + + public void setSpec(V1alpha1PodPresetSpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1alpha1PodPresetSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1PodPreset v1alpha1PodPreset = (V1alpha1PodPreset) o; - return Objects.equals(this.apiVersion, v1alpha1PodPreset.apiVersion) && - Objects.equals(this.kind, v1alpha1PodPreset.kind) && - Objects.equals(this.metadata, v1alpha1PodPreset.metadata) && - Objects.equals(this.spec, v1alpha1PodPreset.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1PodPreset {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetList.java index aed066c922..c271b32773 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PodPresetList is a list of PodPreset objects. */ @ApiModel(description = "PodPresetList is a list of PodPreset objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1PodPresetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1PodPresetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1PodPresetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1PodPresetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1PodPresetList addItemsItem(V1alpha1PodPreset itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1PodPresetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1PodPresetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1PodPresetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1PodPresetList v1alpha1PodPresetList = (V1alpha1PodPresetList) o; - return Objects.equals(this.apiVersion, v1alpha1PodPresetList.apiVersion) && - Objects.equals(this.items, v1alpha1PodPresetList.items) && - Objects.equals(this.kind, v1alpha1PodPresetList.kind) && - Objects.equals(this.metadata, v1alpha1PodPresetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1PodPresetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetSpec.java index 61b206f3a3..ab31e20d58 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PodPresetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -34,24 +37,31 @@ * PodPresetSpec is a description of a pod preset. */ @ApiModel(description = "PodPresetSpec is a description of a pod preset.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1PodPresetSpec { - @SerializedName("env") + public static final String SERIALIZED_NAME_ENV = "env"; + @SerializedName(SERIALIZED_NAME_ENV) private List env = null; - @SerializedName("envFrom") + public static final String SERIALIZED_NAME_ENV_FROM = "envFrom"; + @SerializedName(SERIALIZED_NAME_ENV_FROM) private List envFrom = null; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("volumeMounts") + public static final String SERIALIZED_NAME_VOLUME_MOUNTS = "volumeMounts"; + @SerializedName(SERIALIZED_NAME_VOLUME_MOUNTS) private List volumeMounts = null; - @SerializedName("volumes") + public static final String SERIALIZED_NAME_VOLUMES = "volumes"; + @SerializedName(SERIALIZED_NAME_VOLUMES) private List volumes = null; + public V1alpha1PodPresetSpec env(List env) { + this.env = env; return this; } @@ -68,16 +78,22 @@ public V1alpha1PodPresetSpec addEnvItem(V1EnvVar envItem) { * Env defines the collection of EnvVar to inject into containers. * @return env **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Env defines the collection of EnvVar to inject into containers.") + public List getEnv() { return env; } + + public void setEnv(List env) { this.env = env; } + public V1alpha1PodPresetSpec envFrom(List envFrom) { + this.envFrom = envFrom; return this; } @@ -94,34 +110,46 @@ public V1alpha1PodPresetSpec addEnvFromItem(V1EnvFromSource envFromItem) { * EnvFrom defines the collection of EnvFromSource to inject into containers. * @return envFrom **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EnvFrom defines the collection of EnvFromSource to inject into containers.") + public List getEnvFrom() { return envFrom; } + + public void setEnvFrom(List envFrom) { this.envFrom = envFrom; } + public V1alpha1PodPresetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Selector is a label query over a set of resources, in this case pods. Required. + * Get selector * @return selector **/ - @ApiModelProperty(value = "Selector is a label query over a set of resources, in this case pods. Required.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1alpha1PodPresetSpec volumeMounts(List volumeMounts) { + this.volumeMounts = volumeMounts; return this; } @@ -138,16 +166,22 @@ public V1alpha1PodPresetSpec addVolumeMountsItem(V1VolumeMount volumeMountsItem) * VolumeMounts defines the collection of VolumeMount to inject into containers. * @return volumeMounts **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeMounts defines the collection of VolumeMount to inject into containers.") + public List getVolumeMounts() { return volumeMounts; } + + public void setVolumeMounts(List volumeMounts) { this.volumeMounts = volumeMounts; } + public V1alpha1PodPresetSpec volumes(List volumes) { + this.volumes = volumes; return this; } @@ -164,11 +198,15 @@ public V1alpha1PodPresetSpec addVolumesItem(V1Volume volumesItem) { * Volumes defines the collection of Volume to inject into the pod. * @return volumes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Volumes defines the collection of Volume to inject into the pod.") + public List getVolumes() { return volumes; } + + public void setVolumes(List volumes) { this.volumes = volumes; } @@ -176,23 +214,12 @@ public void setVolumes(List volumes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1PodPresetSpec v1alpha1PodPresetSpec = (V1alpha1PodPresetSpec) o; - return Objects.equals(this.env, v1alpha1PodPresetSpec.env) && - Objects.equals(this.envFrom, v1alpha1PodPresetSpec.envFrom) && - Objects.equals(this.selector, v1alpha1PodPresetSpec.selector) && - Objects.equals(this.volumeMounts, v1alpha1PodPresetSpec.volumeMounts) && - Objects.equals(this.volumes, v1alpha1PodPresetSpec.volumes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(env, envFrom, selector, volumeMounts, volumes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -200,7 +227,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1PodPresetSpec {\n"); - sb.append(" env: ").append(toIndentedString(env)).append("\n"); sb.append(" envFrom: ").append(toIndentedString(envFrom)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Policy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Policy.java index 227e8673bc..f0b5481cae 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Policy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Policy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * Policy defines the configuration of how audit events are logged */ @ApiModel(description = "Policy defines the configuration of how audit events are logged") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1Policy { - @SerializedName("level") - private String level = null; + public static final String SERIALIZED_NAME_LEVEL = "level"; + @SerializedName(SERIALIZED_NAME_LEVEL) + private String level; - @SerializedName("stages") + public static final String SERIALIZED_NAME_STAGES = "stages"; + @SerializedName(SERIALIZED_NAME_STAGES) private List stages = null; + public V1alpha1Policy level(String level) { + this.level = level; return this; } @@ -47,15 +54,20 @@ public V1alpha1Policy level(String level) { * @return level **/ @ApiModelProperty(required = true, value = "The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required") + public String getLevel() { return level; } + + public void setLevel(String level) { this.level = level; } + public V1alpha1Policy stages(List stages) { + this.stages = stages; return this; } @@ -72,11 +84,15 @@ public V1alpha1Policy addStagesItem(String stagesItem) { * Stages is a list of stages for which events are created. * @return stages **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Stages is a list of stages for which events are created.") + public List getStages() { return stages; } + + public void setStages(List stages) { this.stages = stages; } @@ -84,20 +100,12 @@ public void setStages(List stages) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1Policy v1alpha1Policy = (V1alpha1Policy) o; - return Objects.equals(this.level, v1alpha1Policy.level) && - Objects.equals(this.stages, v1alpha1Policy.stages); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(level, stages); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +113,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1Policy {\n"); - sb.append(" level: ").append(toIndentedString(level)).append("\n"); sb.append(" stages: ").append(toIndentedString(stages)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PolicyRule.java index 252ecbd35f..85a15a391d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PolicyRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. */ @ApiModel(description = "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1PolicyRule { - @SerializedName("apiGroups") + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) private List apiGroups = null; - @SerializedName("nonResourceURLs") + public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) private List nonResourceURLs = null; - @SerializedName("resourceNames") + public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) private List resourceNames = null; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1alpha1PolicyRule apiGroups(List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -63,16 +73,22 @@ public V1alpha1PolicyRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. * @return apiGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.") + public List getApiGroups() { return apiGroups; } + + public void setApiGroups(List apiGroups) { this.apiGroups = apiGroups; } + public V1alpha1PolicyRule nonResourceURLs(List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -89,16 +105,22 @@ public V1alpha1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. * @return nonResourceURLs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path This name is intentionally different than the internal type so that the DefaultConvert works nicely and because the ordering may be different. Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") + public List getNonResourceURLs() { return nonResourceURLs; } + + public void setNonResourceURLs(List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } + public V1alpha1PolicyRule resourceNames(List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -115,16 +137,22 @@ public V1alpha1PolicyRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + public List getResourceNames() { return resourceNames; } + + public void setResourceNames(List resourceNames) { this.resourceNames = resourceNames; } + public V1alpha1PolicyRule resources(List resources) { + this.resources = resources; return this; } @@ -141,16 +169,22 @@ public V1alpha1PolicyRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. ResourceAll represents all resources. * @return resources **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. ResourceAll represents all resources.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } + public V1alpha1PolicyRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -165,10 +199,13 @@ public V1alpha1PolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -176,23 +213,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1PolicyRule v1alpha1PolicyRule = (V1alpha1PolicyRule) o; - return Objects.equals(this.apiGroups, v1alpha1PolicyRule.apiGroups) && - Objects.equals(this.nonResourceURLs, v1alpha1PolicyRule.nonResourceURLs) && - Objects.equals(this.resourceNames, v1alpha1PolicyRule.resourceNames) && - Objects.equals(this.resources, v1alpha1PolicyRule.resources) && - Objects.equals(this.verbs, v1alpha1PolicyRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -200,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1PolicyRule {\n"); - sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n"); sb.append(" resourceNames: ").append(toIndentedString(resourceNames)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClass.java index 06f55f6d7b..ad53a721d7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,39 @@ * DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1PriorityClass { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; - @SerializedName("description") - private String description = null; + public static final String SERIALIZED_NAME_GLOBAL_DEFAULT = "globalDefault"; + @SerializedName(SERIALIZED_NAME_GLOBAL_DEFAULT) + private Boolean globalDefault; - @SerializedName("globalDefault") - private Boolean globalDefault = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; + @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) + private String preemptionPolicy; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Integer value; - @SerializedName("value") - private Integer value = null; public V1alpha1PriorityClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,16 +72,22 @@ public V1alpha1PriorityClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1PriorityClass description(String description) { + this.description = description; return this; } @@ -75,16 +96,22 @@ public V1alpha1PriorityClass description(String description) { * description is an arbitrary string that usually provides guidelines on when this priority class should be used. * @return description **/ + @javax.annotation.Nullable @ApiModelProperty(value = "description is an arbitrary string that usually provides guidelines on when this priority class should be used.") + public String getDescription() { return description; } + + public void setDescription(String description) { this.description = description; } + public V1alpha1PriorityClass globalDefault(Boolean globalDefault) { + this.globalDefault = globalDefault; return this; } @@ -93,16 +120,22 @@ public V1alpha1PriorityClass globalDefault(Boolean globalDefault) { * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. * @return globalDefault **/ + @javax.annotation.Nullable @ApiModelProperty(value = "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.") - public Boolean isGlobalDefault() { + + public Boolean getGlobalDefault() { return globalDefault; } + + public void setGlobalDefault(Boolean globalDefault) { this.globalDefault = globalDefault; } + public V1alpha1PriorityClass kind(String kind) { + this.kind = kind; return this; } @@ -111,34 +144,70 @@ public V1alpha1PriorityClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1PriorityClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + + public V1alpha1PriorityClass preemptionPolicy(String preemptionPolicy) { + + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * @return preemptionPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.") + + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + + + public void setPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + public V1alpha1PriorityClass value(Integer value) { + this.value = value; return this; } @@ -148,10 +217,13 @@ public V1alpha1PriorityClass value(Integer value) { * @return value **/ @ApiModelProperty(required = true, value = "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") + public Integer getValue() { return value; } + + public void setValue(Integer value) { this.value = value; } @@ -159,24 +231,12 @@ public void setValue(Integer value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1PriorityClass v1alpha1PriorityClass = (V1alpha1PriorityClass) o; - return Objects.equals(this.apiVersion, v1alpha1PriorityClass.apiVersion) && - Objects.equals(this.description, v1alpha1PriorityClass.description) && - Objects.equals(this.globalDefault, v1alpha1PriorityClass.globalDefault) && - Objects.equals(this.kind, v1alpha1PriorityClass.kind) && - Objects.equals(this.metadata, v1alpha1PriorityClass.metadata) && - Objects.equals(this.value, v1alpha1PriorityClass.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, description, globalDefault, kind, metadata, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,12 +244,12 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1PriorityClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" globalDefault: ").append(toIndentedString(globalDefault)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClassList.java index 2ba88112ed..c2262ea0c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1PriorityClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1PriorityClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1PriorityClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1PriorityClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1PriorityClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1PriorityClassList addItemsItem(V1alpha1PriorityClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of PriorityClasses") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1PriorityClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1PriorityClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1PriorityClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1PriorityClassList v1alpha1PriorityClassList = (V1alpha1PriorityClassList) o; - return Objects.equals(this.apiVersion, v1alpha1PriorityClassList.apiVersion) && - Objects.equals(this.items, v1alpha1PriorityClassList.items) && - Objects.equals(this.kind, v1alpha1PriorityClassList.kind) && - Objects.equals(this.metadata, v1alpha1PriorityClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1PriorityClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Role.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Role.java index 12d28fe88a..c168a42f3d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Role.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1Role { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; + public V1alpha1Role apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1Role apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1Role kind(String kind) { + this.kind = kind; return this; } @@ -72,34 +87,46 @@ public V1alpha1Role kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1Role metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1Role rules(List rules) { + this.rules = rules; return this; } @@ -116,11 +143,15 @@ public V1alpha1Role addRulesItem(V1alpha1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this Role * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } @@ -128,22 +159,12 @@ public void setRules(List rules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1Role v1alpha1Role = (V1alpha1Role) o; - return Objects.equals(this.apiVersion, v1alpha1Role.apiVersion) && - Objects.equals(this.kind, v1alpha1Role.kind) && - Objects.equals(this.metadata, v1alpha1Role.metadata) && - Objects.equals(this.rules, v1alpha1Role.rules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, rules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1Role {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBinding.java index d6e561cf87..f663c4405a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBinding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,24 +35,31 @@ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. */ @ApiModel(description = "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RoleBinding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("roleRef") - private V1alpha1RoleRef roleRef = null; + public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; + @SerializedName(SERIALIZED_NAME_ROLE_REF) + private V1alpha1RoleRef roleRef; - @SerializedName("subjects") + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = null; + public V1alpha1RoleBinding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -58,16 +68,22 @@ public V1alpha1RoleBinding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1RoleBinding kind(String kind) { + this.kind = kind; return this; } @@ -76,52 +92,69 @@ public V1alpha1RoleBinding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1RoleBinding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1RoleBinding roleRef(V1alpha1RoleRef roleRef) { + this.roleRef = roleRef; return this; } /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.") + @ApiModelProperty(required = true, value = "") + public V1alpha1RoleRef getRoleRef() { return roleRef; } + + public void setRoleRef(V1alpha1RoleRef roleRef) { this.roleRef = roleRef; } + public V1alpha1RoleBinding subjects(List subjects) { + this.subjects = subjects; return this; } @@ -138,11 +171,15 @@ public V1alpha1RoleBinding addSubjectsItem(V1alpha1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") + public List getSubjects() { return subjects; } + + public void setSubjects(List subjects) { this.subjects = subjects; } @@ -150,23 +187,12 @@ public void setSubjects(List subjects) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RoleBinding v1alpha1RoleBinding = (V1alpha1RoleBinding) o; - return Objects.equals(this.apiVersion, v1alpha1RoleBinding.apiVersion) && - Objects.equals(this.kind, v1alpha1RoleBinding.kind) && - Objects.equals(this.metadata, v1alpha1RoleBinding.metadata) && - Objects.equals(this.roleRef, v1alpha1RoleBinding.roleRef) && - Objects.equals(this.subjects, v1alpha1RoleBinding.subjects); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +200,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RoleBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBindingList.java index fb50ce135e..3d7eba029e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleBindingList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RoleBindingList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1RoleBindingList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1RoleBindingList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1RoleBindingList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1RoleBindingList addItemsItem(V1alpha1RoleBinding itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of RoleBindings") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1RoleBindingList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1RoleBindingList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1RoleBindingList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RoleBindingList v1alpha1RoleBindingList = (V1alpha1RoleBindingList) o; - return Objects.equals(this.apiVersion, v1alpha1RoleBindingList.apiVersion) && - Objects.equals(this.items, v1alpha1RoleBindingList.items) && - Objects.equals(this.kind, v1alpha1RoleBindingList.kind) && - Objects.equals(this.metadata, v1alpha1RoleBindingList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RoleBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleList.java index 0b01362fad..0790d19a25 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RoleList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1RoleList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1RoleList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1RoleList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1RoleList addItemsItem(V1alpha1Role itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of Roles") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1RoleList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1RoleList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1RoleList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RoleList v1alpha1RoleList = (V1alpha1RoleList) o; - return Objects.equals(this.apiVersion, v1alpha1RoleList.apiVersion) && - Objects.equals(this.items, v1alpha1RoleList.items) && - Objects.equals(this.kind, v1alpha1RoleList.kind) && - Objects.equals(this.metadata, v1alpha1RoleList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RoleList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleRef.java index f830a89da4..9c0fd9051c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RoleRef.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RoleRef { - @SerializedName("apiGroup") - private String apiGroup = null; + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1alpha1RoleRef apiGroup(String apiGroup) { + this.apiGroup = apiGroup; return this; } @@ -48,15 +56,20 @@ public V1alpha1RoleRef apiGroup(String apiGroup) { * @return apiGroup **/ @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") + public String getApiGroup() { return apiGroup; } + + public void setApiGroup(String apiGroup) { this.apiGroup = apiGroup; } + public V1alpha1RoleRef kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +79,20 @@ public V1alpha1RoleRef kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1RoleRef name(String name) { + this.name = name; return this; } @@ -84,10 +102,13 @@ public V1alpha1RoleRef name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +116,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RoleRef v1alpha1RoleRef = (V1alpha1RoleRef) o; - return Objects.equals(this.apiGroup, v1alpha1RoleRef.apiGroup) && - Objects.equals(this.kind, v1alpha1RoleRef.kind) && - Objects.equals(this.name, v1alpha1RoleRef.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroup, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +129,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RoleRef {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClass.java index 399bd2f51e..6eb038923b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md */ @ApiModel(description = "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RuntimeClass { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1RuntimeClassSpec spec; - @SerializedName("spec") - private V1alpha1RuntimeClassSpec spec = null; public V1alpha1RuntimeClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1alpha1RuntimeClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1RuntimeClass kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,62 @@ public V1alpha1RuntimeClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1RuntimeClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1RuntimeClass spec(V1alpha1RuntimeClassSpec spec) { + this.spec = spec; return this; } /** - * Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Specification of the RuntimeClass More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @ApiModelProperty(required = true, value = "") + public V1alpha1RuntimeClassSpec getSpec() { return spec; } + + public void setSpec(V1alpha1RuntimeClassSpec spec) { this.spec = spec; } @@ -118,22 +148,12 @@ public void setSpec(V1alpha1RuntimeClassSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RuntimeClass v1alpha1RuntimeClass = (V1alpha1RuntimeClass) o; - return Objects.equals(this.apiVersion, v1alpha1RuntimeClass.apiVersion) && - Objects.equals(this.kind, v1alpha1RuntimeClass.kind) && - Objects.equals(this.metadata, v1alpha1RuntimeClass.metadata) && - Objects.equals(this.spec, v1alpha1RuntimeClass.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RuntimeClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassList.java index 31fe447227..c0f2a08c62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RuntimeClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1RuntimeClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1RuntimeClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1RuntimeClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1RuntimeClassList addItemsItem(V1alpha1RuntimeClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1RuntimeClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1RuntimeClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1RuntimeClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RuntimeClassList v1alpha1RuntimeClassList = (V1alpha1RuntimeClassList) o; - return Objects.equals(this.apiVersion, v1alpha1RuntimeClassList.apiVersion) && - Objects.equals(this.items, v1alpha1RuntimeClassList.items) && - Objects.equals(this.kind, v1alpha1RuntimeClassList.kind) && - Objects.equals(this.metadata, v1alpha1RuntimeClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RuntimeClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpec.java index 094d92d4ba..2abe2074b7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable. */ @ApiModel(description = "RuntimeClassSpec is a specification of a RuntimeClass. It contains parameters that are required to describe the RuntimeClass to the Container Runtime Interface (CRI) implementation, as well as any other components that need to understand how the pod will be run. The RuntimeClassSpec is immutable.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1RuntimeClassSpec { - @SerializedName("runtimeHandler") - private String runtimeHandler = null; + public static final String SERIALIZED_NAME_RUNTIME_HANDLER = "runtimeHandler"; + @SerializedName(SERIALIZED_NAME_RUNTIME_HANDLER) + private String runtimeHandler; + public V1alpha1RuntimeClassSpec runtimeHandler(String runtimeHandler) { + this.runtimeHandler = runtimeHandler; return this; } @@ -42,10 +48,13 @@ public V1alpha1RuntimeClassSpec runtimeHandler(String runtimeHandler) { * @return runtimeHandler **/ @ApiModelProperty(required = true, value = "RuntimeHandler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The RuntimeHandler must conform to the DNS Label (RFC 1123) requirements and is immutable.") + public String getRuntimeHandler() { return runtimeHandler; } + + public void setRuntimeHandler(String runtimeHandler) { this.runtimeHandler = runtimeHandler; } @@ -53,19 +62,12 @@ public void setRuntimeHandler(String runtimeHandler) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1RuntimeClassSpec v1alpha1RuntimeClassSpec = (V1alpha1RuntimeClassSpec) o; - return Objects.equals(this.runtimeHandler, v1alpha1RuntimeClassSpec.runtimeHandler); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(runtimeHandler); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1RuntimeClassSpec {\n"); - sb.append(" runtimeHandler: ").append(toIndentedString(runtimeHandler)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ServiceReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ServiceReference.java index d5db7ed2f9..9bef22f159 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ServiceReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1ServiceReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,27 @@ * ServiceReference holds a reference to Service.legacy.k8s.io */ @ApiModel(description = "ServiceReference holds a reference to Service.legacy.k8s.io") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1ServiceReference { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private Integer port; - @SerializedName("path") - private String path = null; public V1alpha1ServiceReference name(String name) { + this.name = name; return this; } @@ -48,15 +60,20 @@ public V1alpha1ServiceReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "`name` is the name of the service. Required") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1alpha1ServiceReference namespace(String namespace) { + this.namespace = namespace; return this; } @@ -66,15 +83,20 @@ public V1alpha1ServiceReference namespace(String namespace) { * @return namespace **/ @ApiModelProperty(required = true, value = "`namespace` is the namespace of the service. Required") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1alpha1ServiceReference path(String path) { + this.path = path; return this; } @@ -83,33 +105,52 @@ public V1alpha1ServiceReference path(String path) { * `path` is an optional URL path which will be sent in any request to this service. * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`path` is an optional URL path which will be sent in any request to this service.") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1alpha1ServiceReference port(Integer port) { + + this.port = port; + return this; + } + + /** + * If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive). + * @return port + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).") + + public Integer getPort() { + return port; + } + + + + public void setPort(Integer port) { + this.port = port; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1ServiceReference v1alpha1ServiceReference = (V1alpha1ServiceReference) o; - return Objects.equals(this.name, v1alpha1ServiceReference.name) && - Objects.equals(this.namespace, v1alpha1ServiceReference.namespace) && - Objects.equals(this.path, v1alpha1ServiceReference.path); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, namespace, path); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,10 +158,10 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1ServiceReference {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Subject.java index 1c1c70dbf1..2681ad8af0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Subject.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. */ @ApiModel(description = "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1Subject { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; public V1alpha1Subject apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -50,16 +59,22 @@ public V1alpha1Subject apiVersion(String apiVersion) { * APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects. * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion holds the API group and version of the referenced subject. Defaults to \"v1\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io/v1alpha1\" for User and Group subjects.") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1Subject kind(String kind) { + this.kind = kind; return this; } @@ -69,15 +84,20 @@ public V1alpha1Subject kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1Subject name(String name) { + this.name = name; return this; } @@ -87,15 +107,20 @@ public V1alpha1Subject name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the object being referenced.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1alpha1Subject namespace(String namespace) { + this.namespace = namespace; return this; } @@ -104,11 +129,15 @@ public V1alpha1Subject namespace(String namespace) { * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -116,22 +145,12 @@ public void setNamespace(String namespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1Subject v1alpha1Subject = (V1alpha1Subject) o; - return Objects.equals(this.apiVersion, v1alpha1Subject.apiVersion) && - Objects.equals(this.kind, v1alpha1Subject.kind) && - Objects.equals(this.name, v1alpha1Subject.name) && - Objects.equals(this.namespace, v1alpha1Subject.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name, namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +158,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1Subject {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachment.java index 10ca507bd4..cb50f9bebd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1VolumeAttachment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1alpha1VolumeAttachmentSpec spec; - @SerializedName("spec") - private V1alpha1VolumeAttachmentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1alpha1VolumeAttachmentStatus status; - @SerializedName("status") - private V1alpha1VolumeAttachmentStatus status = null; public V1alpha1VolumeAttachment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1alpha1VolumeAttachment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1VolumeAttachment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,86 @@ public V1alpha1VolumeAttachment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1VolumeAttachment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1alpha1VolumeAttachment spec(V1alpha1VolumeAttachmentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.") + @ApiModelProperty(required = true, value = "") + public V1alpha1VolumeAttachmentSpec getSpec() { return spec; } + + public void setSpec(V1alpha1VolumeAttachmentSpec spec) { this.spec = spec; } + public V1alpha1VolumeAttachment status(V1alpha1VolumeAttachmentStatus status) { + this.status = status; return this; } /** - * Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * Get status * @return status **/ - @ApiModelProperty(value = "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1VolumeAttachmentStatus getStatus() { return status; } + + public void setStatus(V1alpha1VolumeAttachmentStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1alpha1VolumeAttachmentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1VolumeAttachment v1alpha1VolumeAttachment = (V1alpha1VolumeAttachment) o; - return Objects.equals(this.apiVersion, v1alpha1VolumeAttachment.apiVersion) && - Objects.equals(this.kind, v1alpha1VolumeAttachment.kind) && - Objects.equals(this.metadata, v1alpha1VolumeAttachment.metadata) && - Objects.equals(this.spec, v1alpha1VolumeAttachment.spec) && - Objects.equals(this.status, v1alpha1VolumeAttachment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1VolumeAttachment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentList.java index c556ff7b3d..2a348ca71e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1VolumeAttachmentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1alpha1VolumeAttachmentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1alpha1VolumeAttachmentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1alpha1VolumeAttachmentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1alpha1VolumeAttachmentList addItemsItem(V1alpha1VolumeAttachment itemsI * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of VolumeAttachments") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1alpha1VolumeAttachmentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1alpha1VolumeAttachmentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1alpha1VolumeAttachmentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1VolumeAttachmentList v1alpha1VolumeAttachmentList = (V1alpha1VolumeAttachmentList) o; - return Objects.equals(this.apiVersion, v1alpha1VolumeAttachmentList.apiVersion) && - Objects.equals(this.items, v1alpha1VolumeAttachmentList.items) && - Objects.equals(this.kind, v1alpha1VolumeAttachmentList.kind) && - Objects.equals(this.metadata, v1alpha1VolumeAttachmentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1VolumeAttachmentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSource.java index 7c143d0ed0..f54c1839c6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSource.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,12 +31,43 @@ * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. */ @ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1VolumeAttachmentSource { - @SerializedName("persistentVolumeName") - private String persistentVolumeName = null; + public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; + @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) + private V1PersistentVolumeSpec inlineVolumeSpec; + + public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_NAME = "persistentVolumeName"; + @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_NAME) + private String persistentVolumeName; + + + public V1alpha1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + + this.inlineVolumeSpec = inlineVolumeSpec; + return this; + } + + /** + * Get inlineVolumeSpec + * @return inlineVolumeSpec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PersistentVolumeSpec getInlineVolumeSpec() { + return inlineVolumeSpec; + } + + + + public void setInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; + } + public V1alpha1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } @@ -41,11 +76,15 @@ public V1alpha1VolumeAttachmentSource persistentVolumeName(String persistentVolu * Name of the persistent volume to attach. * @return persistentVolumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the persistent volume to attach.") + public String getPersistentVolumeName() { return persistentVolumeName; } + + public void setPersistentVolumeName(String persistentVolumeName) { this.persistentVolumeName = persistentVolumeName; } @@ -53,19 +92,12 @@ public void setPersistentVolumeName(String persistentVolumeName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1VolumeAttachmentSource v1alpha1VolumeAttachmentSource = (V1alpha1VolumeAttachmentSource) o; - return Objects.equals(this.persistentVolumeName, v1alpha1VolumeAttachmentSource.persistentVolumeName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(persistentVolumeName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +105,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1VolumeAttachmentSource {\n"); - + sb.append(" inlineVolumeSpec: ").append(toIndentedString(inlineVolumeSpec)).append("\n"); sb.append(" persistentVolumeName: ").append(toIndentedString(persistentVolumeName)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpec.java index c6bdf540c4..afc5634347 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1VolumeAttachmentSpec { - @SerializedName("attacher") - private String attacher = null; + public static final String SERIALIZED_NAME_ATTACHER = "attacher"; + @SerializedName(SERIALIZED_NAME_ATTACHER) + private String attacher; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; - @SerializedName("nodeName") - private String nodeName = null; + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private V1alpha1VolumeAttachmentSource source; - @SerializedName("source") - private V1alpha1VolumeAttachmentSource source = null; public V1alpha1VolumeAttachmentSpec attacher(String attacher) { + this.attacher = attacher; return this; } @@ -49,15 +57,20 @@ public V1alpha1VolumeAttachmentSpec attacher(String attacher) { * @return attacher **/ @ApiModelProperty(required = true, value = "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().") + public String getAttacher() { return attacher; } + + public void setAttacher(String attacher) { this.attacher = attacher; } + public V1alpha1VolumeAttachmentSpec nodeName(String nodeName) { + this.nodeName = nodeName; return this; } @@ -67,28 +80,36 @@ public V1alpha1VolumeAttachmentSpec nodeName(String nodeName) { * @return nodeName **/ @ApiModelProperty(required = true, value = "The node that the volume should be attached to.") + public String getNodeName() { return nodeName; } + + public void setNodeName(String nodeName) { this.nodeName = nodeName; } + public V1alpha1VolumeAttachmentSpec source(V1alpha1VolumeAttachmentSource source) { + this.source = source; return this; } /** - * Source represents the volume that should be attached. + * Get source * @return source **/ - @ApiModelProperty(required = true, value = "Source represents the volume that should be attached.") + @ApiModelProperty(required = true, value = "") + public V1alpha1VolumeAttachmentSource getSource() { return source; } + + public void setSource(V1alpha1VolumeAttachmentSource source) { this.source = source; } @@ -96,21 +117,12 @@ public void setSource(V1alpha1VolumeAttachmentSource source) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1VolumeAttachmentSpec v1alpha1VolumeAttachmentSpec = (V1alpha1VolumeAttachmentSpec) o; - return Objects.equals(this.attacher, v1alpha1VolumeAttachmentSpec.attacher) && - Objects.equals(this.nodeName, v1alpha1VolumeAttachmentSpec.nodeName) && - Objects.equals(this.source, v1alpha1VolumeAttachmentSpec.source); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attacher, nodeName, source); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1VolumeAttachmentSpec {\n"); - sb.append(" attacher: ").append(toIndentedString(attacher)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatus.java index 4dd675b1f9..a07b25880c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,39 +34,51 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1VolumeAttachmentStatus { - @SerializedName("attachError") - private V1alpha1VolumeError attachError = null; + public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; + @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) + private V1alpha1VolumeError attachError; - @SerializedName("attached") - private Boolean attached = null; + public static final String SERIALIZED_NAME_ATTACHED = "attached"; + @SerializedName(SERIALIZED_NAME_ATTACHED) + private Boolean attached; - @SerializedName("attachmentMetadata") + public static final String SERIALIZED_NAME_ATTACHMENT_METADATA = "attachmentMetadata"; + @SerializedName(SERIALIZED_NAME_ATTACHMENT_METADATA) private Map attachmentMetadata = null; - @SerializedName("detachError") - private V1alpha1VolumeError detachError = null; + public static final String SERIALIZED_NAME_DETACH_ERROR = "detachError"; + @SerializedName(SERIALIZED_NAME_DETACH_ERROR) + private V1alpha1VolumeError detachError; + public V1alpha1VolumeAttachmentStatus attachError(V1alpha1VolumeError attachError) { + this.attachError = attachError; return this; } /** - * The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * Get attachError * @return attachError **/ - @ApiModelProperty(value = "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1VolumeError getAttachError() { return attachError; } + + public void setAttachError(V1alpha1VolumeError attachError) { this.attachError = attachError; } + public V1alpha1VolumeAttachmentStatus attached(Boolean attached) { + this.attached = attached; return this; } @@ -73,15 +88,20 @@ public V1alpha1VolumeAttachmentStatus attached(Boolean attached) { * @return attached **/ @ApiModelProperty(required = true, value = "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") - public Boolean isAttached() { + + public Boolean getAttached() { return attached; } + + public void setAttached(Boolean attached) { this.attached = attached; } + public V1alpha1VolumeAttachmentStatus attachmentMetadata(Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @@ -98,29 +118,39 @@ public V1alpha1VolumeAttachmentStatus putAttachmentMetadataItem(String key, Stri * Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. * @return attachmentMetadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") + public Map getAttachmentMetadata() { return attachmentMetadata; } + + public void setAttachmentMetadata(Map attachmentMetadata) { this.attachmentMetadata = attachmentMetadata; } + public V1alpha1VolumeAttachmentStatus detachError(V1alpha1VolumeError detachError) { + this.detachError = detachError; return this; } /** - * The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + * Get detachError * @return detachError **/ - @ApiModelProperty(value = "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1VolumeError getDetachError() { return detachError; } + + public void setDetachError(V1alpha1VolumeError detachError) { this.detachError = detachError; } @@ -128,22 +158,12 @@ public void setDetachError(V1alpha1VolumeError detachError) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1VolumeAttachmentStatus v1alpha1VolumeAttachmentStatus = (V1alpha1VolumeAttachmentStatus) o; - return Objects.equals(this.attachError, v1alpha1VolumeAttachmentStatus.attachError) && - Objects.equals(this.attached, v1alpha1VolumeAttachmentStatus.attached) && - Objects.equals(this.attachmentMetadata, v1alpha1VolumeAttachmentStatus.attachmentMetadata) && - Objects.equals(this.detachError, v1alpha1VolumeAttachmentStatus.detachError); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attachError, attached, attachmentMetadata, detachError); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1VolumeAttachmentStatus {\n"); - sb.append(" attachError: ").append(toIndentedString(attachError)).append("\n"); sb.append(" attached: ").append(toIndentedString(attached)).append("\n"); sb.append(" attachmentMetadata: ").append(toIndentedString(attachmentMetadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeError.java index cef17b9a46..f6a7757baa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1VolumeError.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1VolumeError { - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private DateTime time; - @SerializedName("time") - private DateTime time = null; public V1alpha1VolumeError message(String message) { + this.message = message; return this; } @@ -45,16 +52,22 @@ public V1alpha1VolumeError message(String message) { * String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "String detailing the error encountered during Attach or Detach operation. This string maybe logged, so it should not contain sensitive information.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1alpha1VolumeError time(DateTime time) { + this.time = time; return this; } @@ -63,11 +76,15 @@ public V1alpha1VolumeError time(DateTime time) { * Time the error was encountered. * @return time **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time the error was encountered.") + public DateTime getTime() { return time; } + + public void setTime(DateTime time) { this.time = time; } @@ -75,20 +92,12 @@ public void setTime(DateTime time) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1VolumeError v1alpha1VolumeError = (V1alpha1VolumeError) o; - return Objects.equals(this.message, v1alpha1VolumeError.message) && - Objects.equals(this.time, v1alpha1VolumeError.time); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(message, time); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1VolumeError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Webhook.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Webhook.java index 70bea58489..efa119bf32 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Webhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1Webhook.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,59 @@ * Webhook holds the configuration of the webhook */ @ApiModel(description = "Webhook holds the configuration of the webhook") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1Webhook { - @SerializedName("clientConfig") - private V1alpha1WebhookClientConfig clientConfig = null; + public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; + @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) + private V1alpha1WebhookClientConfig clientConfig; + + public static final String SERIALIZED_NAME_THROTTLE = "throttle"; + @SerializedName(SERIALIZED_NAME_THROTTLE) + private V1alpha1WebhookThrottleConfig throttle; - @SerializedName("throttle") - private V1alpha1WebhookThrottleConfig throttle = null; public V1alpha1Webhook clientConfig(V1alpha1WebhookClientConfig clientConfig) { + this.clientConfig = clientConfig; return this; } /** - * ClientConfig holds the connection parameters for the webhook required + * Get clientConfig * @return clientConfig **/ - @ApiModelProperty(required = true, value = "ClientConfig holds the connection parameters for the webhook required") + @ApiModelProperty(required = true, value = "") + public V1alpha1WebhookClientConfig getClientConfig() { return clientConfig; } + + public void setClientConfig(V1alpha1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; } + public V1alpha1Webhook throttle(V1alpha1WebhookThrottleConfig throttle) { + this.throttle = throttle; return this; } /** - * Throttle holds the options for throttling the webhook + * Get throttle * @return throttle **/ - @ApiModelProperty(value = "Throttle holds the options for throttling the webhook") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1WebhookThrottleConfig getThrottle() { return throttle; } + + public void setThrottle(V1alpha1WebhookThrottleConfig throttle) { this.throttle = throttle; } @@ -76,20 +92,12 @@ public void setThrottle(V1alpha1WebhookThrottleConfig throttle) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1Webhook v1alpha1Webhook = (V1alpha1Webhook) o; - return Objects.equals(this.clientConfig, v1alpha1Webhook.clientConfig) && - Objects.equals(this.throttle, v1alpha1Webhook.throttle); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clientConfig, throttle); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1Webhook {\n"); - sb.append(" clientConfig: ").append(toIndentedString(clientConfig)).append("\n"); sb.append(" throttle: ").append(toIndentedString(throttle)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookClientConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookClientConfig.java index 1c6e503968..451658e4bd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookClientConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookClientConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * WebhookClientConfig contains the information to make a connection with the webhook */ @ApiModel(description = "WebhookClientConfig contains the information to make a connection with the webhook") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1WebhookClientConfig { - @SerializedName("caBundle") - private byte[] caBundle = null; + public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; + @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + private byte[] caBundle; + + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private V1alpha1ServiceReference service; - @SerializedName("service") - private V1alpha1ServiceReference service = null; + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; - @SerializedName("url") - private String url = null; public V1alpha1WebhookClientConfig caBundle(byte[] caBundle) { + this.caBundle = caBundle; return this; } @@ -48,34 +56,46 @@ public V1alpha1WebhookClientConfig caBundle(byte[] caBundle) { * `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate. If unspecified, system trust roots on the apiserver are used.") + public byte[] getCaBundle() { return caBundle; } + + public void setCaBundle(byte[] caBundle) { this.caBundle = caBundle; } + public V1alpha1WebhookClientConfig service(V1alpha1ServiceReference service) { + this.service = service; return this; } /** - * `service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error. + * Get service * @return service **/ - @ApiModelProperty(value = "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified. If the webhook is running within the cluster, then you should use `service`. Port 443 will be used if it is open, otherwise it is an error.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1alpha1ServiceReference getService() { return service; } + + public void setService(V1alpha1ServiceReference service) { this.service = service; } + public V1alpha1WebhookClientConfig url(String url) { + this.url = url; return this; } @@ -84,11 +104,15 @@ public V1alpha1WebhookClientConfig url(String url) { * `url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either. * @return url **/ + @javax.annotation.Nullable @ApiModelProperty(value = "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified. The `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address. Please note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster. The scheme must be \"https\"; the URL must begin with \"https://\". A path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier. Attempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.") + public String getUrl() { return url; } + + public void setUrl(String url) { this.url = url; } @@ -96,21 +120,12 @@ public void setUrl(String url) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1WebhookClientConfig v1alpha1WebhookClientConfig = (V1alpha1WebhookClientConfig) o; - return Objects.equals(this.caBundle, v1alpha1WebhookClientConfig.caBundle) && - Objects.equals(this.service, v1alpha1WebhookClientConfig.service) && - Objects.equals(this.url, v1alpha1WebhookClientConfig.url); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(caBundle, service, url); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +133,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1WebhookClientConfig {\n"); - sb.append(" caBundle: ").append(toIndentedString(caBundle)).append("\n"); sb.append(" service: ").append(toIndentedString(service)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfig.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfig.java index 11b87c3ac8..dac3f15d65 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfig.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfig.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * WebhookThrottleConfig holds the configuration for throttling events */ @ApiModel(description = "WebhookThrottleConfig holds the configuration for throttling events") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1alpha1WebhookThrottleConfig { - @SerializedName("burst") - private Long burst = null; + public static final String SERIALIZED_NAME_BURST = "burst"; + @SerializedName(SERIALIZED_NAME_BURST) + private Long burst; + + public static final String SERIALIZED_NAME_QPS = "qps"; + @SerializedName(SERIALIZED_NAME_QPS) + private Long qps; - @SerializedName("qps") - private Long qps = null; public V1alpha1WebhookThrottleConfig burst(Long burst) { + this.burst = burst; return this; } @@ -44,16 +51,22 @@ public V1alpha1WebhookThrottleConfig burst(Long burst) { * ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS * @return burst **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS") + public Long getBurst() { return burst; } + + public void setBurst(Long burst) { this.burst = burst; } + public V1alpha1WebhookThrottleConfig qps(Long qps) { + this.qps = qps; return this; } @@ -62,11 +75,15 @@ public V1alpha1WebhookThrottleConfig qps(Long qps) { * ThrottleQPS maximum number of batches per second default 10 QPS * @return qps **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ThrottleQPS maximum number of batches per second default 10 QPS") + public Long getQps() { return qps; } + + public void setQps(Long qps) { this.qps = qps; } @@ -74,20 +91,12 @@ public void setQps(Long qps) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1alpha1WebhookThrottleConfig v1alpha1WebhookThrottleConfig = (V1alpha1WebhookThrottleConfig) o; - return Objects.equals(this.burst, v1alpha1WebhookThrottleConfig.burst) && - Objects.equals(this.qps, v1alpha1WebhookThrottleConfig.qps); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(burst, qps); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1alpha1WebhookThrottleConfig {\n"); - sb.append(" burst: ").append(toIndentedString(burst)).append("\n"); sb.append(" qps: ").append(toIndentedString(qps)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIService.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIService.java index 502e83de13..788eecf655 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIService.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIService.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * APIService represents a server for a particular GroupVersion. Name must be \"version.group\". */ @ApiModel(description = "APIService represents a server for a particular GroupVersion. Name must be \"version.group\".") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1APIService { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1APIServiceSpec spec; - @SerializedName("spec") - private V1beta1APIServiceSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1APIServiceStatus status; - @SerializedName("status") - private V1beta1APIServiceStatus status = null; public V1beta1APIService apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1APIService apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1APIService kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1APIService kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1APIService metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1beta1APIService metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1APIService spec(V1beta1APIServiceSpec spec) { + this.spec = spec; return this; } /** - * Spec contains information for locating and communicating with a server + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec contains information for locating and communicating with a server") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1APIServiceSpec getSpec() { return spec; } + + public void setSpec(V1beta1APIServiceSpec spec) { this.spec = spec; } + public V1beta1APIService status(V1beta1APIServiceStatus status) { + this.status = status; return this; } /** - * Status contains derived information about an API server + * Get status * @return status **/ - @ApiModelProperty(value = "Status contains derived information about an API server") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1APIServiceStatus getStatus() { return status; } + + public void setStatus(V1beta1APIServiceStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1APIServiceStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1APIService v1beta1APIService = (V1beta1APIService) o; - return Objects.equals(this.apiVersion, v1beta1APIService.apiVersion) && - Objects.equals(this.kind, v1beta1APIService.kind) && - Objects.equals(this.metadata, v1beta1APIService.metadata) && - Objects.equals(this.spec, v1beta1APIService.spec) && - Objects.equals(this.status, v1beta1APIService.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1APIService {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceCondition.java index 84dc84235f..50e0c72d81 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * APIServiceCondition describes the state of an APIService at a particular point */ @ApiModel(description = "APIServiceCondition describes the state of an APIService at a particular point") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1APIServiceCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta1APIServiceCondition lastTransitionTime(DateTime lastTransitionTime * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta1APIServiceCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta1APIServiceCondition message(String message) { * Human-readable message indicating details about last transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1APIServiceCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta1APIServiceCondition reason(String reason) { * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1APIServiceCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta1APIServiceCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta1APIServiceCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta1APIServiceCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type is the type of the condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1APIServiceCondition v1beta1APIServiceCondition = (V1beta1APIServiceCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta1APIServiceCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta1APIServiceCondition.message) && - Objects.equals(this.reason, v1beta1APIServiceCondition.reason) && - Objects.equals(this.status, v1beta1APIServiceCondition.status) && - Objects.equals(this.type, v1beta1APIServiceCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1APIServiceCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceList.java index a2b17954aa..cff526f18e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * APIServiceList is a list of APIService objects. */ @ApiModel(description = "APIServiceList is a list of APIService objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1APIServiceList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1APIServiceList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1APIServiceList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1APIServiceList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1APIServiceList addItemsItem(V1beta1APIService itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1APIServiceList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1beta1APIServiceList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1APIServiceList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1beta1APIServiceList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1APIServiceList v1beta1APIServiceList = (V1beta1APIServiceList) o; - return Objects.equals(this.apiVersion, v1beta1APIServiceList.apiVersion) && - Objects.equals(this.items, v1beta1APIServiceList.items) && - Objects.equals(this.kind, v1beta1APIServiceList.kind) && - Objects.equals(this.metadata, v1beta1APIServiceList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1APIServiceList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceSpec.java index aa1e4ad6e3..377f50585e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,30 +31,39 @@ * APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification. */ @ApiModel(description = "APIServiceSpec contains information for locating and communicating with a server. Only https is supported, though you are able to disable certificate verification.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1APIServiceSpec { - @SerializedName("caBundle") - private byte[] caBundle = null; + public static final String SERIALIZED_NAME_CA_BUNDLE = "caBundle"; + @SerializedName(SERIALIZED_NAME_CA_BUNDLE) + private byte[] caBundle; + + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP_PRIORITY_MINIMUM = "groupPriorityMinimum"; + @SerializedName(SERIALIZED_NAME_GROUP_PRIORITY_MINIMUM) + private Integer groupPriorityMinimum; - @SerializedName("groupPriorityMinimum") - private Integer groupPriorityMinimum = null; + public static final String SERIALIZED_NAME_INSECURE_SKIP_T_L_S_VERIFY = "insecureSkipTLSVerify"; + @SerializedName(SERIALIZED_NAME_INSECURE_SKIP_T_L_S_VERIFY) + private Boolean insecureSkipTLSVerify; - @SerializedName("insecureSkipTLSVerify") - private Boolean insecureSkipTLSVerify = null; + public static final String SERIALIZED_NAME_SERVICE = "service"; + @SerializedName(SERIALIZED_NAME_SERVICE) + private ApiregistrationV1beta1ServiceReference service; - @SerializedName("service") - private ApiregistrationV1beta1ServiceReference service = null; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; - @SerializedName("version") - private String version = null; + public static final String SERIALIZED_NAME_VERSION_PRIORITY = "versionPriority"; + @SerializedName(SERIALIZED_NAME_VERSION_PRIORITY) + private Integer versionPriority; - @SerializedName("versionPriority") - private Integer versionPriority = null; public V1beta1APIServiceSpec caBundle(byte[] caBundle) { + this.caBundle = caBundle; return this; } @@ -60,16 +72,22 @@ public V1beta1APIServiceSpec caBundle(byte[] caBundle) { * CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used. * @return caBundle **/ + @javax.annotation.Nullable @ApiModelProperty(value = "CABundle is a PEM encoded CA bundle which will be used to validate an API server's serving certificate. If unspecified, system trust roots on the apiserver are used.") + public byte[] getCaBundle() { return caBundle; } + + public void setCaBundle(byte[] caBundle) { this.caBundle = caBundle; } + public V1beta1APIServiceSpec group(String group) { + this.group = group; return this; } @@ -78,16 +96,22 @@ public V1beta1APIServiceSpec group(String group) { * Group is the API group name this server hosts * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Group is the API group name this server hosts") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1beta1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) { + this.groupPriorityMinimum = groupPriorityMinimum; return this; } @@ -97,15 +121,20 @@ public V1beta1APIServiceSpec groupPriorityMinimum(Integer groupPriorityMinimum) * @return groupPriorityMinimum **/ @ApiModelProperty(required = true, value = "GroupPriorityMininum is the priority this group should have at least. Higher priority means that the group is preferred by clients over lower priority ones. Note that other versions of this group might specify even higher GroupPriorityMininum values such that the whole group gets a higher priority. The primary sort is based on GroupPriorityMinimum, ordered highest number to lowest (20 before 10). The secondary sort is based on the alphabetical comparison of the name of the object. (v1.bar before v1.foo) We'd recommend something like: *.k8s.io (except extensions) at 18000 and PaaSes (OpenShift, Deis) are recommended to be in the 2000s") + public Integer getGroupPriorityMinimum() { return groupPriorityMinimum; } + + public void setGroupPriorityMinimum(Integer groupPriorityMinimum) { this.groupPriorityMinimum = groupPriorityMinimum; } + public V1beta1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { + this.insecureSkipTLSVerify = insecureSkipTLSVerify; return this; } @@ -114,34 +143,45 @@ public V1beta1APIServiceSpec insecureSkipTLSVerify(Boolean insecureSkipTLSVerify * InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead. * @return insecureSkipTLSVerify **/ + @javax.annotation.Nullable @ApiModelProperty(value = "InsecureSkipTLSVerify disables TLS certificate verification when communicating with this server. This is strongly discouraged. You should use the CABundle instead.") - public Boolean isInsecureSkipTLSVerify() { + + public Boolean getInsecureSkipTLSVerify() { return insecureSkipTLSVerify; } + + public void setInsecureSkipTLSVerify(Boolean insecureSkipTLSVerify) { this.insecureSkipTLSVerify = insecureSkipTLSVerify; } + public V1beta1APIServiceSpec service(ApiregistrationV1beta1ServiceReference service) { + this.service = service; return this; } /** - * Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled. + * Get service * @return service **/ - @ApiModelProperty(required = true, value = "Service is a reference to the service for this API server. It must communicate on port 443 If the Service is nil, that means the handling for the API groupversion is handled locally on this server. The call will simply delegate to the normal handler chain to be fulfilled.") + @ApiModelProperty(required = true, value = "") + public ApiregistrationV1beta1ServiceReference getService() { return service; } + + public void setService(ApiregistrationV1beta1ServiceReference service) { this.service = service; } + public V1beta1APIServiceSpec version(String version) { + this.version = version; return this; } @@ -150,16 +190,22 @@ public V1beta1APIServiceSpec version(String version) { * Version is the API version this server hosts. For example, \"v1\" * @return version **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Version is the API version this server hosts. For example, \"v1\"") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } + public V1beta1APIServiceSpec versionPriority(Integer versionPriority) { + this.versionPriority = versionPriority; return this; } @@ -169,10 +215,13 @@ public V1beta1APIServiceSpec versionPriority(Integer versionPriority) { * @return versionPriority **/ @ApiModelProperty(required = true, value = "VersionPriority controls the ordering of this API version inside of its group. Must be greater than zero. The primary sort is based on VersionPriority, ordered highest to lowest (20 before 10). Since it's inside of a group, the number can be small, probably in the 10s. In case of equal version priorities, the version string will be used to compute the order inside a group. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") + public Integer getVersionPriority() { return versionPriority; } + + public void setVersionPriority(Integer versionPriority) { this.versionPriority = versionPriority; } @@ -180,25 +229,12 @@ public void setVersionPriority(Integer versionPriority) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1APIServiceSpec v1beta1APIServiceSpec = (V1beta1APIServiceSpec) o; - return Objects.equals(this.caBundle, v1beta1APIServiceSpec.caBundle) && - Objects.equals(this.group, v1beta1APIServiceSpec.group) && - Objects.equals(this.groupPriorityMinimum, v1beta1APIServiceSpec.groupPriorityMinimum) && - Objects.equals(this.insecureSkipTLSVerify, v1beta1APIServiceSpec.insecureSkipTLSVerify) && - Objects.equals(this.service, v1beta1APIServiceSpec.service) && - Objects.equals(this.version, v1beta1APIServiceSpec.version) && - Objects.equals(this.versionPriority, v1beta1APIServiceSpec.versionPriority); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(caBundle, group, groupPriorityMinimum, insecureSkipTLSVerify, service, version, versionPriority); + return HashCodeBuilder.reflectionHashCode(this); } @@ -206,7 +242,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1APIServiceSpec {\n"); - sb.append(" caBundle: ").append(toIndentedString(caBundle)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" groupPriorityMinimum: ").append(toIndentedString(groupPriorityMinimum)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceStatus.java index 0f30671dae..4b79267eb8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1APIServiceStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * APIServiceStatus contains derived information about an API server */ @ApiModel(description = "APIServiceStatus contains derived information about an API server") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1APIServiceStatus { - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; + public V1beta1APIServiceStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -52,11 +58,15 @@ public V1beta1APIServiceStatus addConditionsItem(V1beta1APIServiceCondition cond * Current service state of apiService. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Current service state of apiService.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } @@ -64,19 +74,12 @@ public void setConditions(List conditions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1APIServiceStatus v1beta1APIServiceStatus = (V1beta1APIServiceStatus) o; - return Objects.equals(this.conditions, v1beta1APIServiceStatus.conditions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conditions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1APIServiceStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1AggregationRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1AggregationRule.java index 7f6aeafe86..643ddc429a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1AggregationRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1AggregationRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole */ @ApiModel(description = "AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1AggregationRule { - @SerializedName("clusterRoleSelectors") + public static final String SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS = "clusterRoleSelectors"; + @SerializedName(SERIALIZED_NAME_CLUSTER_ROLE_SELECTORS) private List clusterRoleSelectors = null; + public V1beta1AggregationRule clusterRoleSelectors(List clusterRoleSelectors) { + this.clusterRoleSelectors = clusterRoleSelectors; return this; } @@ -52,11 +58,15 @@ public V1beta1AggregationRule addClusterRoleSelectorsItem(V1LabelSelector cluste * ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added * @return clusterRoleSelectors **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added") + public List getClusterRoleSelectors() { return clusterRoleSelectors; } + + public void setClusterRoleSelectors(List clusterRoleSelectors) { this.clusterRoleSelectors = clusterRoleSelectors; } @@ -64,19 +74,12 @@ public void setClusterRoleSelectors(List clusterRoleSelectors) @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1AggregationRule v1beta1AggregationRule = (V1beta1AggregationRule) o; - return Objects.equals(this.clusterRoleSelectors, v1beta1AggregationRule.clusterRoleSelectors); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(clusterRoleSelectors); + return HashCodeBuilder.reflectionHashCode(this); } @@ -84,7 +87,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1AggregationRule {\n"); - sb.append(" clusterRoleSelectors: ").append(toIndentedString(clusterRoleSelectors)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriver.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriver.java index 9d9cc2169a..db484523e0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriver.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced. */ @ApiModel(description = "CSIDriver captures information about a Container Storage Interface (CSI) volume driver deployed on the cluster. CSI drivers do not need to create the CSIDriver object directly. Instead they may use the cluster-driver-registrar sidecar container. When deployed with a CSI driver it automatically creates a CSIDriver object representing the driver. Kubernetes attach detach controller uses this object to determine whether attach is required. Kubelet uses this object to determine whether pod information needs to be passed on mount. CSIDriver objects are non-namespaced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSIDriver { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1CSIDriverSpec spec; - @SerializedName("spec") - private V1beta1CSIDriverSpec spec = null; public V1beta1CSIDriver apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1beta1CSIDriver apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CSIDriver kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,62 @@ public V1beta1CSIDriver kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CSIDriver metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata. metadata.Name indicates the name of the CSI driver that this object refers to; it MUST be the same name returned by the CSI GetPluginName() call for that driver. The driver name must be 63 characters or less, beginning and ending with an alphanumeric character ([a-z0-9A-Z]) with dashes (-), dots (.), and alphanumerics between. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1CSIDriver spec(V1beta1CSIDriverSpec spec) { + this.spec = spec; return this; } /** - * Specification of the CSI Driver. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Specification of the CSI Driver.") + @ApiModelProperty(required = true, value = "") + public V1beta1CSIDriverSpec getSpec() { return spec; } + + public void setSpec(V1beta1CSIDriverSpec spec) { this.spec = spec; } @@ -118,22 +148,12 @@ public void setSpec(V1beta1CSIDriverSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSIDriver v1beta1CSIDriver = (V1beta1CSIDriver) o; - return Objects.equals(this.apiVersion, v1beta1CSIDriver.apiVersion) && - Objects.equals(this.kind, v1beta1CSIDriver.kind) && - Objects.equals(this.metadata, v1beta1CSIDriver.metadata) && - Objects.equals(this.spec, v1beta1CSIDriver.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSIDriver {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverList.java index 4b88d7754a..6eca0f9ff2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * CSIDriverList is a collection of CSIDriver objects. */ @ApiModel(description = "CSIDriverList is a collection of CSIDriver objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSIDriverList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1CSIDriverList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1CSIDriverList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CSIDriverList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1CSIDriverList addItemsItem(V1beta1CSIDriver itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of CSIDriver") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1CSIDriverList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1CSIDriverList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CSIDriverList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSIDriverList v1beta1CSIDriverList = (V1beta1CSIDriverList) o; - return Objects.equals(this.apiVersion, v1beta1CSIDriverList.apiVersion) && - Objects.equals(this.items, v1beta1CSIDriverList.items) && - Objects.equals(this.kind, v1beta1CSIDriverList.kind) && - Objects.equals(this.metadata, v1beta1CSIDriverList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSIDriverList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverSpec.java index e001828871..6c72dc3523 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSIDriverSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * CSIDriverSpec is the specification of a CSIDriver. */ @ApiModel(description = "CSIDriverSpec is the specification of a CSIDriver.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSIDriverSpec { - @SerializedName("attachRequired") - private Boolean attachRequired = null; + public static final String SERIALIZED_NAME_ATTACH_REQUIRED = "attachRequired"; + @SerializedName(SERIALIZED_NAME_ATTACH_REQUIRED) + private Boolean attachRequired; + + public static final String SERIALIZED_NAME_POD_INFO_ON_MOUNT = "podInfoOnMount"; + @SerializedName(SERIALIZED_NAME_POD_INFO_ON_MOUNT) + private Boolean podInfoOnMount; - @SerializedName("podInfoOnMount") - private Boolean podInfoOnMount = null; public V1beta1CSIDriverSpec attachRequired(Boolean attachRequired) { + this.attachRequired = attachRequired; return this; } @@ -44,16 +51,22 @@ public V1beta1CSIDriverSpec attachRequired(Boolean attachRequired) { * attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. * @return attachRequired **/ + @javax.annotation.Nullable @ApiModelProperty(value = "attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called.") - public Boolean isAttachRequired() { + + public Boolean getAttachRequired() { return attachRequired; } + + public void setAttachRequired(Boolean attachRequired) { this.attachRequired = attachRequired; } + public V1beta1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { + this.podInfoOnMount = podInfoOnMount; return this; } @@ -62,11 +75,15 @@ public V1beta1CSIDriverSpec podInfoOnMount(Boolean podInfoOnMount) { * If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID) * @return podInfoOnMount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If set to true, podInfoOnMount indicates this CSI volume driver requires additional pod information (like podName, podUID, etc.) during mount operations. If set to false, pod information will not be passed on mount. Default is false. The CSI driver specifies podInfoOnMount as part of driver deployment. If true, Kubelet will pass pod information as VolumeContext in the CSI NodePublishVolume() calls. The CSI driver is responsible for parsing and validating the information passed in as VolumeContext. The following VolumeConext will be passed if podInfoOnMount is set to true. This list might grow, but the prefix will be used. \"csi.storage.k8s.io/pod.name\": pod.Name \"csi.storage.k8s.io/pod.namespace\": pod.Namespace \"csi.storage.k8s.io/pod.uid\": string(pod.UID)") - public Boolean isPodInfoOnMount() { + + public Boolean getPodInfoOnMount() { return podInfoOnMount; } + + public void setPodInfoOnMount(Boolean podInfoOnMount) { this.podInfoOnMount = podInfoOnMount; } @@ -74,20 +91,12 @@ public void setPodInfoOnMount(Boolean podInfoOnMount) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSIDriverSpec v1beta1CSIDriverSpec = (V1beta1CSIDriverSpec) o; - return Objects.equals(this.attachRequired, v1beta1CSIDriverSpec.attachRequired) && - Objects.equals(this.podInfoOnMount, v1beta1CSIDriverSpec.podInfoOnMount); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attachRequired, podInfoOnMount); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSIDriverSpec {\n"); - sb.append(" attachRequired: ").append(toIndentedString(attachRequired)).append("\n"); sb.append(" podInfoOnMount: ").append(toIndentedString(podInfoOnMount)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINode.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINode.java index 10a4ffe34f..e73e3f18df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINode.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINode.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object. */ @ApiModel(description = "CSINode holds information about all CSI drivers installed on a node. CSI drivers do not need to create the CSINode object directly. As long as they use the node-driver-registrar sidecar container, the kubelet will automatically populate the CSINode object for the CSI driver as part of kubelet plugin registration. CSINode has the same name as a node. If the object is missing, it means either there are no CSI Drivers available on the node, or the Kubelet version is low enough that it doesn't create this object. CSINode has an OwnerReference that points to the corresponding node object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSINode { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1CSINodeSpec spec; - @SerializedName("spec") - private V1beta1CSINodeSpec spec = null; public V1beta1CSINode apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1beta1CSINode apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CSINode kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,62 @@ public V1beta1CSINode kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CSINode metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * metadata.name must be the Kubernetes node name. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "metadata.name must be the Kubernetes node name.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1CSINode spec(V1beta1CSINodeSpec spec) { + this.spec = spec; return this; } /** - * spec is the specification of CSINode + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "spec is the specification of CSINode") + @ApiModelProperty(required = true, value = "") + public V1beta1CSINodeSpec getSpec() { return spec; } + + public void setSpec(V1beta1CSINodeSpec spec) { this.spec = spec; } @@ -118,22 +148,12 @@ public void setSpec(V1beta1CSINodeSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSINode v1beta1CSINode = (V1beta1CSINode) o; - return Objects.equals(this.apiVersion, v1beta1CSINode.apiVersion) && - Objects.equals(this.kind, v1beta1CSINode.kind) && - Objects.equals(this.metadata, v1beta1CSINode.metadata) && - Objects.equals(this.spec, v1beta1CSINode.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSINode {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeDriver.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeDriver.java index 9f060a4b51..0e59c1d280 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeDriver.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeDriver.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,18 +32,23 @@ * CSINodeDriver holds information about the specification of one CSI driver installed on a node */ @ApiModel(description = "CSINodeDriver holds information about the specification of one CSI driver installed on a node") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSINodeDriver { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("nodeID") - private String nodeID = null; + public static final String SERIALIZED_NAME_NODE_I_D = "nodeID"; + @SerializedName(SERIALIZED_NAME_NODE_I_D) + private String nodeID; - @SerializedName("topologyKeys") + public static final String SERIALIZED_NAME_TOPOLOGY_KEYS = "topologyKeys"; + @SerializedName(SERIALIZED_NAME_TOPOLOGY_KEYS) private List topologyKeys = null; + public V1beta1CSINodeDriver name(String name) { + this.name = name; return this; } @@ -50,15 +58,20 @@ public V1beta1CSINodeDriver name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "This is the name of the CSI driver that this object refers to. This MUST be the same name returned by the CSI GetPluginName() call for that driver.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1beta1CSINodeDriver nodeID(String nodeID) { + this.nodeID = nodeID; return this; } @@ -68,15 +81,20 @@ public V1beta1CSINodeDriver nodeID(String nodeID) { * @return nodeID **/ @ApiModelProperty(required = true, value = "nodeID of the node from the driver point of view. This field enables Kubernetes to communicate with storage systems that do not share the same nomenclature for nodes. For example, Kubernetes may refer to a given node as \"node1\", but the storage system may refer to the same node as \"nodeA\". When Kubernetes issues a command to the storage system to attach a volume to a specific node, it can use this field to refer to the node name using the ID that the storage system will understand, e.g. \"nodeA\" instead of \"node1\". This field is required.") + public String getNodeID() { return nodeID; } + + public void setNodeID(String nodeID) { this.nodeID = nodeID; } + public V1beta1CSINodeDriver topologyKeys(List topologyKeys) { + this.topologyKeys = topologyKeys; return this; } @@ -93,11 +111,15 @@ public V1beta1CSINodeDriver addTopologyKeysItem(String topologyKeysItem) { * topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology. * @return topologyKeys **/ + @javax.annotation.Nullable @ApiModelProperty(value = "topologyKeys is the list of keys supported by the driver. When a driver is initialized on a cluster, it provides a set of topology keys that it understands (e.g. \"company.com/zone\", \"company.com/region\"). When a driver is initialized on a node, it provides the same topology keys along with values. Kubelet will expose these topology keys as labels on its own node object. When Kubernetes does topology aware provisioning, it can use this list to determine which labels it should retrieve from the node object and pass back to the driver. It is possible for different nodes to use different topology keys. This can be empty if driver does not support topology.") + public List getTopologyKeys() { return topologyKeys; } + + public void setTopologyKeys(List topologyKeys) { this.topologyKeys = topologyKeys; } @@ -105,21 +127,12 @@ public void setTopologyKeys(List topologyKeys) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSINodeDriver v1beta1CSINodeDriver = (V1beta1CSINodeDriver) o; - return Objects.equals(this.name, v1beta1CSINodeDriver.name) && - Objects.equals(this.nodeID, v1beta1CSINodeDriver.nodeID) && - Objects.equals(this.topologyKeys, v1beta1CSINodeDriver.topologyKeys); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, nodeID, topologyKeys); + return HashCodeBuilder.reflectionHashCode(this); } @@ -127,7 +140,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSINodeDriver {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" nodeID: ").append(toIndentedString(nodeID)).append("\n"); sb.append(" topologyKeys: ").append(toIndentedString(topologyKeys)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeList.java index 83aa59f951..d843a982d1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * CSINodeList is a collection of CSINode objects. */ @ApiModel(description = "CSINodeList is a collection of CSINode objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSINodeList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1CSINodeList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1CSINodeList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CSINodeList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1CSINodeList addItemsItem(V1beta1CSINode itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of CSINode") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1CSINodeList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1CSINodeList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CSINodeList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSINodeList v1beta1CSINodeList = (V1beta1CSINodeList) o; - return Objects.equals(this.apiVersion, v1beta1CSINodeList.apiVersion) && - Objects.equals(this.items, v1beta1CSINodeList.items) && - Objects.equals(this.kind, v1beta1CSINodeList.kind) && - Objects.equals(this.metadata, v1beta1CSINodeList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSINodeList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeSpec.java index 51ab877a98..601b2867e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CSINodeSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,12 +33,15 @@ * CSINodeSpec holds information about the specification of all CSI drivers installed on a node */ @ApiModel(description = "CSINodeSpec holds information about the specification of all CSI drivers installed on a node") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CSINodeSpec { - @SerializedName("drivers") + public static final String SERIALIZED_NAME_DRIVERS = "drivers"; + @SerializedName(SERIALIZED_NAME_DRIVERS) private List drivers = new ArrayList(); + public V1beta1CSINodeSpec drivers(List drivers) { + this.drivers = drivers; return this; } @@ -50,10 +56,13 @@ public V1beta1CSINodeSpec addDriversItem(V1beta1CSINodeDriver driversItem) { * @return drivers **/ @ApiModelProperty(required = true, value = "drivers is a list of information of all CSI Drivers existing on a node. If all drivers in the list are uninstalled, this can become empty.") + public List getDrivers() { return drivers; } + + public void setDrivers(List drivers) { this.drivers = drivers; } @@ -61,19 +70,12 @@ public void setDrivers(List drivers) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CSINodeSpec v1beta1CSINodeSpec = (V1beta1CSINodeSpec) o; - return Objects.equals(this.drivers, v1beta1CSINodeSpec.drivers); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(drivers); + return HashCodeBuilder.reflectionHashCode(this); } @@ -81,7 +83,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CSINodeSpec {\n"); - sb.append(" drivers: ").append(toIndentedString(drivers)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequest.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequest.java index 17dced6d18..8b4fabcf42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequest.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequest.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Describes a certificate signing request */ @ApiModel(description = "Describes a certificate signing request") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CertificateSigningRequest { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1CertificateSigningRequestSpec spec; - @SerializedName("spec") - private V1beta1CertificateSigningRequestSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1CertificateSigningRequestStatus status; - @SerializedName("status") - private V1beta1CertificateSigningRequestStatus status = null; public V1beta1CertificateSigningRequest apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1CertificateSigningRequest apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CertificateSigningRequest kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1CertificateSigningRequest kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CertificateSigningRequest metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1beta1CertificateSigningRequest metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1CertificateSigningRequest spec(V1beta1CertificateSigningRequestSpec spec) { + this.spec = spec; return this; } /** - * The certificate request itself and any additional information. + * Get spec * @return spec **/ - @ApiModelProperty(value = "The certificate request itself and any additional information.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CertificateSigningRequestSpec getSpec() { return spec; } + + public void setSpec(V1beta1CertificateSigningRequestSpec spec) { this.spec = spec; } + public V1beta1CertificateSigningRequest status(V1beta1CertificateSigningRequestStatus status) { + this.status = status; return this; } /** - * Derived information about the request. + * Get status * @return status **/ - @ApiModelProperty(value = "Derived information about the request.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CertificateSigningRequestStatus getStatus() { return status; } + + public void setStatus(V1beta1CertificateSigningRequestStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1CertificateSigningRequestStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CertificateSigningRequest v1beta1CertificateSigningRequest = (V1beta1CertificateSigningRequest) o; - return Objects.equals(this.apiVersion, v1beta1CertificateSigningRequest.apiVersion) && - Objects.equals(this.kind, v1beta1CertificateSigningRequest.kind) && - Objects.equals(this.metadata, v1beta1CertificateSigningRequest.metadata) && - Objects.equals(this.spec, v1beta1CertificateSigningRequest.spec) && - Objects.equals(this.status, v1beta1CertificateSigningRequest.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CertificateSigningRequest {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestCondition.java index a5498375d6..65222d72c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ /** * V1beta1CertificateSigningRequestCondition */ - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CertificateSigningRequestCondition { - @SerializedName("lastUpdateTime") - private DateTime lastUpdateTime = null; + public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + private DateTime lastUpdateTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1CertificateSigningRequestCondition lastUpdateTime(DateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @@ -50,16 +59,22 @@ public V1beta1CertificateSigningRequestCondition lastUpdateTime(DateTime lastUpd * timestamp for the last update to this condition * @return lastUpdateTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "timestamp for the last update to this condition") + public DateTime getLastUpdateTime() { return lastUpdateTime; } + + public void setLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + public V1beta1CertificateSigningRequestCondition message(String message) { + this.message = message; return this; } @@ -68,16 +83,22 @@ public V1beta1CertificateSigningRequestCondition message(String message) { * human readable message with details about the request state * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "human readable message with details about the request state") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1CertificateSigningRequestCondition reason(String reason) { + this.reason = reason; return this; } @@ -86,16 +107,22 @@ public V1beta1CertificateSigningRequestCondition reason(String reason) { * brief reason for the request state * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "brief reason for the request state") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1CertificateSigningRequestCondition type(String type) { + this.type = type; return this; } @@ -105,10 +132,13 @@ public V1beta1CertificateSigningRequestCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "request approval state, currently Approved or Denied.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -116,22 +146,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CertificateSigningRequestCondition v1beta1CertificateSigningRequestCondition = (V1beta1CertificateSigningRequestCondition) o; - return Objects.equals(this.lastUpdateTime, v1beta1CertificateSigningRequestCondition.lastUpdateTime) && - Objects.equals(this.message, v1beta1CertificateSigningRequestCondition.message) && - Objects.equals(this.reason, v1beta1CertificateSigningRequestCondition.reason) && - Objects.equals(this.type, v1beta1CertificateSigningRequestCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastUpdateTime, message, reason, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CertificateSigningRequestCondition {\n"); - sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestList.java index 4c0b7deaf1..a85b559a40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ /** * V1beta1CertificateSigningRequestList */ - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CertificateSigningRequestList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1CertificateSigningRequestList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -53,16 +62,22 @@ public V1beta1CertificateSigningRequestList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CertificateSigningRequestList items(List items) { + this.items = items; return this; } @@ -77,15 +92,20 @@ public V1beta1CertificateSigningRequestList addItemsItem(V1beta1CertificateSigni * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1CertificateSigningRequestList kind(String kind) { + this.kind = kind; return this; } @@ -94,16 +114,22 @@ public V1beta1CertificateSigningRequestList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CertificateSigningRequestList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -112,11 +138,15 @@ public V1beta1CertificateSigningRequestList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -124,22 +154,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CertificateSigningRequestList v1beta1CertificateSigningRequestList = (V1beta1CertificateSigningRequestList) o; - return Objects.equals(this.apiVersion, v1beta1CertificateSigningRequestList.apiVersion) && - Objects.equals(this.items, v1beta1CertificateSigningRequestList.items) && - Objects.equals(this.kind, v1beta1CertificateSigningRequestList.kind) && - Objects.equals(this.metadata, v1beta1CertificateSigningRequestList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -147,7 +167,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CertificateSigningRequestList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpec.java index 96c91ca791..33d848c8dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,27 +34,35 @@ * This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users. */ @ApiModel(description = "This information is immutable after the request is created. Only the Request and Usages fields can be set on creation, other fields are derived by Kubernetes and cannot be modified by users.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CertificateSigningRequestSpec { - @SerializedName("extra") + public static final String SERIALIZED_NAME_EXTRA = "extra"; + @SerializedName(SERIALIZED_NAME_EXTRA) private Map> extra = null; - @SerializedName("groups") + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) private List groups = null; - @SerializedName("request") - private byte[] request = null; + public static final String SERIALIZED_NAME_REQUEST = "request"; + @SerializedName(SERIALIZED_NAME_REQUEST) + private byte[] request; - @SerializedName("uid") - private String uid = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("usages") + public static final String SERIALIZED_NAME_USAGES = "usages"; + @SerializedName(SERIALIZED_NAME_USAGES) private List usages = null; - @SerializedName("username") - private String username = null; + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + private String username; + public V1beta1CertificateSigningRequestSpec extra(Map> extra) { + this.extra = extra; return this; } @@ -68,16 +79,22 @@ public V1beta1CertificateSigningRequestSpec putExtraItem(String key, List> getExtra() { return extra; } + + public void setExtra(Map> extra) { this.extra = extra; } + public V1beta1CertificateSigningRequestSpec groups(List groups) { + this.groups = groups; return this; } @@ -94,16 +111,22 @@ public V1beta1CertificateSigningRequestSpec addGroupsItem(String groupsItem) { * Group information about the requesting user. See user.Info interface for details. * @return groups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Group information about the requesting user. See user.Info interface for details.") + public List getGroups() { return groups; } + + public void setGroups(List groups) { this.groups = groups; } + public V1beta1CertificateSigningRequestSpec request(byte[] request) { + this.request = request; return this; } @@ -113,15 +136,20 @@ public V1beta1CertificateSigningRequestSpec request(byte[] request) { * @return request **/ @ApiModelProperty(required = true, value = "Base64-encoded PKCS#10 CSR data") + public byte[] getRequest() { return request; } + + public void setRequest(byte[] request) { this.request = request; } + public V1beta1CertificateSigningRequestSpec uid(String uid) { + this.uid = uid; return this; } @@ -130,16 +158,22 @@ public V1beta1CertificateSigningRequestSpec uid(String uid) { * UID information about the requesting user. See user.Info interface for details. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID information about the requesting user. See user.Info interface for details.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } + public V1beta1CertificateSigningRequestSpec usages(List usages) { + this.usages = usages; return this; } @@ -156,16 +190,22 @@ public V1beta1CertificateSigningRequestSpec addUsagesItem(String usagesItem) { * allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12 * @return usages **/ + @javax.annotation.Nullable @ApiModelProperty(value = "allowedUsages specifies a set of usage contexts the key will be valid for. See: https://tools.ietf.org/html/rfc5280#section-4.2.1.3 https://tools.ietf.org/html/rfc5280#section-4.2.1.12") + public List getUsages() { return usages; } + + public void setUsages(List usages) { this.usages = usages; } + public V1beta1CertificateSigningRequestSpec username(String username) { + this.username = username; return this; } @@ -174,11 +214,15 @@ public V1beta1CertificateSigningRequestSpec username(String username) { * Information about the requesting user. See user.Info interface for details. * @return username **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Information about the requesting user. See user.Info interface for details.") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } @@ -186,24 +230,12 @@ public void setUsername(String username) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CertificateSigningRequestSpec v1beta1CertificateSigningRequestSpec = (V1beta1CertificateSigningRequestSpec) o; - return Objects.equals(this.extra, v1beta1CertificateSigningRequestSpec.extra) && - Objects.equals(this.groups, v1beta1CertificateSigningRequestSpec.groups) && - Objects.equals(this.request, v1beta1CertificateSigningRequestSpec.request) && - Objects.equals(this.uid, v1beta1CertificateSigningRequestSpec.uid) && - Objects.equals(this.usages, v1beta1CertificateSigningRequestSpec.usages) && - Objects.equals(this.username, v1beta1CertificateSigningRequestSpec.username); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(extra, groups, request, uid, usages, username); + return HashCodeBuilder.reflectionHashCode(this); } @@ -211,7 +243,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CertificateSigningRequestSpec {\n"); - sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" request: ").append(toIndentedString(request)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatus.java index c77571b9fa..4c3e6b35aa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ /** * V1beta1CertificateSigningRequestStatus */ - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CertificateSigningRequestStatus { - @SerializedName("certificate") - private byte[] certificate = null; + public static final String SERIALIZED_NAME_CERTIFICATE = "certificate"; + @SerializedName(SERIALIZED_NAME_CERTIFICATE) + private byte[] certificate; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; + public V1beta1CertificateSigningRequestStatus certificate(byte[] certificate) { + this.certificate = certificate; return this; } @@ -46,16 +53,22 @@ public V1beta1CertificateSigningRequestStatus certificate(byte[] certificate) { * If request was approved, the controller will place the issued certificate here. * @return certificate **/ + @javax.annotation.Nullable @ApiModelProperty(value = "If request was approved, the controller will place the issued certificate here.") + public byte[] getCertificate() { return certificate; } + + public void setCertificate(byte[] certificate) { this.certificate = certificate; } + public V1beta1CertificateSigningRequestStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -72,11 +85,15 @@ public V1beta1CertificateSigningRequestStatus addConditionsItem(V1beta1Certifica * Conditions applied to the request, such as approval or denial. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Conditions applied to the request, such as approval or denial.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } @@ -84,20 +101,12 @@ public void setConditions(List condit @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CertificateSigningRequestStatus v1beta1CertificateSigningRequestStatus = (V1beta1CertificateSigningRequestStatus) o; - return Objects.equals(this.certificate, v1beta1CertificateSigningRequestStatus.certificate) && - Objects.equals(this.conditions, v1beta1CertificateSigningRequestStatus.conditions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(certificate, conditions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CertificateSigningRequestStatus {\n"); - sb.append(" certificate: ").append(toIndentedString(certificate)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRole.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRole.java index d9338648f6..9b449f3f60 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRole.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRole.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,42 +35,55 @@ * ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. */ @ApiModel(description = "ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ClusterRole { - @SerializedName("aggregationRule") - private V1beta1AggregationRule aggregationRule = null; + public static final String SERIALIZED_NAME_AGGREGATION_RULE = "aggregationRule"; + @SerializedName(SERIALIZED_NAME_AGGREGATION_RULE) + private V1beta1AggregationRule aggregationRule; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; + public V1beta1ClusterRole aggregationRule(V1beta1AggregationRule aggregationRule) { + this.aggregationRule = aggregationRule; return this; } /** - * AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller. + * Get aggregationRule * @return aggregationRule **/ - @ApiModelProperty(value = "AggregationRule is an optional field that describes how to build the Rules for this ClusterRole. If AggregationRule is set, then the Rules are controller managed and direct changes to Rules will be stomped by the controller.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1AggregationRule getAggregationRule() { return aggregationRule; } + + public void setAggregationRule(V1beta1AggregationRule aggregationRule) { this.aggregationRule = aggregationRule; } + public V1beta1ClusterRole apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -76,16 +92,22 @@ public V1beta1ClusterRole apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ClusterRole kind(String kind) { + this.kind = kind; return this; } @@ -94,34 +116,46 @@ public V1beta1ClusterRole kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ClusterRole metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1ClusterRole rules(List rules) { + this.rules = rules; return this; } @@ -138,11 +172,15 @@ public V1beta1ClusterRole addRulesItem(V1beta1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this ClusterRole * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this ClusterRole") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } @@ -150,23 +188,12 @@ public void setRules(List rules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ClusterRole v1beta1ClusterRole = (V1beta1ClusterRole) o; - return Objects.equals(this.aggregationRule, v1beta1ClusterRole.aggregationRule) && - Objects.equals(this.apiVersion, v1beta1ClusterRole.apiVersion) && - Objects.equals(this.kind, v1beta1ClusterRole.kind) && - Objects.equals(this.metadata, v1beta1ClusterRole.metadata) && - Objects.equals(this.rules, v1beta1ClusterRole.rules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(aggregationRule, apiVersion, kind, metadata, rules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +201,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ClusterRole {\n"); - sb.append(" aggregationRule: ").append(toIndentedString(aggregationRule)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBinding.java index 2552bfb542..79790e9f7c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBinding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,24 +35,31 @@ * ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject. */ @ApiModel(description = "ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, and adds who information via Subject.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ClusterRoleBinding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("roleRef") - private V1beta1RoleRef roleRef = null; + public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; + @SerializedName(SERIALIZED_NAME_ROLE_REF) + private V1beta1RoleRef roleRef; - @SerializedName("subjects") + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = null; + public V1beta1ClusterRoleBinding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -58,16 +68,22 @@ public V1beta1ClusterRoleBinding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ClusterRoleBinding kind(String kind) { + this.kind = kind; return this; } @@ -76,52 +92,69 @@ public V1beta1ClusterRoleBinding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ClusterRoleBinding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1ClusterRoleBinding roleRef(V1beta1RoleRef roleRef) { + this.roleRef = roleRef; return this; } /** - * RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "RoleRef can only reference a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.") + @ApiModelProperty(required = true, value = "") + public V1beta1RoleRef getRoleRef() { return roleRef; } + + public void setRoleRef(V1beta1RoleRef roleRef) { this.roleRef = roleRef; } + public V1beta1ClusterRoleBinding subjects(List subjects) { + this.subjects = subjects; return this; } @@ -138,11 +171,15 @@ public V1beta1ClusterRoleBinding addSubjectsItem(V1beta1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") + public List getSubjects() { return subjects; } + + public void setSubjects(List subjects) { this.subjects = subjects; } @@ -150,23 +187,12 @@ public void setSubjects(List subjects) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ClusterRoleBinding v1beta1ClusterRoleBinding = (V1beta1ClusterRoleBinding) o; - return Objects.equals(this.apiVersion, v1beta1ClusterRoleBinding.apiVersion) && - Objects.equals(this.kind, v1beta1ClusterRoleBinding.kind) && - Objects.equals(this.metadata, v1beta1ClusterRoleBinding.metadata) && - Objects.equals(this.roleRef, v1beta1ClusterRoleBinding.roleRef) && - Objects.equals(this.subjects, v1beta1ClusterRoleBinding.subjects); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +200,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ClusterRoleBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingList.java index 54f3ced2c4..7f786bb323 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ClusterRoleBindingList is a collection of ClusterRoleBindings */ @ApiModel(description = "ClusterRoleBindingList is a collection of ClusterRoleBindings") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ClusterRoleBindingList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1ClusterRoleBindingList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1ClusterRoleBindingList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ClusterRoleBindingList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1ClusterRoleBindingList addItemsItem(V1beta1ClusterRoleBinding item * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ClusterRoleBindings") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1ClusterRoleBindingList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1ClusterRoleBindingList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ClusterRoleBindingList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ClusterRoleBindingList v1beta1ClusterRoleBindingList = (V1beta1ClusterRoleBindingList) o; - return Objects.equals(this.apiVersion, v1beta1ClusterRoleBindingList.apiVersion) && - Objects.equals(this.items, v1beta1ClusterRoleBindingList.items) && - Objects.equals(this.kind, v1beta1ClusterRoleBindingList.kind) && - Objects.equals(this.metadata, v1beta1ClusterRoleBindingList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ClusterRoleBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleList.java index 1b980ca544..74cdc316d4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ClusterRoleList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ClusterRoleList is a collection of ClusterRoles */ @ApiModel(description = "ClusterRoleList is a collection of ClusterRoles") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ClusterRoleList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1ClusterRoleList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1ClusterRoleList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ClusterRoleList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1ClusterRoleList addItemsItem(V1beta1ClusterRole itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of ClusterRoles") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1ClusterRoleList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1ClusterRoleList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ClusterRoleList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ClusterRoleList v1beta1ClusterRoleList = (V1beta1ClusterRoleList) o; - return Objects.equals(this.apiVersion, v1beta1ClusterRoleList.apiVersion) && - Objects.equals(this.items, v1beta1ClusterRoleList.items) && - Objects.equals(this.kind, v1beta1ClusterRoleList.kind) && - Objects.equals(this.metadata, v1beta1ClusterRoleList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ClusterRoleList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevision.java index 6d929ffdca..e035f6e368 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevision.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. */ @ApiModel(description = "DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ControllerRevision { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RuntimeRawExtension data; - @SerializedName("data") - private RuntimeRawExtension data = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_REVISION = "revision"; + @SerializedName(SERIALIZED_NAME_REVISION) + private Long revision; - @SerializedName("revision") - private Long revision = null; public V1beta1ControllerRevision apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -55,34 +65,46 @@ public V1beta1ControllerRevision apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ControllerRevision data(RuntimeRawExtension data) { + this.data = data; return this; } /** - * Data is the serialized representation of the state. + * Get data * @return data **/ - @ApiModelProperty(value = "Data is the serialized representation of the state.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public RuntimeRawExtension getData() { return data; } + + public void setData(RuntimeRawExtension data) { this.data = data; } + public V1beta1ControllerRevision kind(String kind) { + this.kind = kind; return this; } @@ -91,34 +113,46 @@ public V1beta1ControllerRevision kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ControllerRevision metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1ControllerRevision revision(Long revision) { + this.revision = revision; return this; } @@ -128,10 +162,13 @@ public V1beta1ControllerRevision revision(Long revision) { * @return revision **/ @ApiModelProperty(required = true, value = "Revision indicates the revision of the state represented by Data.") + public Long getRevision() { return revision; } + + public void setRevision(Long revision) { this.revision = revision; } @@ -139,23 +176,12 @@ public void setRevision(Long revision) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ControllerRevision v1beta1ControllerRevision = (V1beta1ControllerRevision) o; - return Objects.equals(this.apiVersion, v1beta1ControllerRevision.apiVersion) && - Objects.equals(this.data, v1beta1ControllerRevision.data) && - Objects.equals(this.kind, v1beta1ControllerRevision.kind) && - Objects.equals(this.metadata, v1beta1ControllerRevision.metadata) && - Objects.equals(this.revision, v1beta1ControllerRevision.revision); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, data, kind, metadata, revision); + return HashCodeBuilder.reflectionHashCode(this); } @@ -163,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ControllerRevision {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevisionList.java index 896d9ac05e..b18464bc07 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ControllerRevisionList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ControllerRevisionList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1ControllerRevisionList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1ControllerRevisionList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ControllerRevisionList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1ControllerRevisionList addItemsItem(V1beta1ControllerRevision item * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of ControllerRevisions") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1ControllerRevisionList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1ControllerRevisionList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ControllerRevisionList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ControllerRevisionList v1beta1ControllerRevisionList = (V1beta1ControllerRevisionList) o; - return Objects.equals(this.apiVersion, v1beta1ControllerRevisionList.apiVersion) && - Objects.equals(this.items, v1beta1ControllerRevisionList.items) && - Objects.equals(this.kind, v1beta1ControllerRevisionList.kind) && - Objects.equals(this.metadata, v1beta1ControllerRevisionList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ControllerRevisionList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJob.java index 5025e770eb..00186fd331 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJob.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CronJob { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1CronJobSpec spec; - @SerializedName("spec") - private V1beta1CronJobSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1CronJobStatus status; - @SerializedName("status") - private V1beta1CronJobStatus status = null; public V1beta1CronJob apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1CronJob apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CronJob kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta1CronJob kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CronJob metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1CronJob spec(V1beta1CronJobSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CronJobSpec getSpec() { return spec; } + + public void setSpec(V1beta1CronJobSpec spec) { this.spec = spec; } + public V1beta1CronJob status(V1beta1CronJobStatus status) { + this.status = status; return this; } /** - * Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CronJobStatus getStatus() { return status; } + + public void setStatus(V1beta1CronJobStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1CronJobStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJob v1beta1CronJob = (V1beta1CronJob) o; - return Objects.equals(this.apiVersion, v1beta1CronJob.apiVersion) && - Objects.equals(this.kind, v1beta1CronJob.kind) && - Objects.equals(this.metadata, v1beta1CronJob.metadata) && - Objects.equals(this.spec, v1beta1CronJob.spec) && - Objects.equals(this.status, v1beta1CronJob.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CronJob {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobList.java index f0b7c4918d..ca7139c252 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CronJobList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1CronJobList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1CronJobList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CronJobList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1CronJobList addItemsItem(V1beta1CronJob itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of CronJobs.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1CronJobList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1CronJobList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CronJobList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJobList v1beta1CronJobList = (V1beta1CronJobList) o; - return Objects.equals(this.apiVersion, v1beta1CronJobList.apiVersion) && - Objects.equals(this.items, v1beta1CronJobList.items) && - Objects.equals(this.kind, v1beta1CronJobList.kind) && - Objects.equals(this.metadata, v1beta1CronJobList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CronJobList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobSpec.java index f138ce8e59..03f99b5d5b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,30 +31,39 @@ * CronJobSpec describes how the job execution will look like and when it will actually run. */ @ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CronJobSpec { - @SerializedName("concurrencyPolicy") - private String concurrencyPolicy = null; + public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; + @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) + private String concurrencyPolicy; + + public static final String SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT = "failedJobsHistoryLimit"; + @SerializedName(SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT) + private Integer failedJobsHistoryLimit; - @SerializedName("failedJobsHistoryLimit") - private Integer failedJobsHistoryLimit = null; + public static final String SERIALIZED_NAME_JOB_TEMPLATE = "jobTemplate"; + @SerializedName(SERIALIZED_NAME_JOB_TEMPLATE) + private V1beta1JobTemplateSpec jobTemplate; - @SerializedName("jobTemplate") - private V1beta1JobTemplateSpec jobTemplate = null; + public static final String SERIALIZED_NAME_SCHEDULE = "schedule"; + @SerializedName(SERIALIZED_NAME_SCHEDULE) + private String schedule; - @SerializedName("schedule") - private String schedule = null; + public static final String SERIALIZED_NAME_STARTING_DEADLINE_SECONDS = "startingDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_STARTING_DEADLINE_SECONDS) + private Long startingDeadlineSeconds; - @SerializedName("startingDeadlineSeconds") - private Long startingDeadlineSeconds = null; + public static final String SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT = "successfulJobsHistoryLimit"; + @SerializedName(SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT) + private Integer successfulJobsHistoryLimit; - @SerializedName("successfulJobsHistoryLimit") - private Integer successfulJobsHistoryLimit = null; + public static final String SERIALIZED_NAME_SUSPEND = "suspend"; + @SerializedName(SERIALIZED_NAME_SUSPEND) + private Boolean suspend; - @SerializedName("suspend") - private Boolean suspend = null; public V1beta1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @@ -60,16 +72,22 @@ public V1beta1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { * Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one * @return concurrencyPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one") + public String getConcurrencyPolicy() { return concurrencyPolicy; } + + public void setConcurrencyPolicy(String concurrencyPolicy) { this.concurrencyPolicy = concurrencyPolicy; } + public V1beta1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @@ -78,34 +96,45 @@ public V1beta1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return failedJobsHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") + public Integer getFailedJobsHistoryLimit() { return failedJobsHistoryLimit; } + + public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { this.failedJobsHistoryLimit = failedJobsHistoryLimit; } + public V1beta1CronJobSpec jobTemplate(V1beta1JobTemplateSpec jobTemplate) { + this.jobTemplate = jobTemplate; return this; } /** - * Specifies the job that will be created when executing a CronJob. + * Get jobTemplate * @return jobTemplate **/ - @ApiModelProperty(required = true, value = "Specifies the job that will be created when executing a CronJob.") + @ApiModelProperty(required = true, value = "") + public V1beta1JobTemplateSpec getJobTemplate() { return jobTemplate; } + + public void setJobTemplate(V1beta1JobTemplateSpec jobTemplate) { this.jobTemplate = jobTemplate; } + public V1beta1CronJobSpec schedule(String schedule) { + this.schedule = schedule; return this; } @@ -115,15 +144,20 @@ public V1beta1CronJobSpec schedule(String schedule) { * @return schedule **/ @ApiModelProperty(required = true, value = "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.") + public String getSchedule() { return schedule; } + + public void setSchedule(String schedule) { this.schedule = schedule; } + public V1beta1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @@ -132,16 +166,22 @@ public V1beta1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. * @return startingDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.") + public Long getStartingDeadlineSeconds() { return startingDeadlineSeconds; } + + public void setStartingDeadlineSeconds(Long startingDeadlineSeconds) { this.startingDeadlineSeconds = startingDeadlineSeconds; } + public V1beta1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @@ -150,16 +190,22 @@ public V1beta1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHisto * The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3. * @return successfulJobsHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. Defaults to 3.") + public Integer getSuccessfulJobsHistoryLimit() { return successfulJobsHistoryLimit; } + + public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; } + public V1beta1CronJobSpec suspend(Boolean suspend) { + this.suspend = suspend; return this; } @@ -168,11 +214,15 @@ public V1beta1CronJobSpec suspend(Boolean suspend) { * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. * @return suspend **/ + @javax.annotation.Nullable @ApiModelProperty(value = "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.") - public Boolean isSuspend() { + + public Boolean getSuspend() { return suspend; } + + public void setSuspend(Boolean suspend) { this.suspend = suspend; } @@ -180,25 +230,12 @@ public void setSuspend(Boolean suspend) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJobSpec v1beta1CronJobSpec = (V1beta1CronJobSpec) o; - return Objects.equals(this.concurrencyPolicy, v1beta1CronJobSpec.concurrencyPolicy) && - Objects.equals(this.failedJobsHistoryLimit, v1beta1CronJobSpec.failedJobsHistoryLimit) && - Objects.equals(this.jobTemplate, v1beta1CronJobSpec.jobTemplate) && - Objects.equals(this.schedule, v1beta1CronJobSpec.schedule) && - Objects.equals(this.startingDeadlineSeconds, v1beta1CronJobSpec.startingDeadlineSeconds) && - Objects.equals(this.successfulJobsHistoryLimit, v1beta1CronJobSpec.successfulJobsHistoryLimit) && - Objects.equals(this.suspend, v1beta1CronJobSpec.suspend); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend); + return HashCodeBuilder.reflectionHashCode(this); } @@ -206,7 +243,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CronJobSpec {\n"); - sb.append(" concurrencyPolicy: ").append(toIndentedString(concurrencyPolicy)).append("\n"); sb.append(" failedJobsHistoryLimit: ").append(toIndentedString(failedJobsHistoryLimit)).append("\n"); sb.append(" jobTemplate: ").append(toIndentedString(jobTemplate)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobStatus.java index a306ce0d20..332bf8c21b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CronJobStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CronJobStatus { - @SerializedName("active") + public static final String SERIALIZED_NAME_ACTIVE = "active"; + @SerializedName(SERIALIZED_NAME_ACTIVE) private List active = null; - @SerializedName("lastScheduleTime") - private DateTime lastScheduleTime = null; + public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; + @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) + private DateTime lastScheduleTime; + public V1beta1CronJobStatus active(List active) { + this.active = active; return this; } @@ -56,16 +63,22 @@ public V1beta1CronJobStatus addActiveItem(V1ObjectReference activeItem) { * A list of pointers to currently running jobs. * @return active **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of pointers to currently running jobs.") + public List getActive() { return active; } + + public void setActive(List active) { this.active = active; } + public V1beta1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } @@ -74,11 +87,15 @@ public V1beta1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { * Information when was the last time the job was successfully scheduled. * @return lastScheduleTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Information when was the last time the job was successfully scheduled.") + public DateTime getLastScheduleTime() { return lastScheduleTime; } + + public void setLastScheduleTime(DateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; } @@ -86,20 +103,12 @@ public void setLastScheduleTime(DateTime lastScheduleTime) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CronJobStatus v1beta1CronJobStatus = (V1beta1CronJobStatus) o; - return Objects.equals(this.active, v1beta1CronJobStatus.active) && - Objects.equals(this.lastScheduleTime, v1beta1CronJobStatus.lastScheduleTime); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(active, lastScheduleTime); + return HashCodeBuilder.reflectionHashCode(this); } @@ -107,7 +116,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CronJobStatus {\n"); - sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" lastScheduleTime: ").append(toIndentedString(lastScheduleTime)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinition.java index bcb67d3645..c9b3ee2710 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,27 +30,35 @@ * CustomResourceColumnDefinition specifies a column for server side printing. */ @ApiModel(description = "CustomResourceColumnDefinition specifies a column for server side printing.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceColumnDefinition { - @SerializedName("JSONPath") - private String jsONPath = null; + public static final String SERIALIZED_NAME_JS_O_N_PATH = "JSONPath"; + @SerializedName(SERIALIZED_NAME_JS_O_N_PATH) + private String jsONPath; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; - @SerializedName("description") - private String description = null; + public static final String SERIALIZED_NAME_FORMAT = "format"; + @SerializedName(SERIALIZED_NAME_FORMAT) + private String format; - @SerializedName("format") - private String format = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_PRIORITY = "priority"; + @SerializedName(SERIALIZED_NAME_PRIORITY) + private Integer priority; - @SerializedName("priority") - private Integer priority = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1CustomResourceColumnDefinition jsONPath(String jsONPath) { + this.jsONPath = jsONPath; return this; } @@ -57,15 +68,20 @@ public V1beta1CustomResourceColumnDefinition jsONPath(String jsONPath) { * @return jsONPath **/ @ApiModelProperty(required = true, value = "JSONPath is a simple JSON path, i.e. with array notation.") + public String getJsONPath() { return jsONPath; } + + public void setJsONPath(String jsONPath) { this.jsONPath = jsONPath; } + public V1beta1CustomResourceColumnDefinition description(String description) { + this.description = description; return this; } @@ -74,16 +90,22 @@ public V1beta1CustomResourceColumnDefinition description(String description) { * description is a human readable description of this column. * @return description **/ + @javax.annotation.Nullable @ApiModelProperty(value = "description is a human readable description of this column.") + public String getDescription() { return description; } + + public void setDescription(String description) { this.description = description; } + public V1beta1CustomResourceColumnDefinition format(String format) { + this.format = format; return this; } @@ -92,16 +114,22 @@ public V1beta1CustomResourceColumnDefinition format(String format) { * format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more. * @return format **/ + @javax.annotation.Nullable @ApiModelProperty(value = "format is an optional OpenAPI type definition for this column. The 'name' format is applied to the primary identifier column to assist in clients identifying column is the resource name. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.") + public String getFormat() { return format; } + + public void setFormat(String format) { this.format = format; } + public V1beta1CustomResourceColumnDefinition name(String name) { + this.name = name; return this; } @@ -111,15 +139,20 @@ public V1beta1CustomResourceColumnDefinition name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is a human readable name for the column.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1beta1CustomResourceColumnDefinition priority(Integer priority) { + this.priority = priority; return this; } @@ -128,16 +161,22 @@ public V1beta1CustomResourceColumnDefinition priority(Integer priority) { * priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority. * @return priority **/ + @javax.annotation.Nullable @ApiModelProperty(value = "priority is an integer defining the relative importance of this column compared to others. Lower numbers are considered higher priority. Columns that may be omitted in limited space scenarios should be given a higher priority.") + public Integer getPriority() { return priority; } + + public void setPriority(Integer priority) { this.priority = priority; } + public V1beta1CustomResourceColumnDefinition type(String type) { + this.type = type; return this; } @@ -147,10 +186,13 @@ public V1beta1CustomResourceColumnDefinition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type is an OpenAPI type definition for this column. See https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#data-types for more.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -158,24 +200,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceColumnDefinition v1beta1CustomResourceColumnDefinition = (V1beta1CustomResourceColumnDefinition) o; - return Objects.equals(this.jsONPath, v1beta1CustomResourceColumnDefinition.jsONPath) && - Objects.equals(this.description, v1beta1CustomResourceColumnDefinition.description) && - Objects.equals(this.format, v1beta1CustomResourceColumnDefinition.format) && - Objects.equals(this.name, v1beta1CustomResourceColumnDefinition.name) && - Objects.equals(this.priority, v1beta1CustomResourceColumnDefinition.priority) && - Objects.equals(this.type, v1beta1CustomResourceColumnDefinition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(jsONPath, description, format, name, priority, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -183,7 +213,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceColumnDefinition {\n"); - sb.append(" jsONPath: ").append(toIndentedString(jsONPath)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" format: ").append(toIndentedString(format)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceConversion.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceConversion.java index 12ce21e5aa..d723e7355d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceConversion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceConversion.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * CustomResourceConversion describes how to convert different versions of a CR. */ @ApiModel(description = "CustomResourceConversion describes how to convert different versions of a CR.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceConversion { - @SerializedName("conversionReviewVersions") + public static final String SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS = "conversionReviewVersions"; + @SerializedName(SERIALIZED_NAME_CONVERSION_REVIEW_VERSIONS) private List conversionReviewVersions = null; - @SerializedName("strategy") - private String strategy = null; + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private String strategy; + + public static final String SERIALIZED_NAME_WEBHOOK_CLIENT_CONFIG = "webhookClientConfig"; + @SerializedName(SERIALIZED_NAME_WEBHOOK_CLIENT_CONFIG) + private ApiextensionsV1beta1WebhookClientConfig webhookClientConfig; - @SerializedName("webhookClientConfig") - private ApiextensionsV1beta1WebhookClientConfig webhookClientConfig = null; public V1beta1CustomResourceConversion conversionReviewVersions(List conversionReviewVersions) { + this.conversionReviewVersions = conversionReviewVersions; return this; } @@ -58,47 +66,62 @@ public V1beta1CustomResourceConversion addConversionReviewVersionsItem(String co * ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`. * @return conversionReviewVersions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ConversionReviewVersions is an ordered list of preferred `ConversionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, conversion will fail for this object. If a persisted Webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail. Default to `['v1beta1']`.") + public List getConversionReviewVersions() { return conversionReviewVersions; } + + public void setConversionReviewVersions(List conversionReviewVersions) { this.conversionReviewVersions = conversionReviewVersions; } + public V1beta1CustomResourceConversion strategy(String strategy) { + this.strategy = strategy; return this; } /** - * `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. + * `strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false. * @return strategy **/ - @ApiModelProperty(required = true, value = "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.") + @ApiModelProperty(required = true, value = "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option. This requires spec.preserveUnknownFields to be false.") + public String getStrategy() { return strategy; } + + public void setStrategy(String strategy) { this.strategy = strategy; } + public V1beta1CustomResourceConversion webhookClientConfig(ApiextensionsV1beta1WebhookClientConfig webhookClientConfig) { + this.webhookClientConfig = webhookClientConfig; return this; } /** - * `webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + * Get webhookClientConfig * @return webhookClientConfig **/ - @ApiModelProperty(value = "`webhookClientConfig` is the instructions for how to call the webhook if strategy is `Webhook`. This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public ApiextensionsV1beta1WebhookClientConfig getWebhookClientConfig() { return webhookClientConfig; } + + public void setWebhookClientConfig(ApiextensionsV1beta1WebhookClientConfig webhookClientConfig) { this.webhookClientConfig = webhookClientConfig; } @@ -106,21 +129,12 @@ public void setWebhookClientConfig(ApiextensionsV1beta1WebhookClientConfig webho @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceConversion v1beta1CustomResourceConversion = (V1beta1CustomResourceConversion) o; - return Objects.equals(this.conversionReviewVersions, v1beta1CustomResourceConversion.conversionReviewVersions) && - Objects.equals(this.strategy, v1beta1CustomResourceConversion.strategy) && - Objects.equals(this.webhookClientConfig, v1beta1CustomResourceConversion.webhookClientConfig); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conversionReviewVersions, strategy, webhookClientConfig); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +142,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceConversion {\n"); - sb.append(" conversionReviewVersions: ").append(toIndentedString(conversionReviewVersions)).append("\n"); sb.append(" strategy: ").append(toIndentedString(strategy)).append("\n"); sb.append(" webhookClientConfig: ").append(toIndentedString(webhookClientConfig)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinition.java index 02a95e1b0e..2fa0da8231 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>. */ @ApiModel(description = "CustomResourceDefinition represents a resource that should be exposed on the API server. Its name MUST be in the format <.spec.name>.<.spec.group>.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinition { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1CustomResourceDefinitionSpec spec; - @SerializedName("spec") - private V1beta1CustomResourceDefinitionSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1CustomResourceDefinitionStatus status; - @SerializedName("status") - private V1beta1CustomResourceDefinitionStatus status = null; public V1beta1CustomResourceDefinition apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1CustomResourceDefinition apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CustomResourceDefinition kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1CustomResourceDefinition kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CustomResourceDefinition metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1beta1CustomResourceDefinition metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1CustomResourceDefinition spec(V1beta1CustomResourceDefinitionSpec spec) { + this.spec = spec; return this; } /** - * Spec describes how the user wants the resources to appear + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec describes how the user wants the resources to appear") + @ApiModelProperty(required = true, value = "") + public V1beta1CustomResourceDefinitionSpec getSpec() { return spec; } + + public void setSpec(V1beta1CustomResourceDefinitionSpec spec) { this.spec = spec; } + public V1beta1CustomResourceDefinition status(V1beta1CustomResourceDefinitionStatus status) { + this.status = status; return this; } /** - * Status indicates the actual state of the CustomResourceDefinition + * Get status * @return status **/ - @ApiModelProperty(value = "Status indicates the actual state of the CustomResourceDefinition") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceDefinitionStatus getStatus() { return status; } + + public void setStatus(V1beta1CustomResourceDefinitionStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1CustomResourceDefinitionStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinition v1beta1CustomResourceDefinition = (V1beta1CustomResourceDefinition) o; - return Objects.equals(this.apiVersion, v1beta1CustomResourceDefinition.apiVersion) && - Objects.equals(this.kind, v1beta1CustomResourceDefinition.kind) && - Objects.equals(this.metadata, v1beta1CustomResourceDefinition.metadata) && - Objects.equals(this.spec, v1beta1CustomResourceDefinition.spec) && - Objects.equals(this.status, v1beta1CustomResourceDefinition.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinition {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionCondition.java index 2dd859df63..81708c824f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * CustomResourceDefinitionCondition contains details for the current condition of this pod. */ @ApiModel(description = "CustomResourceDefinitionCondition contains details for the current condition of this pod.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1CustomResourceDefinitionCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta1CustomResourceDefinitionCondition lastTransitionTime(DateTime last * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta1CustomResourceDefinitionCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta1CustomResourceDefinitionCondition message(String message) { * Human-readable message indicating details about last transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Human-readable message indicating details about last transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1CustomResourceDefinitionCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta1CustomResourceDefinitionCondition reason(String reason) { * Unique, one-word, CamelCase reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Unique, one-word, CamelCase reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1CustomResourceDefinitionCondition status(String status) { + this.status = status; return this; } @@ -109,28 +137,36 @@ public V1beta1CustomResourceDefinitionCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status is the status of the condition. Can be True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta1CustomResourceDefinitionCondition type(String type) { + this.type = type; return this; } /** - * Type is the type of the condition. + * Type is the type of the condition. Types include Established, NamesAccepted and Terminating. * @return type **/ - @ApiModelProperty(required = true, value = "Type is the type of the condition.") + @ApiModelProperty(required = true, value = "Type is the type of the condition. Types include Established, NamesAccepted and Terminating.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinitionCondition v1beta1CustomResourceDefinitionCondition = (V1beta1CustomResourceDefinitionCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta1CustomResourceDefinitionCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta1CustomResourceDefinitionCondition.message) && - Objects.equals(this.reason, v1beta1CustomResourceDefinitionCondition.reason) && - Objects.equals(this.status, v1beta1CustomResourceDefinitionCondition.status) && - Objects.equals(this.type, v1beta1CustomResourceDefinitionCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinitionCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionList.java index e02e75f7ed..8687657b8c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * CustomResourceDefinitionList is a list of CustomResourceDefinition objects. */ @ApiModel(description = "CustomResourceDefinitionList is a list of CustomResourceDefinition objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1CustomResourceDefinitionList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1CustomResourceDefinitionList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1CustomResourceDefinitionList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1CustomResourceDefinitionList addItemsItem(V1beta1CustomResourceDef * @return items **/ @ApiModelProperty(required = true, value = "Items individual CustomResourceDefinitions") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1CustomResourceDefinitionList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1beta1CustomResourceDefinitionList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CustomResourceDefinitionList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1beta1CustomResourceDefinitionList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinitionList v1beta1CustomResourceDefinitionList = (V1beta1CustomResourceDefinitionList) o; - return Objects.equals(this.apiVersion, v1beta1CustomResourceDefinitionList.apiVersion) && - Objects.equals(this.items, v1beta1CustomResourceDefinitionList.items) && - Objects.equals(this.kind, v1beta1CustomResourceDefinitionList.kind) && - Objects.equals(this.metadata, v1beta1CustomResourceDefinitionList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinitionList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNames.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNames.java index 1515bd8747..af23638499 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNames.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNames.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,27 +32,35 @@ * CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionNames indicates the names to serve this CustomResourceDefinition") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionNames { - @SerializedName("categories") + public static final String SERIALIZED_NAME_CATEGORIES = "categories"; + @SerializedName(SERIALIZED_NAME_CATEGORIES) private List categories = null; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("listKind") - private String listKind = null; + public static final String SERIALIZED_NAME_LIST_KIND = "listKind"; + @SerializedName(SERIALIZED_NAME_LIST_KIND) + private String listKind; - @SerializedName("plural") - private String plural = null; + public static final String SERIALIZED_NAME_PLURAL = "plural"; + @SerializedName(SERIALIZED_NAME_PLURAL) + private String plural; - @SerializedName("shortNames") + public static final String SERIALIZED_NAME_SHORT_NAMES = "shortNames"; + @SerializedName(SERIALIZED_NAME_SHORT_NAMES) private List shortNames = null; - @SerializedName("singular") - private String singular = null; + public static final String SERIALIZED_NAME_SINGULAR = "singular"; + @SerializedName(SERIALIZED_NAME_SINGULAR) + private String singular; + public V1beta1CustomResourceDefinitionNames categories(List categories) { + this.categories = categories; return this; } @@ -66,16 +77,22 @@ public V1beta1CustomResourceDefinitionNames addCategoriesItem(String categoriesI * Categories is a list of grouped resources custom resources belong to (e.g. 'all') * @return categories **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Categories is a list of grouped resources custom resources belong to (e.g. 'all')") + public List getCategories() { return categories; } + + public void setCategories(List categories) { this.categories = categories; } + public V1beta1CustomResourceDefinitionNames kind(String kind) { + this.kind = kind; return this; } @@ -85,15 +102,20 @@ public V1beta1CustomResourceDefinitionNames kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind is the serialized kind of the resource. It is normally CamelCase and singular.") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1CustomResourceDefinitionNames listKind(String listKind) { + this.listKind = listKind; return this; } @@ -102,16 +124,22 @@ public V1beta1CustomResourceDefinitionNames listKind(String listKind) { * ListKind is the serialized kind of the list for this resource. Defaults to <kind>List. * @return listKind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ListKind is the serialized kind of the list for this resource. Defaults to List.") + public String getListKind() { return listKind; } + + public void setListKind(String listKind) { this.listKind = listKind; } + public V1beta1CustomResourceDefinitionNames plural(String plural) { + this.plural = plural; return this; } @@ -121,15 +149,20 @@ public V1beta1CustomResourceDefinitionNames plural(String plural) { * @return plural **/ @ApiModelProperty(required = true, value = "Plural is the plural name of the resource to serve. It must match the name of the CustomResourceDefinition-registration too: plural.group and it must be all lowercase.") + public String getPlural() { return plural; } + + public void setPlural(String plural) { this.plural = plural; } + public V1beta1CustomResourceDefinitionNames shortNames(List shortNames) { + this.shortNames = shortNames; return this; } @@ -146,16 +179,22 @@ public V1beta1CustomResourceDefinitionNames addShortNamesItem(String shortNamesI * ShortNames are short names for the resource. It must be all lowercase. * @return shortNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ShortNames are short names for the resource. It must be all lowercase.") + public List getShortNames() { return shortNames; } + + public void setShortNames(List shortNames) { this.shortNames = shortNames; } + public V1beta1CustomResourceDefinitionNames singular(String singular) { + this.singular = singular; return this; } @@ -164,11 +203,15 @@ public V1beta1CustomResourceDefinitionNames singular(String singular) { * Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased <kind> * @return singular **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Singular is the singular name of the resource. It must be all lowercase Defaults to lowercased ") + public String getSingular() { return singular; } + + public void setSingular(String singular) { this.singular = singular; } @@ -176,24 +219,12 @@ public void setSingular(String singular) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinitionNames v1beta1CustomResourceDefinitionNames = (V1beta1CustomResourceDefinitionNames) o; - return Objects.equals(this.categories, v1beta1CustomResourceDefinitionNames.categories) && - Objects.equals(this.kind, v1beta1CustomResourceDefinitionNames.kind) && - Objects.equals(this.listKind, v1beta1CustomResourceDefinitionNames.listKind) && - Objects.equals(this.plural, v1beta1CustomResourceDefinitionNames.plural) && - Objects.equals(this.shortNames, v1beta1CustomResourceDefinitionNames.shortNames) && - Objects.equals(this.singular, v1beta1CustomResourceDefinitionNames.singular); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(categories, kind, listKind, plural, shortNames, singular); + return HashCodeBuilder.reflectionHashCode(this); } @@ -201,7 +232,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinitionNames {\n"); - sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" listKind: ").append(toIndentedString(listKind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpec.java index c5d4d37644..ad9f78057f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -35,36 +38,51 @@ * CustomResourceDefinitionSpec describes how a user wants their resource to appear */ @ApiModel(description = "CustomResourceDefinitionSpec describes how a user wants their resource to appear") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionSpec { - @SerializedName("additionalPrinterColumns") + public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; + @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) private List additionalPrinterColumns = null; - @SerializedName("conversion") - private V1beta1CustomResourceConversion conversion = null; + public static final String SERIALIZED_NAME_CONVERSION = "conversion"; + @SerializedName(SERIALIZED_NAME_CONVERSION) + private V1beta1CustomResourceConversion conversion; + + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_NAMES = "names"; + @SerializedName(SERIALIZED_NAME_NAMES) + private V1beta1CustomResourceDefinitionNames names; - @SerializedName("names") - private V1beta1CustomResourceDefinitionNames names = null; + public static final String SERIALIZED_NAME_PRESERVE_UNKNOWN_FIELDS = "preserveUnknownFields"; + @SerializedName(SERIALIZED_NAME_PRESERVE_UNKNOWN_FIELDS) + private Boolean preserveUnknownFields; - @SerializedName("scope") - private String scope = null; + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + private String scope; - @SerializedName("subresources") - private V1beta1CustomResourceSubresources subresources = null; + public static final String SERIALIZED_NAME_SUBRESOURCES = "subresources"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCES) + private V1beta1CustomResourceSubresources subresources; - @SerializedName("validation") - private V1beta1CustomResourceValidation validation = null; + public static final String SERIALIZED_NAME_VALIDATION = "validation"; + @SerializedName(SERIALIZED_NAME_VALIDATION) + private V1beta1CustomResourceValidation validation; - @SerializedName("version") - private String version = null; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; - @SerializedName("versions") + public static final String SERIALIZED_NAME_VERSIONS = "versions"; + @SerializedName(SERIALIZED_NAME_VERSIONS) private List versions = null; + public V1beta1CustomResourceDefinitionSpec additionalPrinterColumns(List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -81,34 +99,46 @@ public V1beta1CustomResourceDefinitionSpec addAdditionalPrinterColumnsItem(V1bet * AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive. * @return additionalPrinterColumns **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Optional, the global columns for all versions. Top-level and per-version columns are mutually exclusive.") + public List getAdditionalPrinterColumns() { return additionalPrinterColumns; } + + public void setAdditionalPrinterColumns(List additionalPrinterColumns) { this.additionalPrinterColumns = additionalPrinterColumns; } + public V1beta1CustomResourceDefinitionSpec conversion(V1beta1CustomResourceConversion conversion) { + this.conversion = conversion; return this; } /** - * `conversion` defines conversion settings for the CRD. + * Get conversion * @return conversion **/ - @ApiModelProperty(value = "`conversion` defines conversion settings for the CRD.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceConversion getConversion() { return conversion; } + + public void setConversion(V1beta1CustomResourceConversion conversion) { this.conversion = conversion; } + public V1beta1CustomResourceDefinitionSpec group(String group) { + this.group = group; return this; } @@ -118,33 +148,67 @@ public V1beta1CustomResourceDefinitionSpec group(String group) { * @return group **/ @ApiModelProperty(required = true, value = "Group is the group this resource belongs in") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1beta1CustomResourceDefinitionSpec names(V1beta1CustomResourceDefinitionNames names) { + this.names = names; return this; } /** - * Names are the names used to describe this custom resource + * Get names * @return names **/ - @ApiModelProperty(required = true, value = "Names are the names used to describe this custom resource") + @ApiModelProperty(required = true, value = "") + public V1beta1CustomResourceDefinitionNames getNames() { return names; } + + public void setNames(V1beta1CustomResourceDefinitionNames names) { this.names = names; } + + public V1beta1CustomResourceDefinitionSpec preserveUnknownFields(Boolean preserveUnknownFields) { + + this.preserveUnknownFields = preserveUnknownFields; + return this; + } + + /** + * preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1. + * @return preserveUnknownFields + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1.") + + public Boolean getPreserveUnknownFields() { + return preserveUnknownFields; + } + + + + public void setPreserveUnknownFields(Boolean preserveUnknownFields) { + this.preserveUnknownFields = preserveUnknownFields; + } + + public V1beta1CustomResourceDefinitionSpec scope(String scope) { + this.scope = scope; return this; } @@ -154,51 +218,68 @@ public V1beta1CustomResourceDefinitionSpec scope(String scope) { * @return scope **/ @ApiModelProperty(required = true, value = "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced") + public String getScope() { return scope; } + + public void setScope(String scope) { this.scope = scope; } + public V1beta1CustomResourceDefinitionSpec subresources(V1beta1CustomResourceSubresources subresources) { + this.subresources = subresources; return this; } /** - * Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive. + * Get subresources * @return subresources **/ - @ApiModelProperty(value = "Subresources describes the subresources for CustomResource Optional, the global subresources for all versions. Top-level and per-version subresources are mutually exclusive.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceSubresources getSubresources() { return subresources; } + + public void setSubresources(V1beta1CustomResourceSubresources subresources) { this.subresources = subresources; } + public V1beta1CustomResourceDefinitionSpec validation(V1beta1CustomResourceValidation validation) { + this.validation = validation; return this; } /** - * Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive. + * Get validation * @return validation **/ - @ApiModelProperty(value = "Validation describes the validation methods for CustomResources Optional, the global validation schema for all versions. Top-level and per-version schemas are mutually exclusive.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceValidation getValidation() { return validation; } + + public void setValidation(V1beta1CustomResourceValidation validation) { this.validation = validation; } + public V1beta1CustomResourceDefinitionSpec version(String version) { + this.version = version; return this; } @@ -207,16 +288,22 @@ public V1beta1CustomResourceDefinitionSpec version(String version) { * Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`. * @return version **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Version is the version this resource belongs in Should be always first item in Versions field if provided. Optional, but at least one of Version or Versions must be set. Deprecated: Please use `Versions`.") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } + public V1beta1CustomResourceDefinitionSpec versions(List versions) { + this.versions = versions; return this; } @@ -233,11 +320,15 @@ public V1beta1CustomResourceDefinitionSpec addVersionsItem(V1beta1CustomResource * Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10. * @return versions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Versions is the list of all supported versions for this resource. If Version field is provided, this field is optional. Validation: All versions must use the same validation schema for now. i.e., top level Validation field is applied to all of these versions. Order: The version name will be used to compute the order. If the version string is \"kube-like\", it will sort above non \"kube-like\" version strings, which are ordered lexicographically. \"Kube-like\" versions start with a \"v\", then are followed by a number (the major version), then optionally the string \"alpha\" or \"beta\" and another number (the minor version). These are sorted first by GA > beta > alpha (where GA is a version with no suffix such as beta or alpha), and then by comparing major version, then minor version. An example sorted list of versions: v10, v2, v1, v11beta2, v10beta3, v3beta1, v12alpha1, v11alpha2, foo1, foo10.") + public List getVersions() { return versions; } + + public void setVersions(List versions) { this.versions = versions; } @@ -245,27 +336,12 @@ public void setVersions(List versions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinitionSpec v1beta1CustomResourceDefinitionSpec = (V1beta1CustomResourceDefinitionSpec) o; - return Objects.equals(this.additionalPrinterColumns, v1beta1CustomResourceDefinitionSpec.additionalPrinterColumns) && - Objects.equals(this.conversion, v1beta1CustomResourceDefinitionSpec.conversion) && - Objects.equals(this.group, v1beta1CustomResourceDefinitionSpec.group) && - Objects.equals(this.names, v1beta1CustomResourceDefinitionSpec.names) && - Objects.equals(this.scope, v1beta1CustomResourceDefinitionSpec.scope) && - Objects.equals(this.subresources, v1beta1CustomResourceDefinitionSpec.subresources) && - Objects.equals(this.validation, v1beta1CustomResourceDefinitionSpec.validation) && - Objects.equals(this.version, v1beta1CustomResourceDefinitionSpec.version) && - Objects.equals(this.versions, v1beta1CustomResourceDefinitionSpec.versions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(additionalPrinterColumns, conversion, group, names, scope, subresources, validation, version, versions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -273,11 +349,11 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinitionSpec {\n"); - sb.append(" additionalPrinterColumns: ").append(toIndentedString(additionalPrinterColumns)).append("\n"); sb.append(" conversion: ").append(toIndentedString(conversion)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" names: ").append(toIndentedString(names)).append("\n"); + sb.append(" preserveUnknownFields: ").append(toIndentedString(preserveUnknownFields)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" subresources: ").append(toIndentedString(subresources)).append("\n"); sb.append(" validation: ").append(toIndentedString(validation)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatus.java index 450454a75f..efe90f4c36 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,36 +34,46 @@ * CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition */ @ApiModel(description = "CustomResourceDefinitionStatus indicates the state of the CustomResourceDefinition") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionStatus { - @SerializedName("acceptedNames") - private V1beta1CustomResourceDefinitionNames acceptedNames = null; + public static final String SERIALIZED_NAME_ACCEPTED_NAMES = "acceptedNames"; + @SerializedName(SERIALIZED_NAME_ACCEPTED_NAMES) + private V1beta1CustomResourceDefinitionNames acceptedNames; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = new ArrayList(); - @SerializedName("storedVersions") + public static final String SERIALIZED_NAME_STORED_VERSIONS = "storedVersions"; + @SerializedName(SERIALIZED_NAME_STORED_VERSIONS) private List storedVersions = new ArrayList(); + public V1beta1CustomResourceDefinitionStatus acceptedNames(V1beta1CustomResourceDefinitionNames acceptedNames) { + this.acceptedNames = acceptedNames; return this; } /** - * AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec. + * Get acceptedNames * @return acceptedNames **/ - @ApiModelProperty(required = true, value = "AcceptedNames are the names that are actually being used to serve discovery They may be different than the names in spec.") + @ApiModelProperty(required = true, value = "") + public V1beta1CustomResourceDefinitionNames getAcceptedNames() { return acceptedNames; } + + public void setAcceptedNames(V1beta1CustomResourceDefinitionNames acceptedNames) { this.acceptedNames = acceptedNames; } + public V1beta1CustomResourceDefinitionStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -75,15 +88,20 @@ public V1beta1CustomResourceDefinitionStatus addConditionsItem(V1beta1CustomReso * @return conditions **/ @ApiModelProperty(required = true, value = "Conditions indicate state for particular aspects of a CustomResourceDefinition") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta1CustomResourceDefinitionStatus storedVersions(List storedVersions) { + this.storedVersions = storedVersions; return this; } @@ -98,10 +116,13 @@ public V1beta1CustomResourceDefinitionStatus addStoredVersionsItem(String stored * @return storedVersions **/ @ApiModelProperty(required = true, value = "StoredVersions are all versions of CustomResources that were ever persisted. Tracking these versions allows a migration path for stored versions in etcd. The field is mutable so the migration controller can first finish a migration to another version (i.e. that no old objects are left in the storage), and then remove the rest of the versions from this list. None of the versions in this list can be removed from the spec.Versions field.") + public List getStoredVersions() { return storedVersions; } + + public void setStoredVersions(List storedVersions) { this.storedVersions = storedVersions; } @@ -109,21 +130,12 @@ public void setStoredVersions(List storedVersions) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinitionStatus v1beta1CustomResourceDefinitionStatus = (V1beta1CustomResourceDefinitionStatus) o; - return Objects.equals(this.acceptedNames, v1beta1CustomResourceDefinitionStatus.acceptedNames) && - Objects.equals(this.conditions, v1beta1CustomResourceDefinitionStatus.conditions) && - Objects.equals(this.storedVersions, v1beta1CustomResourceDefinitionStatus.storedVersions); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(acceptedNames, conditions, storedVersions); + return HashCodeBuilder.reflectionHashCode(this); } @@ -131,7 +143,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinitionStatus {\n"); - sb.append(" acceptedNames: ").append(toIndentedString(acceptedNames)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" storedVersions: ").append(toIndentedString(storedVersions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersion.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersion.java index d370c86415..a91620ae96 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersion.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersion.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,27 +35,35 @@ * CustomResourceDefinitionVersion describes a version for CRD. */ @ApiModel(description = "CustomResourceDefinitionVersion describes a version for CRD.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceDefinitionVersion { - @SerializedName("additionalPrinterColumns") + public static final String SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS = "additionalPrinterColumns"; + @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRINTER_COLUMNS) private List additionalPrinterColumns = null; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_SCHEMA = "schema"; + @SerializedName(SERIALIZED_NAME_SCHEMA) + private V1beta1CustomResourceValidation schema; - @SerializedName("schema") - private V1beta1CustomResourceValidation schema = null; + public static final String SERIALIZED_NAME_SERVED = "served"; + @SerializedName(SERIALIZED_NAME_SERVED) + private Boolean served; - @SerializedName("served") - private Boolean served = null; + public static final String SERIALIZED_NAME_STORAGE = "storage"; + @SerializedName(SERIALIZED_NAME_STORAGE) + private Boolean storage; - @SerializedName("storage") - private Boolean storage = null; + public static final String SERIALIZED_NAME_SUBRESOURCES = "subresources"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCES) + private V1beta1CustomResourceSubresources subresources; - @SerializedName("subresources") - private V1beta1CustomResourceSubresources subresources = null; public V1beta1CustomResourceDefinitionVersion additionalPrinterColumns(List additionalPrinterColumns) { + this.additionalPrinterColumns = additionalPrinterColumns; return this; } @@ -69,16 +80,22 @@ public V1beta1CustomResourceDefinitionVersion addAdditionalPrinterColumnsItem(V1 * AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null * @return additionalPrinterColumns **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AdditionalPrinterColumns are additional columns shown e.g. in kubectl next to the name. Defaults to a created-at column. Top-level and per-version columns are mutually exclusive. Per-version columns must not all be set to identical values (top-level columns should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. NOTE: CRDs created prior to 1.13 populated the top-level additionalPrinterColumns field by default. To apply an update that changes to per-version additionalPrinterColumns, the top-level additionalPrinterColumns field must be explicitly set to null") + public List getAdditionalPrinterColumns() { return additionalPrinterColumns; } + + public void setAdditionalPrinterColumns(List additionalPrinterColumns) { this.additionalPrinterColumns = additionalPrinterColumns; } + public V1beta1CustomResourceDefinitionVersion name(String name) { + this.name = name; return this; } @@ -88,33 +105,44 @@ public V1beta1CustomResourceDefinitionVersion name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the version name, e.g. “v1”, “v2beta1”, etc.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1beta1CustomResourceDefinitionVersion schema(V1beta1CustomResourceValidation schema) { + this.schema = schema; return this; } /** - * Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + * Get schema * @return schema **/ - @ApiModelProperty(value = "Schema describes the schema for CustomResource used in validation, pruning, and defaulting. Top-level and per-version schemas are mutually exclusive. Per-version schemas must not all be set to identical values (top-level validation schema should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceValidation getSchema() { return schema; } + + public void setSchema(V1beta1CustomResourceValidation schema) { this.schema = schema; } + public V1beta1CustomResourceDefinitionVersion served(Boolean served) { + this.served = served; return this; } @@ -124,15 +152,20 @@ public V1beta1CustomResourceDefinitionVersion served(Boolean served) { * @return served **/ @ApiModelProperty(required = true, value = "Served is a flag enabling/disabling this version from being served via REST APIs") - public Boolean isServed() { + + public Boolean getServed() { return served; } + + public void setServed(Boolean served) { this.served = served; } + public V1beta1CustomResourceDefinitionVersion storage(Boolean storage) { + this.storage = storage; return this; } @@ -142,28 +175,37 @@ public V1beta1CustomResourceDefinitionVersion storage(Boolean storage) { * @return storage **/ @ApiModelProperty(required = true, value = "Storage flags the version as storage version. There must be exactly one flagged as storage version.") - public Boolean isStorage() { + + public Boolean getStorage() { return storage; } + + public void setStorage(Boolean storage) { this.storage = storage; } + public V1beta1CustomResourceDefinitionVersion subresources(V1beta1CustomResourceSubresources subresources) { + this.subresources = subresources; return this; } /** - * Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature. + * Get subresources * @return subresources **/ - @ApiModelProperty(value = "Subresources describes the subresources for CustomResource Top-level and per-version subresources are mutually exclusive. Per-version subresources must not all be set to identical values (top-level subresources should be used instead) This field is alpha-level and is only honored by servers that enable the CustomResourceWebhookConversion feature.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceSubresources getSubresources() { return subresources; } + + public void setSubresources(V1beta1CustomResourceSubresources subresources) { this.subresources = subresources; } @@ -171,24 +213,12 @@ public void setSubresources(V1beta1CustomResourceSubresources subresources) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceDefinitionVersion v1beta1CustomResourceDefinitionVersion = (V1beta1CustomResourceDefinitionVersion) o; - return Objects.equals(this.additionalPrinterColumns, v1beta1CustomResourceDefinitionVersion.additionalPrinterColumns) && - Objects.equals(this.name, v1beta1CustomResourceDefinitionVersion.name) && - Objects.equals(this.schema, v1beta1CustomResourceDefinitionVersion.schema) && - Objects.equals(this.served, v1beta1CustomResourceDefinitionVersion.served) && - Objects.equals(this.storage, v1beta1CustomResourceDefinitionVersion.storage) && - Objects.equals(this.subresources, v1beta1CustomResourceDefinitionVersion.subresources); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(additionalPrinterColumns, name, schema, served, storage, subresources); + return HashCodeBuilder.reflectionHashCode(this); } @@ -196,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceDefinitionVersion {\n"); - sb.append(" additionalPrinterColumns: ").append(toIndentedString(additionalPrinterColumns)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScale.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScale.java index 061937cfd7..264e0ccea7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScale.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,36 +30,47 @@ * CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources. */ @ApiModel(description = "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceSubresourceScale { - @SerializedName("labelSelectorPath") - private String labelSelectorPath = null; + public static final String SERIALIZED_NAME_LABEL_SELECTOR_PATH = "labelSelectorPath"; + @SerializedName(SERIALIZED_NAME_LABEL_SELECTOR_PATH) + private String labelSelectorPath; + + public static final String SERIALIZED_NAME_SPEC_REPLICAS_PATH = "specReplicasPath"; + @SerializedName(SERIALIZED_NAME_SPEC_REPLICAS_PATH) + private String specReplicasPath; - @SerializedName("specReplicasPath") - private String specReplicasPath = null; + public static final String SERIALIZED_NAME_STATUS_REPLICAS_PATH = "statusReplicasPath"; + @SerializedName(SERIALIZED_NAME_STATUS_REPLICAS_PATH) + private String statusReplicasPath; - @SerializedName("statusReplicasPath") - private String statusReplicasPath = null; public V1beta1CustomResourceSubresourceScale labelSelectorPath(String labelSelectorPath) { + this.labelSelectorPath = labelSelectorPath; return this; } /** - * LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. + * LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string. * @return labelSelectorPath **/ - @ApiModelProperty(value = "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.") + @javax.annotation.Nullable + @ApiModelProperty(value = "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.") + public String getLabelSelectorPath() { return labelSelectorPath; } + + public void setLabelSelectorPath(String labelSelectorPath) { this.labelSelectorPath = labelSelectorPath; } + public V1beta1CustomResourceSubresourceScale specReplicasPath(String specReplicasPath) { + this.specReplicasPath = specReplicasPath; return this; } @@ -66,15 +80,20 @@ public V1beta1CustomResourceSubresourceScale specReplicasPath(String specReplica * @return specReplicasPath **/ @ApiModelProperty(required = true, value = "SpecReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Spec.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .spec. If there is no value under the given path in the CustomResource, the /scale subresource will return an error on GET.") + public String getSpecReplicasPath() { return specReplicasPath; } + + public void setSpecReplicasPath(String specReplicasPath) { this.specReplicasPath = specReplicasPath; } + public V1beta1CustomResourceSubresourceScale statusReplicasPath(String statusReplicasPath) { + this.statusReplicasPath = statusReplicasPath; return this; } @@ -84,10 +103,13 @@ public V1beta1CustomResourceSubresourceScale statusReplicasPath(String statusRep * @return statusReplicasPath **/ @ApiModelProperty(required = true, value = "StatusReplicasPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Replicas. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. If there is no value under the given path in the CustomResource, the status replica value in the /scale subresource will default to 0.") + public String getStatusReplicasPath() { return statusReplicasPath; } + + public void setStatusReplicasPath(String statusReplicasPath) { this.statusReplicasPath = statusReplicasPath; } @@ -95,21 +117,12 @@ public void setStatusReplicasPath(String statusReplicasPath) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceSubresourceScale v1beta1CustomResourceSubresourceScale = (V1beta1CustomResourceSubresourceScale) o; - return Objects.equals(this.labelSelectorPath, v1beta1CustomResourceSubresourceScale.labelSelectorPath) && - Objects.equals(this.specReplicasPath, v1beta1CustomResourceSubresourceScale.specReplicasPath) && - Objects.equals(this.statusReplicasPath, v1beta1CustomResourceSubresourceScale.statusReplicasPath); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(labelSelectorPath, specReplicasPath, statusReplicasPath); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceSubresourceScale {\n"); - sb.append(" labelSelectorPath: ").append(toIndentedString(labelSelectorPath)).append("\n"); sb.append(" specReplicasPath: ").append(toIndentedString(specReplicasPath)).append("\n"); sb.append(" statusReplicasPath: ").append(toIndentedString(statusReplicasPath)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresources.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresources.java index 1c26f563ec..17ce748b17 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresources.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceSubresources.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * CustomResourceSubresources defines the status and scale subresources for CustomResources. */ @ApiModel(description = "CustomResourceSubresources defines the status and scale subresources for CustomResources.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceSubresources { - @SerializedName("scale") - private V1beta1CustomResourceSubresourceScale scale = null; + public static final String SERIALIZED_NAME_SCALE = "scale"; + @SerializedName(SERIALIZED_NAME_SCALE) + private V1beta1CustomResourceSubresourceScale scale; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private Object status; - @SerializedName("status") - private Object status = null; public V1beta1CustomResourceSubresources scale(V1beta1CustomResourceSubresourceScale scale) { + this.scale = scale; return this; } /** - * Scale denotes the scale subresource for CustomResources + * Get scale * @return scale **/ - @ApiModelProperty(value = "Scale denotes the scale subresource for CustomResources") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1CustomResourceSubresourceScale getScale() { return scale; } + + public void setScale(V1beta1CustomResourceSubresourceScale scale) { this.scale = scale; } + public V1beta1CustomResourceSubresources status(Object status) { + this.status = status; return this; } @@ -63,11 +76,15 @@ public V1beta1CustomResourceSubresources status(Object status) { * Status denotes the status subresource for CustomResources * @return status **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Status denotes the status subresource for CustomResources") + public Object getStatus() { return status; } + + public void setStatus(Object status) { this.status = status; } @@ -75,20 +92,12 @@ public void setStatus(Object status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceSubresources v1beta1CustomResourceSubresources = (V1beta1CustomResourceSubresources) o; - return Objects.equals(this.scale, v1beta1CustomResourceSubresources.scale) && - Objects.equals(this.status, v1beta1CustomResourceSubresources.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(scale, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceSubresources {\n"); - sb.append(" scale: ").append(toIndentedString(scale)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceValidation.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceValidation.java index 6bf78f62f3..d029958368 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceValidation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1CustomResourceValidation.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * CustomResourceValidation is a list of validation methods for CustomResources. */ @ApiModel(description = "CustomResourceValidation is a list of validation methods for CustomResources.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1CustomResourceValidation { - @SerializedName("openAPIV3Schema") - private V1beta1JSONSchemaProps openAPIV3Schema = null; + public static final String SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA = "openAPIV3Schema"; + @SerializedName(SERIALIZED_NAME_OPEN_A_P_I_V3_SCHEMA) + private V1beta1JSONSchemaProps openAPIV3Schema; + public V1beta1CustomResourceValidation openAPIV3Schema(V1beta1JSONSchemaProps openAPIV3Schema) { + this.openAPIV3Schema = openAPIV3Schema; return this; } /** - * OpenAPIV3Schema is the OpenAPI v3 schema to be validated against. + * Get openAPIV3Schema * @return openAPIV3Schema **/ - @ApiModelProperty(value = "OpenAPIV3Schema is the OpenAPI v3 schema to be validated against.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1JSONSchemaProps getOpenAPIV3Schema() { return openAPIV3Schema; } + + public void setOpenAPIV3Schema(V1beta1JSONSchemaProps openAPIV3Schema) { this.openAPIV3Schema = openAPIV3Schema; } @@ -54,19 +64,12 @@ public void setOpenAPIV3Schema(V1beta1JSONSchemaProps openAPIV3Schema) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1CustomResourceValidation v1beta1CustomResourceValidation = (V1beta1CustomResourceValidation) o; - return Objects.equals(this.openAPIV3Schema, v1beta1CustomResourceValidation.openAPIV3Schema); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(openAPIV3Schema); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1CustomResourceValidation {\n"); - sb.append(" openAPIV3Schema: ").append(toIndentedString(openAPIV3Schema)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSet.java index 44f8acb50e..07df521442 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1DaemonSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1DaemonSetSpec spec; - @SerializedName("spec") - private V1beta1DaemonSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1DaemonSetStatus status; - @SerializedName("status") - private V1beta1DaemonSetStatus status = null; public V1beta1DaemonSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1DaemonSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1DaemonSet kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta1DaemonSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1DaemonSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1DaemonSet spec(V1beta1DaemonSetSpec spec) { + this.spec = spec; return this; } /** - * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1DaemonSetSpec getSpec() { return spec; } + + public void setSpec(V1beta1DaemonSetSpec spec) { this.spec = spec; } + public V1beta1DaemonSet status(V1beta1DaemonSetStatus status) { + this.status = status; return this; } /** - * The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1DaemonSetStatus getStatus() { return status; } + + public void setStatus(V1beta1DaemonSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1DaemonSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1DaemonSet v1beta1DaemonSet = (V1beta1DaemonSet) o; - return Objects.equals(this.apiVersion, v1beta1DaemonSet.apiVersion) && - Objects.equals(this.kind, v1beta1DaemonSet.kind) && - Objects.equals(this.metadata, v1beta1DaemonSet.metadata) && - Objects.equals(this.spec, v1beta1DaemonSet.spec) && - Objects.equals(this.status, v1beta1DaemonSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DaemonSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetCondition.java index dd200f5a45..7b2f299440 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1DaemonSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta1DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta1DaemonSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta1DaemonSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1DaemonSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta1DaemonSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1DaemonSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta1DaemonSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta1DaemonSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta1DaemonSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1DaemonSetCondition v1beta1DaemonSetCondition = (V1beta1DaemonSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta1DaemonSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta1DaemonSetCondition.message) && - Objects.equals(this.reason, v1beta1DaemonSetCondition.reason) && - Objects.equals(this.status, v1beta1DaemonSetCondition.status) && - Objects.equals(this.type, v1beta1DaemonSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DaemonSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetList.java index c769e8acab..9770022192 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1DaemonSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1DaemonSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1DaemonSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1DaemonSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1DaemonSetList addItemsItem(V1beta1DaemonSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "A list of daemon sets.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1DaemonSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1DaemonSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1DaemonSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1DaemonSetList v1beta1DaemonSetList = (V1beta1DaemonSetList) o; - return Objects.equals(this.apiVersion, v1beta1DaemonSetList.apiVersion) && - Objects.equals(this.items, v1beta1DaemonSetList.items) && - Objects.equals(this.kind, v1beta1DaemonSetList.kind) && - Objects.equals(this.metadata, v1beta1DaemonSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DaemonSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetSpec.java index 49d685c31d..36eec6e1cf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1DaemonSetSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_TEMPLATE_GENERATION = "templateGeneration"; + @SerializedName(SERIALIZED_NAME_TEMPLATE_GENERATION) + private Long templateGeneration; - @SerializedName("templateGeneration") - private Long templateGeneration = null; + public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; + @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + private V1beta1DaemonSetUpdateStrategy updateStrategy; - @SerializedName("updateStrategy") - private V1beta1DaemonSetUpdateStrategy updateStrategy = null; public V1beta1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -59,16 +70,22 @@ public V1beta1DaemonSetSpec minReadySeconds(Integer minReadySeconds) { * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1beta1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -77,52 +94,69 @@ public V1beta1DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1beta1DaemonSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(value = "A label query over pods that are managed by the daemon set. Must match in order to be controlled. If empty, defaulted to labels on Pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta1DaemonSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1beta1DaemonSetSpec templateGeneration(Long templateGeneration) { + this.templateGeneration = templateGeneration; return this; } @@ -131,29 +165,39 @@ public V1beta1DaemonSetSpec templateGeneration(Long templateGeneration) { * DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation. * @return templateGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "DEPRECATED. A sequence number representing a specific generation of the template. Populated by the system. It can be set only during the creation.") + public Long getTemplateGeneration() { return templateGeneration; } + + public void setTemplateGeneration(Long templateGeneration) { this.templateGeneration = templateGeneration; } + public V1beta1DaemonSetSpec updateStrategy(V1beta1DaemonSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } /** - * An update strategy to replace existing DaemonSet pods with new pods. + * Get updateStrategy * @return updateStrategy **/ - @ApiModelProperty(value = "An update strategy to replace existing DaemonSet pods with new pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1DaemonSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } + + public void setUpdateStrategy(V1beta1DaemonSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } @@ -161,24 +205,12 @@ public void setUpdateStrategy(V1beta1DaemonSetUpdateStrategy updateStrategy) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1DaemonSetSpec v1beta1DaemonSetSpec = (V1beta1DaemonSetSpec) o; - return Objects.equals(this.minReadySeconds, v1beta1DaemonSetSpec.minReadySeconds) && - Objects.equals(this.revisionHistoryLimit, v1beta1DaemonSetSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1beta1DaemonSetSpec.selector) && - Objects.equals(this.template, v1beta1DaemonSetSpec.template) && - Objects.equals(this.templateGeneration, v1beta1DaemonSetSpec.templateGeneration) && - Objects.equals(this.updateStrategy, v1beta1DaemonSetSpec.updateStrategy); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, templateGeneration, updateStrategy); + return HashCodeBuilder.reflectionHashCode(this); } @@ -186,7 +218,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DaemonSetSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" revisionHistoryLimit: ").append(toIndentedString(revisionHistoryLimit)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetStatus.java index f6220b01f9..b13bb84150 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,39 +33,51 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1DaemonSetStatus { - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("currentNumberScheduled") - private Integer currentNumberScheduled = null; + public static final String SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED = "currentNumberScheduled"; + @SerializedName(SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED) + private Integer currentNumberScheduled; + + public static final String SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED = "desiredNumberScheduled"; + @SerializedName(SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED) + private Integer desiredNumberScheduled; - @SerializedName("desiredNumberScheduled") - private Integer desiredNumberScheduled = null; + public static final String SERIALIZED_NAME_NUMBER_AVAILABLE = "numberAvailable"; + @SerializedName(SERIALIZED_NAME_NUMBER_AVAILABLE) + private Integer numberAvailable; - @SerializedName("numberAvailable") - private Integer numberAvailable = null; + public static final String SERIALIZED_NAME_NUMBER_MISSCHEDULED = "numberMisscheduled"; + @SerializedName(SERIALIZED_NAME_NUMBER_MISSCHEDULED) + private Integer numberMisscheduled; - @SerializedName("numberMisscheduled") - private Integer numberMisscheduled = null; + public static final String SERIALIZED_NAME_NUMBER_READY = "numberReady"; + @SerializedName(SERIALIZED_NAME_NUMBER_READY) + private Integer numberReady; - @SerializedName("numberReady") - private Integer numberReady = null; + public static final String SERIALIZED_NAME_NUMBER_UNAVAILABLE = "numberUnavailable"; + @SerializedName(SERIALIZED_NAME_NUMBER_UNAVAILABLE) + private Integer numberUnavailable; - @SerializedName("numberUnavailable") - private Integer numberUnavailable = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED = "updatedNumberScheduled"; + @SerializedName(SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED) + private Integer updatedNumberScheduled; - @SerializedName("updatedNumberScheduled") - private Integer updatedNumberScheduled = null; public V1beta1DaemonSetStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -71,16 +86,22 @@ public V1beta1DaemonSetStatus collisionCount(Integer collisionCount) { * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1beta1DaemonSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -97,16 +118,22 @@ public V1beta1DaemonSetStatus addConditionsItem(V1beta1DaemonSetCondition condit * Represents the latest available observations of a DaemonSet's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a DaemonSet's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta1DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; return this; } @@ -116,15 +143,20 @@ public V1beta1DaemonSetStatus currentNumberScheduled(Integer currentNumberSchedu * @return currentNumberScheduled **/ @ApiModelProperty(required = true, value = "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getCurrentNumberScheduled() { return currentNumberScheduled; } + + public void setCurrentNumberScheduled(Integer currentNumberScheduled) { this.currentNumberScheduled = currentNumberScheduled; } + public V1beta1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @@ -134,15 +166,20 @@ public V1beta1DaemonSetStatus desiredNumberScheduled(Integer desiredNumberSchedu * @return desiredNumberScheduled **/ @ApiModelProperty(required = true, value = "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getDesiredNumberScheduled() { return desiredNumberScheduled; } + + public void setDesiredNumberScheduled(Integer desiredNumberScheduled) { this.desiredNumberScheduled = desiredNumberScheduled; } + public V1beta1DaemonSetStatus numberAvailable(Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @@ -151,16 +188,22 @@ public V1beta1DaemonSetStatus numberAvailable(Integer numberAvailable) { * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberAvailable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)") + public Integer getNumberAvailable() { return numberAvailable; } + + public void setNumberAvailable(Integer numberAvailable) { this.numberAvailable = numberAvailable; } + public V1beta1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; return this; } @@ -170,15 +213,20 @@ public V1beta1DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { * @return numberMisscheduled **/ @ApiModelProperty(required = true, value = "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getNumberMisscheduled() { return numberMisscheduled; } + + public void setNumberMisscheduled(Integer numberMisscheduled) { this.numberMisscheduled = numberMisscheduled; } + public V1beta1DaemonSetStatus numberReady(Integer numberReady) { + this.numberReady = numberReady; return this; } @@ -188,15 +236,20 @@ public V1beta1DaemonSetStatus numberReady(Integer numberReady) { * @return numberReady **/ @ApiModelProperty(required = true, value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.") + public Integer getNumberReady() { return numberReady; } + + public void setNumberReady(Integer numberReady) { this.numberReady = numberReady; } + public V1beta1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @@ -205,16 +258,22 @@ public V1beta1DaemonSetStatus numberUnavailable(Integer numberUnavailable) { * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberUnavailable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)") + public Integer getNumberUnavailable() { return numberUnavailable; } + + public void setNumberUnavailable(Integer numberUnavailable) { this.numberUnavailable = numberUnavailable; } + public V1beta1DaemonSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -223,16 +282,22 @@ public V1beta1DaemonSetStatus observedGeneration(Long observedGeneration) { * The most recent generation observed by the daemon set controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The most recent generation observed by the daemon set controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } @@ -241,11 +306,15 @@ public V1beta1DaemonSetStatus updatedNumberScheduled(Integer updatedNumberSchedu * The total number of nodes that are running updated daemon pod * @return updatedNumberScheduled **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The total number of nodes that are running updated daemon pod") + public Integer getUpdatedNumberScheduled() { return updatedNumberScheduled; } + + public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { this.updatedNumberScheduled = updatedNumberScheduled; } @@ -253,28 +322,12 @@ public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1DaemonSetStatus v1beta1DaemonSetStatus = (V1beta1DaemonSetStatus) o; - return Objects.equals(this.collisionCount, v1beta1DaemonSetStatus.collisionCount) && - Objects.equals(this.conditions, v1beta1DaemonSetStatus.conditions) && - Objects.equals(this.currentNumberScheduled, v1beta1DaemonSetStatus.currentNumberScheduled) && - Objects.equals(this.desiredNumberScheduled, v1beta1DaemonSetStatus.desiredNumberScheduled) && - Objects.equals(this.numberAvailable, v1beta1DaemonSetStatus.numberAvailable) && - Objects.equals(this.numberMisscheduled, v1beta1DaemonSetStatus.numberMisscheduled) && - Objects.equals(this.numberReady, v1beta1DaemonSetStatus.numberReady) && - Objects.equals(this.numberUnavailable, v1beta1DaemonSetStatus.numberUnavailable) && - Objects.equals(this.observedGeneration, v1beta1DaemonSetStatus.observedGeneration) && - Objects.equals(this.updatedNumberScheduled, v1beta1DaemonSetStatus.updatedNumberScheduled); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled); + return HashCodeBuilder.reflectionHashCode(this); } @@ -282,7 +335,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DaemonSetStatus {\n"); - sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentNumberScheduled: ").append(toIndentedString(currentNumberScheduled)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategy.java index c3d196f50f..94518fa39b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,33 +30,43 @@ /** * V1beta1DaemonSetUpdateStrategy */ - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1DaemonSetUpdateStrategy { - @SerializedName("rollingUpdate") - private V1beta1RollingUpdateDaemonSet rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1beta1RollingUpdateDaemonSet rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1DaemonSetUpdateStrategy rollingUpdate(V1beta1RollingUpdateDaemonSet rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if type = \"RollingUpdate\". + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if type = \"RollingUpdate\".") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1RollingUpdateDaemonSet getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1beta1RollingUpdateDaemonSet rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1beta1DaemonSetUpdateStrategy type(String type) { + this.type = type; return this; } @@ -62,11 +75,15 @@ public V1beta1DaemonSetUpdateStrategy type(String type) { * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is OnDelete.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -74,20 +91,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1DaemonSetUpdateStrategy v1beta1DaemonSetUpdateStrategy = (V1beta1DaemonSetUpdateStrategy) o; - return Objects.equals(this.rollingUpdate, v1beta1DaemonSetUpdateStrategy.rollingUpdate) && - Objects.equals(this.type, v1beta1DaemonSetUpdateStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1DaemonSetUpdateStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Event.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Event.java index 310a4319ff..1a9128d482 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Event.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Event.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,60 +35,79 @@ * Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system. */ @ApiModel(description = "Event is a report of an event somewhere in the cluster. It generally denotes some state change in the system.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1Event { - @SerializedName("action") - private String action = null; + public static final String SERIALIZED_NAME_ACTION = "action"; + @SerializedName(SERIALIZED_NAME_ACTION) + private String action; + + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_DEPRECATED_COUNT = "deprecatedCount"; + @SerializedName(SERIALIZED_NAME_DEPRECATED_COUNT) + private Integer deprecatedCount; - @SerializedName("deprecatedCount") - private Integer deprecatedCount = null; + public static final String SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP = "deprecatedFirstTimestamp"; + @SerializedName(SERIALIZED_NAME_DEPRECATED_FIRST_TIMESTAMP) + private DateTime deprecatedFirstTimestamp; - @SerializedName("deprecatedFirstTimestamp") - private DateTime deprecatedFirstTimestamp = null; + public static final String SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP = "deprecatedLastTimestamp"; + @SerializedName(SERIALIZED_NAME_DEPRECATED_LAST_TIMESTAMP) + private DateTime deprecatedLastTimestamp; - @SerializedName("deprecatedLastTimestamp") - private DateTime deprecatedLastTimestamp = null; + public static final String SERIALIZED_NAME_DEPRECATED_SOURCE = "deprecatedSource"; + @SerializedName(SERIALIZED_NAME_DEPRECATED_SOURCE) + private V1EventSource deprecatedSource; - @SerializedName("deprecatedSource") - private V1EventSource deprecatedSource = null; + public static final String SERIALIZED_NAME_EVENT_TIME = "eventTime"; + @SerializedName(SERIALIZED_NAME_EVENT_TIME) + private DateTime eventTime; - @SerializedName("eventTime") - private DateTime eventTime = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_NOTE = "note"; + @SerializedName(SERIALIZED_NAME_NOTE) + private String note; - @SerializedName("note") - private String note = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_REGARDING = "regarding"; + @SerializedName(SERIALIZED_NAME_REGARDING) + private V1ObjectReference regarding; - @SerializedName("regarding") - private V1ObjectReference regarding = null; + public static final String SERIALIZED_NAME_RELATED = "related"; + @SerializedName(SERIALIZED_NAME_RELATED) + private V1ObjectReference related; - @SerializedName("related") - private V1ObjectReference related = null; + public static final String SERIALIZED_NAME_REPORTING_CONTROLLER = "reportingController"; + @SerializedName(SERIALIZED_NAME_REPORTING_CONTROLLER) + private String reportingController; - @SerializedName("reportingController") - private String reportingController = null; + public static final String SERIALIZED_NAME_REPORTING_INSTANCE = "reportingInstance"; + @SerializedName(SERIALIZED_NAME_REPORTING_INSTANCE) + private String reportingInstance; - @SerializedName("reportingInstance") - private String reportingInstance = null; + public static final String SERIALIZED_NAME_SERIES = "series"; + @SerializedName(SERIALIZED_NAME_SERIES) + private V1beta1EventSeries series; - @SerializedName("series") - private V1beta1EventSeries series = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1Event action(String action) { + this.action = action; return this; } @@ -94,16 +116,22 @@ public V1beta1Event action(String action) { * What action was taken/failed regarding to the regarding object. * @return action **/ + @javax.annotation.Nullable @ApiModelProperty(value = "What action was taken/failed regarding to the regarding object.") + public String getAction() { return action; } + + public void setAction(String action) { this.action = action; } + public V1beta1Event apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -112,16 +140,22 @@ public V1beta1Event apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1Event deprecatedCount(Integer deprecatedCount) { + this.deprecatedCount = deprecatedCount; return this; } @@ -130,16 +164,22 @@ public V1beta1Event deprecatedCount(Integer deprecatedCount) { * Deprecated field assuring backward compatibility with core.v1 Event type * @return deprecatedCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Deprecated field assuring backward compatibility with core.v1 Event type") + public Integer getDeprecatedCount() { return deprecatedCount; } + + public void setDeprecatedCount(Integer deprecatedCount) { this.deprecatedCount = deprecatedCount; } + public V1beta1Event deprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) { + this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; return this; } @@ -148,16 +188,22 @@ public V1beta1Event deprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) * Deprecated field assuring backward compatibility with core.v1 Event type * @return deprecatedFirstTimestamp **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Deprecated field assuring backward compatibility with core.v1 Event type") + public DateTime getDeprecatedFirstTimestamp() { return deprecatedFirstTimestamp; } + + public void setDeprecatedFirstTimestamp(DateTime deprecatedFirstTimestamp) { this.deprecatedFirstTimestamp = deprecatedFirstTimestamp; } + public V1beta1Event deprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { + this.deprecatedLastTimestamp = deprecatedLastTimestamp; return this; } @@ -166,34 +212,46 @@ public V1beta1Event deprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { * Deprecated field assuring backward compatibility with core.v1 Event type * @return deprecatedLastTimestamp **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Deprecated field assuring backward compatibility with core.v1 Event type") + public DateTime getDeprecatedLastTimestamp() { return deprecatedLastTimestamp; } + + public void setDeprecatedLastTimestamp(DateTime deprecatedLastTimestamp) { this.deprecatedLastTimestamp = deprecatedLastTimestamp; } + public V1beta1Event deprecatedSource(V1EventSource deprecatedSource) { + this.deprecatedSource = deprecatedSource; return this; } /** - * Deprecated field assuring backward compatibility with core.v1 Event type + * Get deprecatedSource * @return deprecatedSource **/ - @ApiModelProperty(value = "Deprecated field assuring backward compatibility with core.v1 Event type") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1EventSource getDeprecatedSource() { return deprecatedSource; } + + public void setDeprecatedSource(V1EventSource deprecatedSource) { this.deprecatedSource = deprecatedSource; } + public V1beta1Event eventTime(DateTime eventTime) { + this.eventTime = eventTime; return this; } @@ -203,15 +261,20 @@ public V1beta1Event eventTime(DateTime eventTime) { * @return eventTime **/ @ApiModelProperty(required = true, value = "Required. Time when this Event was first observed.") + public DateTime getEventTime() { return eventTime; } + + public void setEventTime(DateTime eventTime) { this.eventTime = eventTime; } + public V1beta1Event kind(String kind) { + this.kind = kind; return this; } @@ -220,16 +283,22 @@ public V1beta1Event kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1Event metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -238,16 +307,22 @@ public V1beta1Event metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1Event note(String note) { + this.note = note; return this; } @@ -256,16 +331,22 @@ public V1beta1Event note(String note) { * Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB. * @return note **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional. A human-readable description of the status of this operation. Maximal length of the note is 1kB, but libraries should be prepared to handle values up to 64kB.") + public String getNote() { return note; } + + public void setNote(String note) { this.note = note; } + public V1beta1Event reason(String reason) { + this.reason = reason; return this; } @@ -274,52 +355,70 @@ public V1beta1Event reason(String reason) { * Why the action was taken. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Why the action was taken.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1Event regarding(V1ObjectReference regarding) { + this.regarding = regarding; return this; } /** - * The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object. + * Get regarding * @return regarding **/ - @ApiModelProperty(value = "The object this Event is about. In most cases it's an Object reporting controller implements. E.g. ReplicaSetController implements ReplicaSets and this event is emitted because it acts on some changes in a ReplicaSet object.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectReference getRegarding() { return regarding; } + + public void setRegarding(V1ObjectReference regarding) { this.regarding = regarding; } + public V1beta1Event related(V1ObjectReference related) { + this.related = related; return this; } /** - * Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object. + * Get related * @return related **/ - @ApiModelProperty(value = "Optional secondary object for more complex actions. E.g. when regarding object triggers a creation or deletion of related object.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectReference getRelated() { return related; } + + public void setRelated(V1ObjectReference related) { this.related = related; } + public V1beta1Event reportingController(String reportingController) { + this.reportingController = reportingController; return this; } @@ -328,16 +427,22 @@ public V1beta1Event reportingController(String reportingController) { * Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`. * @return reportingController **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the controller that emitted this Event, e.g. `kubernetes.io/kubelet`.") + public String getReportingController() { return reportingController; } + + public void setReportingController(String reportingController) { this.reportingController = reportingController; } + public V1beta1Event reportingInstance(String reportingInstance) { + this.reportingInstance = reportingInstance; return this; } @@ -346,34 +451,46 @@ public V1beta1Event reportingInstance(String reportingInstance) { * ID of the controller instance, e.g. `kubelet-xyzf`. * @return reportingInstance **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ID of the controller instance, e.g. `kubelet-xyzf`.") + public String getReportingInstance() { return reportingInstance; } + + public void setReportingInstance(String reportingInstance) { this.reportingInstance = reportingInstance; } + public V1beta1Event series(V1beta1EventSeries series) { + this.series = series; return this; } /** - * Data about the Event series this event represents or nil if it's a singleton Event. + * Get series * @return series **/ - @ApiModelProperty(value = "Data about the Event series this event represents or nil if it's a singleton Event.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1EventSeries getSeries() { return series; } + + public void setSeries(V1beta1EventSeries series) { this.series = series; } + public V1beta1Event type(String type) { + this.type = type; return this; } @@ -382,11 +499,15 @@ public V1beta1Event type(String type) { * Type of this event (Normal, Warning), new types could be added in the future. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of this event (Normal, Warning), new types could be added in the future.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -394,35 +515,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Event v1beta1Event = (V1beta1Event) o; - return Objects.equals(this.action, v1beta1Event.action) && - Objects.equals(this.apiVersion, v1beta1Event.apiVersion) && - Objects.equals(this.deprecatedCount, v1beta1Event.deprecatedCount) && - Objects.equals(this.deprecatedFirstTimestamp, v1beta1Event.deprecatedFirstTimestamp) && - Objects.equals(this.deprecatedLastTimestamp, v1beta1Event.deprecatedLastTimestamp) && - Objects.equals(this.deprecatedSource, v1beta1Event.deprecatedSource) && - Objects.equals(this.eventTime, v1beta1Event.eventTime) && - Objects.equals(this.kind, v1beta1Event.kind) && - Objects.equals(this.metadata, v1beta1Event.metadata) && - Objects.equals(this.note, v1beta1Event.note) && - Objects.equals(this.reason, v1beta1Event.reason) && - Objects.equals(this.regarding, v1beta1Event.regarding) && - Objects.equals(this.related, v1beta1Event.related) && - Objects.equals(this.reportingController, v1beta1Event.reportingController) && - Objects.equals(this.reportingInstance, v1beta1Event.reportingInstance) && - Objects.equals(this.series, v1beta1Event.series) && - Objects.equals(this.type, v1beta1Event.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(action, apiVersion, deprecatedCount, deprecatedFirstTimestamp, deprecatedLastTimestamp, deprecatedSource, eventTime, kind, metadata, note, reason, regarding, related, reportingController, reportingInstance, series, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -430,7 +528,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1Event {\n"); - sb.append(" action: ").append(toIndentedString(action)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" deprecatedCount: ").append(toIndentedString(deprecatedCount)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventList.java index 6553ccecb0..8e935a15e8 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * EventList is a list of Event objects. */ @ApiModel(description = "EventList is a list of Event objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1EventList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1EventList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1EventList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1EventList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1EventList addItemsItem(V1beta1Event itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1EventList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1EventList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1EventList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EventList v1beta1EventList = (V1beta1EventList) o; - return Objects.equals(this.apiVersion, v1beta1EventList.apiVersion) && - Objects.equals(this.items, v1beta1EventList.items) && - Objects.equals(this.kind, v1beta1EventList.kind) && - Objects.equals(this.metadata, v1beta1EventList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1EventList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventSeries.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventSeries.java index b9bc3fc122..f7613adf89 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventSeries.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1EventSeries.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time. */ @ApiModel(description = "EventSeries contain information on series of events, i.e. thing that was/is happening continuously for some time.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1EventSeries { - @SerializedName("count") - private Integer count = null; + public static final String SERIALIZED_NAME_COUNT = "count"; + @SerializedName(SERIALIZED_NAME_COUNT) + private Integer count; + + public static final String SERIALIZED_NAME_LAST_OBSERVED_TIME = "lastObservedTime"; + @SerializedName(SERIALIZED_NAME_LAST_OBSERVED_TIME) + private DateTime lastObservedTime; - @SerializedName("lastObservedTime") - private DateTime lastObservedTime = null; + public static final String SERIALIZED_NAME_STATE = "state"; + @SerializedName(SERIALIZED_NAME_STATE) + private String state; - @SerializedName("state") - private String state = null; public V1beta1EventSeries count(Integer count) { + this.count = count; return this; } @@ -49,15 +57,20 @@ public V1beta1EventSeries count(Integer count) { * @return count **/ @ApiModelProperty(required = true, value = "Number of occurrences in this series up to the last heartbeat time") + public Integer getCount() { return count; } + + public void setCount(Integer count) { this.count = count; } + public V1beta1EventSeries lastObservedTime(DateTime lastObservedTime) { + this.lastObservedTime = lastObservedTime; return this; } @@ -67,28 +80,36 @@ public V1beta1EventSeries lastObservedTime(DateTime lastObservedTime) { * @return lastObservedTime **/ @ApiModelProperty(required = true, value = "Time when last Event from the series was seen before last heartbeat.") + public DateTime getLastObservedTime() { return lastObservedTime; } + + public void setLastObservedTime(DateTime lastObservedTime) { this.lastObservedTime = lastObservedTime; } + public V1beta1EventSeries state(String state) { + this.state = state; return this; } /** - * Information whether this series is ongoing or finished. + * Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18 * @return state **/ - @ApiModelProperty(required = true, value = "Information whether this series is ongoing or finished.") + @ApiModelProperty(required = true, value = "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18") + public String getState() { return state; } + + public void setState(String state) { this.state = state; } @@ -96,21 +117,12 @@ public void setState(String state) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1EventSeries v1beta1EventSeries = (V1beta1EventSeries) o; - return Objects.equals(this.count, v1beta1EventSeries.count) && - Objects.equals(this.lastObservedTime, v1beta1EventSeries.lastObservedTime) && - Objects.equals(this.state, v1beta1EventSeries.state); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(count, lastObservedTime, state); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1EventSeries {\n"); - sb.append(" count: ").append(toIndentedString(count)).append("\n"); sb.append(" lastObservedTime: ").append(toIndentedString(lastObservedTime)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Eviction.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Eviction.java index c9b18ccddc..e36df09c5d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Eviction.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Eviction.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods/<pod name>/evictions. */ @ApiModel(description = "Eviction evicts a pod from its node subject to certain policies and safety constraints. This is a subresource of Pod. A request to cause such an eviction is created by POSTing to .../pods//evictions.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1Eviction { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DELETE_OPTIONS = "deleteOptions"; + @SerializedName(SERIALIZED_NAME_DELETE_OPTIONS) + private V1DeleteOptions deleteOptions; - @SerializedName("deleteOptions") - private V1DeleteOptions deleteOptions = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; public V1beta1Eviction apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,34 +61,46 @@ public V1beta1Eviction apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1Eviction deleteOptions(V1DeleteOptions deleteOptions) { + this.deleteOptions = deleteOptions; return this; } /** - * DeleteOptions may be provided + * Get deleteOptions * @return deleteOptions **/ - @ApiModelProperty(value = "DeleteOptions may be provided") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1DeleteOptions getDeleteOptions() { return deleteOptions; } + + public void setDeleteOptions(V1DeleteOptions deleteOptions) { this.deleteOptions = deleteOptions; } + public V1beta1Eviction kind(String kind) { + this.kind = kind; return this; } @@ -88,29 +109,39 @@ public V1beta1Eviction kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1Eviction metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * ObjectMeta describes the pod that is being evicted. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "ObjectMeta describes the pod that is being evicted.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } @@ -118,22 +149,12 @@ public void setMetadata(V1ObjectMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Eviction v1beta1Eviction = (V1beta1Eviction) o; - return Objects.equals(this.apiVersion, v1beta1Eviction.apiVersion) && - Objects.equals(this.deleteOptions, v1beta1Eviction.deleteOptions) && - Objects.equals(this.kind, v1beta1Eviction.kind) && - Objects.equals(this.metadata, v1beta1Eviction.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, deleteOptions, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1Eviction {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" deleteOptions: ").append(toIndentedString(deleteOptions)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ExternalDocumentation.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ExternalDocumentation.java index 8b84233258..05cad396ab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ExternalDocumentation.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ExternalDocumentation.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * ExternalDocumentation allows referencing an external resource for extended documentation. */ @ApiModel(description = "ExternalDocumentation allows referencing an external resource for extended documentation.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ExternalDocumentation { - @SerializedName("description") - private String description = null; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; - @SerializedName("url") - private String url = null; public V1beta1ExternalDocumentation description(String description) { + this.description = description; return this; } @@ -44,16 +51,22 @@ public V1beta1ExternalDocumentation description(String description) { * Get description * @return description **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getDescription() { return description; } + + public void setDescription(String description) { this.description = description; } + public V1beta1ExternalDocumentation url(String url) { + this.url = url; return this; } @@ -62,11 +75,15 @@ public V1beta1ExternalDocumentation url(String url) { * Get url * @return url **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getUrl() { return url; } + + public void setUrl(String url) { this.url = url; } @@ -74,20 +91,12 @@ public void setUrl(String url) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ExternalDocumentation v1beta1ExternalDocumentation = (V1beta1ExternalDocumentation) o; - return Objects.equals(this.description, v1beta1ExternalDocumentation.description) && - Objects.equals(this.url, v1beta1ExternalDocumentation.url); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(description, url); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ExternalDocumentation {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1IPBlock.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1IPBlock.java index 3b83331cd0..3d431a2f55 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1IPBlock.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1IPBlock.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule. */ @ApiModel(description = "DEPRECATED 1.9 - This group version of IPBlock is deprecated by networking/v1/IPBlock. IPBlock describes a particular CIDR (Ex. \"192.168.1.1/24\") that is allowed to the pods matched by a NetworkPolicySpec's podSelector. The except entry describes CIDRs that should not be included within this rule.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1IPBlock { - @SerializedName("cidr") - private String cidr = null; + public static final String SERIALIZED_NAME_CIDR = "cidr"; + @SerializedName(SERIALIZED_NAME_CIDR) + private String cidr; - @SerializedName("except") + public static final String SERIALIZED_NAME_EXCEPT = "except"; + @SerializedName(SERIALIZED_NAME_EXCEPT) private List except = null; + public V1beta1IPBlock cidr(String cidr) { + this.cidr = cidr; return this; } @@ -47,15 +54,20 @@ public V1beta1IPBlock cidr(String cidr) { * @return cidr **/ @ApiModelProperty(required = true, value = "CIDR is a string representing the IP Block Valid examples are \"192.168.1.1/24\"") + public String getCidr() { return cidr; } + + public void setCidr(String cidr) { this.cidr = cidr; } + public V1beta1IPBlock except(List except) { + this.except = except; return this; } @@ -72,11 +84,15 @@ public V1beta1IPBlock addExceptItem(String exceptItem) { * Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range * @return except **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Except is a slice of CIDRs that should not be included within an IP Block Valid examples are \"192.168.1.1/24\" Except values will be rejected if they are outside the CIDR range") + public List getExcept() { return except; } + + public void setExcept(List except) { this.except = except; } @@ -84,20 +100,12 @@ public void setExcept(List except) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1IPBlock v1beta1IPBlock = (V1beta1IPBlock) o; - return Objects.equals(this.cidr, v1beta1IPBlock.cidr) && - Objects.equals(this.except, v1beta1IPBlock.except); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(cidr, except); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +113,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1IPBlock {\n"); - sb.append(" cidr: ").append(toIndentedString(cidr)).append("\n"); sb.append(" except: ").append(toIndentedString(except)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JSONSchemaProps.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JSONSchemaProps.java index 76704db5da..2c4ca2c00e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JSONSchemaProps.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JSONSchemaProps.java @@ -1,26 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.models.V1beta1ExternalDocumentation; -import io.kubernetes.client.models.V1beta1JSONSchemaProps; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -33,156 +35,219 @@ * JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/). */ @ApiModel(description = "JSONSchemaProps is a JSON-Schema following Specification Draft 4 (http://json-schema.org/).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1JSONSchemaProps { - @SerializedName("$ref") - private String ref = null; + public static final String SERIALIZED_NAME_$_REF = "$ref"; + @SerializedName(SERIALIZED_NAME_$_REF) + private String $ref; - @SerializedName("$schema") - private String schema = null; + public static final String SERIALIZED_NAME_$_SCHEMA = "$schema"; + @SerializedName(SERIALIZED_NAME_$_SCHEMA) + private String $schema; - @SerializedName("additionalItems") - private Object additionalItems = null; + public static final String SERIALIZED_NAME_ADDITIONAL_ITEMS = "additionalItems"; + @SerializedName(SERIALIZED_NAME_ADDITIONAL_ITEMS) + private Object additionalItems; - @SerializedName("additionalProperties") - private Object additionalProperties = null; + public static final String SERIALIZED_NAME_ADDITIONAL_PROPERTIES = "additionalProperties"; + @SerializedName(SERIALIZED_NAME_ADDITIONAL_PROPERTIES) + private Object additionalProperties; - @SerializedName("allOf") + public static final String SERIALIZED_NAME_ALL_OF = "allOf"; + @SerializedName(SERIALIZED_NAME_ALL_OF) private List allOf = null; - @SerializedName("anyOf") + public static final String SERIALIZED_NAME_ANY_OF = "anyOf"; + @SerializedName(SERIALIZED_NAME_ANY_OF) private List anyOf = null; - @SerializedName("default") - private Object _default = null; + public static final String SERIALIZED_NAME_DEFAULT = "default"; + @SerializedName(SERIALIZED_NAME_DEFAULT) + private Object _default; - @SerializedName("definitions") + public static final String SERIALIZED_NAME_DEFINITIONS = "definitions"; + @SerializedName(SERIALIZED_NAME_DEFINITIONS) private Map definitions = null; - @SerializedName("dependencies") + public static final String SERIALIZED_NAME_DEPENDENCIES = "dependencies"; + @SerializedName(SERIALIZED_NAME_DEPENDENCIES) private Map dependencies = null; - @SerializedName("description") - private String description = null; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; - @SerializedName("enum") + public static final String SERIALIZED_NAME_ENUM = "enum"; + @SerializedName(SERIALIZED_NAME_ENUM) private List _enum = null; - @SerializedName("example") - private Object example = null; + public static final String SERIALIZED_NAME_EXAMPLE = "example"; + @SerializedName(SERIALIZED_NAME_EXAMPLE) + private Object example; - @SerializedName("exclusiveMaximum") - private Boolean exclusiveMaximum = null; + public static final String SERIALIZED_NAME_EXCLUSIVE_MAXIMUM = "exclusiveMaximum"; + @SerializedName(SERIALIZED_NAME_EXCLUSIVE_MAXIMUM) + private Boolean exclusiveMaximum; - @SerializedName("exclusiveMinimum") - private Boolean exclusiveMinimum = null; + public static final String SERIALIZED_NAME_EXCLUSIVE_MINIMUM = "exclusiveMinimum"; + @SerializedName(SERIALIZED_NAME_EXCLUSIVE_MINIMUM) + private Boolean exclusiveMinimum; - @SerializedName("externalDocs") - private V1beta1ExternalDocumentation externalDocs = null; + public static final String SERIALIZED_NAME_EXTERNAL_DOCS = "externalDocs"; + @SerializedName(SERIALIZED_NAME_EXTERNAL_DOCS) + private V1beta1ExternalDocumentation externalDocs; - @SerializedName("format") - private String format = null; + public static final String SERIALIZED_NAME_FORMAT = "format"; + @SerializedName(SERIALIZED_NAME_FORMAT) + private String format; - @SerializedName("id") - private String id = null; + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; - @SerializedName("items") - private Object items = null; + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) + private Object items; - @SerializedName("maxItems") - private Long maxItems = null; + public static final String SERIALIZED_NAME_MAX_ITEMS = "maxItems"; + @SerializedName(SERIALIZED_NAME_MAX_ITEMS) + private Long maxItems; - @SerializedName("maxLength") - private Long maxLength = null; + public static final String SERIALIZED_NAME_MAX_LENGTH = "maxLength"; + @SerializedName(SERIALIZED_NAME_MAX_LENGTH) + private Long maxLength; - @SerializedName("maxProperties") - private Long maxProperties = null; + public static final String SERIALIZED_NAME_MAX_PROPERTIES = "maxProperties"; + @SerializedName(SERIALIZED_NAME_MAX_PROPERTIES) + private Long maxProperties; - @SerializedName("maximum") - private Double maximum = null; + public static final String SERIALIZED_NAME_MAXIMUM = "maximum"; + @SerializedName(SERIALIZED_NAME_MAXIMUM) + private Double maximum; - @SerializedName("minItems") - private Long minItems = null; + public static final String SERIALIZED_NAME_MIN_ITEMS = "minItems"; + @SerializedName(SERIALIZED_NAME_MIN_ITEMS) + private Long minItems; - @SerializedName("minLength") - private Long minLength = null; + public static final String SERIALIZED_NAME_MIN_LENGTH = "minLength"; + @SerializedName(SERIALIZED_NAME_MIN_LENGTH) + private Long minLength; - @SerializedName("minProperties") - private Long minProperties = null; + public static final String SERIALIZED_NAME_MIN_PROPERTIES = "minProperties"; + @SerializedName(SERIALIZED_NAME_MIN_PROPERTIES) + private Long minProperties; - @SerializedName("minimum") - private Double minimum = null; + public static final String SERIALIZED_NAME_MINIMUM = "minimum"; + @SerializedName(SERIALIZED_NAME_MINIMUM) + private Double minimum; - @SerializedName("multipleOf") - private Double multipleOf = null; + public static final String SERIALIZED_NAME_MULTIPLE_OF = "multipleOf"; + @SerializedName(SERIALIZED_NAME_MULTIPLE_OF) + private Double multipleOf; - @SerializedName("not") - private V1beta1JSONSchemaProps not = null; + public static final String SERIALIZED_NAME_NOT = "not"; + @SerializedName(SERIALIZED_NAME_NOT) + private V1beta1JSONSchemaProps not; - @SerializedName("nullable") - private Boolean nullable = null; + public static final String SERIALIZED_NAME_NULLABLE = "nullable"; + @SerializedName(SERIALIZED_NAME_NULLABLE) + private Boolean nullable; - @SerializedName("oneOf") + public static final String SERIALIZED_NAME_ONE_OF = "oneOf"; + @SerializedName(SERIALIZED_NAME_ONE_OF) private List oneOf = null; - @SerializedName("pattern") - private String pattern = null; + public static final String SERIALIZED_NAME_PATTERN = "pattern"; + @SerializedName(SERIALIZED_NAME_PATTERN) + private String pattern; - @SerializedName("patternProperties") + public static final String SERIALIZED_NAME_PATTERN_PROPERTIES = "patternProperties"; + @SerializedName(SERIALIZED_NAME_PATTERN_PROPERTIES) private Map patternProperties = null; - @SerializedName("properties") + public static final String SERIALIZED_NAME_PROPERTIES = "properties"; + @SerializedName(SERIALIZED_NAME_PROPERTIES) private Map properties = null; - @SerializedName("required") + public static final String SERIALIZED_NAME_REQUIRED = "required"; + @SerializedName(SERIALIZED_NAME_REQUIRED) private List required = null; - @SerializedName("title") - private String title = null; + public static final String SERIALIZED_NAME_TITLE = "title"; + @SerializedName(SERIALIZED_NAME_TITLE) + private String title; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; + + public static final String SERIALIZED_NAME_UNIQUE_ITEMS = "uniqueItems"; + @SerializedName(SERIALIZED_NAME_UNIQUE_ITEMS) + private Boolean uniqueItems; + + public static final String SERIALIZED_NAME_X_KUBERNETES_EMBEDDED_RESOURCE = "x-kubernetes-embedded-resource"; + @SerializedName(SERIALIZED_NAME_X_KUBERNETES_EMBEDDED_RESOURCE) + private Boolean xKubernetesEmbeddedResource; - @SerializedName("type") - private String type = null; + public static final String SERIALIZED_NAME_X_KUBERNETES_INT_OR_STRING = "x-kubernetes-int-or-string"; + @SerializedName(SERIALIZED_NAME_X_KUBERNETES_INT_OR_STRING) + private Boolean xKubernetesIntOrString; - @SerializedName("uniqueItems") - private Boolean uniqueItems = null; + public static final String SERIALIZED_NAME_X_KUBERNETES_PRESERVE_UNKNOWN_FIELDS = "x-kubernetes-preserve-unknown-fields"; + @SerializedName(SERIALIZED_NAME_X_KUBERNETES_PRESERVE_UNKNOWN_FIELDS) + private Boolean xKubernetesPreserveUnknownFields; - public V1beta1JSONSchemaProps ref(String ref) { - this.ref = ref; + + public V1beta1JSONSchemaProps $ref(String $ref) { + + this.$ref = $ref; return this; } /** - * Get ref - * @return ref + * Get $ref + * @return $ref **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getRef() { - return ref; + + public String get$Ref() { + return $ref; } - public void setRef(String ref) { - this.ref = ref; + + + public void set$Ref(String $ref) { + this.$ref = $ref; } - public V1beta1JSONSchemaProps schema(String schema) { - this.schema = schema; + + public V1beta1JSONSchemaProps $schema(String $schema) { + + this.$schema = $schema; return this; } /** - * Get schema - * @return schema + * Get $schema + * @return $schema **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") - public String getSchema() { - return schema; + + public String get$Schema() { + return $schema; } - public void setSchema(String schema) { - this.schema = schema; + + + public void set$Schema(String $schema) { + this.$schema = $schema; } + public V1beta1JSONSchemaProps additionalItems(Object additionalItems) { + this.additionalItems = additionalItems; return this; } @@ -191,16 +256,22 @@ public V1beta1JSONSchemaProps additionalItems(Object additionalItems) { * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. * @return additionalItems **/ + @javax.annotation.Nullable @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") + public Object getAdditionalItems() { return additionalItems; } + + public void setAdditionalItems(Object additionalItems) { this.additionalItems = additionalItems; } + public V1beta1JSONSchemaProps additionalProperties(Object additionalProperties) { + this.additionalProperties = additionalProperties; return this; } @@ -209,16 +280,22 @@ public V1beta1JSONSchemaProps additionalProperties(Object additionalProperties) * JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property. * @return additionalProperties **/ + @javax.annotation.Nullable @ApiModelProperty(value = "JSONSchemaPropsOrBool represents JSONSchemaProps or a boolean value. Defaults to true for the boolean property.") + public Object getAdditionalProperties() { return additionalProperties; } + + public void setAdditionalProperties(Object additionalProperties) { this.additionalProperties = additionalProperties; } + public V1beta1JSONSchemaProps allOf(List allOf) { + this.allOf = allOf; return this; } @@ -235,16 +312,22 @@ public V1beta1JSONSchemaProps addAllOfItem(V1beta1JSONSchemaProps allOfItem) { * Get allOf * @return allOf **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getAllOf() { return allOf; } + + public void setAllOf(List allOf) { this.allOf = allOf; } + public V1beta1JSONSchemaProps anyOf(List anyOf) { + this.anyOf = anyOf; return this; } @@ -261,34 +344,46 @@ public V1beta1JSONSchemaProps addAnyOfItem(V1beta1JSONSchemaProps anyOfItem) { * Get anyOf * @return anyOf **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getAnyOf() { return anyOf; } + + public void setAnyOf(List anyOf) { this.anyOf = anyOf; } + public V1beta1JSONSchemaProps _default(Object _default) { + this._default = _default; return this; } /** - * JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. + * default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false. * @return _default **/ - @ApiModelProperty(value = "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.") + @javax.annotation.Nullable + @ApiModelProperty(value = "default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.") + public Object getDefault() { return _default; } + + public void setDefault(Object _default) { this._default = _default; } + public V1beta1JSONSchemaProps definitions(Map definitions) { + this.definitions = definitions; return this; } @@ -305,16 +400,22 @@ public V1beta1JSONSchemaProps putDefinitionsItem(String key, V1beta1JSONSchemaPr * Get definitions * @return definitions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDefinitions() { return definitions; } + + public void setDefinitions(Map definitions) { this.definitions = definitions; } + public V1beta1JSONSchemaProps dependencies(Map dependencies) { + this.dependencies = dependencies; return this; } @@ -331,16 +432,22 @@ public V1beta1JSONSchemaProps putDependenciesItem(String key, Object dependencie * Get dependencies * @return dependencies **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getDependencies() { return dependencies; } + + public void setDependencies(Map dependencies) { this.dependencies = dependencies; } + public V1beta1JSONSchemaProps description(String description) { + this.description = description; return this; } @@ -349,16 +456,22 @@ public V1beta1JSONSchemaProps description(String description) { * Get description * @return description **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getDescription() { return description; } + + public void setDescription(String description) { this.description = description; } + public V1beta1JSONSchemaProps _enum(List _enum) { + this._enum = _enum; return this; } @@ -375,16 +488,22 @@ public V1beta1JSONSchemaProps addEnumItem(Object _enumItem) { * Get _enum * @return _enum **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getEnum() { return _enum; } + + public void setEnum(List _enum) { this._enum = _enum; } + public V1beta1JSONSchemaProps example(Object example) { + this.example = example; return this; } @@ -393,16 +512,22 @@ public V1beta1JSONSchemaProps example(Object example) { * JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil. * @return example **/ + @javax.annotation.Nullable @ApiModelProperty(value = "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.") + public Object getExample() { return example; } + + public void setExample(Object example) { this.example = example; } + public V1beta1JSONSchemaProps exclusiveMaximum(Boolean exclusiveMaximum) { + this.exclusiveMaximum = exclusiveMaximum; return this; } @@ -411,16 +536,22 @@ public V1beta1JSONSchemaProps exclusiveMaximum(Boolean exclusiveMaximum) { * Get exclusiveMaximum * @return exclusiveMaximum **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") - public Boolean isExclusiveMaximum() { + + public Boolean getExclusiveMaximum() { return exclusiveMaximum; } + + public void setExclusiveMaximum(Boolean exclusiveMaximum) { this.exclusiveMaximum = exclusiveMaximum; } + public V1beta1JSONSchemaProps exclusiveMinimum(Boolean exclusiveMinimum) { + this.exclusiveMinimum = exclusiveMinimum; return this; } @@ -429,16 +560,22 @@ public V1beta1JSONSchemaProps exclusiveMinimum(Boolean exclusiveMinimum) { * Get exclusiveMinimum * @return exclusiveMinimum **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") - public Boolean isExclusiveMinimum() { + + public Boolean getExclusiveMinimum() { return exclusiveMinimum; } + + public void setExclusiveMinimum(Boolean exclusiveMinimum) { this.exclusiveMinimum = exclusiveMinimum; } + public V1beta1JSONSchemaProps externalDocs(V1beta1ExternalDocumentation externalDocs) { + this.externalDocs = externalDocs; return this; } @@ -447,16 +584,22 @@ public V1beta1JSONSchemaProps externalDocs(V1beta1ExternalDocumentation external * Get externalDocs * @return externalDocs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1beta1ExternalDocumentation getExternalDocs() { return externalDocs; } + + public void setExternalDocs(V1beta1ExternalDocumentation externalDocs) { this.externalDocs = externalDocs; } + public V1beta1JSONSchemaProps format(String format) { + this.format = format; return this; } @@ -465,16 +608,22 @@ public V1beta1JSONSchemaProps format(String format) { * Get format * @return format **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getFormat() { return format; } + + public void setFormat(String format) { this.format = format; } + public V1beta1JSONSchemaProps id(String id) { + this.id = id; return this; } @@ -483,16 +632,22 @@ public V1beta1JSONSchemaProps id(String id) { * Get id * @return id **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getId() { return id; } + + public void setId(String id) { this.id = id; } + public V1beta1JSONSchemaProps items(Object items) { + this.items = items; return this; } @@ -501,16 +656,22 @@ public V1beta1JSONSchemaProps items(Object items) { * JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes. * @return items **/ + @javax.annotation.Nullable @ApiModelProperty(value = "JSONSchemaPropsOrArray represents a value that can either be a JSONSchemaProps or an array of JSONSchemaProps. Mainly here for serialization purposes.") + public Object getItems() { return items; } + + public void setItems(Object items) { this.items = items; } + public V1beta1JSONSchemaProps maxItems(Long maxItems) { + this.maxItems = maxItems; return this; } @@ -519,16 +680,22 @@ public V1beta1JSONSchemaProps maxItems(Long maxItems) { * Get maxItems * @return maxItems **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getMaxItems() { return maxItems; } + + public void setMaxItems(Long maxItems) { this.maxItems = maxItems; } + public V1beta1JSONSchemaProps maxLength(Long maxLength) { + this.maxLength = maxLength; return this; } @@ -537,16 +704,22 @@ public V1beta1JSONSchemaProps maxLength(Long maxLength) { * Get maxLength * @return maxLength **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getMaxLength() { return maxLength; } + + public void setMaxLength(Long maxLength) { this.maxLength = maxLength; } + public V1beta1JSONSchemaProps maxProperties(Long maxProperties) { + this.maxProperties = maxProperties; return this; } @@ -555,16 +728,22 @@ public V1beta1JSONSchemaProps maxProperties(Long maxProperties) { * Get maxProperties * @return maxProperties **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getMaxProperties() { return maxProperties; } + + public void setMaxProperties(Long maxProperties) { this.maxProperties = maxProperties; } + public V1beta1JSONSchemaProps maximum(Double maximum) { + this.maximum = maximum; return this; } @@ -573,16 +752,22 @@ public V1beta1JSONSchemaProps maximum(Double maximum) { * Get maximum * @return maximum **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getMaximum() { return maximum; } + + public void setMaximum(Double maximum) { this.maximum = maximum; } + public V1beta1JSONSchemaProps minItems(Long minItems) { + this.minItems = minItems; return this; } @@ -591,16 +776,22 @@ public V1beta1JSONSchemaProps minItems(Long minItems) { * Get minItems * @return minItems **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getMinItems() { return minItems; } + + public void setMinItems(Long minItems) { this.minItems = minItems; } + public V1beta1JSONSchemaProps minLength(Long minLength) { + this.minLength = minLength; return this; } @@ -609,16 +800,22 @@ public V1beta1JSONSchemaProps minLength(Long minLength) { * Get minLength * @return minLength **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getMinLength() { return minLength; } + + public void setMinLength(Long minLength) { this.minLength = minLength; } + public V1beta1JSONSchemaProps minProperties(Long minProperties) { + this.minProperties = minProperties; return this; } @@ -627,16 +824,22 @@ public V1beta1JSONSchemaProps minProperties(Long minProperties) { * Get minProperties * @return minProperties **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Long getMinProperties() { return minProperties; } + + public void setMinProperties(Long minProperties) { this.minProperties = minProperties; } + public V1beta1JSONSchemaProps minimum(Double minimum) { + this.minimum = minimum; return this; } @@ -645,16 +848,22 @@ public V1beta1JSONSchemaProps minimum(Double minimum) { * Get minimum * @return minimum **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getMinimum() { return minimum; } + + public void setMinimum(Double minimum) { this.minimum = minimum; } + public V1beta1JSONSchemaProps multipleOf(Double multipleOf) { + this.multipleOf = multipleOf; return this; } @@ -663,16 +872,22 @@ public V1beta1JSONSchemaProps multipleOf(Double multipleOf) { * Get multipleOf * @return multipleOf **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Double getMultipleOf() { return multipleOf; } + + public void setMultipleOf(Double multipleOf) { this.multipleOf = multipleOf; } + public V1beta1JSONSchemaProps not(V1beta1JSONSchemaProps not) { + this.not = not; return this; } @@ -681,16 +896,22 @@ public V1beta1JSONSchemaProps not(V1beta1JSONSchemaProps not) { * Get not * @return not **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1beta1JSONSchemaProps getNot() { return not; } + + public void setNot(V1beta1JSONSchemaProps not) { this.not = not; } + public V1beta1JSONSchemaProps nullable(Boolean nullable) { + this.nullable = nullable; return this; } @@ -699,16 +920,22 @@ public V1beta1JSONSchemaProps nullable(Boolean nullable) { * Get nullable * @return nullable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") - public Boolean isNullable() { + + public Boolean getNullable() { return nullable; } + + public void setNullable(Boolean nullable) { this.nullable = nullable; } + public V1beta1JSONSchemaProps oneOf(List oneOf) { + this.oneOf = oneOf; return this; } @@ -725,16 +952,22 @@ public V1beta1JSONSchemaProps addOneOfItem(V1beta1JSONSchemaProps oneOfItem) { * Get oneOf * @return oneOf **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getOneOf() { return oneOf; } + + public void setOneOf(List oneOf) { this.oneOf = oneOf; } + public V1beta1JSONSchemaProps pattern(String pattern) { + this.pattern = pattern; return this; } @@ -743,16 +976,22 @@ public V1beta1JSONSchemaProps pattern(String pattern) { * Get pattern * @return pattern **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getPattern() { return pattern; } + + public void setPattern(String pattern) { this.pattern = pattern; } + public V1beta1JSONSchemaProps patternProperties(Map patternProperties) { + this.patternProperties = patternProperties; return this; } @@ -769,16 +1008,22 @@ public V1beta1JSONSchemaProps putPatternPropertiesItem(String key, V1beta1JSONSc * Get patternProperties * @return patternProperties **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getPatternProperties() { return patternProperties; } + + public void setPatternProperties(Map patternProperties) { this.patternProperties = patternProperties; } + public V1beta1JSONSchemaProps properties(Map properties) { + this.properties = properties; return this; } @@ -795,16 +1040,22 @@ public V1beta1JSONSchemaProps putPropertiesItem(String key, V1beta1JSONSchemaPro * Get properties * @return properties **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public Map getProperties() { return properties; } + + public void setProperties(Map properties) { this.properties = properties; } + public V1beta1JSONSchemaProps required(List required) { + this.required = required; return this; } @@ -821,16 +1072,22 @@ public V1beta1JSONSchemaProps addRequiredItem(String requiredItem) { * Get required * @return required **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public List getRequired() { return required; } + + public void setRequired(List required) { this.required = required; } + public V1beta1JSONSchemaProps title(String title) { + this.title = title; return this; } @@ -839,16 +1096,22 @@ public V1beta1JSONSchemaProps title(String title) { * Get title * @return title **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getTitle() { return title; } + + public void setTitle(String title) { this.title = title; } + public V1beta1JSONSchemaProps type(String type) { + this.type = type; return this; } @@ -857,16 +1120,22 @@ public V1beta1JSONSchemaProps type(String type) { * Get type * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public V1beta1JSONSchemaProps uniqueItems(Boolean uniqueItems) { + this.uniqueItems = uniqueItems; return this; } @@ -875,67 +1144,100 @@ public V1beta1JSONSchemaProps uniqueItems(Boolean uniqueItems) { * Get uniqueItems * @return uniqueItems **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") - public Boolean isUniqueItems() { + + public Boolean getUniqueItems() { return uniqueItems; } + + public void setUniqueItems(Boolean uniqueItems) { this.uniqueItems = uniqueItems; } + public V1beta1JSONSchemaProps xKubernetesEmbeddedResource(Boolean xKubernetesEmbeddedResource) { + + this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource; + return this; + } + + /** + * x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata). + * @return xKubernetesEmbeddedResource + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).") + + public Boolean getxKubernetesEmbeddedResource() { + return xKubernetesEmbeddedResource; + } + + + + public void setxKubernetesEmbeddedResource(Boolean xKubernetesEmbeddedResource) { + this.xKubernetesEmbeddedResource = xKubernetesEmbeddedResource; + } + + + public V1beta1JSONSchemaProps xKubernetesIntOrString(Boolean xKubernetesIntOrString) { + + this.xKubernetesIntOrString = xKubernetesIntOrString; + return this; + } + + /** + * x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more + * @return xKubernetesIntOrString + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns: 1) anyOf: - type: integer - type: string 2) allOf: - anyOf: - type: integer - type: string - ... zero or more") + + public Boolean getxKubernetesIntOrString() { + return xKubernetesIntOrString; + } + + + + public void setxKubernetesIntOrString(Boolean xKubernetesIntOrString) { + this.xKubernetesIntOrString = xKubernetesIntOrString; + } + + + public V1beta1JSONSchemaProps xKubernetesPreserveUnknownFields(Boolean xKubernetesPreserveUnknownFields) { + + this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields; + return this; + } + + /** + * x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden. + * @return xKubernetesPreserveUnknownFields + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.") + + public Boolean getxKubernetesPreserveUnknownFields() { + return xKubernetesPreserveUnknownFields; + } + + + + public void setxKubernetesPreserveUnknownFields(Boolean xKubernetesPreserveUnknownFields) { + this.xKubernetesPreserveUnknownFields = xKubernetesPreserveUnknownFields; + } + + @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1JSONSchemaProps v1beta1JSONSchemaProps = (V1beta1JSONSchemaProps) o; - return Objects.equals(this.ref, v1beta1JSONSchemaProps.ref) && - Objects.equals(this.schema, v1beta1JSONSchemaProps.schema) && - Objects.equals(this.additionalItems, v1beta1JSONSchemaProps.additionalItems) && - Objects.equals(this.additionalProperties, v1beta1JSONSchemaProps.additionalProperties) && - Objects.equals(this.allOf, v1beta1JSONSchemaProps.allOf) && - Objects.equals(this.anyOf, v1beta1JSONSchemaProps.anyOf) && - Objects.equals(this._default, v1beta1JSONSchemaProps._default) && - Objects.equals(this.definitions, v1beta1JSONSchemaProps.definitions) && - Objects.equals(this.dependencies, v1beta1JSONSchemaProps.dependencies) && - Objects.equals(this.description, v1beta1JSONSchemaProps.description) && - Objects.equals(this._enum, v1beta1JSONSchemaProps._enum) && - Objects.equals(this.example, v1beta1JSONSchemaProps.example) && - Objects.equals(this.exclusiveMaximum, v1beta1JSONSchemaProps.exclusiveMaximum) && - Objects.equals(this.exclusiveMinimum, v1beta1JSONSchemaProps.exclusiveMinimum) && - Objects.equals(this.externalDocs, v1beta1JSONSchemaProps.externalDocs) && - Objects.equals(this.format, v1beta1JSONSchemaProps.format) && - Objects.equals(this.id, v1beta1JSONSchemaProps.id) && - Objects.equals(this.items, v1beta1JSONSchemaProps.items) && - Objects.equals(this.maxItems, v1beta1JSONSchemaProps.maxItems) && - Objects.equals(this.maxLength, v1beta1JSONSchemaProps.maxLength) && - Objects.equals(this.maxProperties, v1beta1JSONSchemaProps.maxProperties) && - Objects.equals(this.maximum, v1beta1JSONSchemaProps.maximum) && - Objects.equals(this.minItems, v1beta1JSONSchemaProps.minItems) && - Objects.equals(this.minLength, v1beta1JSONSchemaProps.minLength) && - Objects.equals(this.minProperties, v1beta1JSONSchemaProps.minProperties) && - Objects.equals(this.minimum, v1beta1JSONSchemaProps.minimum) && - Objects.equals(this.multipleOf, v1beta1JSONSchemaProps.multipleOf) && - Objects.equals(this.not, v1beta1JSONSchemaProps.not) && - Objects.equals(this.nullable, v1beta1JSONSchemaProps.nullable) && - Objects.equals(this.oneOf, v1beta1JSONSchemaProps.oneOf) && - Objects.equals(this.pattern, v1beta1JSONSchemaProps.pattern) && - Objects.equals(this.patternProperties, v1beta1JSONSchemaProps.patternProperties) && - Objects.equals(this.properties, v1beta1JSONSchemaProps.properties) && - Objects.equals(this.required, v1beta1JSONSchemaProps.required) && - Objects.equals(this.title, v1beta1JSONSchemaProps.title) && - Objects.equals(this.type, v1beta1JSONSchemaProps.type) && - Objects.equals(this.uniqueItems, v1beta1JSONSchemaProps.uniqueItems); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ref, schema, additionalItems, additionalProperties, allOf, anyOf, _default, definitions, dependencies, description, _enum, example, exclusiveMaximum, exclusiveMinimum, externalDocs, format, id, items, maxItems, maxLength, maxProperties, maximum, minItems, minLength, minProperties, minimum, multipleOf, not, nullable, oneOf, pattern, patternProperties, properties, required, title, type, uniqueItems); + return HashCodeBuilder.reflectionHashCode(this); } @@ -943,9 +1245,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1JSONSchemaProps {\n"); - - sb.append(" ref: ").append(toIndentedString(ref)).append("\n"); - sb.append(" schema: ").append(toIndentedString(schema)).append("\n"); + sb.append(" $ref: ").append(toIndentedString($ref)).append("\n"); + sb.append(" $schema: ").append(toIndentedString($schema)).append("\n"); sb.append(" additionalItems: ").append(toIndentedString(additionalItems)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append(" allOf: ").append(toIndentedString(allOf)).append("\n"); @@ -981,6 +1282,9 @@ public String toString() { sb.append(" title: ").append(toIndentedString(title)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" uniqueItems: ").append(toIndentedString(uniqueItems)).append("\n"); + sb.append(" xKubernetesEmbeddedResource: ").append(toIndentedString(xKubernetesEmbeddedResource)).append("\n"); + sb.append(" xKubernetesIntOrString: ").append(toIndentedString(xKubernetesIntOrString)).append("\n"); + sb.append(" xKubernetesPreserveUnknownFields: ").append(toIndentedString(xKubernetesPreserveUnknownFields)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JobTemplateSpec.java index f168e625b4..5f3f163660 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1JobTemplateSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,60 @@ * JobTemplateSpec describes the data a Job should have when created from a template */ @ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1JobTemplateSpec { - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1JobSpec spec; - @SerializedName("spec") - private V1JobSpec spec = null; public V1beta1JobTemplateSpec metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1JobTemplateSpec spec(V1JobSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1JobSpec getSpec() { return spec; } + + public void setSpec(V1JobSpec spec) { this.spec = spec; } @@ -76,20 +93,12 @@ public void setSpec(V1JobSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1JobTemplateSpec v1beta1JobTemplateSpec = (V1beta1JobTemplateSpec) o; - return Objects.equals(this.metadata, v1beta1JobTemplateSpec.metadata) && - Objects.equals(this.spec, v1beta1JobTemplateSpec.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +106,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1JobTemplateSpec {\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Lease.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Lease.java index 05a89469cf..9c827326be 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Lease.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Lease.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * Lease defines a lease concept. */ @ApiModel(description = "Lease defines a lease concept.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1Lease { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1LeaseSpec spec; - @SerializedName("spec") - private V1beta1LeaseSpec spec = null; public V1beta1Lease apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1beta1Lease apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1Lease kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public V1beta1Lease kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1Lease metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1Lease spec(V1beta1LeaseSpec spec) { + this.spec = spec; return this; } /** - * Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the Lease. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1LeaseSpec getSpec() { return spec; } + + public void setSpec(V1beta1LeaseSpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1beta1LeaseSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Lease v1beta1Lease = (V1beta1Lease) o; - return Objects.equals(this.apiVersion, v1beta1Lease.apiVersion) && - Objects.equals(this.kind, v1beta1Lease.kind) && - Objects.equals(this.metadata, v1beta1Lease.metadata) && - Objects.equals(this.spec, v1beta1Lease.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1Lease {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseList.java index 77cd423e5b..18a6d5d914 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * LeaseList is a list of Lease objects. */ @ApiModel(description = "LeaseList is a list of Lease objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1LeaseList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1LeaseList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1LeaseList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1LeaseList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1LeaseList addItemsItem(V1beta1Lease itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1LeaseList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1LeaseList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1LeaseList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1LeaseList v1beta1LeaseList = (V1beta1LeaseList) o; - return Objects.equals(this.apiVersion, v1beta1LeaseList.apiVersion) && - Objects.equals(this.items, v1beta1LeaseList.items) && - Objects.equals(this.kind, v1beta1LeaseList.kind) && - Objects.equals(this.metadata, v1beta1LeaseList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1LeaseList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseSpec.java index cfdec59e47..12b85c75c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LeaseSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * LeaseSpec is a specification of a Lease. */ @ApiModel(description = "LeaseSpec is a specification of a Lease.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1LeaseSpec { - @SerializedName("acquireTime") - private DateTime acquireTime = null; + public static final String SERIALIZED_NAME_ACQUIRE_TIME = "acquireTime"; + @SerializedName(SERIALIZED_NAME_ACQUIRE_TIME) + private DateTime acquireTime; + + public static final String SERIALIZED_NAME_HOLDER_IDENTITY = "holderIdentity"; + @SerializedName(SERIALIZED_NAME_HOLDER_IDENTITY) + private String holderIdentity; - @SerializedName("holderIdentity") - private String holderIdentity = null; + public static final String SERIALIZED_NAME_LEASE_DURATION_SECONDS = "leaseDurationSeconds"; + @SerializedName(SERIALIZED_NAME_LEASE_DURATION_SECONDS) + private Integer leaseDurationSeconds; - @SerializedName("leaseDurationSeconds") - private Integer leaseDurationSeconds = null; + public static final String SERIALIZED_NAME_LEASE_TRANSITIONS = "leaseTransitions"; + @SerializedName(SERIALIZED_NAME_LEASE_TRANSITIONS) + private Integer leaseTransitions; - @SerializedName("leaseTransitions") - private Integer leaseTransitions = null; + public static final String SERIALIZED_NAME_RENEW_TIME = "renewTime"; + @SerializedName(SERIALIZED_NAME_RENEW_TIME) + private DateTime renewTime; - @SerializedName("renewTime") - private DateTime renewTime = null; public V1beta1LeaseSpec acquireTime(DateTime acquireTime) { + this.acquireTime = acquireTime; return this; } @@ -54,16 +64,22 @@ public V1beta1LeaseSpec acquireTime(DateTime acquireTime) { * acquireTime is a time when the current lease was acquired. * @return acquireTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "acquireTime is a time when the current lease was acquired.") + public DateTime getAcquireTime() { return acquireTime; } + + public void setAcquireTime(DateTime acquireTime) { this.acquireTime = acquireTime; } + public V1beta1LeaseSpec holderIdentity(String holderIdentity) { + this.holderIdentity = holderIdentity; return this; } @@ -72,16 +88,22 @@ public V1beta1LeaseSpec holderIdentity(String holderIdentity) { * holderIdentity contains the identity of the holder of a current lease. * @return holderIdentity **/ + @javax.annotation.Nullable @ApiModelProperty(value = "holderIdentity contains the identity of the holder of a current lease.") + public String getHolderIdentity() { return holderIdentity; } + + public void setHolderIdentity(String holderIdentity) { this.holderIdentity = holderIdentity; } + public V1beta1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { + this.leaseDurationSeconds = leaseDurationSeconds; return this; } @@ -90,16 +112,22 @@ public V1beta1LeaseSpec leaseDurationSeconds(Integer leaseDurationSeconds) { * leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime. * @return leaseDurationSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "leaseDurationSeconds is a duration that candidates for a lease need to wait to force acquire it. This is measure against time of last observed RenewTime.") + public Integer getLeaseDurationSeconds() { return leaseDurationSeconds; } + + public void setLeaseDurationSeconds(Integer leaseDurationSeconds) { this.leaseDurationSeconds = leaseDurationSeconds; } + public V1beta1LeaseSpec leaseTransitions(Integer leaseTransitions) { + this.leaseTransitions = leaseTransitions; return this; } @@ -108,16 +136,22 @@ public V1beta1LeaseSpec leaseTransitions(Integer leaseTransitions) { * leaseTransitions is the number of transitions of a lease between holders. * @return leaseTransitions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "leaseTransitions is the number of transitions of a lease between holders.") + public Integer getLeaseTransitions() { return leaseTransitions; } + + public void setLeaseTransitions(Integer leaseTransitions) { this.leaseTransitions = leaseTransitions; } + public V1beta1LeaseSpec renewTime(DateTime renewTime) { + this.renewTime = renewTime; return this; } @@ -126,11 +160,15 @@ public V1beta1LeaseSpec renewTime(DateTime renewTime) { * renewTime is a time when the current holder of a lease has last updated the lease. * @return renewTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "renewTime is a time when the current holder of a lease has last updated the lease.") + public DateTime getRenewTime() { return renewTime; } + + public void setRenewTime(DateTime renewTime) { this.renewTime = renewTime; } @@ -138,23 +176,12 @@ public void setRenewTime(DateTime renewTime) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1LeaseSpec v1beta1LeaseSpec = (V1beta1LeaseSpec) o; - return Objects.equals(this.acquireTime, v1beta1LeaseSpec.acquireTime) && - Objects.equals(this.holderIdentity, v1beta1LeaseSpec.holderIdentity) && - Objects.equals(this.leaseDurationSeconds, v1beta1LeaseSpec.leaseDurationSeconds) && - Objects.equals(this.leaseTransitions, v1beta1LeaseSpec.leaseTransitions) && - Objects.equals(this.renewTime, v1beta1LeaseSpec.renewTime); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(acquireTime, holderIdentity, leaseDurationSeconds, leaseTransitions, renewTime); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1LeaseSpec {\n"); - sb.append(" acquireTime: ").append(toIndentedString(acquireTime)).append("\n"); sb.append(" holderIdentity: ").append(toIndentedString(holderIdentity)).append("\n"); sb.append(" leaseDurationSeconds: ").append(toIndentedString(leaseDurationSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReview.java index ff4b5786a5..fd0643a782 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking. */ @ApiModel(description = "LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions checking.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1LocalSubjectAccessReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1SubjectAccessReviewSpec spec; - @SerializedName("spec") - private V1beta1SubjectAccessReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1SubjectAccessReviewStatus status; - @SerializedName("status") - private V1beta1SubjectAccessReviewStatus status = null; public V1beta1LocalSubjectAccessReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1LocalSubjectAccessReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1LocalSubjectAccessReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1LocalSubjectAccessReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1beta1LocalSubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1LocalSubjectAccessReview spec(V1beta1SubjectAccessReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated. spec.namespace must be equal to the namespace you made the request against. If empty, it is defaulted.") + @ApiModelProperty(required = true, value = "") + public V1beta1SubjectAccessReviewSpec getSpec() { return spec; } + + public void setSpec(V1beta1SubjectAccessReviewSpec spec) { this.spec = spec; } + public V1beta1LocalSubjectAccessReview status(V1beta1SubjectAccessReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request is allowed or not + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request is allowed or not") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1SubjectAccessReviewStatus getStatus() { return status; } + + public void setStatus(V1beta1SubjectAccessReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1SubjectAccessReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1LocalSubjectAccessReview v1beta1LocalSubjectAccessReview = (V1beta1LocalSubjectAccessReview) o; - return Objects.equals(this.apiVersion, v1beta1LocalSubjectAccessReview.apiVersion) && - Objects.equals(this.kind, v1beta1LocalSubjectAccessReview.kind) && - Objects.equals(this.metadata, v1beta1LocalSubjectAccessReview.metadata) && - Objects.equals(this.spec, v1beta1LocalSubjectAccessReview.spec) && - Objects.equals(this.status, v1beta1LocalSubjectAccessReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1LocalSubjectAccessReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhook.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhook.java new file mode 100644 index 0000000000..a9d75fbc51 --- /dev/null +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhook.java @@ -0,0 +1,405 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AdmissionregistrationV1beta1WebhookClientConfig; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1beta1RuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +/** + * MutatingWebhook describes an admission webhook and the resources and operations it applies to. + */ +@ApiModel(description = "MutatingWebhook describes an admission webhook and the resources and operations it applies to.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") +public class V1beta1MutatingWebhook { + public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; + @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) + private List admissionReviewVersions = null; + + public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; + @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) + private AdmissionregistrationV1beta1WebhookClientConfig clientConfig; + + public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; + @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + private String failurePolicy; + + public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; + @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + private String matchPolicy; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1LabelSelector namespaceSelector; + + public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; + @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + private V1LabelSelector objectSelector; + + public static final String SERIALIZED_NAME_REINVOCATION_POLICY = "reinvocationPolicy"; + @SerializedName(SERIALIZED_NAME_REINVOCATION_POLICY) + private String reinvocationPolicy; + + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) + private List rules = null; + + public static final String SERIALIZED_NAME_SIDE_EFFECTS = "sideEffects"; + @SerializedName(SERIALIZED_NAME_SIDE_EFFECTS) + private String sideEffects; + + public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; + @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + private Integer timeoutSeconds; + + + public V1beta1MutatingWebhook admissionReviewVersions(List admissionReviewVersions) { + + this.admissionReviewVersions = admissionReviewVersions; + return this; + } + + public V1beta1MutatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVersionsItem) { + if (this.admissionReviewVersions == null) { + this.admissionReviewVersions = new ArrayList(); + } + this.admissionReviewVersions.add(admissionReviewVersionsItem); + return this; + } + + /** + * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. + * @return admissionReviewVersions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.") + + public List getAdmissionReviewVersions() { + return admissionReviewVersions; + } + + + + public void setAdmissionReviewVersions(List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; + } + + + public V1beta1MutatingWebhook clientConfig(AdmissionregistrationV1beta1WebhookClientConfig clientConfig) { + + this.clientConfig = clientConfig; + return this; + } + + /** + * Get clientConfig + * @return clientConfig + **/ + @ApiModelProperty(required = true, value = "") + + public AdmissionregistrationV1beta1WebhookClientConfig getClientConfig() { + return clientConfig; + } + + + + public void setClientConfig(AdmissionregistrationV1beta1WebhookClientConfig clientConfig) { + this.clientConfig = clientConfig; + } + + + public V1beta1MutatingWebhook failurePolicy(String failurePolicy) { + + this.failurePolicy = failurePolicy; + return this; + } + + /** + * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. + * @return failurePolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.") + + public String getFailurePolicy() { + return failurePolicy; + } + + + + public void setFailurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; + } + + + public V1beta1MutatingWebhook matchPolicy(String matchPolicy) { + + this.matchPolicy = matchPolicy; + return this; + } + + /** + * matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" + * @return matchPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\"") + + public String getMatchPolicy() { + return matchPolicy; + } + + + + public void setMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + } + + + public V1beta1MutatingWebhook name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required. + * @return name + **/ + @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") + + public String getName() { + return name; + } + + + + public void setName(String name) { + this.name = name; + } + + + public V1beta1MutatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) { + + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get namespaceSelector + * @return namespaceSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getNamespaceSelector() { + return namespaceSelector; + } + + + + public void setNamespaceSelector(V1LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + } + + + public V1beta1MutatingWebhook objectSelector(V1LabelSelector objectSelector) { + + this.objectSelector = objectSelector; + return this; + } + + /** + * Get objectSelector + * @return objectSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getObjectSelector() { + return objectSelector; + } + + + + public void setObjectSelector(V1LabelSelector objectSelector) { + this.objectSelector = objectSelector; + } + + + public V1beta1MutatingWebhook reinvocationPolicy(String reinvocationPolicy) { + + this.reinvocationPolicy = reinvocationPolicy; + return this; + } + + /** + * reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\". + * @return reinvocationPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: the webhook will not be called more than once in a single admission evaluation. IfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead. Defaults to \"Never\".") + + public String getReinvocationPolicy() { + return reinvocationPolicy; + } + + + + public void setReinvocationPolicy(String reinvocationPolicy) { + this.reinvocationPolicy = reinvocationPolicy; + } + + + public V1beta1MutatingWebhook rules(List rules) { + + this.rules = rules; + return this; + } + + public V1beta1MutatingWebhook addRulesItem(V1beta1RuleWithOperations rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. + * @return rules + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") + + public List getRules() { + return rules; + } + + + + public void setRules(List rules) { + this.rules = rules; + } + + + public V1beta1MutatingWebhook sideEffects(String sideEffects) { + + this.sideEffects = sideEffects; + return this; + } + + /** + * SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. + * @return sideEffects + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.") + + public String getSideEffects() { + return sideEffects; + } + + + + public void setSideEffects(String sideEffects) { + this.sideEffects = sideEffects; + } + + + public V1beta1MutatingWebhook timeoutSeconds(Integer timeoutSeconds) { + + this.timeoutSeconds = timeoutSeconds; + return this; + } + + /** + * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. + * @return timeoutSeconds + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.") + + public Integer getTimeoutSeconds() { + return timeoutSeconds; + } + + + + public void setTimeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; + } + + + @Override + public boolean equals(java.lang.Object o) { + return EqualsBuilder.reflectionEquals(this, o); + } + + @Override + public int hashCode() { + return HashCodeBuilder.reflectionHashCode(this); + } + + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class V1beta1MutatingWebhook {\n"); + sb.append(" admissionReviewVersions: ").append(toIndentedString(admissionReviewVersions)).append("\n"); + sb.append(" clientConfig: ").append(toIndentedString(clientConfig)).append("\n"); + sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); + sb.append(" matchPolicy: ").append(toIndentedString(matchPolicy)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" objectSelector: ").append(toIndentedString(objectSelector)).append("\n"); + sb.append(" reinvocationPolicy: ").append(toIndentedString(reinvocationPolicy)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append(" sideEffects: ").append(toIndentedString(sideEffects)).append("\n"); + sb.append(" timeoutSeconds: ").append(toIndentedString(timeoutSeconds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(java.lang.Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfiguration.java index d7ac953529..7441b59e49 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfiguration.java @@ -1,26 +1,29 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.models.V1ObjectMeta; -import io.kubernetes.client.models.V1beta1Webhook; +import io.kubernetes.client.models.V1beta1MutatingWebhook; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -31,21 +34,27 @@ * MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object. */ @ApiModel(description = "MutatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and may change the object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1MutatingWebhookConfiguration { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; + @SerializedName(SERIALIZED_NAME_WEBHOOKS) + private List webhooks = null; - @SerializedName("webhooks") - private List webhooks = null; public V1beta1MutatingWebhookConfiguration apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1MutatingWebhookConfiguration apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1MutatingWebhookConfiguration kind(String kind) { + this.kind = kind; return this; } @@ -72,41 +87,53 @@ public V1beta1MutatingWebhookConfiguration kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1MutatingWebhookConfiguration metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } - public V1beta1MutatingWebhookConfiguration webhooks(List webhooks) { + + public V1beta1MutatingWebhookConfiguration webhooks(List webhooks) { + this.webhooks = webhooks; return this; } - public V1beta1MutatingWebhookConfiguration addWebhooksItem(V1beta1Webhook webhooksItem) { + public V1beta1MutatingWebhookConfiguration addWebhooksItem(V1beta1MutatingWebhook webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList(); } this.webhooks.add(webhooksItem); return this; @@ -116,34 +143,28 @@ public V1beta1MutatingWebhookConfiguration addWebhooksItem(V1beta1Webhook webhoo * Webhooks is a list of webhooks and the affected resources and operations. * @return webhooks **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") - public List getWebhooks() { + + public List getWebhooks() { return webhooks; } - public void setWebhooks(List webhooks) { + + + public void setWebhooks(List webhooks) { this.webhooks = webhooks; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1MutatingWebhookConfiguration v1beta1MutatingWebhookConfiguration = (V1beta1MutatingWebhookConfiguration) o; - return Objects.equals(this.apiVersion, v1beta1MutatingWebhookConfiguration.apiVersion) && - Objects.equals(this.kind, v1beta1MutatingWebhookConfiguration.kind) && - Objects.equals(this.metadata, v1beta1MutatingWebhookConfiguration.metadata) && - Objects.equals(this.webhooks, v1beta1MutatingWebhookConfiguration.webhooks); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, webhooks); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1MutatingWebhookConfiguration {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationList.java index 049aeb1bd9..a3b9ede2fb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration. */ @ApiModel(description = "MutatingWebhookConfigurationList is a list of MutatingWebhookConfiguration.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1MutatingWebhookConfigurationList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1MutatingWebhookConfigurationList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1MutatingWebhookConfigurationList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1MutatingWebhookConfigurationList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1MutatingWebhookConfigurationList addItemsItem(V1beta1MutatingWebho * @return items **/ @ApiModelProperty(required = true, value = "List of MutatingWebhookConfiguration.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1MutatingWebhookConfigurationList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1MutatingWebhookConfigurationList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1MutatingWebhookConfigurationList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1MutatingWebhookConfigurationList v1beta1MutatingWebhookConfigurationList = (V1beta1MutatingWebhookConfigurationList) o; - return Objects.equals(this.apiVersion, v1beta1MutatingWebhookConfigurationList.apiVersion) && - Objects.equals(this.items, v1beta1MutatingWebhookConfigurationList.items) && - Objects.equals(this.kind, v1beta1MutatingWebhookConfigurationList.kind) && - Objects.equals(this.metadata, v1beta1MutatingWebhookConfigurationList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1MutatingWebhookConfigurationList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicy.java index 6e1b9236ff..16b2679444 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicy is deprecated by networking/v1/NetworkPolicy. NetworkPolicy describes what network traffic is allowed for a set of Pods") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicy { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1NetworkPolicySpec spec; - @SerializedName("spec") - private V1beta1NetworkPolicySpec spec = null; public V1beta1NetworkPolicy apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -52,16 +61,22 @@ public V1beta1NetworkPolicy apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1NetworkPolicy kind(String kind) { + this.kind = kind; return this; } @@ -70,47 +85,63 @@ public V1beta1NetworkPolicy kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1NetworkPolicy metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1NetworkPolicy spec(V1beta1NetworkPolicySpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior for this NetworkPolicy. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior for this NetworkPolicy.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1NetworkPolicySpec getSpec() { return spec; } + + public void setSpec(V1beta1NetworkPolicySpec spec) { this.spec = spec; } @@ -118,22 +149,12 @@ public void setSpec(V1beta1NetworkPolicySpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicy v1beta1NetworkPolicy = (V1beta1NetworkPolicy) o; - return Objects.equals(this.apiVersion, v1beta1NetworkPolicy.apiVersion) && - Objects.equals(this.kind, v1beta1NetworkPolicy.kind) && - Objects.equals(this.metadata, v1beta1NetworkPolicy.metadata) && - Objects.equals(this.spec, v1beta1NetworkPolicy.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicy {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRule.java index 0b71a0d165..5d41956fb0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8 */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicyEgressRule is deprecated by networking/v1/NetworkPolicyEgressRule. NetworkPolicyEgressRule describes a particular set of traffic that is allowed out of pods matched by a NetworkPolicySpec's podSelector. The traffic must match both ports and to. This type is beta-level in 1.8") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicyEgressRule { - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; - @SerializedName("to") + public static final String SERIALIZED_NAME_TO = "to"; + @SerializedName(SERIALIZED_NAME_TO) private List to = null; + public V1beta1NetworkPolicyEgressRule ports(List ports) { + this.ports = ports; return this; } @@ -56,16 +63,22 @@ public V1beta1NetworkPolicyEgressRule addPortsItem(V1beta1NetworkPolicyPort port * List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of destination ports for outgoing traffic. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } + public V1beta1NetworkPolicyEgressRule to(List to) { + this.to = to; return this; } @@ -82,11 +95,15 @@ public V1beta1NetworkPolicyEgressRule addToItem(V1beta1NetworkPolicyPeer toItem) * List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list. * @return to **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of destinations for outgoing traffic of pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all destinations (traffic not restricted by destination). If this field is present and contains at least one item, this rule allows traffic only if the traffic matches at least one item in the to list.") + public List getTo() { return to; } + + public void setTo(List to) { this.to = to; } @@ -94,20 +111,12 @@ public void setTo(List to) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicyEgressRule v1beta1NetworkPolicyEgressRule = (V1beta1NetworkPolicyEgressRule) o; - return Objects.equals(this.ports, v1beta1NetworkPolicyEgressRule.ports) && - Objects.equals(this.to, v1beta1NetworkPolicyEgressRule.to); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ports, to); + return HashCodeBuilder.reflectionHashCode(this); } @@ -115,7 +124,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicyEgressRule {\n"); - sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); sb.append(" to: ").append(toIndentedString(to)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRule.java index c15f7e678b..7bd23a6750 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from. */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicyIngressRule is deprecated by networking/v1/NetworkPolicyIngressRule. This NetworkPolicyIngressRule matches traffic if and only if the traffic matches both ports AND from.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicyIngressRule { - @SerializedName("from") + public static final String SERIALIZED_NAME_FROM = "from"; + @SerializedName(SERIALIZED_NAME_FROM) private List from = null; - @SerializedName("ports") + public static final String SERIALIZED_NAME_PORTS = "ports"; + @SerializedName(SERIALIZED_NAME_PORTS) private List ports = null; + public V1beta1NetworkPolicyIngressRule from(List from) { + this.from = from; return this; } @@ -56,16 +63,22 @@ public V1beta1NetworkPolicyIngressRule addFromItem(V1beta1NetworkPolicyPeer from * List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list. * @return from **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of sources which should be able to access the pods selected for this rule. Items in this list are combined using a logical OR operation. If this field is empty or missing, this rule matches all sources (traffic not restricted by source). If this field is present and contains at least on item, this rule allows traffic only if the traffic matches at least one item in the from list.") + public List getFrom() { return from; } + + public void setFrom(List from) { this.from = from; } + public V1beta1NetworkPolicyIngressRule ports(List ports) { + this.ports = ports; return this; } @@ -82,11 +95,15 @@ public V1beta1NetworkPolicyIngressRule addPortsItem(V1beta1NetworkPolicyPort por * List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list. * @return ports **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of ports which should be made accessible on the pods selected for this rule. Each item in this list is combined using a logical OR. If this field is empty or missing, this rule matches all ports (traffic not restricted by port). If this field is present and contains at least one item, then this rule allows traffic only if the traffic matches at least one port in the list.") + public List getPorts() { return ports; } + + public void setPorts(List ports) { this.ports = ports; } @@ -94,20 +111,12 @@ public void setPorts(List ports) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicyIngressRule v1beta1NetworkPolicyIngressRule = (V1beta1NetworkPolicyIngressRule) o; - return Objects.equals(this.from, v1beta1NetworkPolicyIngressRule.from) && - Objects.equals(this.ports, v1beta1NetworkPolicyIngressRule.ports); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(from, ports); + return HashCodeBuilder.reflectionHashCode(this); } @@ -115,7 +124,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicyIngressRule {\n"); - sb.append(" from: ").append(toIndentedString(from)).append("\n"); sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyList.java index 5593745ca5..ac75041ed2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects. */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicyList is deprecated by networking/v1/NetworkPolicyList. Network Policy List is a list of NetworkPolicy objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicyList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1NetworkPolicyList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1NetworkPolicyList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1NetworkPolicyList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1NetworkPolicyList addItemsItem(V1beta1NetworkPolicy itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1NetworkPolicyList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1NetworkPolicyList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1NetworkPolicyList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicyList v1beta1NetworkPolicyList = (V1beta1NetworkPolicyList) o; - return Objects.equals(this.apiVersion, v1beta1NetworkPolicyList.apiVersion) && - Objects.equals(this.items, v1beta1NetworkPolicyList.items) && - Objects.equals(this.kind, v1beta1NetworkPolicyList.kind) && - Objects.equals(this.metadata, v1beta1NetworkPolicyList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicyList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeer.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeer.java index 515be7b434..f8dd72f9cb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeer.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeer.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,67 +32,88 @@ * DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer. */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicyPeer is deprecated by networking/v1/NetworkPolicyPeer.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicyPeer { - @SerializedName("ipBlock") - private V1beta1IPBlock ipBlock = null; + public static final String SERIALIZED_NAME_IP_BLOCK = "ipBlock"; + @SerializedName(SERIALIZED_NAME_IP_BLOCK) + private V1beta1IPBlock ipBlock; + + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1LabelSelector namespaceSelector; - @SerializedName("namespaceSelector") - private V1LabelSelector namespaceSelector = null; + public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; + @SerializedName(SERIALIZED_NAME_POD_SELECTOR) + private V1LabelSelector podSelector; - @SerializedName("podSelector") - private V1LabelSelector podSelector = null; public V1beta1NetworkPolicyPeer ipBlock(V1beta1IPBlock ipBlock) { + this.ipBlock = ipBlock; return this; } /** - * IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be. + * Get ipBlock * @return ipBlock **/ - @ApiModelProperty(value = "IPBlock defines policy on a particular IPBlock. If this field is set then neither of the other fields can be.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1IPBlock getIpBlock() { return ipBlock; } + + public void setIpBlock(V1beta1IPBlock ipBlock) { this.ipBlock = ipBlock; } + public V1beta1NetworkPolicyPeer namespaceSelector(V1LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } /** - * Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector. + * Get namespaceSelector * @return namespaceSelector **/ - @ApiModelProperty(value = "Selects Namespaces using cluster-scoped labels. This field follows standard label selector semantics; if present but empty, it selects all namespaces. If PodSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects all Pods in the Namespaces selected by NamespaceSelector.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } + + public void setNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } + public V1beta1NetworkPolicyPeer podSelector(V1LabelSelector podSelector) { + this.podSelector = podSelector; return this; } /** - * This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace. + * Get podSelector * @return podSelector **/ - @ApiModelProperty(value = "This is a label selector which selects Pods. This field follows standard label selector semantics; if present but empty, it selects all pods. If NamespaceSelector is also set, then the NetworkPolicyPeer as a whole selects the Pods matching PodSelector in the Namespaces selected by NamespaceSelector. Otherwise it selects the Pods matching PodSelector in the policy's own Namespace.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getPodSelector() { return podSelector; } + + public void setPodSelector(V1LabelSelector podSelector) { this.podSelector = podSelector; } @@ -97,21 +121,12 @@ public void setPodSelector(V1LabelSelector podSelector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicyPeer v1beta1NetworkPolicyPeer = (V1beta1NetworkPolicyPeer) o; - return Objects.equals(this.ipBlock, v1beta1NetworkPolicyPeer.ipBlock) && - Objects.equals(this.namespaceSelector, v1beta1NetworkPolicyPeer.namespaceSelector) && - Objects.equals(this.podSelector, v1beta1NetworkPolicyPeer.podSelector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(ipBlock, namespaceSelector, podSelector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -119,7 +134,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicyPeer {\n"); - sb.append(" ipBlock: ").append(toIndentedString(ipBlock)).append("\n"); sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); sb.append(" podSelector: ").append(toIndentedString(podSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPort.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPort.java index bea6724512..d705feb879 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPort.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicyPort.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort. */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicyPort is deprecated by networking/v1/NetworkPolicyPort.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicyPort { - @SerializedName("port") - private IntOrString port = null; + public static final String SERIALIZED_NAME_PORT = "port"; + @SerializedName(SERIALIZED_NAME_PORT) + private IntOrString port; + + public static final String SERIALIZED_NAME_PROTOCOL = "protocol"; + @SerializedName(SERIALIZED_NAME_PROTOCOL) + private String protocol; - @SerializedName("protocol") - private String protocol = null; public V1beta1NetworkPolicyPort port(IntOrString port) { + this.port = port; return this; } /** - * If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return port **/ - @ApiModelProperty(value = "If specified, the port on the given protocol. This can either be a numerical or named port on a pod. If this field is not provided, this matches all port names and numbers. If present, only traffic on the specified protocol AND port will be matched.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getPort() { return port; } + + public void setPort(IntOrString port) { this.port = port; } + public V1beta1NetworkPolicyPort protocol(String protocol) { + this.protocol = protocol; return this; } @@ -63,11 +76,15 @@ public V1beta1NetworkPolicyPort protocol(String protocol) { * Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP. * @return protocol **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional. The protocol (TCP, UDP, or SCTP) which traffic must match. If not specified, this field defaults to TCP.") + public String getProtocol() { return protocol; } + + public void setProtocol(String protocol) { this.protocol = protocol; } @@ -75,20 +92,12 @@ public void setProtocol(String protocol) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicyPort v1beta1NetworkPolicyPort = (V1beta1NetworkPolicyPort) o; - return Objects.equals(this.port, v1beta1NetworkPolicyPort.port) && - Objects.equals(this.protocol, v1beta1NetworkPolicyPort.protocol); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(port, protocol); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicyPort {\n"); - sb.append(" port: ").append(toIndentedString(port)).append("\n"); sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicySpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicySpec.java index c871f775c8..927bf06a06 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicySpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NetworkPolicySpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,21 +35,27 @@ * DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec. */ @ApiModel(description = "DEPRECATED 1.9 - This group version of NetworkPolicySpec is deprecated by networking/v1/NetworkPolicySpec.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NetworkPolicySpec { - @SerializedName("egress") + public static final String SERIALIZED_NAME_EGRESS = "egress"; + @SerializedName(SERIALIZED_NAME_EGRESS) private List egress = null; - @SerializedName("ingress") + public static final String SERIALIZED_NAME_INGRESS = "ingress"; + @SerializedName(SERIALIZED_NAME_INGRESS) private List ingress = null; - @SerializedName("podSelector") - private V1LabelSelector podSelector = null; + public static final String SERIALIZED_NAME_POD_SELECTOR = "podSelector"; + @SerializedName(SERIALIZED_NAME_POD_SELECTOR) + private V1LabelSelector podSelector; - @SerializedName("policyTypes") + public static final String SERIALIZED_NAME_POLICY_TYPES = "policyTypes"; + @SerializedName(SERIALIZED_NAME_POLICY_TYPES) private List policyTypes = null; + public V1beta1NetworkPolicySpec egress(List egress) { + this.egress = egress; return this; } @@ -63,16 +72,22 @@ public V1beta1NetworkPolicySpec addEgressItem(V1beta1NetworkPolicyEgressRule egr * List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8 * @return egress **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of egress rules to be applied to the selected pods. Outgoing traffic is allowed if there are no NetworkPolicies selecting the pod (and cluster policy otherwise allows the traffic), OR if the traffic matches at least one egress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy limits all outgoing traffic (and serves solely to ensure that the pods it selects are isolated by default). This field is beta-level in 1.8") + public List getEgress() { return egress; } + + public void setEgress(List egress) { this.egress = egress; } + public V1beta1NetworkPolicySpec ingress(List ingress) { + this.ingress = ingress; return this; } @@ -89,34 +104,45 @@ public V1beta1NetworkPolicySpec addIngressItem(V1beta1NetworkPolicyIngressRule i * List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default). * @return ingress **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of ingress rules to be applied to the selected pods. Traffic is allowed to a pod if there are no NetworkPolicies selecting the pod OR if the traffic source is the pod's local node, OR if the traffic matches at least one ingress rule across all of the NetworkPolicy objects whose podSelector matches the pod. If this field is empty then this NetworkPolicy does not allow any traffic (and serves solely to ensure that the pods it selects are isolated by default).") + public List getIngress() { return ingress; } + + public void setIngress(List ingress) { this.ingress = ingress; } + public V1beta1NetworkPolicySpec podSelector(V1LabelSelector podSelector) { + this.podSelector = podSelector; return this; } /** - * Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace. + * Get podSelector * @return podSelector **/ - @ApiModelProperty(required = true, value = "Selects the pods to which this NetworkPolicy object applies. The array of ingress rules is applied to any pods selected by this field. Multiple network policies can select the same set of pods. In this case, the ingress rules for each are combined additively. This field is NOT optional and follows standard label selector semantics. An empty podSelector matches all pods in this namespace.") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getPodSelector() { return podSelector; } + + public void setPodSelector(V1LabelSelector podSelector) { this.podSelector = podSelector; } + public V1beta1NetworkPolicySpec policyTypes(List policyTypes) { + this.policyTypes = policyTypes; return this; } @@ -133,11 +159,15 @@ public V1beta1NetworkPolicySpec addPolicyTypesItem(String policyTypesItem) { * List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8 * @return policyTypes **/ + @javax.annotation.Nullable @ApiModelProperty(value = "List of rule types that the NetworkPolicy relates to. Valid options are \"Ingress\", \"Egress\", or \"Ingress,Egress\". If this field is not specified, it will default based on the existence of Ingress or Egress rules; policies that contain an Egress section are assumed to affect Egress, and all policies (whether or not they contain an Ingress section) are assumed to affect Ingress. If you want to write an egress-only policy, you must explicitly specify policyTypes [ \"Egress\" ]. Likewise, if you want to write a policy that specifies that no egress is allowed, you must specify a policyTypes value that include \"Egress\" (since such a policy would not include an Egress section and would otherwise default to just [ \"Ingress\" ]). This field is beta-level in 1.8") + public List getPolicyTypes() { return policyTypes; } + + public void setPolicyTypes(List policyTypes) { this.policyTypes = policyTypes; } @@ -145,22 +175,12 @@ public void setPolicyTypes(List policyTypes) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NetworkPolicySpec v1beta1NetworkPolicySpec = (V1beta1NetworkPolicySpec) o; - return Objects.equals(this.egress, v1beta1NetworkPolicySpec.egress) && - Objects.equals(this.ingress, v1beta1NetworkPolicySpec.ingress) && - Objects.equals(this.podSelector, v1beta1NetworkPolicySpec.podSelector) && - Objects.equals(this.policyTypes, v1beta1NetworkPolicySpec.policyTypes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(egress, ingress, podSelector, policyTypes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -168,7 +188,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NetworkPolicySpec {\n"); - sb.append(" egress: ").append(toIndentedString(egress)).append("\n"); sb.append(" ingress: ").append(toIndentedString(ingress)).append("\n"); sb.append(" podSelector: ").append(toIndentedString(podSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceAttributes.java index 2fc267cc88..0d4cc36ea7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceAttributes.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,15 +30,19 @@ * NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface */ @ApiModel(description = "NonResourceAttributes includes the authorization attributes available for non-resource requests to the Authorizer interface") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NonResourceAttributes { - @SerializedName("path") - private String path = null; + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_VERB = "verb"; + @SerializedName(SERIALIZED_NAME_VERB) + private String verb; - @SerializedName("verb") - private String verb = null; public V1beta1NonResourceAttributes path(String path) { + this.path = path; return this; } @@ -44,16 +51,22 @@ public V1beta1NonResourceAttributes path(String path) { * Path is the URL path of the request * @return path **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Path is the URL path of the request") + public String getPath() { return path; } + + public void setPath(String path) { this.path = path; } + public V1beta1NonResourceAttributes verb(String verb) { + this.verb = verb; return this; } @@ -62,11 +75,15 @@ public V1beta1NonResourceAttributes verb(String verb) { * Verb is the standard HTTP verb * @return verb **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Verb is the standard HTTP verb") + public String getVerb() { return verb; } + + public void setVerb(String verb) { this.verb = verb; } @@ -74,20 +91,12 @@ public void setVerb(String verb) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NonResourceAttributes v1beta1NonResourceAttributes = (V1beta1NonResourceAttributes) o; - return Objects.equals(this.path, v1beta1NonResourceAttributes.path) && - Objects.equals(this.verb, v1beta1NonResourceAttributes.verb); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(path, verb); + return HashCodeBuilder.reflectionHashCode(this); } @@ -95,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NonResourceAttributes {\n"); - sb.append(" path: ").append(toIndentedString(path)).append("\n"); sb.append(" verb: ").append(toIndentedString(verb)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceRule.java index 3c67fd9854..1e5f48f384 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1NonResourceRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * NonResourceRule holds information that describes a rule for the non-resource */ @ApiModel(description = "NonResourceRule holds information that describes a rule for the non-resource") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1NonResourceRule { - @SerializedName("nonResourceURLs") + public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) private List nonResourceURLs = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1beta1NonResourceRule nonResourceURLs(List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -54,16 +61,22 @@ public V1beta1NonResourceRule addNonResourceURLsItem(String nonResourceURLsItem) * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all. * @return nonResourceURLs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path. \"*\" means all.") + public List getNonResourceURLs() { return nonResourceURLs; } + + public void setNonResourceURLs(List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } + public V1beta1NonResourceRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -78,10 +91,13 @@ public V1beta1NonResourceRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verb is a list of kubernetes non-resource API verbs, like: get, post, put, delete, patch, head, options. \"*\" means all.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -89,20 +105,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1NonResourceRule v1beta1NonResourceRule = (V1beta1NonResourceRule) o; - return Objects.equals(this.nonResourceURLs, v1beta1NonResourceRule.nonResourceURLs) && - Objects.equals(this.verbs, v1beta1NonResourceRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nonResourceURLs, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -110,7 +118,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1NonResourceRule {\n"); - sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n"); sb.append(" verbs: ").append(toIndentedString(verbs)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudget.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudget.java index 86c25d16af..097f7ed97f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudget.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods */ @ApiModel(description = "PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PodDisruptionBudget { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1PodDisruptionBudgetSpec spec; - @SerializedName("spec") - private V1beta1PodDisruptionBudgetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1PodDisruptionBudgetStatus status; - @SerializedName("status") - private V1beta1PodDisruptionBudgetStatus status = null; public V1beta1PodDisruptionBudget apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1PodDisruptionBudget apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1PodDisruptionBudget kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1PodDisruptionBudget kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1PodDisruptionBudget metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1beta1PodDisruptionBudget metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1PodDisruptionBudget spec(V1beta1PodDisruptionBudgetSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the PodDisruptionBudget. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the PodDisruptionBudget.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1PodDisruptionBudgetSpec getSpec() { return spec; } + + public void setSpec(V1beta1PodDisruptionBudgetSpec spec) { this.spec = spec; } + public V1beta1PodDisruptionBudget status(V1beta1PodDisruptionBudgetStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the PodDisruptionBudget. + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the PodDisruptionBudget.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1PodDisruptionBudgetStatus getStatus() { return status; } + + public void setStatus(V1beta1PodDisruptionBudgetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1PodDisruptionBudgetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudget v1beta1PodDisruptionBudget = (V1beta1PodDisruptionBudget) o; - return Objects.equals(this.apiVersion, v1beta1PodDisruptionBudget.apiVersion) && - Objects.equals(this.kind, v1beta1PodDisruptionBudget.kind) && - Objects.equals(this.metadata, v1beta1PodDisruptionBudget.metadata) && - Objects.equals(this.spec, v1beta1PodDisruptionBudget.spec) && - Objects.equals(this.status, v1beta1PodDisruptionBudget.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PodDisruptionBudget {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetList.java index 5f77ebf77f..c0d8b7fcca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PodDisruptionBudgetList is a collection of PodDisruptionBudgets. */ @ApiModel(description = "PodDisruptionBudgetList is a collection of PodDisruptionBudgets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PodDisruptionBudgetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1PodDisruptionBudgetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1PodDisruptionBudgetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1PodDisruptionBudgetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1PodDisruptionBudgetList addItemsItem(V1beta1PodDisruptionBudget it * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1PodDisruptionBudgetList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1beta1PodDisruptionBudgetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1PodDisruptionBudgetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1beta1PodDisruptionBudgetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudgetList v1beta1PodDisruptionBudgetList = (V1beta1PodDisruptionBudgetList) o; - return Objects.equals(this.apiVersion, v1beta1PodDisruptionBudgetList.apiVersion) && - Objects.equals(this.items, v1beta1PodDisruptionBudgetList.items) && - Objects.equals(this.kind, v1beta1PodDisruptionBudgetList.kind) && - Objects.equals(this.metadata, v1beta1PodDisruptionBudgetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PodDisruptionBudgetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpec.java index 664f33cc70..7ee98c89b9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,67 +32,88 @@ * PodDisruptionBudgetSpec is a description of a PodDisruptionBudget. */ @ApiModel(description = "PodDisruptionBudgetSpec is a description of a PodDisruptionBudget.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PodDisruptionBudgetSpec { - @SerializedName("maxUnavailable") - private IntOrString maxUnavailable = null; + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; + + public static final String SERIALIZED_NAME_MIN_AVAILABLE = "minAvailable"; + @SerializedName(SERIALIZED_NAME_MIN_AVAILABLE) + private IntOrString minAvailable; - @SerializedName("minAvailable") - private IntOrString minAvailable = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; public V1beta1PodDisruptionBudgetSpec maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\". + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "An eviction is allowed if at most \"maxUnavailable\" pods selected by \"selector\" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with \"minAvailable\".") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxUnavailable() { return maxUnavailable; } + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } + public V1beta1PodDisruptionBudgetSpec minAvailable(IntOrString minAvailable) { + this.minAvailable = minAvailable; return this; } /** - * An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\". + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return minAvailable **/ - @ApiModelProperty(value = "An eviction is allowed if at least \"minAvailable\" pods selected by \"selector\" will still be available after the eviction, i.e. even in the absence of the evicted pod. So for example you can prevent all voluntary evictions by specifying \"100%\".") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMinAvailable() { return minAvailable; } + + public void setMinAvailable(IntOrString minAvailable) { this.minAvailable = minAvailable; } + public V1beta1PodDisruptionBudgetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Label query over pods whose evictions are managed by the disruption budget. + * Get selector * @return selector **/ - @ApiModelProperty(value = "Label query over pods whose evictions are managed by the disruption budget.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } @@ -97,21 +121,12 @@ public void setSelector(V1LabelSelector selector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudgetSpec v1beta1PodDisruptionBudgetSpec = (V1beta1PodDisruptionBudgetSpec) o; - return Objects.equals(this.maxUnavailable, v1beta1PodDisruptionBudgetSpec.maxUnavailable) && - Objects.equals(this.minAvailable, v1beta1PodDisruptionBudgetSpec.minAvailable) && - Objects.equals(this.selector, v1beta1PodDisruptionBudgetSpec.selector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxUnavailable, minAvailable, selector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -119,7 +134,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PodDisruptionBudgetSpec {\n"); - sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append(" minAvailable: ").append(toIndentedString(minAvailable)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatus.java index c7276bafef..ec84283367 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,27 +34,35 @@ * PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system. */ @ApiModel(description = "PodDisruptionBudgetStatus represents information about the status of a PodDisruptionBudget. Status may trail the actual state of a system.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PodDisruptionBudgetStatus { - @SerializedName("currentHealthy") - private Integer currentHealthy = null; + public static final String SERIALIZED_NAME_CURRENT_HEALTHY = "currentHealthy"; + @SerializedName(SERIALIZED_NAME_CURRENT_HEALTHY) + private Integer currentHealthy; - @SerializedName("desiredHealthy") - private Integer desiredHealthy = null; + public static final String SERIALIZED_NAME_DESIRED_HEALTHY = "desiredHealthy"; + @SerializedName(SERIALIZED_NAME_DESIRED_HEALTHY) + private Integer desiredHealthy; - @SerializedName("disruptedPods") + public static final String SERIALIZED_NAME_DISRUPTED_PODS = "disruptedPods"; + @SerializedName(SERIALIZED_NAME_DISRUPTED_PODS) private Map disruptedPods = null; - @SerializedName("disruptionsAllowed") - private Integer disruptionsAllowed = null; + public static final String SERIALIZED_NAME_DISRUPTIONS_ALLOWED = "disruptionsAllowed"; + @SerializedName(SERIALIZED_NAME_DISRUPTIONS_ALLOWED) + private Integer disruptionsAllowed; + + public static final String SERIALIZED_NAME_EXPECTED_PODS = "expectedPods"; + @SerializedName(SERIALIZED_NAME_EXPECTED_PODS) + private Integer expectedPods; - @SerializedName("expectedPods") - private Integer expectedPods = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; public V1beta1PodDisruptionBudgetStatus currentHealthy(Integer currentHealthy) { + this.currentHealthy = currentHealthy; return this; } @@ -61,15 +72,20 @@ public V1beta1PodDisruptionBudgetStatus currentHealthy(Integer currentHealthy) { * @return currentHealthy **/ @ApiModelProperty(required = true, value = "current number of healthy pods") + public Integer getCurrentHealthy() { return currentHealthy; } + + public void setCurrentHealthy(Integer currentHealthy) { this.currentHealthy = currentHealthy; } + public V1beta1PodDisruptionBudgetStatus desiredHealthy(Integer desiredHealthy) { + this.desiredHealthy = desiredHealthy; return this; } @@ -79,15 +95,20 @@ public V1beta1PodDisruptionBudgetStatus desiredHealthy(Integer desiredHealthy) { * @return desiredHealthy **/ @ApiModelProperty(required = true, value = "minimum desired number of healthy pods") + public Integer getDesiredHealthy() { return desiredHealthy; } + + public void setDesiredHealthy(Integer desiredHealthy) { this.desiredHealthy = desiredHealthy; } + public V1beta1PodDisruptionBudgetStatus disruptedPods(Map disruptedPods) { + this.disruptedPods = disruptedPods; return this; } @@ -104,16 +125,22 @@ public V1beta1PodDisruptionBudgetStatus putDisruptedPodsItem(String key, DateTim * DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions. * @return disruptedPods **/ + @javax.annotation.Nullable @ApiModelProperty(value = "DisruptedPods contains information about pods whose eviction was processed by the API server eviction subresource handler but has not yet been observed by the PodDisruptionBudget controller. A pod will be in this map from the time when the API server processed the eviction request to the time when the pod is seen by PDB controller as having been marked for deletion (or after a timeout). The key in the map is the name of the pod and the value is the time when the API server processed the eviction request. If the deletion didn't occur and a pod is still there it will be removed from the list automatically by PodDisruptionBudget controller after some time. If everything goes smooth this map should be empty for the most of the time. Large number of entries in the map may indicate problems with pod deletions.") + public Map getDisruptedPods() { return disruptedPods; } + + public void setDisruptedPods(Map disruptedPods) { this.disruptedPods = disruptedPods; } + public V1beta1PodDisruptionBudgetStatus disruptionsAllowed(Integer disruptionsAllowed) { + this.disruptionsAllowed = disruptionsAllowed; return this; } @@ -123,15 +150,20 @@ public V1beta1PodDisruptionBudgetStatus disruptionsAllowed(Integer disruptionsAl * @return disruptionsAllowed **/ @ApiModelProperty(required = true, value = "Number of pod disruptions that are currently allowed.") + public Integer getDisruptionsAllowed() { return disruptionsAllowed; } + + public void setDisruptionsAllowed(Integer disruptionsAllowed) { this.disruptionsAllowed = disruptionsAllowed; } + public V1beta1PodDisruptionBudgetStatus expectedPods(Integer expectedPods) { + this.expectedPods = expectedPods; return this; } @@ -141,15 +173,20 @@ public V1beta1PodDisruptionBudgetStatus expectedPods(Integer expectedPods) { * @return expectedPods **/ @ApiModelProperty(required = true, value = "total number of pods counted by this disruption budget") + public Integer getExpectedPods() { return expectedPods; } + + public void setExpectedPods(Integer expectedPods) { this.expectedPods = expectedPods; } + public V1beta1PodDisruptionBudgetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -158,11 +195,15 @@ public V1beta1PodDisruptionBudgetStatus observedGeneration(Long observedGenerati * Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Most recent generation observed when updating this PDB status. PodDisruptionsAllowed and other status informatio is valid only if observedGeneration equals to PDB's object generation.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } @@ -170,24 +211,12 @@ public void setObservedGeneration(Long observedGeneration) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PodDisruptionBudgetStatus v1beta1PodDisruptionBudgetStatus = (V1beta1PodDisruptionBudgetStatus) o; - return Objects.equals(this.currentHealthy, v1beta1PodDisruptionBudgetStatus.currentHealthy) && - Objects.equals(this.desiredHealthy, v1beta1PodDisruptionBudgetStatus.desiredHealthy) && - Objects.equals(this.disruptedPods, v1beta1PodDisruptionBudgetStatus.disruptedPods) && - Objects.equals(this.disruptionsAllowed, v1beta1PodDisruptionBudgetStatus.disruptionsAllowed) && - Objects.equals(this.expectedPods, v1beta1PodDisruptionBudgetStatus.expectedPods) && - Objects.equals(this.observedGeneration, v1beta1PodDisruptionBudgetStatus.observedGeneration); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(currentHealthy, desiredHealthy, disruptedPods, disruptionsAllowed, expectedPods, observedGeneration); + return HashCodeBuilder.reflectionHashCode(this); } @@ -195,7 +224,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PodDisruptionBudgetStatus {\n"); - sb.append(" currentHealthy: ").append(toIndentedString(currentHealthy)).append("\n"); sb.append(" desiredHealthy: ").append(toIndentedString(desiredHealthy)).append("\n"); sb.append(" disruptedPods: ").append(toIndentedString(disruptedPods)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PolicyRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PolicyRule.java index 8c8ca04ca3..7689ac1b2c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PolicyRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PolicyRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to. */ @ApiModel(description = "PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PolicyRule { - @SerializedName("apiGroups") + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) private List apiGroups = null; - @SerializedName("nonResourceURLs") + public static final String SERIALIZED_NAME_NON_RESOURCE_U_R_LS = "nonResourceURLs"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_U_R_LS) private List nonResourceURLs = null; - @SerializedName("resourceNames") + public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) private List resourceNames = null; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1beta1PolicyRule apiGroups(List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -63,16 +73,22 @@ public V1beta1PolicyRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. * @return apiGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed.") + public List getApiGroups() { return apiGroups; } + + public void setApiGroups(List apiGroups) { this.apiGroups = apiGroups; } + public V1beta1PolicyRule nonResourceURLs(List nonResourceURLs) { + this.nonResourceURLs = nonResourceURLs; return this; } @@ -89,16 +105,22 @@ public V1beta1PolicyRule addNonResourceURLsItem(String nonResourceURLsItem) { * NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both. * @return nonResourceURLs **/ + @javax.annotation.Nullable @ApiModelProperty(value = "NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as \"pods\" or \"secrets\") or non-resource URL paths (such as \"/api\"), but not both.") + public List getNonResourceURLs() { return nonResourceURLs; } + + public void setNonResourceURLs(List nonResourceURLs) { this.nonResourceURLs = nonResourceURLs; } + public V1beta1PolicyRule resourceNames(List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -115,16 +137,22 @@ public V1beta1PolicyRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. * @return resourceNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.") + public List getResourceNames() { return resourceNames; } + + public void setResourceNames(List resourceNames) { this.resourceNames = resourceNames; } + public V1beta1PolicyRule resources(List resources) { + this.resources = resources; return this; } @@ -141,16 +169,22 @@ public V1beta1PolicyRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*_/foo' represents the subresource 'foo' for all resources in the specified apiGroups. * @return resources **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. '*' represents all resources in the specified apiGroups. '*_/foo' represents the subresource 'foo' for all resources in the specified apiGroups.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } + public V1beta1PolicyRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -165,10 +199,13 @@ public V1beta1PolicyRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verbs is a list of Verbs that apply to ALL the ResourceKinds and AttributeRestrictions contained in this rule. VerbAll represents all kinds.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -176,23 +213,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PolicyRule v1beta1PolicyRule = (V1beta1PolicyRule) o; - return Objects.equals(this.apiGroups, v1beta1PolicyRule.apiGroups) && - Objects.equals(this.nonResourceURLs, v1beta1PolicyRule.nonResourceURLs) && - Objects.equals(this.resourceNames, v1beta1PolicyRule.resourceNames) && - Objects.equals(this.resources, v1beta1PolicyRule.resources) && - Objects.equals(this.verbs, v1beta1PolicyRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroups, nonResourceURLs, resourceNames, resources, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -200,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PolicyRule {\n"); - sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); sb.append(" nonResourceURLs: ").append(toIndentedString(nonResourceURLs)).append("\n"); sb.append(" resourceNames: ").append(toIndentedString(resourceNames)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClass.java index 5544004042..4c5c89297c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,39 @@ * DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer. */ @ApiModel(description = "DEPRECATED - This group version of PriorityClass is deprecated by scheduling.k8s.io/v1/PriorityClass. PriorityClass defines mapping from a priority class name to the priority integer value. The value can be any valid integer.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PriorityClass { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; + @SerializedName(SERIALIZED_NAME_DESCRIPTION) + private String description; - @SerializedName("description") - private String description = null; + public static final String SERIALIZED_NAME_GLOBAL_DEFAULT = "globalDefault"; + @SerializedName(SERIALIZED_NAME_GLOBAL_DEFAULT) + private Boolean globalDefault; - @SerializedName("globalDefault") - private Boolean globalDefault = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_PREEMPTION_POLICY = "preemptionPolicy"; + @SerializedName(SERIALIZED_NAME_PREEMPTION_POLICY) + private String preemptionPolicy; + + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Integer value; - @SerializedName("value") - private Integer value = null; public V1beta1PriorityClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -57,16 +72,22 @@ public V1beta1PriorityClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1PriorityClass description(String description) { + this.description = description; return this; } @@ -75,16 +96,22 @@ public V1beta1PriorityClass description(String description) { * description is an arbitrary string that usually provides guidelines on when this priority class should be used. * @return description **/ + @javax.annotation.Nullable @ApiModelProperty(value = "description is an arbitrary string that usually provides guidelines on when this priority class should be used.") + public String getDescription() { return description; } + + public void setDescription(String description) { this.description = description; } + public V1beta1PriorityClass globalDefault(Boolean globalDefault) { + this.globalDefault = globalDefault; return this; } @@ -93,16 +120,22 @@ public V1beta1PriorityClass globalDefault(Boolean globalDefault) { * globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority. * @return globalDefault **/ + @javax.annotation.Nullable @ApiModelProperty(value = "globalDefault specifies whether this PriorityClass should be considered as the default priority for pods that do not have any priority class. Only one PriorityClass can be marked as `globalDefault`. However, if more than one PriorityClasses exists with their `globalDefault` field set to true, the smallest value of such global default PriorityClasses will be used as the default priority.") - public Boolean isGlobalDefault() { + + public Boolean getGlobalDefault() { return globalDefault; } + + public void setGlobalDefault(Boolean globalDefault) { this.globalDefault = globalDefault; } + public V1beta1PriorityClass kind(String kind) { + this.kind = kind; return this; } @@ -111,34 +144,70 @@ public V1beta1PriorityClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1PriorityClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + + public V1beta1PriorityClass preemptionPolicy(String preemptionPolicy) { + + this.preemptionPolicy = preemptionPolicy; + return this; + } + + /** + * PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature. + * @return preemptionPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.") + + public String getPreemptionPolicy() { + return preemptionPolicy; + } + + + + public void setPreemptionPolicy(String preemptionPolicy) { + this.preemptionPolicy = preemptionPolicy; + } + + public V1beta1PriorityClass value(Integer value) { + this.value = value; return this; } @@ -148,10 +217,13 @@ public V1beta1PriorityClass value(Integer value) { * @return value **/ @ApiModelProperty(required = true, value = "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.") + public Integer getValue() { return value; } + + public void setValue(Integer value) { this.value = value; } @@ -159,24 +231,12 @@ public void setValue(Integer value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PriorityClass v1beta1PriorityClass = (V1beta1PriorityClass) o; - return Objects.equals(this.apiVersion, v1beta1PriorityClass.apiVersion) && - Objects.equals(this.description, v1beta1PriorityClass.description) && - Objects.equals(this.globalDefault, v1beta1PriorityClass.globalDefault) && - Objects.equals(this.kind, v1beta1PriorityClass.kind) && - Objects.equals(this.metadata, v1beta1PriorityClass.metadata) && - Objects.equals(this.value, v1beta1PriorityClass.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, description, globalDefault, kind, metadata, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,12 +244,12 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PriorityClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" globalDefault: ").append(toIndentedString(globalDefault)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); + sb.append(" preemptionPolicy: ").append(toIndentedString(preemptionPolicy)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClassList.java index 4e524ee03e..7e53859bd9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1PriorityClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * PriorityClassList is a collection of priority classes. */ @ApiModel(description = "PriorityClassList is a collection of priority classes.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1PriorityClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1PriorityClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1PriorityClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1PriorityClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1PriorityClassList addItemsItem(V1beta1PriorityClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of PriorityClasses") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1PriorityClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1PriorityClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1PriorityClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1PriorityClassList v1beta1PriorityClassList = (V1beta1PriorityClassList) o; - return Objects.equals(this.apiVersion, v1beta1PriorityClassList.apiVersion) && - Objects.equals(this.items, v1beta1PriorityClassList.items) && - Objects.equals(this.kind, v1beta1PriorityClassList.kind) && - Objects.equals(this.metadata, v1beta1PriorityClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1PriorityClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSet.java index a65042217f..374926588e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1beta2/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ReplicaSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1ReplicaSetSpec spec; - @SerializedName("spec") - private V1beta1ReplicaSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1ReplicaSetStatus status; - @SerializedName("status") - private V1beta1ReplicaSetStatus status = null; public V1beta1ReplicaSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1ReplicaSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ReplicaSet kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta1ReplicaSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ReplicaSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1ReplicaSet spec(V1beta1ReplicaSetSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1ReplicaSetSpec getSpec() { return spec; } + + public void setSpec(V1beta1ReplicaSetSpec spec) { this.spec = spec; } + public V1beta1ReplicaSet status(V1beta1ReplicaSetStatus status) { + this.status = status; return this; } /** - * Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1ReplicaSetStatus getStatus() { return status; } + + public void setStatus(V1beta1ReplicaSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1ReplicaSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ReplicaSet v1beta1ReplicaSet = (V1beta1ReplicaSet) o; - return Objects.equals(this.apiVersion, v1beta1ReplicaSet.apiVersion) && - Objects.equals(this.kind, v1beta1ReplicaSet.kind) && - Objects.equals(this.metadata, v1beta1ReplicaSet.metadata) && - Objects.equals(this.spec, v1beta1ReplicaSet.spec) && - Objects.equals(this.status, v1beta1ReplicaSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ReplicaSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetCondition.java index ff2470ab8a..9cd968bc3c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ReplicaSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta1ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime * The last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta1ReplicaSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta1ReplicaSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1ReplicaSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta1ReplicaSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1ReplicaSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta1ReplicaSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta1ReplicaSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta1ReplicaSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of replica set condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ReplicaSetCondition v1beta1ReplicaSetCondition = (V1beta1ReplicaSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta1ReplicaSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta1ReplicaSetCondition.message) && - Objects.equals(this.reason, v1beta1ReplicaSetCondition.reason) && - Objects.equals(this.status, v1beta1ReplicaSetCondition.status) && - Objects.equals(this.type, v1beta1ReplicaSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ReplicaSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetList.java index db1090a6e2..98a3565c9c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ReplicaSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1ReplicaSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1ReplicaSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ReplicaSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1ReplicaSetList addItemsItem(V1beta1ReplicaSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1ReplicaSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1ReplicaSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ReplicaSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ReplicaSetList v1beta1ReplicaSetList = (V1beta1ReplicaSetList) o; - return Objects.equals(this.apiVersion, v1beta1ReplicaSetList.apiVersion) && - Objects.equals(this.items, v1beta1ReplicaSetList.items) && - Objects.equals(this.kind, v1beta1ReplicaSetList.kind) && - Objects.equals(this.metadata, v1beta1ReplicaSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ReplicaSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetSpec.java index 1385668064..afc3aebc62 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ReplicaSetSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public V1beta1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -52,16 +61,22 @@ public V1beta1ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1beta1ReplicaSetSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -70,47 +85,63 @@ public V1beta1ReplicaSetSpec replicas(Integer replicas) { * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta1ReplicaSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(value = "Selector is a label query over pods that should match the replica count. If the selector is empty, it is defaulted to the labels present on the pod template. Label keys and values that must match in order to be controlled by this replica set. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta1ReplicaSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(value = "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -118,22 +149,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ReplicaSetSpec v1beta1ReplicaSetSpec = (V1beta1ReplicaSetSpec) o; - return Objects.equals(this.minReadySeconds, v1beta1ReplicaSetSpec.minReadySeconds) && - Objects.equals(this.replicas, v1beta1ReplicaSetSpec.replicas) && - Objects.equals(this.selector, v1beta1ReplicaSetSpec.selector) && - Objects.equals(this.template, v1beta1ReplicaSetSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, replicas, selector, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +162,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ReplicaSetSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetStatus.java index d1768e004e..bb011e938c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ReplicaSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ReplicaSetStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("fullyLabeledReplicas") - private Integer fullyLabeledReplicas = null; + public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; + @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) + private Integer fullyLabeledReplicas; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; public V1beta1ReplicaSetStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -59,16 +70,22 @@ public V1beta1ReplicaSetStatus availableReplicas(Integer availableReplicas) { * The number of available replicas (ready for at least minReadySeconds) for this replica set. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public V1beta1ReplicaSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -85,16 +102,22 @@ public V1beta1ReplicaSetStatus addConditionsItem(V1beta1ReplicaSetCondition cond * Represents the latest available observations of a replica set's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a replica set's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @@ -103,16 +126,22 @@ public V1beta1ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas * The number of pods that have labels matching the labels of the pod template of the replicaset. * @return fullyLabeledReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") + public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } + + public void setFullyLabeledReplicas(Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; } + public V1beta1ReplicaSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -121,16 +150,22 @@ public V1beta1ReplicaSetStatus observedGeneration(Long observedGeneration) { * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta1ReplicaSetStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -139,16 +174,22 @@ public V1beta1ReplicaSetStatus readyReplicas(Integer readyReplicas) { * The number of ready replicas for this replica set. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of ready replicas for this replica set.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1beta1ReplicaSetStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -158,10 +199,13 @@ public V1beta1ReplicaSetStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -169,24 +213,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ReplicaSetStatus v1beta1ReplicaSetStatus = (V1beta1ReplicaSetStatus) o; - return Objects.equals(this.availableReplicas, v1beta1ReplicaSetStatus.availableReplicas) && - Objects.equals(this.conditions, v1beta1ReplicaSetStatus.conditions) && - Objects.equals(this.fullyLabeledReplicas, v1beta1ReplicaSetStatus.fullyLabeledReplicas) && - Objects.equals(this.observedGeneration, v1beta1ReplicaSetStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1beta1ReplicaSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1beta1ReplicaSetStatus.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -194,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ReplicaSetStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" fullyLabeledReplicas: ").append(toIndentedString(fullyLabeledReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceAttributes.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceAttributes.java index e4159179d3..30d3f9bce7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceAttributes.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceAttributes.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,30 +30,39 @@ * ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface */ @ApiModel(description = "ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ResourceAttributes { - @SerializedName("group") - private String group = null; + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) + private String group; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private String resource; - @SerializedName("resource") - private String resource = null; + public static final String SERIALIZED_NAME_SUBRESOURCE = "subresource"; + @SerializedName(SERIALIZED_NAME_SUBRESOURCE) + private String subresource; - @SerializedName("subresource") - private String subresource = null; + public static final String SERIALIZED_NAME_VERB = "verb"; + @SerializedName(SERIALIZED_NAME_VERB) + private String verb; - @SerializedName("verb") - private String verb = null; + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private String version; - @SerializedName("version") - private String version = null; public V1beta1ResourceAttributes group(String group) { + this.group = group; return this; } @@ -59,16 +71,22 @@ public V1beta1ResourceAttributes group(String group) { * Group is the API Group of the Resource. \"*\" means all. * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Group is the API Group of the Resource. \"*\" means all.") + public String getGroup() { return group; } + + public void setGroup(String group) { this.group = group; } + public V1beta1ResourceAttributes name(String name) { + this.name = name; return this; } @@ -77,16 +95,22 @@ public V1beta1ResourceAttributes name(String name) { * Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all. * @return name **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name is the name of the resource being requested for a \"get\" or deleted for a \"delete\". \"\" (empty) means all.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1beta1ResourceAttributes namespace(String namespace) { + this.namespace = namespace; return this; } @@ -95,16 +119,22 @@ public V1beta1ResourceAttributes namespace(String namespace) { * Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces \"\" (empty) is defaulted for LocalSubjectAccessReviews \"\" (empty) is empty for cluster-scoped resources \"\" (empty) means \"all\" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } + public V1beta1ResourceAttributes resource(String resource) { + this.resource = resource; return this; } @@ -113,16 +143,22 @@ public V1beta1ResourceAttributes resource(String resource) { * Resource is one of the existing resource types. \"*\" means all. * @return resource **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resource is one of the existing resource types. \"*\" means all.") + public String getResource() { return resource; } + + public void setResource(String resource) { this.resource = resource; } + public V1beta1ResourceAttributes subresource(String subresource) { + this.subresource = subresource; return this; } @@ -131,16 +167,22 @@ public V1beta1ResourceAttributes subresource(String subresource) { * Subresource is one of the existing resource types. \"\" means none. * @return subresource **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subresource is one of the existing resource types. \"\" means none.") + public String getSubresource() { return subresource; } + + public void setSubresource(String subresource) { this.subresource = subresource; } + public V1beta1ResourceAttributes verb(String verb) { + this.verb = verb; return this; } @@ -149,16 +191,22 @@ public V1beta1ResourceAttributes verb(String verb) { * Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all. * @return verb **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") + public String getVerb() { return verb; } + + public void setVerb(String verb) { this.verb = verb; } + public V1beta1ResourceAttributes version(String version) { + this.version = version; return this; } @@ -167,11 +215,15 @@ public V1beta1ResourceAttributes version(String version) { * Version is the API Version of the Resource. \"*\" means all. * @return version **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Version is the API Version of the Resource. \"*\" means all.") + public String getVersion() { return version; } + + public void setVersion(String version) { this.version = version; } @@ -179,25 +231,12 @@ public void setVersion(String version) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ResourceAttributes v1beta1ResourceAttributes = (V1beta1ResourceAttributes) o; - return Objects.equals(this.group, v1beta1ResourceAttributes.group) && - Objects.equals(this.name, v1beta1ResourceAttributes.name) && - Objects.equals(this.namespace, v1beta1ResourceAttributes.namespace) && - Objects.equals(this.resource, v1beta1ResourceAttributes.resource) && - Objects.equals(this.subresource, v1beta1ResourceAttributes.subresource) && - Objects.equals(this.verb, v1beta1ResourceAttributes.verb) && - Objects.equals(this.version, v1beta1ResourceAttributes.version); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(group, name, namespace, resource, subresource, verb, version); + return HashCodeBuilder.reflectionHashCode(this); } @@ -205,7 +244,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ResourceAttributes {\n"); - sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceRule.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceRule.java index 172ed3eee0..9d6f316720 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceRule.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ResourceRule.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete. */ @ApiModel(description = "ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ResourceRule { - @SerializedName("apiGroups") + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) private List apiGroups = null; - @SerializedName("resourceNames") + public static final String SERIALIZED_NAME_RESOURCE_NAMES = "resourceNames"; + @SerializedName(SERIALIZED_NAME_RESOURCE_NAMES) private List resourceNames = null; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = null; - @SerializedName("verbs") + public static final String SERIALIZED_NAME_VERBS = "verbs"; + @SerializedName(SERIALIZED_NAME_VERBS) private List verbs = new ArrayList(); + public V1beta1ResourceRule apiGroups(List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -60,16 +69,22 @@ public V1beta1ResourceRule addApiGroupsItem(String apiGroupsItem) { * APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all. * @return apiGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. \"*\" means all.") + public List getApiGroups() { return apiGroups; } + + public void setApiGroups(List apiGroups) { this.apiGroups = apiGroups; } + public V1beta1ResourceRule resourceNames(List resourceNames) { + this.resourceNames = resourceNames; return this; } @@ -86,16 +101,22 @@ public V1beta1ResourceRule addResourceNamesItem(String resourceNamesItem) { * ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all. * @return resourceNames **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. \"*\" means all.") + public List getResourceNames() { return resourceNames; } + + public void setResourceNames(List resourceNames) { this.resourceNames = resourceNames; } + public V1beta1ResourceRule resources(List resources) { + this.resources = resources; return this; } @@ -112,16 +133,22 @@ public V1beta1ResourceRule addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups. * @return resources **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. \"*\" means all in the specified apiGroups. \"*_/foo\" represents the subresource 'foo' for all resources in the specified apiGroups.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } + public V1beta1ResourceRule verbs(List verbs) { + this.verbs = verbs; return this; } @@ -136,10 +163,13 @@ public V1beta1ResourceRule addVerbsItem(String verbsItem) { * @return verbs **/ @ApiModelProperty(required = true, value = "Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. \"*\" means all.") + public List getVerbs() { return verbs; } + + public void setVerbs(List verbs) { this.verbs = verbs; } @@ -147,22 +177,12 @@ public void setVerbs(List verbs) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ResourceRule v1beta1ResourceRule = (V1beta1ResourceRule) o; - return Objects.equals(this.apiGroups, v1beta1ResourceRule.apiGroups) && - Objects.equals(this.resourceNames, v1beta1ResourceRule.resourceNames) && - Objects.equals(this.resources, v1beta1ResourceRule.resources) && - Objects.equals(this.verbs, v1beta1ResourceRule.verbs); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroups, resourceNames, resources, verbs); + return HashCodeBuilder.reflectionHashCode(this); } @@ -170,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ResourceRule {\n"); - sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); sb.append(" resourceNames: ").append(toIndentedString(resourceNames)).append("\n"); sb.append(" resources: ").append(toIndentedString(resources)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Role.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Role.java index e881c7ba1d..3e99fd02ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Role.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Role.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. */ @ApiModel(description = "Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1Role { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; + public V1beta1Role apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1Role apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1Role kind(String kind) { + this.kind = kind; return this; } @@ -72,34 +87,46 @@ public V1beta1Role kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1Role metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1Role rules(List rules) { + this.rules = rules; return this; } @@ -116,11 +143,15 @@ public V1beta1Role addRulesItem(V1beta1PolicyRule rulesItem) { * Rules holds all the PolicyRules for this Role * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules holds all the PolicyRules for this Role") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } @@ -128,22 +159,12 @@ public void setRules(List rules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Role v1beta1Role = (V1beta1Role) o; - return Objects.equals(this.apiVersion, v1beta1Role.apiVersion) && - Objects.equals(this.kind, v1beta1Role.kind) && - Objects.equals(this.metadata, v1beta1Role.metadata) && - Objects.equals(this.rules, v1beta1Role.rules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, rules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1Role {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBinding.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBinding.java index 00d35ff6e0..6a40f6804e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBinding.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBinding.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,24 +35,31 @@ * RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace. */ @ApiModel(description = "RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given namespace only have effect in that namespace.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RoleBinding { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("roleRef") - private V1beta1RoleRef roleRef = null; + public static final String SERIALIZED_NAME_ROLE_REF = "roleRef"; + @SerializedName(SERIALIZED_NAME_ROLE_REF) + private V1beta1RoleRef roleRef; - @SerializedName("subjects") + public static final String SERIALIZED_NAME_SUBJECTS = "subjects"; + @SerializedName(SERIALIZED_NAME_SUBJECTS) private List subjects = null; + public V1beta1RoleBinding apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -58,16 +68,22 @@ public V1beta1RoleBinding apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1RoleBinding kind(String kind) { + this.kind = kind; return this; } @@ -76,52 +92,69 @@ public V1beta1RoleBinding kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1RoleBinding metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1RoleBinding roleRef(V1beta1RoleRef roleRef) { + this.roleRef = roleRef; return this; } /** - * RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error. + * Get roleRef * @return roleRef **/ - @ApiModelProperty(required = true, value = "RoleRef can reference a Role in the current namespace or a ClusterRole in the global namespace. If the RoleRef cannot be resolved, the Authorizer must return an error.") + @ApiModelProperty(required = true, value = "") + public V1beta1RoleRef getRoleRef() { return roleRef; } + + public void setRoleRef(V1beta1RoleRef roleRef) { this.roleRef = roleRef; } + public V1beta1RoleBinding subjects(List subjects) { + this.subjects = subjects; return this; } @@ -138,11 +171,15 @@ public V1beta1RoleBinding addSubjectsItem(V1beta1Subject subjectsItem) { * Subjects holds references to the objects the role applies to. * @return subjects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Subjects holds references to the objects the role applies to.") + public List getSubjects() { return subjects; } + + public void setSubjects(List subjects) { this.subjects = subjects; } @@ -150,23 +187,12 @@ public void setSubjects(List subjects) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RoleBinding v1beta1RoleBinding = (V1beta1RoleBinding) o; - return Objects.equals(this.apiVersion, v1beta1RoleBinding.apiVersion) && - Objects.equals(this.kind, v1beta1RoleBinding.kind) && - Objects.equals(this.metadata, v1beta1RoleBinding.metadata) && - Objects.equals(this.roleRef, v1beta1RoleBinding.roleRef) && - Objects.equals(this.subjects, v1beta1RoleBinding.subjects); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, roleRef, subjects); + return HashCodeBuilder.reflectionHashCode(this); } @@ -174,7 +200,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RoleBinding {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBindingList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBindingList.java index 0e5c69923a..ac9b1f0c4b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBindingList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleBindingList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RoleBindingList is a collection of RoleBindings */ @ApiModel(description = "RoleBindingList is a collection of RoleBindings") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RoleBindingList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1RoleBindingList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1RoleBindingList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1RoleBindingList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1RoleBindingList addItemsItem(V1beta1RoleBinding itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of RoleBindings") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1RoleBindingList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1RoleBindingList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1RoleBindingList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RoleBindingList v1beta1RoleBindingList = (V1beta1RoleBindingList) o; - return Objects.equals(this.apiVersion, v1beta1RoleBindingList.apiVersion) && - Objects.equals(this.items, v1beta1RoleBindingList.items) && - Objects.equals(this.kind, v1beta1RoleBindingList.kind) && - Objects.equals(this.metadata, v1beta1RoleBindingList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RoleBindingList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleList.java index 8ea949d4d3..49dcfd7006 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RoleList is a collection of Roles */ @ApiModel(description = "RoleList is a collection of Roles") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RoleList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1RoleList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1RoleList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1RoleList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1RoleList addItemsItem(V1beta1Role itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of Roles") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1RoleList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1RoleList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1RoleList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RoleList v1beta1RoleList = (V1beta1RoleList) o; - return Objects.equals(this.apiVersion, v1beta1RoleList.apiVersion) && - Objects.equals(this.items, v1beta1RoleList.items) && - Objects.equals(this.kind, v1beta1RoleList.kind) && - Objects.equals(this.metadata, v1beta1RoleList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RoleList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleRef.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleRef.java index c4ad65619a..a451256504 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleRef.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RoleRef.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * RoleRef contains information that points to the role being used */ @ApiModel(description = "RoleRef contains information that points to the role being used") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RoleRef { - @SerializedName("apiGroup") - private String apiGroup = null; + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V1beta1RoleRef apiGroup(String apiGroup) { + this.apiGroup = apiGroup; return this; } @@ -48,15 +56,20 @@ public V1beta1RoleRef apiGroup(String apiGroup) { * @return apiGroup **/ @ApiModelProperty(required = true, value = "APIGroup is the group for the resource being referenced") + public String getApiGroup() { return apiGroup; } + + public void setApiGroup(String apiGroup) { this.apiGroup = apiGroup; } + public V1beta1RoleRef kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +79,20 @@ public V1beta1RoleRef kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind is the type of resource being referenced") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1RoleRef name(String name) { + this.name = name; return this; } @@ -84,10 +102,13 @@ public V1beta1RoleRef name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the name of resource being referenced") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +116,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RoleRef v1beta1RoleRef = (V1beta1RoleRef) o; - return Objects.equals(this.apiGroup, v1beta1RoleRef.apiGroup) && - Objects.equals(this.kind, v1beta1RoleRef.kind) && - Objects.equals(this.name, v1beta1RoleRef.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroup, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +129,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RoleRef {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSet.java index cd048a5930..c1e944bbe7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RollingUpdateDaemonSet { - @SerializedName("maxUnavailable") - private IntOrString maxUnavailable = null; + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; + public V1beta1RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxUnavailable() { return maxUnavailable; } + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -54,19 +64,12 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RollingUpdateDaemonSet v1beta1RollingUpdateDaemonSet = (V1beta1RollingUpdateDaemonSet) o; - return Objects.equals(this.maxUnavailable, v1beta1RollingUpdateDaemonSet.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RollingUpdateDaemonSet {\n"); - sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategy.java index ef76ef99f2..4d3b9f412e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RollingUpdateStatefulSetStrategy { - @SerializedName("partition") - private Integer partition = null; + public static final String SERIALIZED_NAME_PARTITION = "partition"; + @SerializedName(SERIALIZED_NAME_PARTITION) + private Integer partition; + public V1beta1RollingUpdateStatefulSetStrategy partition(Integer partition) { + this.partition = partition; return this; } @@ -41,11 +47,15 @@ public V1beta1RollingUpdateStatefulSetStrategy partition(Integer partition) { * Partition indicates the ordinal at which the StatefulSet should be partitioned. * @return partition **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Partition indicates the ordinal at which the StatefulSet should be partitioned.") + public Integer getPartition() { return partition; } + + public void setPartition(Integer partition) { this.partition = partition; } @@ -53,19 +63,12 @@ public void setPartition(Integer partition) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RollingUpdateStatefulSetStrategy v1beta1RollingUpdateStatefulSetStrategy = (V1beta1RollingUpdateStatefulSetStrategy) o; - return Objects.equals(this.partition, v1beta1RollingUpdateStatefulSetStrategy.partition); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(partition); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RollingUpdateStatefulSetStrategy {\n"); - sb.append(" partition: ").append(toIndentedString(partition)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuleWithOperations.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuleWithOperations.java index dd6b5807c2..9120acfccd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuleWithOperations.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuleWithOperations.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid. */ @ApiModel(description = "RuleWithOperations is a tuple of Operations and Resources. It is recommended to make sure that all the tuple expansions are valid.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RuleWithOperations { - @SerializedName("apiGroups") + public static final String SERIALIZED_NAME_API_GROUPS = "apiGroups"; + @SerializedName(SERIALIZED_NAME_API_GROUPS) private List apiGroups = null; - @SerializedName("apiVersions") + public static final String SERIALIZED_NAME_API_VERSIONS = "apiVersions"; + @SerializedName(SERIALIZED_NAME_API_VERSIONS) private List apiVersions = null; - @SerializedName("operations") + public static final String SERIALIZED_NAME_OPERATIONS = "operations"; + @SerializedName(SERIALIZED_NAME_OPERATIONS) private List operations = null; - @SerializedName("resources") + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) private List resources = null; - @SerializedName("scope") - private String scope = null; + public static final String SERIALIZED_NAME_SCOPE = "scope"; + @SerializedName(SERIALIZED_NAME_SCOPE) + private String scope; + public V1beta1RuleWithOperations apiGroups(List apiGroups) { + this.apiGroups = apiGroups; return this; } @@ -63,16 +73,22 @@ public V1beta1RuleWithOperations addApiGroupsItem(String apiGroupsItem) { * APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required. * @return apiGroups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroups is the API groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.") + public List getApiGroups() { return apiGroups; } + + public void setApiGroups(List apiGroups) { this.apiGroups = apiGroups; } + public V1beta1RuleWithOperations apiVersions(List apiVersions) { + this.apiVersions = apiVersions; return this; } @@ -89,16 +105,22 @@ public V1beta1RuleWithOperations addApiVersionsItem(String apiVersionsItem) { * APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required. * @return apiVersions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersions is the API versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.") + public List getApiVersions() { return apiVersions; } + + public void setApiVersions(List apiVersions) { this.apiVersions = apiVersions; } + public V1beta1RuleWithOperations operations(List operations) { + this.operations = operations; return this; } @@ -115,16 +137,22 @@ public V1beta1RuleWithOperations addOperationsItem(String operationsItem) { * Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required. * @return operations **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Operations is the operations the admission hook cares about - CREATE, UPDATE, or * for all operations. If '*' is present, the length of the slice must be one. Required.") + public List getOperations() { return operations; } + + public void setOperations(List operations) { this.operations = operations; } + public V1beta1RuleWithOperations resources(List resources) { + this.resources = resources; return this; } @@ -141,16 +169,22 @@ public V1beta1RuleWithOperations addResourcesItem(String resourcesItem) { * Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required. * @return resources **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Resources is a list of resources this rule applies to. For example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/_*' means all subresources of pods. '*_/scale' means all scale subresources. '*_/_*' means all resources and their subresources. If wildcard is present, the validation rule will ensure resources do not overlap with each other. Depending on the enclosing object, subresources might not be allowed. Required.") + public List getResources() { return resources; } + + public void setResources(List resources) { this.resources = resources; } + public V1beta1RuleWithOperations scope(String scope) { + this.scope = scope; return this; } @@ -159,11 +193,15 @@ public V1beta1RuleWithOperations scope(String scope) { * scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\". * @return scope **/ + @javax.annotation.Nullable @ApiModelProperty(value = "scope specifies the scope of this rule. Valid values are \"Cluster\", \"Namespaced\", and \"*\" \"Cluster\" means that only cluster-scoped resources will match this rule. Namespace API objects are cluster-scoped. \"Namespaced\" means that only namespaced resources will match this rule. \"*\" means that there are no scope restrictions. Subresources match the scope of their parent resource. Default is \"*\".") + public String getScope() { return scope; } + + public void setScope(String scope) { this.scope = scope; } @@ -171,23 +209,12 @@ public void setScope(String scope) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RuleWithOperations v1beta1RuleWithOperations = (V1beta1RuleWithOperations) o; - return Objects.equals(this.apiGroups, v1beta1RuleWithOperations.apiGroups) && - Objects.equals(this.apiVersions, v1beta1RuleWithOperations.apiVersions) && - Objects.equals(this.operations, v1beta1RuleWithOperations.operations) && - Objects.equals(this.resources, v1beta1RuleWithOperations.resources) && - Objects.equals(this.scope, v1beta1RuleWithOperations.scope); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroups, apiVersions, operations, resources, scope); + return HashCodeBuilder.reflectionHashCode(this); } @@ -195,7 +222,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RuleWithOperations {\n"); - sb.append(" apiGroups: ").append(toIndentedString(apiGroups)).append("\n"); sb.append(" apiVersions: ").append(toIndentedString(apiVersions)).append("\n"); sb.append(" operations: ").append(toIndentedString(operations)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClass.java index c74417ea47..4aa4103500 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md */ @ApiModel(description = "RuntimeClass defines a class of container runtime supported in the cluster. The RuntimeClass is used to determine which container runtime is used to run all containers in a pod. RuntimeClasses are (currently) manually defined by a user or cluster provisioner, and referenced in the PodSpec. The Kubelet is responsible for resolving the RuntimeClassName reference before running the pod. For more details, see https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RuntimeClass { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_HANDLER = "handler"; + @SerializedName(SERIALIZED_NAME_HANDLER) + private String handler; - @SerializedName("handler") - private String handler = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; public V1beta1RuntimeClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -51,16 +60,22 @@ public V1beta1RuntimeClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1RuntimeClass handler(String handler) { + this.handler = handler; return this; } @@ -70,15 +85,20 @@ public V1beta1RuntimeClass handler(String handler) { * @return handler **/ @ApiModelProperty(required = true, value = "Handler specifies the underlying runtime and configuration that the CRI implementation will use to handle pods of this class. The possible values are specific to the node & CRI configuration. It is assumed that all handlers are available on every node, and handlers of the same name are equivalent on every node. For example, a handler called \"runc\" might specify that the runc OCI runtime (using native Linux containers) will be used to run the containers in a pod. The Handler must conform to the DNS Label (RFC 1123) requirements, and is immutable.") + public String getHandler() { return handler; } + + public void setHandler(String handler) { this.handler = handler; } + public V1beta1RuntimeClass kind(String kind) { + this.kind = kind; return this; } @@ -87,29 +107,39 @@ public V1beta1RuntimeClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1RuntimeClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } @@ -117,22 +147,12 @@ public void setMetadata(V1ObjectMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RuntimeClass v1beta1RuntimeClass = (V1beta1RuntimeClass) o; - return Objects.equals(this.apiVersion, v1beta1RuntimeClass.apiVersion) && - Objects.equals(this.handler, v1beta1RuntimeClass.handler) && - Objects.equals(this.kind, v1beta1RuntimeClass.kind) && - Objects.equals(this.metadata, v1beta1RuntimeClass.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, handler, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RuntimeClass {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" handler: ").append(toIndentedString(handler)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClassList.java index 02d6fd59d2..44c094cdfa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1RuntimeClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * RuntimeClassList is a list of RuntimeClass objects. */ @ApiModel(description = "RuntimeClassList is a list of RuntimeClass objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1RuntimeClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1RuntimeClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1RuntimeClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1RuntimeClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1RuntimeClassList addItemsItem(V1beta1RuntimeClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is a list of schema objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1RuntimeClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1RuntimeClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1RuntimeClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1RuntimeClassList v1beta1RuntimeClassList = (V1beta1RuntimeClassList) o; - return Objects.equals(this.apiVersion, v1beta1RuntimeClassList.apiVersion) && - Objects.equals(this.items, v1beta1RuntimeClassList.items) && - Objects.equals(this.kind, v1beta1RuntimeClassList.kind) && - Objects.equals(this.metadata, v1beta1RuntimeClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1RuntimeClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReview.java index 28ffc01d53..6657b73942 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action */ @ApiModel(description = "SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a spec.namespace means \"in all namespaces\". Self is a special case, because users should always be able to check whether they can perform an action") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SelfSubjectAccessReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1SelfSubjectAccessReviewSpec spec; - @SerializedName("spec") - private V1beta1SelfSubjectAccessReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1SubjectAccessReviewStatus status; - @SerializedName("status") - private V1beta1SubjectAccessReviewStatus status = null; public V1beta1SelfSubjectAccessReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1SelfSubjectAccessReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1SelfSubjectAccessReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1SelfSubjectAccessReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1beta1SelfSubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1SelfSubjectAccessReview spec(V1beta1SelfSubjectAccessReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated. user and groups must be empty + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated. user and groups must be empty") + @ApiModelProperty(required = true, value = "") + public V1beta1SelfSubjectAccessReviewSpec getSpec() { return spec; } + + public void setSpec(V1beta1SelfSubjectAccessReviewSpec spec) { this.spec = spec; } + public V1beta1SelfSubjectAccessReview status(V1beta1SubjectAccessReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request is allowed or not + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request is allowed or not") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1SubjectAccessReviewStatus getStatus() { return status; } + + public void setStatus(V1beta1SubjectAccessReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1SubjectAccessReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SelfSubjectAccessReview v1beta1SelfSubjectAccessReview = (V1beta1SelfSubjectAccessReview) o; - return Objects.equals(this.apiVersion, v1beta1SelfSubjectAccessReview.apiVersion) && - Objects.equals(this.kind, v1beta1SelfSubjectAccessReview.kind) && - Objects.equals(this.metadata, v1beta1SelfSubjectAccessReview.metadata) && - Objects.equals(this.spec, v1beta1SelfSubjectAccessReview.spec) && - Objects.equals(this.status, v1beta1SelfSubjectAccessReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SelfSubjectAccessReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpec.java index 01b6f0d050..bcb10fdee5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,60 @@ * SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SelfSubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SelfSubjectAccessReviewSpec { - @SerializedName("nonResourceAttributes") - private V1beta1NonResourceAttributes nonResourceAttributes = null; + public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) + private V1beta1NonResourceAttributes nonResourceAttributes; + + public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES = "resourceAttributes"; + @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) + private V1beta1ResourceAttributes resourceAttributes; - @SerializedName("resourceAttributes") - private V1beta1ResourceAttributes resourceAttributes = null; public V1beta1SelfSubjectAccessReviewSpec nonResourceAttributes(V1beta1NonResourceAttributes nonResourceAttributes) { + this.nonResourceAttributes = nonResourceAttributes; return this; } /** - * NonResourceAttributes describes information for a non-resource access request + * Get nonResourceAttributes * @return nonResourceAttributes **/ - @ApiModelProperty(value = "NonResourceAttributes describes information for a non-resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } + + public void setNonResourceAttributes(V1beta1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; } + public V1beta1SelfSubjectAccessReviewSpec resourceAttributes(V1beta1ResourceAttributes resourceAttributes) { + this.resourceAttributes = resourceAttributes; return this; } /** - * ResourceAuthorizationAttributes describes information for a resource access request + * Get resourceAttributes * @return resourceAttributes **/ - @ApiModelProperty(value = "ResourceAuthorizationAttributes describes information for a resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1ResourceAttributes getResourceAttributes() { return resourceAttributes; } + + public void setResourceAttributes(V1beta1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; } @@ -76,20 +93,12 @@ public void setResourceAttributes(V1beta1ResourceAttributes resourceAttributes) @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SelfSubjectAccessReviewSpec v1beta1SelfSubjectAccessReviewSpec = (V1beta1SelfSubjectAccessReviewSpec) o; - return Objects.equals(this.nonResourceAttributes, v1beta1SelfSubjectAccessReviewSpec.nonResourceAttributes) && - Objects.equals(this.resourceAttributes, v1beta1SelfSubjectAccessReviewSpec.resourceAttributes); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(nonResourceAttributes, resourceAttributes); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +106,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SelfSubjectAccessReviewSpec {\n"); - sb.append(" nonResourceAttributes: ").append(toIndentedString(nonResourceAttributes)).append("\n"); sb.append(" resourceAttributes: ").append(toIndentedString(resourceAttributes)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReview.java index 1c782251ea..ab2ada88ca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server. */ @ApiModel(description = "SelfSubjectRulesReview enumerates the set of actions the current user can perform within a namespace. The returned list of actions may be incomplete depending on the server's authorization mode, and any errors experienced during the evaluation. SelfSubjectRulesReview should be used by UIs to show/hide actions, or to quickly let an end user reason about their permissions. It should NOT Be used by external systems to drive authorization decisions as this raises confused deputy, cache lifetime/revocation, and correctness concerns. SubjectAccessReview, and LocalAccessReview are the correct way to defer authorization decisions to the API server.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SelfSubjectRulesReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1SelfSubjectRulesReviewSpec spec; - @SerializedName("spec") - private V1beta1SelfSubjectRulesReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1SubjectRulesReviewStatus status; - @SerializedName("status") - private V1beta1SubjectRulesReviewStatus status = null; public V1beta1SelfSubjectRulesReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1SelfSubjectRulesReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1SelfSubjectRulesReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1SelfSubjectRulesReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1beta1SelfSubjectRulesReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1SelfSubjectRulesReview spec(V1beta1SelfSubjectRulesReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated.") + @ApiModelProperty(required = true, value = "") + public V1beta1SelfSubjectRulesReviewSpec getSpec() { return spec; } + + public void setSpec(V1beta1SelfSubjectRulesReviewSpec spec) { this.spec = spec; } + public V1beta1SelfSubjectRulesReview status(V1beta1SubjectRulesReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates the set of actions a user can perform. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates the set of actions a user can perform.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1SubjectRulesReviewStatus getStatus() { return status; } + + public void setStatus(V1beta1SubjectRulesReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1SubjectRulesReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SelfSubjectRulesReview v1beta1SelfSubjectRulesReview = (V1beta1SelfSubjectRulesReview) o; - return Objects.equals(this.apiVersion, v1beta1SelfSubjectRulesReview.apiVersion) && - Objects.equals(this.kind, v1beta1SelfSubjectRulesReview.kind) && - Objects.equals(this.metadata, v1beta1SelfSubjectRulesReview.metadata) && - Objects.equals(this.spec, v1beta1SelfSubjectRulesReview.spec) && - Objects.equals(this.status, v1beta1SelfSubjectRulesReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SelfSubjectRulesReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpec.java index 6bf8b63700..dd23a88a9e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -26,12 +29,15 @@ /** * V1beta1SelfSubjectRulesReviewSpec */ - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SelfSubjectRulesReviewSpec { - @SerializedName("namespace") - private String namespace = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + public V1beta1SelfSubjectRulesReviewSpec namespace(String namespace) { + this.namespace = namespace; return this; } @@ -40,11 +46,15 @@ public V1beta1SelfSubjectRulesReviewSpec namespace(String namespace) { * Namespace to evaluate rules for. Required. * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace to evaluate rules for. Required.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -52,19 +62,12 @@ public void setNamespace(String namespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SelfSubjectRulesReviewSpec v1beta1SelfSubjectRulesReviewSpec = (V1beta1SelfSubjectRulesReviewSpec) o; - return Objects.equals(this.namespace, v1beta1SelfSubjectRulesReviewSpec.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -72,7 +75,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SelfSubjectRulesReviewSpec {\n"); - sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSet.java index cb7e2d32be..6d6b8f82a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. */ @ApiModel(description = "DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StatefulSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1StatefulSetSpec spec; - @SerializedName("spec") - private V1beta1StatefulSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1StatefulSetStatus status; - @SerializedName("status") - private V1beta1StatefulSetStatus status = null; public V1beta1StatefulSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1StatefulSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1StatefulSet kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1StatefulSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1StatefulSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1beta1StatefulSet metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1StatefulSet spec(V1beta1StatefulSetSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the desired identities of pods in this set. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the desired identities of pods in this set.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1StatefulSetSpec getSpec() { return spec; } + + public void setSpec(V1beta1StatefulSetSpec spec) { this.spec = spec; } + public V1beta1StatefulSet status(V1beta1StatefulSetStatus status) { + this.status = status; return this; } /** - * Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1StatefulSetStatus getStatus() { return status; } + + public void setStatus(V1beta1StatefulSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta1StatefulSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StatefulSet v1beta1StatefulSet = (V1beta1StatefulSet) o; - return Objects.equals(this.apiVersion, v1beta1StatefulSet.apiVersion) && - Objects.equals(this.kind, v1beta1StatefulSet.kind) && - Objects.equals(this.metadata, v1beta1StatefulSet.metadata) && - Objects.equals(this.spec, v1beta1StatefulSet.spec) && - Objects.equals(this.status, v1beta1StatefulSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StatefulSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetCondition.java index 2d1a7ec3d5..943fa44fe0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StatefulSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1StatefulSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta1StatefulSetCondition lastTransitionTime(DateTime lastTransitionTim * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta1StatefulSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta1StatefulSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1StatefulSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta1StatefulSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta1StatefulSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta1StatefulSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta1StatefulSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta1StatefulSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of statefulset condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StatefulSetCondition v1beta1StatefulSetCondition = (V1beta1StatefulSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta1StatefulSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta1StatefulSetCondition.message) && - Objects.equals(this.reason, v1beta1StatefulSetCondition.reason) && - Objects.equals(this.status, v1beta1StatefulSetCondition.status) && - Objects.equals(this.type, v1beta1StatefulSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StatefulSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetList.java index 0528ee5c9f..bb6d270efe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StatefulSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1StatefulSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1StatefulSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1StatefulSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1StatefulSetList addItemsItem(V1beta1StatefulSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1StatefulSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1beta1StatefulSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1StatefulSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1beta1StatefulSetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StatefulSetList v1beta1StatefulSetList = (V1beta1StatefulSetList) o; - return Objects.equals(this.apiVersion, v1beta1StatefulSetList.apiVersion) && - Objects.equals(this.items, v1beta1StatefulSetList.items) && - Objects.equals(this.kind, v1beta1StatefulSetList.kind) && - Objects.equals(this.metadata, v1beta1StatefulSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StatefulSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetSpec.java index 09f08c8326..d9d95ab444 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,33 +36,43 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StatefulSetSpec { - @SerializedName("podManagementPolicy") - private String podManagementPolicy = null; + public static final String SERIALIZED_NAME_POD_MANAGEMENT_POLICY = "podManagementPolicy"; + @SerializedName(SERIALIZED_NAME_POD_MANAGEMENT_POLICY) + private String podManagementPolicy; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("serviceName") - private String serviceName = null; + public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; + @SerializedName(SERIALIZED_NAME_SERVICE_NAME) + private String serviceName; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("updateStrategy") - private V1beta1StatefulSetUpdateStrategy updateStrategy = null; + public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; + @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + private V1beta1StatefulSetUpdateStrategy updateStrategy; - @SerializedName("volumeClaimTemplates") + public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES = "volumeClaimTemplates"; + @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES) private List volumeClaimTemplates = null; + public V1beta1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @@ -68,16 +81,22 @@ public V1beta1StatefulSetSpec podManagementPolicy(String podManagementPolicy) { * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. * @return podManagementPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.") + public String getPodManagementPolicy() { return podManagementPolicy; } + + public void setPodManagementPolicy(String podManagementPolicy) { this.podManagementPolicy = podManagementPolicy; } + public V1beta1StatefulSetSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -86,16 +105,22 @@ public V1beta1StatefulSetSpec replicas(Integer replicas) { * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -104,34 +129,46 @@ public V1beta1StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1beta1StatefulSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(value = "selector is a label query over pods that should match the replica count. If empty, defaulted to labels on the pod template. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta1StatefulSetSpec serviceName(String serviceName) { + this.serviceName = serviceName; return this; } @@ -141,51 +178,67 @@ public V1beta1StatefulSetSpec serviceName(String serviceName) { * @return serviceName **/ @ApiModelProperty(required = true, value = "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.") + public String getServiceName() { return serviceName; } + + public void setServiceName(String serviceName) { this.serviceName = serviceName; } + public V1beta1StatefulSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1beta1StatefulSetSpec updateStrategy(V1beta1StatefulSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } /** - * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * Get updateStrategy * @return updateStrategy **/ - @ApiModelProperty(value = "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1StatefulSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } + + public void setUpdateStrategy(V1beta1StatefulSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } + public V1beta1StatefulSetSpec volumeClaimTemplates(List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -202,11 +255,15 @@ public V1beta1StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClai * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. * @return volumeClaimTemplates **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.") + public List getVolumeClaimTemplates() { return volumeClaimTemplates; } + + public void setVolumeClaimTemplates(List volumeClaimTemplates) { this.volumeClaimTemplates = volumeClaimTemplates; } @@ -214,26 +271,12 @@ public void setVolumeClaimTemplates(List volumeClaimTem @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StatefulSetSpec v1beta1StatefulSetSpec = (V1beta1StatefulSetSpec) o; - return Objects.equals(this.podManagementPolicy, v1beta1StatefulSetSpec.podManagementPolicy) && - Objects.equals(this.replicas, v1beta1StatefulSetSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, v1beta1StatefulSetSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1beta1StatefulSetSpec.selector) && - Objects.equals(this.serviceName, v1beta1StatefulSetSpec.serviceName) && - Objects.equals(this.template, v1beta1StatefulSetSpec.template) && - Objects.equals(this.updateStrategy, v1beta1StatefulSetSpec.updateStrategy) && - Objects.equals(this.volumeClaimTemplates, v1beta1StatefulSetSpec.volumeClaimTemplates); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); + return HashCodeBuilder.reflectionHashCode(this); } @@ -241,7 +284,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StatefulSetSpec {\n"); - sb.append(" podManagementPolicy: ").append(toIndentedString(podManagementPolicy)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" revisionHistoryLimit: ").append(toIndentedString(revisionHistoryLimit)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetStatus.java index 6f0102bc2a..8badffa7c9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,36 +33,47 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StatefulSetStatus { - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("currentReplicas") - private Integer currentReplicas = null; + public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; + @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + private Integer currentReplicas; + + public static final String SERIALIZED_NAME_CURRENT_REVISION = "currentRevision"; + @SerializedName(SERIALIZED_NAME_CURRENT_REVISION) + private String currentRevision; - @SerializedName("currentRevision") - private String currentRevision = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UPDATE_REVISION = "updateRevision"; + @SerializedName(SERIALIZED_NAME_UPDATE_REVISION) + private String updateRevision; - @SerializedName("updateRevision") - private String updateRevision = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public V1beta1StatefulSetStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -68,16 +82,22 @@ public V1beta1StatefulSetStatus collisionCount(Integer collisionCount) { * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1beta1StatefulSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -94,16 +114,22 @@ public V1beta1StatefulSetStatus addConditionsItem(V1beta1StatefulSetCondition co * Represents the latest available observations of a statefulset's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a statefulset's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta1StatefulSetStatus currentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @@ -112,16 +138,22 @@ public V1beta1StatefulSetStatus currentReplicas(Integer currentReplicas) { * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. * @return currentReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.") + public Integer getCurrentReplicas() { return currentReplicas; } + + public void setCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; } + public V1beta1StatefulSetStatus currentRevision(String currentRevision) { + this.currentRevision = currentRevision; return this; } @@ -130,16 +162,22 @@ public V1beta1StatefulSetStatus currentRevision(String currentRevision) { * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). * @return currentRevision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).") + public String getCurrentRevision() { return currentRevision; } + + public void setCurrentRevision(String currentRevision) { this.currentRevision = currentRevision; } + public V1beta1StatefulSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -148,16 +186,22 @@ public V1beta1StatefulSetStatus observedGeneration(Long observedGeneration) { * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta1StatefulSetStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -166,16 +210,22 @@ public V1beta1StatefulSetStatus readyReplicas(Integer readyReplicas) { * readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1beta1StatefulSetStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -185,15 +235,20 @@ public V1beta1StatefulSetStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "replicas is the number of Pods created by the StatefulSet controller.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta1StatefulSetStatus updateRevision(String updateRevision) { + this.updateRevision = updateRevision; return this; } @@ -202,16 +257,22 @@ public V1beta1StatefulSetStatus updateRevision(String updateRevision) { * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) * @return updateRevision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)") + public String getUpdateRevision() { return updateRevision; } + + public void setUpdateRevision(String updateRevision) { this.updateRevision = updateRevision; } + public V1beta1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -220,11 +281,15 @@ public V1beta1StatefulSetStatus updatedReplicas(Integer updatedReplicas) { * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -232,27 +297,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StatefulSetStatus v1beta1StatefulSetStatus = (V1beta1StatefulSetStatus) o; - return Objects.equals(this.collisionCount, v1beta1StatefulSetStatus.collisionCount) && - Objects.equals(this.conditions, v1beta1StatefulSetStatus.conditions) && - Objects.equals(this.currentReplicas, v1beta1StatefulSetStatus.currentReplicas) && - Objects.equals(this.currentRevision, v1beta1StatefulSetStatus.currentRevision) && - Objects.equals(this.observedGeneration, v1beta1StatefulSetStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1beta1StatefulSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1beta1StatefulSetStatus.replicas) && - Objects.equals(this.updateRevision, v1beta1StatefulSetStatus.updateRevision) && - Objects.equals(this.updatedReplicas, v1beta1StatefulSetStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -260,7 +310,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StatefulSetStatus {\n"); - sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategy.java index 53c54e1e31..346a9c278c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. */ @ApiModel(description = "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StatefulSetUpdateStrategy { - @SerializedName("rollingUpdate") - private V1beta1RollingUpdateStatefulSetStrategy rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1beta1RollingUpdateStatefulSetStrategy rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta1StatefulSetUpdateStrategy rollingUpdate(V1beta1RollingUpdateStatefulSetStrategy rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1RollingUpdateStatefulSetStrategy getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1beta1RollingUpdateStatefulSetStrategy rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1beta1StatefulSetUpdateStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1beta1StatefulSetUpdateStrategy type(String type) { * Type indicates the type of the StatefulSetUpdateStrategy. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StatefulSetUpdateStrategy v1beta1StatefulSetUpdateStrategy = (V1beta1StatefulSetUpdateStrategy) o; - return Objects.equals(this.rollingUpdate, v1beta1StatefulSetUpdateStrategy.rollingUpdate) && - Objects.equals(this.type, v1beta1StatefulSetUpdateStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StatefulSetUpdateStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClass.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClass.java index 78d69a981b..14e8df77c0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClass.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClass.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,39 +36,51 @@ * StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name. */ @ApiModel(description = "StorageClass describes the parameters for a class of storage for which PersistentVolumes can be dynamically provisioned. StorageClasses are non-namespaced; the name of the storage class according to etcd is in ObjectMeta.Name.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StorageClass { - @SerializedName("allowVolumeExpansion") - private Boolean allowVolumeExpansion = null; + public static final String SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION = "allowVolumeExpansion"; + @SerializedName(SERIALIZED_NAME_ALLOW_VOLUME_EXPANSION) + private Boolean allowVolumeExpansion; - @SerializedName("allowedTopologies") + public static final String SERIALIZED_NAME_ALLOWED_TOPOLOGIES = "allowedTopologies"; + @SerializedName(SERIALIZED_NAME_ALLOWED_TOPOLOGIES) private List allowedTopologies = null; - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("mountOptions") + public static final String SERIALIZED_NAME_MOUNT_OPTIONS = "mountOptions"; + @SerializedName(SERIALIZED_NAME_MOUNT_OPTIONS) private List mountOptions = null; - @SerializedName("parameters") + public static final String SERIALIZED_NAME_PARAMETERS = "parameters"; + @SerializedName(SERIALIZED_NAME_PARAMETERS) private Map parameters = null; - @SerializedName("provisioner") - private String provisioner = null; + public static final String SERIALIZED_NAME_PROVISIONER = "provisioner"; + @SerializedName(SERIALIZED_NAME_PROVISIONER) + private String provisioner; + + public static final String SERIALIZED_NAME_RECLAIM_POLICY = "reclaimPolicy"; + @SerializedName(SERIALIZED_NAME_RECLAIM_POLICY) + private String reclaimPolicy; - @SerializedName("reclaimPolicy") - private String reclaimPolicy = null; + public static final String SERIALIZED_NAME_VOLUME_BINDING_MODE = "volumeBindingMode"; + @SerializedName(SERIALIZED_NAME_VOLUME_BINDING_MODE) + private String volumeBindingMode; - @SerializedName("volumeBindingMode") - private String volumeBindingMode = null; public V1beta1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { + this.allowVolumeExpansion = allowVolumeExpansion; return this; } @@ -74,16 +89,22 @@ public V1beta1StorageClass allowVolumeExpansion(Boolean allowVolumeExpansion) { * AllowVolumeExpansion shows whether the storage class allow volume expand * @return allowVolumeExpansion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AllowVolumeExpansion shows whether the storage class allow volume expand") - public Boolean isAllowVolumeExpansion() { + + public Boolean getAllowVolumeExpansion() { return allowVolumeExpansion; } + + public void setAllowVolumeExpansion(Boolean allowVolumeExpansion) { this.allowVolumeExpansion = allowVolumeExpansion; } + public V1beta1StorageClass allowedTopologies(List allowedTopologies) { + this.allowedTopologies = allowedTopologies; return this; } @@ -100,16 +121,22 @@ public V1beta1StorageClass addAllowedTopologiesItem(V1TopologySelectorTerm allow * Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature. * @return allowedTopologies **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Restrict the node topologies where volumes can be dynamically provisioned. Each volume plugin defines its own supported topology specifications. An empty TopologySelectorTerm list means there is no topology restriction. This field is only honored by servers that enable the VolumeScheduling feature.") + public List getAllowedTopologies() { return allowedTopologies; } + + public void setAllowedTopologies(List allowedTopologies) { this.allowedTopologies = allowedTopologies; } + public V1beta1StorageClass apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -118,16 +145,22 @@ public V1beta1StorageClass apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1StorageClass kind(String kind) { + this.kind = kind; return this; } @@ -136,34 +169,46 @@ public V1beta1StorageClass kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1StorageClass metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1StorageClass mountOptions(List mountOptions) { + this.mountOptions = mountOptions; return this; } @@ -180,16 +225,22 @@ public V1beta1StorageClass addMountOptionsItem(String mountOptionsItem) { * Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid. * @return mountOptions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Dynamically provisioned PersistentVolumes of this storage class are created with these mountOptions, e.g. [\"ro\", \"soft\"]. Not validated - mount of the PVs will simply fail if one is invalid.") + public List getMountOptions() { return mountOptions; } + + public void setMountOptions(List mountOptions) { this.mountOptions = mountOptions; } + public V1beta1StorageClass parameters(Map parameters) { + this.parameters = parameters; return this; } @@ -206,16 +257,22 @@ public V1beta1StorageClass putParametersItem(String key, String parametersItem) * Parameters holds the parameters for the provisioner that should create volumes of this storage class. * @return parameters **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Parameters holds the parameters for the provisioner that should create volumes of this storage class.") + public Map getParameters() { return parameters; } + + public void setParameters(Map parameters) { this.parameters = parameters; } + public V1beta1StorageClass provisioner(String provisioner) { + this.provisioner = provisioner; return this; } @@ -225,15 +282,20 @@ public V1beta1StorageClass provisioner(String provisioner) { * @return provisioner **/ @ApiModelProperty(required = true, value = "Provisioner indicates the type of the provisioner.") + public String getProvisioner() { return provisioner; } + + public void setProvisioner(String provisioner) { this.provisioner = provisioner; } + public V1beta1StorageClass reclaimPolicy(String reclaimPolicy) { + this.reclaimPolicy = reclaimPolicy; return this; } @@ -242,16 +304,22 @@ public V1beta1StorageClass reclaimPolicy(String reclaimPolicy) { * Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete. * @return reclaimPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Dynamically provisioned PersistentVolumes of this storage class are created with this reclaimPolicy. Defaults to Delete.") + public String getReclaimPolicy() { return reclaimPolicy; } + + public void setReclaimPolicy(String reclaimPolicy) { this.reclaimPolicy = reclaimPolicy; } + public V1beta1StorageClass volumeBindingMode(String volumeBindingMode) { + this.volumeBindingMode = volumeBindingMode; return this; } @@ -260,11 +328,15 @@ public V1beta1StorageClass volumeBindingMode(String volumeBindingMode) { * VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature. * @return volumeBindingMode **/ + @javax.annotation.Nullable @ApiModelProperty(value = "VolumeBindingMode indicates how PersistentVolumeClaims should be provisioned and bound. When unset, VolumeBindingImmediate is used. This field is only honored by servers that enable the VolumeScheduling feature.") + public String getVolumeBindingMode() { return volumeBindingMode; } + + public void setVolumeBindingMode(String volumeBindingMode) { this.volumeBindingMode = volumeBindingMode; } @@ -272,28 +344,12 @@ public void setVolumeBindingMode(String volumeBindingMode) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StorageClass v1beta1StorageClass = (V1beta1StorageClass) o; - return Objects.equals(this.allowVolumeExpansion, v1beta1StorageClass.allowVolumeExpansion) && - Objects.equals(this.allowedTopologies, v1beta1StorageClass.allowedTopologies) && - Objects.equals(this.apiVersion, v1beta1StorageClass.apiVersion) && - Objects.equals(this.kind, v1beta1StorageClass.kind) && - Objects.equals(this.metadata, v1beta1StorageClass.metadata) && - Objects.equals(this.mountOptions, v1beta1StorageClass.mountOptions) && - Objects.equals(this.parameters, v1beta1StorageClass.parameters) && - Objects.equals(this.provisioner, v1beta1StorageClass.provisioner) && - Objects.equals(this.reclaimPolicy, v1beta1StorageClass.reclaimPolicy) && - Objects.equals(this.volumeBindingMode, v1beta1StorageClass.volumeBindingMode); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowVolumeExpansion, allowedTopologies, apiVersion, kind, metadata, mountOptions, parameters, provisioner, reclaimPolicy, volumeBindingMode); + return HashCodeBuilder.reflectionHashCode(this); } @@ -301,7 +357,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StorageClass {\n"); - sb.append(" allowVolumeExpansion: ").append(toIndentedString(allowVolumeExpansion)).append("\n"); sb.append(" allowedTopologies: ").append(toIndentedString(allowedTopologies)).append("\n"); sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClassList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClassList.java index 2650de46ca..d41079b65b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClassList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1StorageClassList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * StorageClassList is a collection of storage classes. */ @ApiModel(description = "StorageClassList is a collection of storage classes.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1StorageClassList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1StorageClassList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1StorageClassList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1StorageClassList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1StorageClassList addItemsItem(V1beta1StorageClass itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of StorageClasses") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1StorageClassList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1StorageClassList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1StorageClassList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1StorageClassList v1beta1StorageClassList = (V1beta1StorageClassList) o; - return Objects.equals(this.apiVersion, v1beta1StorageClassList.apiVersion) && - Objects.equals(this.items, v1beta1StorageClassList.items) && - Objects.equals(this.kind, v1beta1StorageClassList.kind) && - Objects.equals(this.metadata, v1beta1StorageClassList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1StorageClassList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Subject.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Subject.java index ce97772de5..f5254d7ac6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Subject.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Subject.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names. */ @ApiModel(description = "Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1Subject { - @SerializedName("apiGroup") - private String apiGroup = null; + public static final String SERIALIZED_NAME_API_GROUP = "apiGroup"; + @SerializedName(SERIALIZED_NAME_API_GROUP) + private String apiGroup; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; - @SerializedName("namespace") - private String namespace = null; public V1beta1Subject apiGroup(String apiGroup) { + this.apiGroup = apiGroup; return this; } @@ -50,16 +59,22 @@ public V1beta1Subject apiGroup(String apiGroup) { * APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects. * @return apiGroup **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIGroup holds the API group of the referenced subject. Defaults to \"\" for ServiceAccount subjects. Defaults to \"rbac.authorization.k8s.io\" for User and Group subjects.") + public String getApiGroup() { return apiGroup; } + + public void setApiGroup(String apiGroup) { this.apiGroup = apiGroup; } + public V1beta1Subject kind(String kind) { + this.kind = kind; return this; } @@ -69,15 +84,20 @@ public V1beta1Subject kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of object being referenced. Values defined by this API group are \"User\", \"Group\", and \"ServiceAccount\". If the Authorizer does not recognized the kind value, the Authorizer should report an error.") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1Subject name(String name) { + this.name = name; return this; } @@ -87,15 +107,20 @@ public V1beta1Subject name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the object being referenced.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V1beta1Subject namespace(String namespace) { + this.namespace = namespace; return this; } @@ -104,11 +129,15 @@ public V1beta1Subject namespace(String namespace) { * Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error. * @return namespace **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Namespace of the referenced object. If the object kind is non-namespace, such as \"User\" or \"Group\", and this value is not empty the Authorizer should report an error.") + public String getNamespace() { return namespace; } + + public void setNamespace(String namespace) { this.namespace = namespace; } @@ -116,22 +145,12 @@ public void setNamespace(String namespace) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Subject v1beta1Subject = (V1beta1Subject) o; - return Objects.equals(this.apiGroup, v1beta1Subject.apiGroup) && - Objects.equals(this.kind, v1beta1Subject.kind) && - Objects.equals(this.name, v1beta1Subject.name) && - Objects.equals(this.namespace, v1beta1Subject.namespace); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiGroup, kind, name, namespace); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +158,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1Subject {\n"); - sb.append(" apiGroup: ").append(toIndentedString(apiGroup)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReview.java index 1b83fc0728..2e94767358 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * SubjectAccessReview checks whether or not a user or group can perform an action. */ @ApiModel(description = "SubjectAccessReview checks whether or not a user or group can perform an action.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SubjectAccessReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1SubjectAccessReviewSpec spec; - @SerializedName("spec") - private V1beta1SubjectAccessReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1SubjectAccessReviewStatus status; - @SerializedName("status") - private V1beta1SubjectAccessReviewStatus status = null; public V1beta1SubjectAccessReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1SubjectAccessReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1SubjectAccessReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1SubjectAccessReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1SubjectAccessReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1beta1SubjectAccessReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1SubjectAccessReview spec(V1beta1SubjectAccessReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated") + @ApiModelProperty(required = true, value = "") + public V1beta1SubjectAccessReviewSpec getSpec() { return spec; } + + public void setSpec(V1beta1SubjectAccessReviewSpec spec) { this.spec = spec; } + public V1beta1SubjectAccessReview status(V1beta1SubjectAccessReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request is allowed or not + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request is allowed or not") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1SubjectAccessReviewStatus getStatus() { return status; } + + public void setStatus(V1beta1SubjectAccessReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1SubjectAccessReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SubjectAccessReview v1beta1SubjectAccessReview = (V1beta1SubjectAccessReview) o; - return Objects.equals(this.apiVersion, v1beta1SubjectAccessReview.apiVersion) && - Objects.equals(this.kind, v1beta1SubjectAccessReview.kind) && - Objects.equals(this.metadata, v1beta1SubjectAccessReview.metadata) && - Objects.equals(this.spec, v1beta1SubjectAccessReview.spec) && - Objects.equals(this.status, v1beta1SubjectAccessReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SubjectAccessReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpec.java index 6f41a29d2b..96d1f7e562 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,27 +36,35 @@ * SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set */ @ApiModel(description = "SubjectAccessReviewSpec is a description of the access request. Exactly one of ResourceAuthorizationAttributes and NonResourceAuthorizationAttributes must be set") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SubjectAccessReviewSpec { - @SerializedName("extra") + public static final String SERIALIZED_NAME_EXTRA = "extra"; + @SerializedName(SERIALIZED_NAME_EXTRA) private Map> extra = null; - @SerializedName("group") + public static final String SERIALIZED_NAME_GROUP = "group"; + @SerializedName(SERIALIZED_NAME_GROUP) private List group = null; - @SerializedName("nonResourceAttributes") - private V1beta1NonResourceAttributes nonResourceAttributes = null; + public static final String SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES = "nonResourceAttributes"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_ATTRIBUTES) + private V1beta1NonResourceAttributes nonResourceAttributes; + + public static final String SERIALIZED_NAME_RESOURCE_ATTRIBUTES = "resourceAttributes"; + @SerializedName(SERIALIZED_NAME_RESOURCE_ATTRIBUTES) + private V1beta1ResourceAttributes resourceAttributes; - @SerializedName("resourceAttributes") - private V1beta1ResourceAttributes resourceAttributes = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; - @SerializedName("uid") - private String uid = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; - @SerializedName("user") - private String user = null; public V1beta1SubjectAccessReviewSpec extra(Map> extra) { + this.extra = extra; return this; } @@ -70,16 +81,22 @@ public V1beta1SubjectAccessReviewSpec putExtraItem(String key, List extr * Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here. * @return extra **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.") + public Map> getExtra() { return extra; } + + public void setExtra(Map> extra) { this.extra = extra; } + public V1beta1SubjectAccessReviewSpec group(List group) { + this.group = group; return this; } @@ -96,52 +113,70 @@ public V1beta1SubjectAccessReviewSpec addGroupItem(String groupItem) { * Groups is the groups you're testing for. * @return group **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Groups is the groups you're testing for.") + public List getGroup() { return group; } + + public void setGroup(List group) { this.group = group; } + public V1beta1SubjectAccessReviewSpec nonResourceAttributes(V1beta1NonResourceAttributes nonResourceAttributes) { + this.nonResourceAttributes = nonResourceAttributes; return this; } /** - * NonResourceAttributes describes information for a non-resource access request + * Get nonResourceAttributes * @return nonResourceAttributes **/ - @ApiModelProperty(value = "NonResourceAttributes describes information for a non-resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1NonResourceAttributes getNonResourceAttributes() { return nonResourceAttributes; } + + public void setNonResourceAttributes(V1beta1NonResourceAttributes nonResourceAttributes) { this.nonResourceAttributes = nonResourceAttributes; } + public V1beta1SubjectAccessReviewSpec resourceAttributes(V1beta1ResourceAttributes resourceAttributes) { + this.resourceAttributes = resourceAttributes; return this; } /** - * ResourceAuthorizationAttributes describes information for a resource access request + * Get resourceAttributes * @return resourceAttributes **/ - @ApiModelProperty(value = "ResourceAuthorizationAttributes describes information for a resource access request") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1ResourceAttributes getResourceAttributes() { return resourceAttributes; } + + public void setResourceAttributes(V1beta1ResourceAttributes resourceAttributes) { this.resourceAttributes = resourceAttributes; } + public V1beta1SubjectAccessReviewSpec uid(String uid) { + this.uid = uid; return this; } @@ -150,16 +185,22 @@ public V1beta1SubjectAccessReviewSpec uid(String uid) { * UID information about the requesting user. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "UID information about the requesting user.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } + public V1beta1SubjectAccessReviewSpec user(String user) { + this.user = user; return this; } @@ -168,11 +209,15 @@ public V1beta1SubjectAccessReviewSpec user(String user) { * User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups * @return user **/ + @javax.annotation.Nullable @ApiModelProperty(value = "User is the user you're testing for. If you specify \"User\" but not \"Group\", then is it interpreted as \"What if User were not a member of any groups") + public String getUser() { return user; } + + public void setUser(String user) { this.user = user; } @@ -180,24 +225,12 @@ public void setUser(String user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SubjectAccessReviewSpec v1beta1SubjectAccessReviewSpec = (V1beta1SubjectAccessReviewSpec) o; - return Objects.equals(this.extra, v1beta1SubjectAccessReviewSpec.extra) && - Objects.equals(this.group, v1beta1SubjectAccessReviewSpec.group) && - Objects.equals(this.nonResourceAttributes, v1beta1SubjectAccessReviewSpec.nonResourceAttributes) && - Objects.equals(this.resourceAttributes, v1beta1SubjectAccessReviewSpec.resourceAttributes) && - Objects.equals(this.uid, v1beta1SubjectAccessReviewSpec.uid) && - Objects.equals(this.user, v1beta1SubjectAccessReviewSpec.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(extra, group, nonResourceAttributes, resourceAttributes, uid, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -205,7 +238,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SubjectAccessReviewSpec {\n"); - sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" nonResourceAttributes: ").append(toIndentedString(nonResourceAttributes)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatus.java index ea579d1159..b1baf47ecc 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,21 +30,27 @@ * SubjectAccessReviewStatus */ @ApiModel(description = "SubjectAccessReviewStatus") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SubjectAccessReviewStatus { - @SerializedName("allowed") - private Boolean allowed = null; + public static final String SERIALIZED_NAME_ALLOWED = "allowed"; + @SerializedName(SERIALIZED_NAME_ALLOWED) + private Boolean allowed; + + public static final String SERIALIZED_NAME_DENIED = "denied"; + @SerializedName(SERIALIZED_NAME_DENIED) + private Boolean denied; - @SerializedName("denied") - private Boolean denied = null; + public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; + @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) + private String evaluationError; - @SerializedName("evaluationError") - private String evaluationError = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; public V1beta1SubjectAccessReviewStatus allowed(Boolean allowed) { + this.allowed = allowed; return this; } @@ -51,15 +60,20 @@ public V1beta1SubjectAccessReviewStatus allowed(Boolean allowed) { * @return allowed **/ @ApiModelProperty(required = true, value = "Allowed is required. True if the action would be allowed, false otherwise.") - public Boolean isAllowed() { + + public Boolean getAllowed() { return allowed; } + + public void setAllowed(Boolean allowed) { this.allowed = allowed; } + public V1beta1SubjectAccessReviewStatus denied(Boolean denied) { + this.denied = denied; return this; } @@ -68,16 +82,22 @@ public V1beta1SubjectAccessReviewStatus denied(Boolean denied) { * Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true. * @return denied **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Denied is optional. True if the action would be denied, otherwise false. If both allowed is false and denied is false, then the authorizer has no opinion on whether to authorize the action. Denied may not be true if Allowed is true.") - public Boolean isDenied() { + + public Boolean getDenied() { return denied; } + + public void setDenied(Boolean denied) { this.denied = denied; } + public V1beta1SubjectAccessReviewStatus evaluationError(String evaluationError) { + this.evaluationError = evaluationError; return this; } @@ -86,16 +106,22 @@ public V1beta1SubjectAccessReviewStatus evaluationError(String evaluationError) * EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request. * @return evaluationError **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EvaluationError is an indication that some error occurred during the authorization check. It is entirely possible to get an error and be able to continue determine authorization status in spite of it. For instance, RBAC can be missing a role, but enough roles are still present and bound to reason about the request.") + public String getEvaluationError() { return evaluationError; } + + public void setEvaluationError(String evaluationError) { this.evaluationError = evaluationError; } + public V1beta1SubjectAccessReviewStatus reason(String reason) { + this.reason = reason; return this; } @@ -104,11 +130,15 @@ public V1beta1SubjectAccessReviewStatus reason(String reason) { * Reason is optional. It indicates why a request was allowed or denied. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Reason is optional. It indicates why a request was allowed or denied.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } @@ -116,22 +146,12 @@ public void setReason(String reason) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SubjectAccessReviewStatus v1beta1SubjectAccessReviewStatus = (V1beta1SubjectAccessReviewStatus) o; - return Objects.equals(this.allowed, v1beta1SubjectAccessReviewStatus.allowed) && - Objects.equals(this.denied, v1beta1SubjectAccessReviewStatus.denied) && - Objects.equals(this.evaluationError, v1beta1SubjectAccessReviewStatus.evaluationError) && - Objects.equals(this.reason, v1beta1SubjectAccessReviewStatus.reason); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(allowed, denied, evaluationError, reason); + return HashCodeBuilder.reflectionHashCode(this); } @@ -139,7 +159,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SubjectAccessReviewStatus {\n"); - sb.append(" allowed: ").append(toIndentedString(allowed)).append("\n"); sb.append(" denied: ").append(toIndentedString(denied)).append("\n"); sb.append(" evaluationError: ").append(toIndentedString(evaluationError)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatus.java index 5da81738de..f2dac0cba4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete. */ @ApiModel(description = "SubjectRulesReviewStatus contains the result of a rules check. This check can be incomplete depending on the set of authorizers the server is configured with and any errors experienced during evaluation. Because authorization rules are additive, if a rule appears in a list it's safe to assume the subject has that permission, even if that list is incomplete.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1SubjectRulesReviewStatus { - @SerializedName("evaluationError") - private String evaluationError = null; + public static final String SERIALIZED_NAME_EVALUATION_ERROR = "evaluationError"; + @SerializedName(SERIALIZED_NAME_EVALUATION_ERROR) + private String evaluationError; - @SerializedName("incomplete") - private Boolean incomplete = null; + public static final String SERIALIZED_NAME_INCOMPLETE = "incomplete"; + @SerializedName(SERIALIZED_NAME_INCOMPLETE) + private Boolean incomplete; - @SerializedName("nonResourceRules") + public static final String SERIALIZED_NAME_NON_RESOURCE_RULES = "nonResourceRules"; + @SerializedName(SERIALIZED_NAME_NON_RESOURCE_RULES) private List nonResourceRules = new ArrayList(); - @SerializedName("resourceRules") + public static final String SERIALIZED_NAME_RESOURCE_RULES = "resourceRules"; + @SerializedName(SERIALIZED_NAME_RESOURCE_RULES) private List resourceRules = new ArrayList(); + public V1beta1SubjectRulesReviewStatus evaluationError(String evaluationError) { + this.evaluationError = evaluationError; return this; } @@ -54,16 +63,22 @@ public V1beta1SubjectRulesReviewStatus evaluationError(String evaluationError) { * EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete. * @return evaluationError **/ + @javax.annotation.Nullable @ApiModelProperty(value = "EvaluationError can appear in combination with Rules. It indicates an error occurred during rule evaluation, such as an authorizer that doesn't support rule evaluation, and that ResourceRules and/or NonResourceRules may be incomplete.") + public String getEvaluationError() { return evaluationError; } + + public void setEvaluationError(String evaluationError) { this.evaluationError = evaluationError; } + public V1beta1SubjectRulesReviewStatus incomplete(Boolean incomplete) { + this.incomplete = incomplete; return this; } @@ -73,15 +88,20 @@ public V1beta1SubjectRulesReviewStatus incomplete(Boolean incomplete) { * @return incomplete **/ @ApiModelProperty(required = true, value = "Incomplete is true when the rules returned by this call are incomplete. This is most commonly encountered when an authorizer, such as an external authorizer, doesn't support rules evaluation.") - public Boolean isIncomplete() { + + public Boolean getIncomplete() { return incomplete; } + + public void setIncomplete(Boolean incomplete) { this.incomplete = incomplete; } + public V1beta1SubjectRulesReviewStatus nonResourceRules(List nonResourceRules) { + this.nonResourceRules = nonResourceRules; return this; } @@ -96,15 +116,20 @@ public V1beta1SubjectRulesReviewStatus addNonResourceRulesItem(V1beta1NonResourc * @return nonResourceRules **/ @ApiModelProperty(required = true, value = "NonResourceRules is the list of actions the subject is allowed to perform on non-resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") + public List getNonResourceRules() { return nonResourceRules; } + + public void setNonResourceRules(List nonResourceRules) { this.nonResourceRules = nonResourceRules; } + public V1beta1SubjectRulesReviewStatus resourceRules(List resourceRules) { + this.resourceRules = resourceRules; return this; } @@ -119,10 +144,13 @@ public V1beta1SubjectRulesReviewStatus addResourceRulesItem(V1beta1ResourceRule * @return resourceRules **/ @ApiModelProperty(required = true, value = "ResourceRules is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.") + public List getResourceRules() { return resourceRules; } + + public void setResourceRules(List resourceRules) { this.resourceRules = resourceRules; } @@ -130,22 +158,12 @@ public void setResourceRules(List resourceRules) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1SubjectRulesReviewStatus v1beta1SubjectRulesReviewStatus = (V1beta1SubjectRulesReviewStatus) o; - return Objects.equals(this.evaluationError, v1beta1SubjectRulesReviewStatus.evaluationError) && - Objects.equals(this.incomplete, v1beta1SubjectRulesReviewStatus.incomplete) && - Objects.equals(this.nonResourceRules, v1beta1SubjectRulesReviewStatus.nonResourceRules) && - Objects.equals(this.resourceRules, v1beta1SubjectRulesReviewStatus.resourceRules); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(evaluationError, incomplete, nonResourceRules, resourceRules); + return HashCodeBuilder.reflectionHashCode(this); } @@ -153,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1SubjectRulesReviewStatus {\n"); - sb.append(" evaluationError: ").append(toIndentedString(evaluationError)).append("\n"); sb.append(" incomplete: ").append(toIndentedString(incomplete)).append("\n"); sb.append(" nonResourceRules: ").append(toIndentedString(nonResourceRules)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReview.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReview.java index e22d1fde63..e4ac8b51e9 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReview.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReview.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver. */ @ApiModel(description = "TokenReview attempts to authenticate a token to a known user. Note: TokenReview requests may be cached by the webhook token authenticator plugin in the kube-apiserver.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1TokenReview { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1TokenReviewSpec spec; - @SerializedName("spec") - private V1beta1TokenReviewSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1TokenReviewStatus status; - @SerializedName("status") - private V1beta1TokenReviewStatus status = null; public V1beta1TokenReview apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1TokenReview apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1TokenReview kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta1TokenReview kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1TokenReview metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,62 @@ public V1beta1TokenReview metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1TokenReview spec(V1beta1TokenReviewSpec spec) { + this.spec = spec; return this; } /** - * Spec holds information about the request being evaluated + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Spec holds information about the request being evaluated") + @ApiModelProperty(required = true, value = "") + public V1beta1TokenReviewSpec getSpec() { return spec; } + + public void setSpec(V1beta1TokenReviewSpec spec) { this.spec = spec; } + public V1beta1TokenReview status(V1beta1TokenReviewStatus status) { + this.status = status; return this; } /** - * Status is filled in by the server and indicates whether the request can be authenticated. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is filled in by the server and indicates whether the request can be authenticated.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1TokenReviewStatus getStatus() { return status; } + + public void setStatus(V1beta1TokenReviewStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1TokenReviewStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1TokenReview v1beta1TokenReview = (V1beta1TokenReview) o; - return Objects.equals(this.apiVersion, v1beta1TokenReview.apiVersion) && - Objects.equals(this.kind, v1beta1TokenReview.kind) && - Objects.equals(this.metadata, v1beta1TokenReview.metadata) && - Objects.equals(this.spec, v1beta1TokenReview.spec) && - Objects.equals(this.status, v1beta1TokenReview.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1TokenReview {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewSpec.java index 7262d0dcde..7ef1791760 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,15 +32,19 @@ * TokenReviewSpec is a description of the token authentication request. */ @ApiModel(description = "TokenReviewSpec is a description of the token authentication request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1TokenReviewSpec { - @SerializedName("audiences") + public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; + @SerializedName(SERIALIZED_NAME_AUDIENCES) private List audiences = null; - @SerializedName("token") - private String token = null; + public static final String SERIALIZED_NAME_TOKEN = "token"; + @SerializedName(SERIALIZED_NAME_TOKEN) + private String token; + public V1beta1TokenReviewSpec audiences(List audiences) { + this.audiences = audiences; return this; } @@ -54,16 +61,22 @@ public V1beta1TokenReviewSpec addAudiencesItem(String audiencesItem) { * Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver. * @return audiences **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.") + public List getAudiences() { return audiences; } + + public void setAudiences(List audiences) { this.audiences = audiences; } + public V1beta1TokenReviewSpec token(String token) { + this.token = token; return this; } @@ -72,11 +85,15 @@ public V1beta1TokenReviewSpec token(String token) { * Token is the opaque bearer token. * @return token **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Token is the opaque bearer token.") + public String getToken() { return token; } + + public void setToken(String token) { this.token = token; } @@ -84,20 +101,12 @@ public void setToken(String token) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1TokenReviewSpec v1beta1TokenReviewSpec = (V1beta1TokenReviewSpec) o; - return Objects.equals(this.audiences, v1beta1TokenReviewSpec.audiences) && - Objects.equals(this.token, v1beta1TokenReviewSpec.token); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(audiences, token); + return HashCodeBuilder.reflectionHashCode(this); } @@ -105,7 +114,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1TokenReviewSpec {\n"); - sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); sb.append(" token: ").append(toIndentedString(token)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewStatus.java index 5c4e7d897b..35ffee29a4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1TokenReviewStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,21 +33,27 @@ * TokenReviewStatus is the result of the token authentication request. */ @ApiModel(description = "TokenReviewStatus is the result of the token authentication request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1TokenReviewStatus { - @SerializedName("audiences") + public static final String SERIALIZED_NAME_AUDIENCES = "audiences"; + @SerializedName(SERIALIZED_NAME_AUDIENCES) private List audiences = null; - @SerializedName("authenticated") - private Boolean authenticated = null; + public static final String SERIALIZED_NAME_AUTHENTICATED = "authenticated"; + @SerializedName(SERIALIZED_NAME_AUTHENTICATED) + private Boolean authenticated; + + public static final String SERIALIZED_NAME_ERROR = "error"; + @SerializedName(SERIALIZED_NAME_ERROR) + private String error; - @SerializedName("error") - private String error = null; + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private V1beta1UserInfo user; - @SerializedName("user") - private V1beta1UserInfo user = null; public V1beta1TokenReviewStatus audiences(List audiences) { + this.audiences = audiences; return this; } @@ -61,16 +70,22 @@ public V1beta1TokenReviewStatus addAudiencesItem(String audiencesItem) { * Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server. * @return audiences **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is \"true\", the token is valid against the audience of the Kubernetes API server.") + public List getAudiences() { return audiences; } + + public void setAudiences(List audiences) { this.audiences = audiences; } + public V1beta1TokenReviewStatus authenticated(Boolean authenticated) { + this.authenticated = authenticated; return this; } @@ -79,16 +94,22 @@ public V1beta1TokenReviewStatus authenticated(Boolean authenticated) { * Authenticated indicates that the token was associated with a known user. * @return authenticated **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Authenticated indicates that the token was associated with a known user.") - public Boolean isAuthenticated() { + + public Boolean getAuthenticated() { return authenticated; } + + public void setAuthenticated(Boolean authenticated) { this.authenticated = authenticated; } + public V1beta1TokenReviewStatus error(String error) { + this.error = error; return this; } @@ -97,29 +118,39 @@ public V1beta1TokenReviewStatus error(String error) { * Error indicates that the token couldn't be checked * @return error **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Error indicates that the token couldn't be checked") + public String getError() { return error; } + + public void setError(String error) { this.error = error; } + public V1beta1TokenReviewStatus user(V1beta1UserInfo user) { + this.user = user; return this; } /** - * User is the UserInfo associated with the provided token. + * Get user * @return user **/ - @ApiModelProperty(value = "User is the UserInfo associated with the provided token.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1UserInfo getUser() { return user; } + + public void setUser(V1beta1UserInfo user) { this.user = user; } @@ -127,22 +158,12 @@ public void setUser(V1beta1UserInfo user) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1TokenReviewStatus v1beta1TokenReviewStatus = (V1beta1TokenReviewStatus) o; - return Objects.equals(this.audiences, v1beta1TokenReviewStatus.audiences) && - Objects.equals(this.authenticated, v1beta1TokenReviewStatus.authenticated) && - Objects.equals(this.error, v1beta1TokenReviewStatus.error) && - Objects.equals(this.user, v1beta1TokenReviewStatus.user); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(audiences, authenticated, error, user); + return HashCodeBuilder.reflectionHashCode(this); } @@ -150,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1TokenReviewStatus {\n"); - sb.append(" audiences: ").append(toIndentedString(audiences)).append("\n"); sb.append(" authenticated: ").append(toIndentedString(authenticated)).append("\n"); sb.append(" error: ").append(toIndentedString(error)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1UserInfo.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1UserInfo.java index 9516d4f8a5..5bdf2578ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1UserInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1UserInfo.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * UserInfo holds the information about the user needed to implement the user.Info interface. */ @ApiModel(description = "UserInfo holds the information about the user needed to implement the user.Info interface.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1UserInfo { - @SerializedName("extra") + public static final String SERIALIZED_NAME_EXTRA = "extra"; + @SerializedName(SERIALIZED_NAME_EXTRA) private Map> extra = null; - @SerializedName("groups") + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) private List groups = null; - @SerializedName("uid") - private String uid = null; + public static final String SERIALIZED_NAME_UID = "uid"; + @SerializedName(SERIALIZED_NAME_UID) + private String uid; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + private String username; - @SerializedName("username") - private String username = null; public V1beta1UserInfo extra(Map> extra) { + this.extra = extra; return this; } @@ -62,16 +71,22 @@ public V1beta1UserInfo putExtraItem(String key, List extraItem) { * Any additional information provided by the authenticator. * @return extra **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Any additional information provided by the authenticator.") + public Map> getExtra() { return extra; } + + public void setExtra(Map> extra) { this.extra = extra; } + public V1beta1UserInfo groups(List groups) { + this.groups = groups; return this; } @@ -88,16 +103,22 @@ public V1beta1UserInfo addGroupsItem(String groupsItem) { * The names of groups this user is a part of. * @return groups **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The names of groups this user is a part of.") + public List getGroups() { return groups; } + + public void setGroups(List groups) { this.groups = groups; } + public V1beta1UserInfo uid(String uid) { + this.uid = uid; return this; } @@ -106,16 +127,22 @@ public V1beta1UserInfo uid(String uid) { * A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs. * @return uid **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A unique value that identifies this user across time. If this user is deleted and another user by the same name is added, they will have different UIDs.") + public String getUid() { return uid; } + + public void setUid(String uid) { this.uid = uid; } + public V1beta1UserInfo username(String username) { + this.username = username; return this; } @@ -124,11 +151,15 @@ public V1beta1UserInfo username(String username) { * The name that uniquely identifies this user among all active users. * @return username **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The name that uniquely identifies this user among all active users.") + public String getUsername() { return username; } + + public void setUsername(String username) { this.username = username; } @@ -136,22 +167,12 @@ public void setUsername(String username) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1UserInfo v1beta1UserInfo = (V1beta1UserInfo) o; - return Objects.equals(this.extra, v1beta1UserInfo.extra) && - Objects.equals(this.groups, v1beta1UserInfo.groups) && - Objects.equals(this.uid, v1beta1UserInfo.uid) && - Objects.equals(this.username, v1beta1UserInfo.username); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(extra, groups, uid, username); + return HashCodeBuilder.reflectionHashCode(this); } @@ -159,7 +180,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1UserInfo {\n"); - sb.append(" extra: ").append(toIndentedString(extra)).append("\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" uid: ").append(toIndentedString(uid)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Webhook.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhook.java similarity index 58% rename from kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Webhook.java rename to kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhook.java index 3e1f6ce185..dcdca768a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1Webhook.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhook.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,41 +32,59 @@ import java.util.List; /** - * Webhook describes an admission webhook and the resources and operations it applies to. + * ValidatingWebhook describes an admission webhook and the resources and operations it applies to. */ -@ApiModel(description = "Webhook describes an admission webhook and the resources and operations it applies to.") - -public class V1beta1Webhook { - @SerializedName("admissionReviewVersions") +@ApiModel(description = "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") +public class V1beta1ValidatingWebhook { + public static final String SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS = "admissionReviewVersions"; + @SerializedName(SERIALIZED_NAME_ADMISSION_REVIEW_VERSIONS) private List admissionReviewVersions = null; - @SerializedName("clientConfig") - private AdmissionregistrationV1beta1WebhookClientConfig clientConfig = null; + public static final String SERIALIZED_NAME_CLIENT_CONFIG = "clientConfig"; + @SerializedName(SERIALIZED_NAME_CLIENT_CONFIG) + private AdmissionregistrationV1beta1WebhookClientConfig clientConfig; + + public static final String SERIALIZED_NAME_FAILURE_POLICY = "failurePolicy"; + @SerializedName(SERIALIZED_NAME_FAILURE_POLICY) + private String failurePolicy; + + public static final String SERIALIZED_NAME_MATCH_POLICY = "matchPolicy"; + @SerializedName(SERIALIZED_NAME_MATCH_POLICY) + private String matchPolicy; - @SerializedName("failurePolicy") - private String failurePolicy = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAMESPACE_SELECTOR = "namespaceSelector"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_SELECTOR) + private V1LabelSelector namespaceSelector; - @SerializedName("namespaceSelector") - private V1LabelSelector namespaceSelector = null; + public static final String SERIALIZED_NAME_OBJECT_SELECTOR = "objectSelector"; + @SerializedName(SERIALIZED_NAME_OBJECT_SELECTOR) + private V1LabelSelector objectSelector; - @SerializedName("rules") + public static final String SERIALIZED_NAME_RULES = "rules"; + @SerializedName(SERIALIZED_NAME_RULES) private List rules = null; - @SerializedName("sideEffects") - private String sideEffects = null; + public static final String SERIALIZED_NAME_SIDE_EFFECTS = "sideEffects"; + @SerializedName(SERIALIZED_NAME_SIDE_EFFECTS) + private String sideEffects; - @SerializedName("timeoutSeconds") - private Integer timeoutSeconds = null; + public static final String SERIALIZED_NAME_TIMEOUT_SECONDS = "timeoutSeconds"; + @SerializedName(SERIALIZED_NAME_TIMEOUT_SECONDS) + private Integer timeoutSeconds; - public V1beta1Webhook admissionReviewVersions(List admissionReviewVersions) { + + public V1beta1ValidatingWebhook admissionReviewVersions(List admissionReviewVersions) { + this.admissionReviewVersions = admissionReviewVersions; return this; } - public V1beta1Webhook addAdmissionReviewVersionsItem(String admissionReviewVersionsItem) { + public V1beta1ValidatingWebhook addAdmissionReviewVersionsItem(String admissionReviewVersionsItem) { if (this.admissionReviewVersions == null) { this.admissionReviewVersions = new ArrayList(); } @@ -75,34 +96,45 @@ public V1beta1Webhook addAdmissionReviewVersionsItem(String admissionReviewVersi * AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`. * @return admissionReviewVersions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.") + public List getAdmissionReviewVersions() { return admissionReviewVersions; } + + public void setAdmissionReviewVersions(List admissionReviewVersions) { this.admissionReviewVersions = admissionReviewVersions; } - public V1beta1Webhook clientConfig(AdmissionregistrationV1beta1WebhookClientConfig clientConfig) { + + public V1beta1ValidatingWebhook clientConfig(AdmissionregistrationV1beta1WebhookClientConfig clientConfig) { + this.clientConfig = clientConfig; return this; } /** - * ClientConfig defines how to communicate with the hook. Required + * Get clientConfig * @return clientConfig **/ - @ApiModelProperty(required = true, value = "ClientConfig defines how to communicate with the hook. Required") + @ApiModelProperty(required = true, value = "") + public AdmissionregistrationV1beta1WebhookClientConfig getClientConfig() { return clientConfig; } + + public void setClientConfig(AdmissionregistrationV1beta1WebhookClientConfig clientConfig) { this.clientConfig = clientConfig; } - public V1beta1Webhook failurePolicy(String failurePolicy) { + + public V1beta1ValidatingWebhook failurePolicy(String failurePolicy) { + this.failurePolicy = failurePolicy; return this; } @@ -111,16 +143,46 @@ public V1beta1Webhook failurePolicy(String failurePolicy) { * FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore. * @return failurePolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.") + public String getFailurePolicy() { return failurePolicy; } + + public void setFailurePolicy(String failurePolicy) { this.failurePolicy = failurePolicy; } - public V1beta1Webhook name(String name) { + + public V1beta1ValidatingWebhook matchPolicy(String matchPolicy) { + + this.matchPolicy = matchPolicy; + return this; + } + + /** + * matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\" + * @return matchPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\". - Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook. - Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook. Defaults to \"Exact\"") + + public String getMatchPolicy() { + return matchPolicy; + } + + + + public void setMatchPolicy(String matchPolicy) { + this.matchPolicy = matchPolicy; + } + + + public V1beta1ValidatingWebhook name(String name) { + this.name = name; return this; } @@ -130,38 +192,73 @@ public V1beta1Webhook name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } - public V1beta1Webhook namespaceSelector(V1LabelSelector namespaceSelector) { + + public V1beta1ValidatingWebhook namespaceSelector(V1LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; return this; } /** - * NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"runlevel\", \"operator\": \"NotIn\", \"values\": [ \"0\", \"1\" ] } ] } If instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"environment\", \"operator\": \"In\", \"values\": [ \"prod\", \"staging\" ] } ] } See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything. + * Get namespaceSelector * @return namespaceSelector **/ - @ApiModelProperty(value = "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook. For example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"runlevel\", \"operator\": \"NotIn\", \"values\": [ \"0\", \"1\" ] } ] } If instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": { \"matchExpressions\": [ { \"key\": \"environment\", \"operator\": \"In\", \"values\": [ \"prod\", \"staging\" ] } ] } See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors. Default to the empty LabelSelector, which matches everything.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getNamespaceSelector() { return namespaceSelector; } + + public void setNamespaceSelector(V1LabelSelector namespaceSelector) { this.namespaceSelector = namespaceSelector; } - public V1beta1Webhook rules(List rules) { + + public V1beta1ValidatingWebhook objectSelector(V1LabelSelector objectSelector) { + + this.objectSelector = objectSelector; + return this; + } + + /** + * Get objectSelector + * @return objectSelector + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1LabelSelector getObjectSelector() { + return objectSelector; + } + + + + public void setObjectSelector(V1LabelSelector objectSelector) { + this.objectSelector = objectSelector; + } + + + public V1beta1ValidatingWebhook rules(List rules) { + this.rules = rules; return this; } - public V1beta1Webhook addRulesItem(V1beta1RuleWithOperations rulesItem) { + public V1beta1ValidatingWebhook addRulesItem(V1beta1RuleWithOperations rulesItem) { if (this.rules == null) { this.rules = new ArrayList(); } @@ -173,16 +270,22 @@ public V1beta1Webhook addRulesItem(V1beta1RuleWithOperations rulesItem) { * Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects. * @return rules **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.") + public List getRules() { return rules; } + + public void setRules(List rules) { this.rules = rules; } - public V1beta1Webhook sideEffects(String sideEffects) { + + public V1beta1ValidatingWebhook sideEffects(String sideEffects) { + this.sideEffects = sideEffects; return this; } @@ -191,16 +294,22 @@ public V1beta1Webhook sideEffects(String sideEffects) { * SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown. * @return sideEffects **/ + @javax.annotation.Nullable @ApiModelProperty(value = "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.") + public String getSideEffects() { return sideEffects; } + + public void setSideEffects(String sideEffects) { this.sideEffects = sideEffects; } - public V1beta1Webhook timeoutSeconds(Integer timeoutSeconds) { + + public V1beta1ValidatingWebhook timeoutSeconds(Integer timeoutSeconds) { + this.timeoutSeconds = timeoutSeconds; return this; } @@ -209,11 +318,15 @@ public V1beta1Webhook timeoutSeconds(Integer timeoutSeconds) { * TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds. * @return timeoutSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.") + public Integer getTimeoutSeconds() { return timeoutSeconds; } + + public void setTimeoutSeconds(Integer timeoutSeconds) { this.timeoutSeconds = timeoutSeconds; } @@ -221,39 +334,26 @@ public void setTimeoutSeconds(Integer timeoutSeconds) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1Webhook v1beta1Webhook = (V1beta1Webhook) o; - return Objects.equals(this.admissionReviewVersions, v1beta1Webhook.admissionReviewVersions) && - Objects.equals(this.clientConfig, v1beta1Webhook.clientConfig) && - Objects.equals(this.failurePolicy, v1beta1Webhook.failurePolicy) && - Objects.equals(this.name, v1beta1Webhook.name) && - Objects.equals(this.namespaceSelector, v1beta1Webhook.namespaceSelector) && - Objects.equals(this.rules, v1beta1Webhook.rules) && - Objects.equals(this.sideEffects, v1beta1Webhook.sideEffects) && - Objects.equals(this.timeoutSeconds, v1beta1Webhook.timeoutSeconds); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(admissionReviewVersions, clientConfig, failurePolicy, name, namespaceSelector, rules, sideEffects, timeoutSeconds); + return HashCodeBuilder.reflectionHashCode(this); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class V1beta1Webhook {\n"); - + sb.append("class V1beta1ValidatingWebhook {\n"); sb.append(" admissionReviewVersions: ").append(toIndentedString(admissionReviewVersions)).append("\n"); sb.append(" clientConfig: ").append(toIndentedString(clientConfig)).append("\n"); sb.append(" failurePolicy: ").append(toIndentedString(failurePolicy)).append("\n"); + sb.append(" matchPolicy: ").append(toIndentedString(matchPolicy)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespaceSelector: ").append(toIndentedString(namespaceSelector)).append("\n"); + sb.append(" objectSelector: ").append(toIndentedString(objectSelector)).append("\n"); sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); sb.append(" sideEffects: ").append(toIndentedString(sideEffects)).append("\n"); sb.append(" timeoutSeconds: ").append(toIndentedString(timeoutSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfiguration.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfiguration.java index 8ddac4ad1c..6b7ca036e1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfiguration.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfiguration.java @@ -1,26 +1,29 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.kubernetes.client.models.V1ObjectMeta; -import io.kubernetes.client.models.V1beta1Webhook; +import io.kubernetes.client.models.V1beta1ValidatingWebhook; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -31,21 +34,27 @@ * ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it. */ @ApiModel(description = "ValidatingWebhookConfiguration describes the configuration of and admission webhook that accept or reject and object without changing it.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ValidatingWebhookConfiguration { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_WEBHOOKS = "webhooks"; + @SerializedName(SERIALIZED_NAME_WEBHOOKS) + private List webhooks = null; - @SerializedName("webhooks") - private List webhooks = null; public V1beta1ValidatingWebhookConfiguration apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1ValidatingWebhookConfiguration apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ValidatingWebhookConfiguration kind(String kind) { + this.kind = kind; return this; } @@ -72,41 +87,53 @@ public V1beta1ValidatingWebhookConfiguration kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ValidatingWebhookConfiguration metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } - public V1beta1ValidatingWebhookConfiguration webhooks(List webhooks) { + + public V1beta1ValidatingWebhookConfiguration webhooks(List webhooks) { + this.webhooks = webhooks; return this; } - public V1beta1ValidatingWebhookConfiguration addWebhooksItem(V1beta1Webhook webhooksItem) { + public V1beta1ValidatingWebhookConfiguration addWebhooksItem(V1beta1ValidatingWebhook webhooksItem) { if (this.webhooks == null) { - this.webhooks = new ArrayList(); + this.webhooks = new ArrayList(); } this.webhooks.add(webhooksItem); return this; @@ -116,34 +143,28 @@ public V1beta1ValidatingWebhookConfiguration addWebhooksItem(V1beta1Webhook webh * Webhooks is a list of webhooks and the affected resources and operations. * @return webhooks **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Webhooks is a list of webhooks and the affected resources and operations.") - public List getWebhooks() { + + public List getWebhooks() { return webhooks; } - public void setWebhooks(List webhooks) { + + + public void setWebhooks(List webhooks) { this.webhooks = webhooks; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ValidatingWebhookConfiguration v1beta1ValidatingWebhookConfiguration = (V1beta1ValidatingWebhookConfiguration) o; - return Objects.equals(this.apiVersion, v1beta1ValidatingWebhookConfiguration.apiVersion) && - Objects.equals(this.kind, v1beta1ValidatingWebhookConfiguration.kind) && - Objects.equals(this.metadata, v1beta1ValidatingWebhookConfiguration.metadata) && - Objects.equals(this.webhooks, v1beta1ValidatingWebhookConfiguration.webhooks); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, webhooks); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +172,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ValidatingWebhookConfiguration {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationList.java index 036709cda6..c5e9e1822d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration. */ @ApiModel(description = "ValidatingWebhookConfigurationList is a list of ValidatingWebhookConfiguration.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1ValidatingWebhookConfigurationList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1ValidatingWebhookConfigurationList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1ValidatingWebhookConfigurationList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1ValidatingWebhookConfigurationList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1ValidatingWebhookConfigurationList addItemsItem(V1beta1ValidatingW * @return items **/ @ApiModelProperty(required = true, value = "List of ValidatingWebhookConfiguration.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1ValidatingWebhookConfigurationList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1ValidatingWebhookConfigurationList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1ValidatingWebhookConfigurationList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1ValidatingWebhookConfigurationList v1beta1ValidatingWebhookConfigurationList = (V1beta1ValidatingWebhookConfigurationList) o; - return Objects.equals(this.apiVersion, v1beta1ValidatingWebhookConfigurationList.apiVersion) && - Objects.equals(this.items, v1beta1ValidatingWebhookConfigurationList.items) && - Objects.equals(this.kind, v1beta1ValidatingWebhookConfigurationList.kind) && - Objects.equals(this.metadata, v1beta1ValidatingWebhookConfigurationList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1ValidatingWebhookConfigurationList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachment.java index 8b7bde4f8f..206330d6f7 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced. */ @ApiModel(description = "VolumeAttachment captures the intent to attach or detach the specified volume to/from the specified node. VolumeAttachment objects are non-namespaced.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1VolumeAttachment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta1VolumeAttachmentSpec spec; - @SerializedName("spec") - private V1beta1VolumeAttachmentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta1VolumeAttachmentStatus status; - @SerializedName("status") - private V1beta1VolumeAttachmentStatus status = null; public V1beta1VolumeAttachment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta1VolumeAttachment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1VolumeAttachment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,86 @@ public V1beta1VolumeAttachment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1VolumeAttachment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta1VolumeAttachment spec(V1beta1VolumeAttachmentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system. + * Get spec * @return spec **/ - @ApiModelProperty(required = true, value = "Specification of the desired attach/detach volume behavior. Populated by the Kubernetes system.") + @ApiModelProperty(required = true, value = "") + public V1beta1VolumeAttachmentSpec getSpec() { return spec; } + + public void setSpec(V1beta1VolumeAttachmentSpec spec) { this.spec = spec; } + public V1beta1VolumeAttachment status(V1beta1VolumeAttachmentStatus status) { + this.status = status; return this; } /** - * Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher. + * Get status * @return status **/ - @ApiModelProperty(value = "Status of the VolumeAttachment request. Populated by the entity completing the attach or detach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1VolumeAttachmentStatus getStatus() { return status; } + + public void setStatus(V1beta1VolumeAttachmentStatus status) { this.status = status; } @@ -140,23 +177,12 @@ public void setStatus(V1beta1VolumeAttachmentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeAttachment v1beta1VolumeAttachment = (V1beta1VolumeAttachment) o; - return Objects.equals(this.apiVersion, v1beta1VolumeAttachment.apiVersion) && - Objects.equals(this.kind, v1beta1VolumeAttachment.kind) && - Objects.equals(this.metadata, v1beta1VolumeAttachment.metadata) && - Objects.equals(this.spec, v1beta1VolumeAttachment.spec) && - Objects.equals(this.status, v1beta1VolumeAttachment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +190,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1VolumeAttachment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentList.java index 2b3f97b5a0..de38eb874f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * VolumeAttachmentList is a collection of VolumeAttachment objects. */ @ApiModel(description = "VolumeAttachmentList is a collection of VolumeAttachment objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1VolumeAttachmentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta1VolumeAttachmentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta1VolumeAttachmentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta1VolumeAttachmentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta1VolumeAttachmentList addItemsItem(V1beta1VolumeAttachment itemsIte * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of VolumeAttachments") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta1VolumeAttachmentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta1VolumeAttachmentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta1VolumeAttachmentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeAttachmentList v1beta1VolumeAttachmentList = (V1beta1VolumeAttachmentList) o; - return Objects.equals(this.apiVersion, v1beta1VolumeAttachmentList.apiVersion) && - Objects.equals(this.items, v1beta1VolumeAttachmentList.items) && - Objects.equals(this.kind, v1beta1VolumeAttachmentList.kind) && - Objects.equals(this.metadata, v1beta1VolumeAttachmentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1VolumeAttachmentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSource.java index 3c2c25c6a9..34afa4d7d6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSource.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeSpec; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,12 +31,43 @@ * VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set. */ @ApiModel(description = "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1VolumeAttachmentSource { - @SerializedName("persistentVolumeName") - private String persistentVolumeName = null; + public static final String SERIALIZED_NAME_INLINE_VOLUME_SPEC = "inlineVolumeSpec"; + @SerializedName(SERIALIZED_NAME_INLINE_VOLUME_SPEC) + private V1PersistentVolumeSpec inlineVolumeSpec; + + public static final String SERIALIZED_NAME_PERSISTENT_VOLUME_NAME = "persistentVolumeName"; + @SerializedName(SERIALIZED_NAME_PERSISTENT_VOLUME_NAME) + private String persistentVolumeName; + + + public V1beta1VolumeAttachmentSource inlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + + this.inlineVolumeSpec = inlineVolumeSpec; + return this; + } + + /** + * Get inlineVolumeSpec + * @return inlineVolumeSpec + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public V1PersistentVolumeSpec getInlineVolumeSpec() { + return inlineVolumeSpec; + } + + + + public void setInlineVolumeSpec(V1PersistentVolumeSpec inlineVolumeSpec) { + this.inlineVolumeSpec = inlineVolumeSpec; + } + public V1beta1VolumeAttachmentSource persistentVolumeName(String persistentVolumeName) { + this.persistentVolumeName = persistentVolumeName; return this; } @@ -41,11 +76,15 @@ public V1beta1VolumeAttachmentSource persistentVolumeName(String persistentVolum * Name of the persistent volume to attach. * @return persistentVolumeName **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Name of the persistent volume to attach.") + public String getPersistentVolumeName() { return persistentVolumeName; } + + public void setPersistentVolumeName(String persistentVolumeName) { this.persistentVolumeName = persistentVolumeName; } @@ -53,19 +92,12 @@ public void setPersistentVolumeName(String persistentVolumeName) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeAttachmentSource v1beta1VolumeAttachmentSource = (V1beta1VolumeAttachmentSource) o; - return Objects.equals(this.persistentVolumeName, v1beta1VolumeAttachmentSource.persistentVolumeName); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(persistentVolumeName); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +105,7 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1VolumeAttachmentSource {\n"); - + sb.append(" inlineVolumeSpec: ").append(toIndentedString(inlineVolumeSpec)).append("\n"); sb.append(" persistentVolumeName: ").append(toIndentedString(persistentVolumeName)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpec.java index 1ef7dc206b..9d507cd4ee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * VolumeAttachmentSpec is the specification of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentSpec is the specification of a VolumeAttachment request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1VolumeAttachmentSpec { - @SerializedName("attacher") - private String attacher = null; + public static final String SERIALIZED_NAME_ATTACHER = "attacher"; + @SerializedName(SERIALIZED_NAME_ATTACHER) + private String attacher; + + public static final String SERIALIZED_NAME_NODE_NAME = "nodeName"; + @SerializedName(SERIALIZED_NAME_NODE_NAME) + private String nodeName; - @SerializedName("nodeName") - private String nodeName = null; + public static final String SERIALIZED_NAME_SOURCE = "source"; + @SerializedName(SERIALIZED_NAME_SOURCE) + private V1beta1VolumeAttachmentSource source; - @SerializedName("source") - private V1beta1VolumeAttachmentSource source = null; public V1beta1VolumeAttachmentSpec attacher(String attacher) { + this.attacher = attacher; return this; } @@ -49,15 +57,20 @@ public V1beta1VolumeAttachmentSpec attacher(String attacher) { * @return attacher **/ @ApiModelProperty(required = true, value = "Attacher indicates the name of the volume driver that MUST handle this request. This is the name returned by GetPluginName().") + public String getAttacher() { return attacher; } + + public void setAttacher(String attacher) { this.attacher = attacher; } + public V1beta1VolumeAttachmentSpec nodeName(String nodeName) { + this.nodeName = nodeName; return this; } @@ -67,28 +80,36 @@ public V1beta1VolumeAttachmentSpec nodeName(String nodeName) { * @return nodeName **/ @ApiModelProperty(required = true, value = "The node that the volume should be attached to.") + public String getNodeName() { return nodeName; } + + public void setNodeName(String nodeName) { this.nodeName = nodeName; } + public V1beta1VolumeAttachmentSpec source(V1beta1VolumeAttachmentSource source) { + this.source = source; return this; } /** - * Source represents the volume that should be attached. + * Get source * @return source **/ - @ApiModelProperty(required = true, value = "Source represents the volume that should be attached.") + @ApiModelProperty(required = true, value = "") + public V1beta1VolumeAttachmentSource getSource() { return source; } + + public void setSource(V1beta1VolumeAttachmentSource source) { this.source = source; } @@ -96,21 +117,12 @@ public void setSource(V1beta1VolumeAttachmentSource source) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeAttachmentSpec v1beta1VolumeAttachmentSpec = (V1beta1VolumeAttachmentSpec) o; - return Objects.equals(this.attacher, v1beta1VolumeAttachmentSpec.attacher) && - Objects.equals(this.nodeName, v1beta1VolumeAttachmentSpec.nodeName) && - Objects.equals(this.source, v1beta1VolumeAttachmentSpec.source); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attacher, nodeName, source); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1VolumeAttachmentSpec {\n"); - sb.append(" attacher: ").append(toIndentedString(attacher)).append("\n"); sb.append(" nodeName: ").append(toIndentedString(nodeName)).append("\n"); sb.append(" source: ").append(toIndentedString(source)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatus.java index 0dd849319d..57d2cb6e91 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,39 +34,51 @@ * VolumeAttachmentStatus is the status of a VolumeAttachment request. */ @ApiModel(description = "VolumeAttachmentStatus is the status of a VolumeAttachment request.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1VolumeAttachmentStatus { - @SerializedName("attachError") - private V1beta1VolumeError attachError = null; + public static final String SERIALIZED_NAME_ATTACH_ERROR = "attachError"; + @SerializedName(SERIALIZED_NAME_ATTACH_ERROR) + private V1beta1VolumeError attachError; - @SerializedName("attached") - private Boolean attached = null; + public static final String SERIALIZED_NAME_ATTACHED = "attached"; + @SerializedName(SERIALIZED_NAME_ATTACHED) + private Boolean attached; - @SerializedName("attachmentMetadata") + public static final String SERIALIZED_NAME_ATTACHMENT_METADATA = "attachmentMetadata"; + @SerializedName(SERIALIZED_NAME_ATTACHMENT_METADATA) private Map attachmentMetadata = null; - @SerializedName("detachError") - private V1beta1VolumeError detachError = null; + public static final String SERIALIZED_NAME_DETACH_ERROR = "detachError"; + @SerializedName(SERIALIZED_NAME_DETACH_ERROR) + private V1beta1VolumeError detachError; + public V1beta1VolumeAttachmentStatus attachError(V1beta1VolumeError attachError) { + this.attachError = attachError; return this; } /** - * The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. + * Get attachError * @return attachError **/ - @ApiModelProperty(value = "The last error encountered during attach operation, if any. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1VolumeError getAttachError() { return attachError; } + + public void setAttachError(V1beta1VolumeError attachError) { this.attachError = attachError; } + public V1beta1VolumeAttachmentStatus attached(Boolean attached) { + this.attached = attached; return this; } @@ -73,15 +88,20 @@ public V1beta1VolumeAttachmentStatus attached(Boolean attached) { * @return attached **/ @ApiModelProperty(required = true, value = "Indicates the volume is successfully attached. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") - public Boolean isAttached() { + + public Boolean getAttached() { return attached; } + + public void setAttached(Boolean attached) { this.attached = attached; } + public V1beta1VolumeAttachmentStatus attachmentMetadata(Map attachmentMetadata) { + this.attachmentMetadata = attachmentMetadata; return this; } @@ -98,29 +118,39 @@ public V1beta1VolumeAttachmentStatus putAttachmentMetadataItem(String key, Strin * Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher. * @return attachmentMetadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Upon successful attach, this field is populated with any information returned by the attach operation that must be passed into subsequent WaitForAttach or Mount calls. This field must only be set by the entity completing the attach operation, i.e. the external-attacher.") + public Map getAttachmentMetadata() { return attachmentMetadata; } + + public void setAttachmentMetadata(Map attachmentMetadata) { this.attachmentMetadata = attachmentMetadata; } + public V1beta1VolumeAttachmentStatus detachError(V1beta1VolumeError detachError) { + this.detachError = detachError; return this; } /** - * The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher. + * Get detachError * @return detachError **/ - @ApiModelProperty(value = "The last error encountered during detach operation, if any. This field must only be set by the entity completing the detach operation, i.e. the external-attacher.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta1VolumeError getDetachError() { return detachError; } + + public void setDetachError(V1beta1VolumeError detachError) { this.detachError = detachError; } @@ -128,22 +158,12 @@ public void setDetachError(V1beta1VolumeError detachError) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeAttachmentStatus v1beta1VolumeAttachmentStatus = (V1beta1VolumeAttachmentStatus) o; - return Objects.equals(this.attachError, v1beta1VolumeAttachmentStatus.attachError) && - Objects.equals(this.attached, v1beta1VolumeAttachmentStatus.attached) && - Objects.equals(this.attachmentMetadata, v1beta1VolumeAttachmentStatus.attachmentMetadata) && - Objects.equals(this.detachError, v1beta1VolumeAttachmentStatus.detachError); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(attachError, attached, attachmentMetadata, detachError); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +171,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1VolumeAttachmentStatus {\n"); - sb.append(" attachError: ").append(toIndentedString(attachError)).append("\n"); sb.append(" attached: ").append(toIndentedString(attached)).append("\n"); sb.append(" attachmentMetadata: ").append(toIndentedString(attachmentMetadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeError.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeError.java index eb0e975a28..bf8dc7c6a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeError.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta1VolumeError.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * VolumeError captures an error encountered during a volume operation. */ @ApiModel(description = "VolumeError captures an error encountered during a volume operation.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta1VolumeError { - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private DateTime time; - @SerializedName("time") - private DateTime time = null; public V1beta1VolumeError message(String message) { + this.message = message; return this; } @@ -45,16 +52,22 @@ public V1beta1VolumeError message(String message) { * String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "String detailing the error encountered during Attach or Detach operation. This string may be logged, so it should not contain sensitive information.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta1VolumeError time(DateTime time) { + this.time = time; return this; } @@ -63,11 +76,15 @@ public V1beta1VolumeError time(DateTime time) { * Time the error was encountered. * @return time **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Time the error was encountered.") + public DateTime getTime() { return time; } + + public void setTime(DateTime time) { this.time = time; } @@ -75,20 +92,12 @@ public void setTime(DateTime time) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta1VolumeError v1beta1VolumeError = (V1beta1VolumeError) o; - return Objects.equals(this.message, v1beta1VolumeError.message) && - Objects.equals(this.time, v1beta1VolumeError.time); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(message, time); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta1VolumeError {\n"); - sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" time: ").append(toIndentedString(time)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevision.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevision.java index 7a7fffe158..1e4ee17d03 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevision.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevision.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,24 +32,31 @@ * DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers. */ @ApiModel(description = "DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1/ControllerRevision. See the release notes for more information. ControllerRevision implements an immutable snapshot of state data. Clients are responsible for serializing and deserializing the objects that contain their internal state. Once a ControllerRevision has been successfully created, it can not be updated. The API Server will fail validation of all requests that attempt to mutate the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However, it may be subject to name and representation changes in future releases, and clients should not depend on its stability. It is primarily for internal use by controllers.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ControllerRevision { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + private RuntimeRawExtension data; - @SerializedName("data") - private RuntimeRawExtension data = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_REVISION = "revision"; + @SerializedName(SERIALIZED_NAME_REVISION) + private Long revision; - @SerializedName("revision") - private Long revision = null; public V1beta2ControllerRevision apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -55,34 +65,46 @@ public V1beta2ControllerRevision apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2ControllerRevision data(RuntimeRawExtension data) { + this.data = data; return this; } /** - * Data is the serialized representation of the state. + * Get data * @return data **/ - @ApiModelProperty(value = "Data is the serialized representation of the state.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public RuntimeRawExtension getData() { return data; } + + public void setData(RuntimeRawExtension data) { this.data = data; } + public V1beta2ControllerRevision kind(String kind) { + this.kind = kind; return this; } @@ -91,34 +113,46 @@ public V1beta2ControllerRevision kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2ControllerRevision metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta2ControllerRevision revision(Long revision) { + this.revision = revision; return this; } @@ -128,10 +162,13 @@ public V1beta2ControllerRevision revision(Long revision) { * @return revision **/ @ApiModelProperty(required = true, value = "Revision indicates the revision of the state represented by Data.") + public Long getRevision() { return revision; } + + public void setRevision(Long revision) { this.revision = revision; } @@ -139,23 +176,12 @@ public void setRevision(Long revision) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ControllerRevision v1beta2ControllerRevision = (V1beta2ControllerRevision) o; - return Objects.equals(this.apiVersion, v1beta2ControllerRevision.apiVersion) && - Objects.equals(this.data, v1beta2ControllerRevision.data) && - Objects.equals(this.kind, v1beta2ControllerRevision.kind) && - Objects.equals(this.metadata, v1beta2ControllerRevision.metadata) && - Objects.equals(this.revision, v1beta2ControllerRevision.revision); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, data, kind, metadata, revision); + return HashCodeBuilder.reflectionHashCode(this); } @@ -163,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ControllerRevision {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevisionList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevisionList.java index 7a0cf961de..979d30ce7e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevisionList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ControllerRevisionList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ControllerRevisionList is a resource containing a list of ControllerRevision objects. */ @ApiModel(description = "ControllerRevisionList is a resource containing a list of ControllerRevision objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ControllerRevisionList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta2ControllerRevisionList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta2ControllerRevisionList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2ControllerRevisionList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta2ControllerRevisionList addItemsItem(V1beta2ControllerRevision item * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of ControllerRevisions") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta2ControllerRevisionList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta2ControllerRevisionList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2ControllerRevisionList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ControllerRevisionList v1beta2ControllerRevisionList = (V1beta2ControllerRevisionList) o; - return Objects.equals(this.apiVersion, v1beta2ControllerRevisionList.apiVersion) && - Objects.equals(this.items, v1beta2ControllerRevisionList.items) && - Objects.equals(this.kind, v1beta2ControllerRevisionList.kind) && - Objects.equals(this.metadata, v1beta2ControllerRevisionList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ControllerRevisionList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSet.java index 068e19941b..d32573eb54 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set. */ @ApiModel(description = "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DaemonSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta2DaemonSetSpec spec; - @SerializedName("spec") - private V1beta2DaemonSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta2DaemonSetStatus status; - @SerializedName("status") - private V1beta2DaemonSetStatus status = null; public V1beta2DaemonSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta2DaemonSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2DaemonSet kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta2DaemonSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2DaemonSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta2DaemonSet spec(V1beta2DaemonSetSpec spec) { + this.spec = spec; return this; } /** - * The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "The desired behavior of this daemon set. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DaemonSetSpec getSpec() { return spec; } + + public void setSpec(V1beta2DaemonSetSpec spec) { this.spec = spec; } + public V1beta2DaemonSet status(V1beta2DaemonSetStatus status) { + this.status = status; return this; } /** - * The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "The current status of this daemon set. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DaemonSetStatus getStatus() { return status; } + + public void setStatus(V1beta2DaemonSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta2DaemonSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DaemonSet v1beta2DaemonSet = (V1beta2DaemonSet) o; - return Objects.equals(this.apiVersion, v1beta2DaemonSet.apiVersion) && - Objects.equals(this.kind, v1beta2DaemonSet.kind) && - Objects.equals(this.metadata, v1beta2DaemonSet.metadata) && - Objects.equals(this.spec, v1beta2DaemonSet.spec) && - Objects.equals(this.status, v1beta2DaemonSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DaemonSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetCondition.java index b21570383b..37e5028b3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * DaemonSetCondition describes the state of a DaemonSet at a certain point. */ @ApiModel(description = "DaemonSetCondition describes the state of a DaemonSet at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DaemonSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta2DaemonSetCondition lastTransitionTime(DateTime lastTransitionTime) * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta2DaemonSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta2DaemonSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta2DaemonSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta2DaemonSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta2DaemonSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta2DaemonSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta2DaemonSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta2DaemonSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of DaemonSet condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DaemonSetCondition v1beta2DaemonSetCondition = (V1beta2DaemonSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta2DaemonSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta2DaemonSetCondition.message) && - Objects.equals(this.reason, v1beta2DaemonSetCondition.reason) && - Objects.equals(this.status, v1beta2DaemonSetCondition.status) && - Objects.equals(this.type, v1beta2DaemonSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DaemonSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetList.java index c23ae4a79f..4046798272 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DaemonSetList is a collection of daemon sets. */ @ApiModel(description = "DaemonSetList is a collection of daemon sets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DaemonSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta2DaemonSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta2DaemonSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2DaemonSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta2DaemonSetList addItemsItem(V1beta2DaemonSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "A list of daemon sets.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta2DaemonSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta2DaemonSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2DaemonSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DaemonSetList v1beta2DaemonSetList = (V1beta2DaemonSetList) o; - return Objects.equals(this.apiVersion, v1beta2DaemonSetList.apiVersion) && - Objects.equals(this.items, v1beta2DaemonSetList.items) && - Objects.equals(this.kind, v1beta2DaemonSetList.kind) && - Objects.equals(this.metadata, v1beta2DaemonSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DaemonSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetSpec.java index bb6f5efa75..2f1b86648c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DaemonSetSpec is the specification of a daemon set. */ @ApiModel(description = "DaemonSetSpec is the specification of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DaemonSetSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; + @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + private V1beta2DaemonSetUpdateStrategy updateStrategy; - @SerializedName("updateStrategy") - private V1beta2DaemonSetUpdateStrategy updateStrategy = null; public V1beta2DaemonSetSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -56,16 +66,22 @@ public V1beta2DaemonSetSpec minReadySeconds(Integer minReadySeconds) { * The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready). * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The minimum number of seconds for which a newly created DaemonSet pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready).") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1beta2DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -74,65 +90,85 @@ public V1beta2DaemonSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { * The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old history to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1beta2DaemonSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "A label query over pods that are managed by the daemon set. Must match in order to be controlled. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta2DaemonSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "An object that describes the pod that will be created. The DaemonSet will create exactly one copy of this pod on every node that matches the template's node selector (or on every node if no node selector is specified). More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1beta2DaemonSetSpec updateStrategy(V1beta2DaemonSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } /** - * An update strategy to replace existing DaemonSet pods with new pods. + * Get updateStrategy * @return updateStrategy **/ - @ApiModelProperty(value = "An update strategy to replace existing DaemonSet pods with new pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DaemonSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } + + public void setUpdateStrategy(V1beta2DaemonSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } @@ -140,23 +176,12 @@ public void setUpdateStrategy(V1beta2DaemonSetUpdateStrategy updateStrategy) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DaemonSetSpec v1beta2DaemonSetSpec = (V1beta2DaemonSetSpec) o; - return Objects.equals(this.minReadySeconds, v1beta2DaemonSetSpec.minReadySeconds) && - Objects.equals(this.revisionHistoryLimit, v1beta2DaemonSetSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1beta2DaemonSetSpec.selector) && - Objects.equals(this.template, v1beta2DaemonSetSpec.template) && - Objects.equals(this.updateStrategy, v1beta2DaemonSetSpec.updateStrategy); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, revisionHistoryLimit, selector, template, updateStrategy); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +189,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DaemonSetSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" revisionHistoryLimit: ").append(toIndentedString(revisionHistoryLimit)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetStatus.java index 39ada0a3e4..d8e66009a1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,39 +33,51 @@ * DaemonSetStatus represents the current status of a daemon set. */ @ApiModel(description = "DaemonSetStatus represents the current status of a daemon set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DaemonSetStatus { - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("currentNumberScheduled") - private Integer currentNumberScheduled = null; + public static final String SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED = "currentNumberScheduled"; + @SerializedName(SERIALIZED_NAME_CURRENT_NUMBER_SCHEDULED) + private Integer currentNumberScheduled; + + public static final String SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED = "desiredNumberScheduled"; + @SerializedName(SERIALIZED_NAME_DESIRED_NUMBER_SCHEDULED) + private Integer desiredNumberScheduled; - @SerializedName("desiredNumberScheduled") - private Integer desiredNumberScheduled = null; + public static final String SERIALIZED_NAME_NUMBER_AVAILABLE = "numberAvailable"; + @SerializedName(SERIALIZED_NAME_NUMBER_AVAILABLE) + private Integer numberAvailable; - @SerializedName("numberAvailable") - private Integer numberAvailable = null; + public static final String SERIALIZED_NAME_NUMBER_MISSCHEDULED = "numberMisscheduled"; + @SerializedName(SERIALIZED_NAME_NUMBER_MISSCHEDULED) + private Integer numberMisscheduled; - @SerializedName("numberMisscheduled") - private Integer numberMisscheduled = null; + public static final String SERIALIZED_NAME_NUMBER_READY = "numberReady"; + @SerializedName(SERIALIZED_NAME_NUMBER_READY) + private Integer numberReady; - @SerializedName("numberReady") - private Integer numberReady = null; + public static final String SERIALIZED_NAME_NUMBER_UNAVAILABLE = "numberUnavailable"; + @SerializedName(SERIALIZED_NAME_NUMBER_UNAVAILABLE) + private Integer numberUnavailable; - @SerializedName("numberUnavailable") - private Integer numberUnavailable = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED = "updatedNumberScheduled"; + @SerializedName(SERIALIZED_NAME_UPDATED_NUMBER_SCHEDULED) + private Integer updatedNumberScheduled; - @SerializedName("updatedNumberScheduled") - private Integer updatedNumberScheduled = null; public V1beta2DaemonSetStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -71,16 +86,22 @@ public V1beta2DaemonSetStatus collisionCount(Integer collisionCount) { * Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the DaemonSet. The DaemonSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1beta2DaemonSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -97,16 +118,22 @@ public V1beta2DaemonSetStatus addConditionsItem(V1beta2DaemonSetCondition condit * Represents the latest available observations of a DaemonSet's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a DaemonSet's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta2DaemonSetStatus currentNumberScheduled(Integer currentNumberScheduled) { + this.currentNumberScheduled = currentNumberScheduled; return this; } @@ -116,15 +143,20 @@ public V1beta2DaemonSetStatus currentNumberScheduled(Integer currentNumberSchedu * @return currentNumberScheduled **/ @ApiModelProperty(required = true, value = "The number of nodes that are running at least 1 daemon pod and are supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getCurrentNumberScheduled() { return currentNumberScheduled; } + + public void setCurrentNumberScheduled(Integer currentNumberScheduled) { this.currentNumberScheduled = currentNumberScheduled; } + public V1beta2DaemonSetStatus desiredNumberScheduled(Integer desiredNumberScheduled) { + this.desiredNumberScheduled = desiredNumberScheduled; return this; } @@ -134,15 +166,20 @@ public V1beta2DaemonSetStatus desiredNumberScheduled(Integer desiredNumberSchedu * @return desiredNumberScheduled **/ @ApiModelProperty(required = true, value = "The total number of nodes that should be running the daemon pod (including nodes correctly running the daemon pod). More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getDesiredNumberScheduled() { return desiredNumberScheduled; } + + public void setDesiredNumberScheduled(Integer desiredNumberScheduled) { this.desiredNumberScheduled = desiredNumberScheduled; } + public V1beta2DaemonSetStatus numberAvailable(Integer numberAvailable) { + this.numberAvailable = numberAvailable; return this; } @@ -151,16 +188,22 @@ public V1beta2DaemonSetStatus numberAvailable(Integer numberAvailable) { * The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberAvailable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and available (ready for at least spec.minReadySeconds)") + public Integer getNumberAvailable() { return numberAvailable; } + + public void setNumberAvailable(Integer numberAvailable) { this.numberAvailable = numberAvailable; } + public V1beta2DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { + this.numberMisscheduled = numberMisscheduled; return this; } @@ -170,15 +213,20 @@ public V1beta2DaemonSetStatus numberMisscheduled(Integer numberMisscheduled) { * @return numberMisscheduled **/ @ApiModelProperty(required = true, value = "The number of nodes that are running the daemon pod, but are not supposed to run the daemon pod. More info: https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/") + public Integer getNumberMisscheduled() { return numberMisscheduled; } + + public void setNumberMisscheduled(Integer numberMisscheduled) { this.numberMisscheduled = numberMisscheduled; } + public V1beta2DaemonSetStatus numberReady(Integer numberReady) { + this.numberReady = numberReady; return this; } @@ -188,15 +236,20 @@ public V1beta2DaemonSetStatus numberReady(Integer numberReady) { * @return numberReady **/ @ApiModelProperty(required = true, value = "The number of nodes that should be running the daemon pod and have one or more of the daemon pod running and ready.") + public Integer getNumberReady() { return numberReady; } + + public void setNumberReady(Integer numberReady) { this.numberReady = numberReady; } + public V1beta2DaemonSetStatus numberUnavailable(Integer numberUnavailable) { + this.numberUnavailable = numberUnavailable; return this; } @@ -205,16 +258,22 @@ public V1beta2DaemonSetStatus numberUnavailable(Integer numberUnavailable) { * The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds) * @return numberUnavailable **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of nodes that should be running the daemon pod and have none of the daemon pod running and available (ready for at least spec.minReadySeconds)") + public Integer getNumberUnavailable() { return numberUnavailable; } + + public void setNumberUnavailable(Integer numberUnavailable) { this.numberUnavailable = numberUnavailable; } + public V1beta2DaemonSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -223,16 +282,22 @@ public V1beta2DaemonSetStatus observedGeneration(Long observedGeneration) { * The most recent generation observed by the daemon set controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The most recent generation observed by the daemon set controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta2DaemonSetStatus updatedNumberScheduled(Integer updatedNumberScheduled) { + this.updatedNumberScheduled = updatedNumberScheduled; return this; } @@ -241,11 +306,15 @@ public V1beta2DaemonSetStatus updatedNumberScheduled(Integer updatedNumberSchedu * The total number of nodes that are running updated daemon pod * @return updatedNumberScheduled **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The total number of nodes that are running updated daemon pod") + public Integer getUpdatedNumberScheduled() { return updatedNumberScheduled; } + + public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { this.updatedNumberScheduled = updatedNumberScheduled; } @@ -253,28 +322,12 @@ public void setUpdatedNumberScheduled(Integer updatedNumberScheduled) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DaemonSetStatus v1beta2DaemonSetStatus = (V1beta2DaemonSetStatus) o; - return Objects.equals(this.collisionCount, v1beta2DaemonSetStatus.collisionCount) && - Objects.equals(this.conditions, v1beta2DaemonSetStatus.conditions) && - Objects.equals(this.currentNumberScheduled, v1beta2DaemonSetStatus.currentNumberScheduled) && - Objects.equals(this.desiredNumberScheduled, v1beta2DaemonSetStatus.desiredNumberScheduled) && - Objects.equals(this.numberAvailable, v1beta2DaemonSetStatus.numberAvailable) && - Objects.equals(this.numberMisscheduled, v1beta2DaemonSetStatus.numberMisscheduled) && - Objects.equals(this.numberReady, v1beta2DaemonSetStatus.numberReady) && - Objects.equals(this.numberUnavailable, v1beta2DaemonSetStatus.numberUnavailable) && - Objects.equals(this.observedGeneration, v1beta2DaemonSetStatus.observedGeneration) && - Objects.equals(this.updatedNumberScheduled, v1beta2DaemonSetStatus.updatedNumberScheduled); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(collisionCount, conditions, currentNumberScheduled, desiredNumberScheduled, numberAvailable, numberMisscheduled, numberReady, numberUnavailable, observedGeneration, updatedNumberScheduled); + return HashCodeBuilder.reflectionHashCode(this); } @@ -282,7 +335,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DaemonSetStatus {\n"); - sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentNumberScheduled: ").append(toIndentedString(currentNumberScheduled)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategy.java index d0df06813c..83d1089cd6 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet. */ @ApiModel(description = "DaemonSetUpdateStrategy is a struct used to control the update strategy for a DaemonSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DaemonSetUpdateStrategy { - @SerializedName("rollingUpdate") - private V1beta2RollingUpdateDaemonSet rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1beta2RollingUpdateDaemonSet rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2DaemonSetUpdateStrategy rollingUpdate(V1beta2RollingUpdateDaemonSet rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if type = \"RollingUpdate\". + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if type = \"RollingUpdate\".") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2RollingUpdateDaemonSet getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1beta2RollingUpdateDaemonSet rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1beta2DaemonSetUpdateStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1beta2DaemonSetUpdateStrategy type(String type) { * Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of daemon set update. Can be \"RollingUpdate\" or \"OnDelete\". Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DaemonSetUpdateStrategy v1beta2DaemonSetUpdateStrategy = (V1beta2DaemonSetUpdateStrategy) o; - return Objects.equals(this.rollingUpdate, v1beta2DaemonSetUpdateStrategy.rollingUpdate) && - Objects.equals(this.type, v1beta2DaemonSetUpdateStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DaemonSetUpdateStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Deployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Deployment.java index 32b7a99b57..c5a7da2be5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Deployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Deployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets. */ @ApiModel(description = "DEPRECATED - This group version of Deployment is deprecated by apps/v1/Deployment. See the release notes for more information. Deployment enables declarative updates for Pods and ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2Deployment { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta2DeploymentSpec spec; - @SerializedName("spec") - private V1beta2DeploymentSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta2DeploymentStatus status; - @SerializedName("status") - private V1beta2DeploymentStatus status = null; public V1beta2Deployment apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta2Deployment apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2Deployment kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta2Deployment kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2Deployment metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta2Deployment spec(V1beta2DeploymentSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the Deployment. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DeploymentSpec getSpec() { return spec; } + + public void setSpec(V1beta2DeploymentSpec spec) { this.spec = spec; } + public V1beta2Deployment status(V1beta2DeploymentStatus status) { + this.status = status; return this; } /** - * Most recently observed status of the Deployment. + * Get status * @return status **/ - @ApiModelProperty(value = "Most recently observed status of the Deployment.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DeploymentStatus getStatus() { return status; } + + public void setStatus(V1beta2DeploymentStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta2DeploymentStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2Deployment v1beta2Deployment = (V1beta2Deployment) o; - return Objects.equals(this.apiVersion, v1beta2Deployment.apiVersion) && - Objects.equals(this.kind, v1beta2Deployment.kind) && - Objects.equals(this.metadata, v1beta2Deployment.metadata) && - Objects.equals(this.spec, v1beta2Deployment.spec) && - Objects.equals(this.status, v1beta2Deployment.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2Deployment {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentCondition.java index f7c7c66c8b..f00fc1a9a0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,27 +31,35 @@ * DeploymentCondition describes the state of a deployment at a certain point. */ @ApiModel(description = "DeploymentCondition describes the state of a deployment at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DeploymentCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_LAST_UPDATE_TIME = "lastUpdateTime"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATE_TIME) + private DateTime lastUpdateTime; - @SerializedName("lastUpdateTime") - private DateTime lastUpdateTime = null; + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2DeploymentCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -57,16 +68,22 @@ public V1beta2DeploymentCondition lastTransitionTime(DateTime lastTransitionTime * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta2DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { + this.lastUpdateTime = lastUpdateTime; return this; } @@ -75,16 +92,22 @@ public V1beta2DeploymentCondition lastUpdateTime(DateTime lastUpdateTime) { * The last time this condition was updated. * @return lastUpdateTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time this condition was updated.") + public DateTime getLastUpdateTime() { return lastUpdateTime; } + + public void setLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; } + public V1beta2DeploymentCondition message(String message) { + this.message = message; return this; } @@ -93,16 +116,22 @@ public V1beta2DeploymentCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta2DeploymentCondition reason(String reason) { + this.reason = reason; return this; } @@ -111,16 +140,22 @@ public V1beta2DeploymentCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta2DeploymentCondition status(String status) { + this.status = status; return this; } @@ -130,15 +165,20 @@ public V1beta2DeploymentCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta2DeploymentCondition type(String type) { + this.type = type; return this; } @@ -148,10 +188,13 @@ public V1beta2DeploymentCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of deployment condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -159,24 +202,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DeploymentCondition v1beta2DeploymentCondition = (V1beta2DeploymentCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta2DeploymentCondition.lastTransitionTime) && - Objects.equals(this.lastUpdateTime, v1beta2DeploymentCondition.lastUpdateTime) && - Objects.equals(this.message, v1beta2DeploymentCondition.message) && - Objects.equals(this.reason, v1beta2DeploymentCondition.reason) && - Objects.equals(this.status, v1beta2DeploymentCondition.status) && - Objects.equals(this.type, v1beta2DeploymentCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, lastUpdateTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -184,7 +215,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeploymentCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" lastUpdateTime: ").append(toIndentedString(lastUpdateTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentList.java index 2c1b698956..2d506a7ae2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * DeploymentList is a list of Deployments. */ @ApiModel(description = "DeploymentList is a list of Deployments.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DeploymentList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta2DeploymentList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta2DeploymentList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2DeploymentList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta2DeploymentList addItemsItem(V1beta2Deployment itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "Items is the list of Deployments.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta2DeploymentList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta2DeploymentList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2DeploymentList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DeploymentList v1beta2DeploymentList = (V1beta2DeploymentList) o; - return Objects.equals(this.apiVersion, v1beta2DeploymentList.apiVersion) && - Objects.equals(this.items, v1beta2DeploymentList.items) && - Objects.equals(this.kind, v1beta2DeploymentList.kind) && - Objects.equals(this.metadata, v1beta2DeploymentList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeploymentList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentSpec.java index 3b3fbe3c22..adad94da79 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * DeploymentSpec is the specification of the desired behavior of the Deployment. */ @ApiModel(description = "DeploymentSpec is the specification of the desired behavior of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DeploymentSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_PAUSED = "paused"; + @SerializedName(SERIALIZED_NAME_PAUSED) + private Boolean paused; - @SerializedName("paused") - private Boolean paused = null; + public static final String SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS = "progressDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_PROGRESS_DEADLINE_SECONDS) + private Integer progressDeadlineSeconds; - @SerializedName("progressDeadlineSeconds") - private Integer progressDeadlineSeconds = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_STRATEGY = "strategy"; + @SerializedName(SERIALIZED_NAME_STRATEGY) + private V1beta2DeploymentStrategy strategy; - @SerializedName("strategy") - private V1beta2DeploymentStrategy strategy = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public V1beta2DeploymentSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -65,16 +78,22 @@ public V1beta2DeploymentSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1beta2DeploymentSpec paused(Boolean paused) { + this.paused = paused; return this; } @@ -83,16 +102,22 @@ public V1beta2DeploymentSpec paused(Boolean paused) { * Indicates that the deployment is paused. * @return paused **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Indicates that the deployment is paused.") - public Boolean isPaused() { + + public Boolean getPaused() { return paused; } + + public void setPaused(Boolean paused) { this.paused = paused; } + public V1beta2DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSeconds) { + this.progressDeadlineSeconds = progressDeadlineSeconds; return this; } @@ -101,16 +126,22 @@ public V1beta2DeploymentSpec progressDeadlineSeconds(Integer progressDeadlineSec * The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s. * @return progressDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that progress will not be estimated during the time a deployment is paused. Defaults to 600s.") + public Integer getProgressDeadlineSeconds() { return progressDeadlineSeconds; } + + public void setProgressDeadlineSeconds(Integer progressDeadlineSeconds) { this.progressDeadlineSeconds = progressDeadlineSeconds; } + public V1beta2DeploymentSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -119,16 +150,22 @@ public V1beta2DeploymentSpec replicas(Integer replicas) { * Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta2DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -137,65 +174,85 @@ public V1beta2DeploymentSpec revisionHistoryLimit(Integer revisionHistoryLimit) * The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1beta2DeploymentSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels. + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. It must match the pod template's labels.") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta2DeploymentSpec strategy(V1beta2DeploymentStrategy strategy) { + this.strategy = strategy; return this; } /** - * The deployment strategy to use to replace existing pods with new ones. + * Get strategy * @return strategy **/ - @ApiModelProperty(value = "The deployment strategy to use to replace existing pods with new ones.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2DeploymentStrategy getStrategy() { return strategy; } + + public void setStrategy(V1beta2DeploymentStrategy strategy) { this.strategy = strategy; } + public V1beta2DeploymentSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template describes the pods that will be created. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "Template describes the pods that will be created.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -203,26 +260,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DeploymentSpec v1beta2DeploymentSpec = (V1beta2DeploymentSpec) o; - return Objects.equals(this.minReadySeconds, v1beta2DeploymentSpec.minReadySeconds) && - Objects.equals(this.paused, v1beta2DeploymentSpec.paused) && - Objects.equals(this.progressDeadlineSeconds, v1beta2DeploymentSpec.progressDeadlineSeconds) && - Objects.equals(this.replicas, v1beta2DeploymentSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, v1beta2DeploymentSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1beta2DeploymentSpec.selector) && - Objects.equals(this.strategy, v1beta2DeploymentSpec.strategy) && - Objects.equals(this.template, v1beta2DeploymentSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, paused, progressDeadlineSeconds, replicas, revisionHistoryLimit, selector, strategy, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -230,7 +273,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeploymentSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" paused: ").append(toIndentedString(paused)).append("\n"); sb.append(" progressDeadlineSeconds: ").append(toIndentedString(progressDeadlineSeconds)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStatus.java index b14350b774..18922e8439 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,33 +33,43 @@ * DeploymentStatus is the most recently observed status of the Deployment. */ @ApiModel(description = "DeploymentStatus is the most recently observed status of the Deployment.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DeploymentStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; + + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UNAVAILABLE_REPLICAS = "unavailableReplicas"; + @SerializedName(SERIALIZED_NAME_UNAVAILABLE_REPLICAS) + private Integer unavailableReplicas; - @SerializedName("unavailableReplicas") - private Integer unavailableReplicas = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public V1beta2DeploymentStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -65,16 +78,22 @@ public V1beta2DeploymentStatus availableReplicas(Integer availableReplicas) { * Total number of available pods (ready for at least minReadySeconds) targeted by this deployment. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public V1beta2DeploymentStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -83,16 +102,22 @@ public V1beta2DeploymentStatus collisionCount(Integer collisionCount) { * Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Count of hash collisions for the Deployment. The Deployment controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ReplicaSet.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1beta2DeploymentStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -109,16 +134,22 @@ public V1beta2DeploymentStatus addConditionsItem(V1beta2DeploymentCondition cond * Represents the latest available observations of a deployment's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a deployment's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta2DeploymentStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -127,16 +158,22 @@ public V1beta2DeploymentStatus observedGeneration(Long observedGeneration) { * The generation observed by the deployment controller. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The generation observed by the deployment controller.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta2DeploymentStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -145,16 +182,22 @@ public V1beta2DeploymentStatus readyReplicas(Integer readyReplicas) { * Total number of ready pods targeted by this deployment. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of ready pods targeted by this deployment.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1beta2DeploymentStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -163,16 +206,22 @@ public V1beta2DeploymentStatus replicas(Integer replicas) { * Total number of non-terminated pods targeted by this deployment (their labels match the selector). * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment (their labels match the selector).") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta2DeploymentStatus unavailableReplicas(Integer unavailableReplicas) { + this.unavailableReplicas = unavailableReplicas; return this; } @@ -181,16 +230,22 @@ public V1beta2DeploymentStatus unavailableReplicas(Integer unavailableReplicas) * Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created. * @return unavailableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of unavailable pods targeted by this deployment. This is the total number of pods that are still required for the deployment to have 100% available capacity. They may either be pods that are running but not yet available or pods that still have not been created.") + public Integer getUnavailableReplicas() { return unavailableReplicas; } + + public void setUnavailableReplicas(Integer unavailableReplicas) { this.unavailableReplicas = unavailableReplicas; } + public V1beta2DeploymentStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -199,11 +254,15 @@ public V1beta2DeploymentStatus updatedReplicas(Integer updatedReplicas) { * Total number of non-terminated pods targeted by this deployment that have the desired template spec. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Total number of non-terminated pods targeted by this deployment that have the desired template spec.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -211,26 +270,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DeploymentStatus v1beta2DeploymentStatus = (V1beta2DeploymentStatus) o; - return Objects.equals(this.availableReplicas, v1beta2DeploymentStatus.availableReplicas) && - Objects.equals(this.collisionCount, v1beta2DeploymentStatus.collisionCount) && - Objects.equals(this.conditions, v1beta2DeploymentStatus.conditions) && - Objects.equals(this.observedGeneration, v1beta2DeploymentStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1beta2DeploymentStatus.readyReplicas) && - Objects.equals(this.replicas, v1beta2DeploymentStatus.replicas) && - Objects.equals(this.unavailableReplicas, v1beta2DeploymentStatus.unavailableReplicas) && - Objects.equals(this.updatedReplicas, v1beta2DeploymentStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, collisionCount, conditions, observedGeneration, readyReplicas, replicas, unavailableReplicas, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -238,7 +283,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeploymentStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStrategy.java index e1e7fc9360..05fd39824e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2DeploymentStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * DeploymentStrategy describes how to replace existing pods with new ones. */ @ApiModel(description = "DeploymentStrategy describes how to replace existing pods with new ones.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2DeploymentStrategy { - @SerializedName("rollingUpdate") - private V1beta2RollingUpdateDeployment rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1beta2RollingUpdateDeployment rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2DeploymentStrategy rollingUpdate(V1beta2RollingUpdateDeployment rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "Rolling update config params. Present only if DeploymentStrategyType = RollingUpdate.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2RollingUpdateDeployment getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1beta2RollingUpdateDeployment rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1beta2DeploymentStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1beta2DeploymentStrategy type(String type) { * Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type of deployment. Can be \"Recreate\" or \"RollingUpdate\". Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2DeploymentStrategy v1beta2DeploymentStrategy = (V1beta2DeploymentStrategy) o; - return Objects.equals(this.rollingUpdate, v1beta2DeploymentStrategy.rollingUpdate) && - Objects.equals(this.type, v1beta2DeploymentStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2DeploymentStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSet.java index 9e486f7981..ce51afc77c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time. */ @ApiModel(description = "DEPRECATED - This group version of ReplicaSet is deprecated by apps/v1/ReplicaSet. See the release notes for more information. ReplicaSet ensures that a specified number of pod replicas are running at any given time.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ReplicaSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta2ReplicaSetSpec spec; - @SerializedName("spec") - private V1beta2ReplicaSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta2ReplicaSetStatus status; - @SerializedName("status") - private V1beta2ReplicaSetStatus status = null; public V1beta2ReplicaSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta2ReplicaSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2ReplicaSet kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta2ReplicaSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2ReplicaSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "If the Labels of a ReplicaSet are empty, they are defaulted to be the same as the Pod(s) that the ReplicaSet manages. Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta2ReplicaSet spec(V1beta2ReplicaSetSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the specification of the desired behavior of the ReplicaSet. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2ReplicaSetSpec getSpec() { return spec; } + + public void setSpec(V1beta2ReplicaSetSpec spec) { this.spec = spec; } + public V1beta2ReplicaSet status(V1beta2ReplicaSetStatus status) { + this.status = status; return this; } /** - * Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the most recently observed status of the ReplicaSet. This data may be out of date by some window of time. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2ReplicaSetStatus getStatus() { return status; } + + public void setStatus(V1beta2ReplicaSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta2ReplicaSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ReplicaSet v1beta2ReplicaSet = (V1beta2ReplicaSet) o; - return Objects.equals(this.apiVersion, v1beta2ReplicaSet.apiVersion) && - Objects.equals(this.kind, v1beta2ReplicaSet.kind) && - Objects.equals(this.metadata, v1beta2ReplicaSet.metadata) && - Objects.equals(this.spec, v1beta2ReplicaSet.spec) && - Objects.equals(this.status, v1beta2ReplicaSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ReplicaSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetCondition.java index 7007a89534..e0125a3cab 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * ReplicaSetCondition describes the state of a replica set at a certain point. */ @ApiModel(description = "ReplicaSetCondition describes the state of a replica set at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ReplicaSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta2ReplicaSetCondition lastTransitionTime(DateTime lastTransitionTime * The last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta2ReplicaSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta2ReplicaSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta2ReplicaSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta2ReplicaSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta2ReplicaSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta2ReplicaSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta2ReplicaSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta2ReplicaSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of replica set condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ReplicaSetCondition v1beta2ReplicaSetCondition = (V1beta2ReplicaSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta2ReplicaSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta2ReplicaSetCondition.message) && - Objects.equals(this.reason, v1beta2ReplicaSetCondition.reason) && - Objects.equals(this.status, v1beta2ReplicaSetCondition.status) && - Objects.equals(this.type, v1beta2ReplicaSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ReplicaSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetList.java index 317a0230d3..ed6f75c841 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * ReplicaSetList is a collection of ReplicaSets. */ @ApiModel(description = "ReplicaSetList is a collection of ReplicaSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ReplicaSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta2ReplicaSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta2ReplicaSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2ReplicaSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta2ReplicaSetList addItemsItem(V1beta2ReplicaSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "List of ReplicaSets. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta2ReplicaSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V1beta2ReplicaSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2ReplicaSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ReplicaSetList v1beta2ReplicaSetList = (V1beta2ReplicaSetList) o; - return Objects.equals(this.apiVersion, v1beta2ReplicaSetList.apiVersion) && - Objects.equals(this.items, v1beta2ReplicaSetList.items) && - Objects.equals(this.kind, v1beta2ReplicaSetList.kind) && - Objects.equals(this.metadata, v1beta2ReplicaSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ReplicaSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetSpec.java index bb04aa4ae3..8b3b8cb60c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * ReplicaSetSpec is the specification of a ReplicaSet. */ @ApiModel(description = "ReplicaSetSpec is the specification of a ReplicaSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ReplicaSetSpec { - @SerializedName("minReadySeconds") - private Integer minReadySeconds = null; + public static final String SERIALIZED_NAME_MIN_READY_SECONDS = "minReadySeconds"; + @SerializedName(SERIALIZED_NAME_MIN_READY_SECONDS) + private Integer minReadySeconds; + + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("template") - private V1PodTemplateSpec template = null; public V1beta2ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { + this.minReadySeconds = minReadySeconds; return this; } @@ -52,16 +61,22 @@ public V1beta2ReplicaSetSpec minReadySeconds(Integer minReadySeconds) { * Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready) * @return minReadySeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Defaults to 0 (pod will be considered available as soon as it is ready)") + public Integer getMinReadySeconds() { return minReadySeconds; } + + public void setMinReadySeconds(Integer minReadySeconds) { this.minReadySeconds = minReadySeconds; } + public V1beta2ReplicaSetSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -70,47 +85,62 @@ public V1beta2ReplicaSetSpec replicas(Integer replicas) { * Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Replicas is the number of desired replicas. This is a pointer to distinguish between explicit zero and unspecified. Defaults to 1. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta2ReplicaSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "Selector is a label query over pods that should match the replica count. Label keys and values that must match in order to be controlled by this replica set. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta2ReplicaSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template + * Get template * @return template **/ - @ApiModelProperty(value = "Template is the object that describes the pod that will be created if insufficient replicas are detected. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller#pod-template") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } @@ -118,22 +148,12 @@ public void setTemplate(V1PodTemplateSpec template) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ReplicaSetSpec v1beta2ReplicaSetSpec = (V1beta2ReplicaSetSpec) o; - return Objects.equals(this.minReadySeconds, v1beta2ReplicaSetSpec.minReadySeconds) && - Objects.equals(this.replicas, v1beta2ReplicaSetSpec.replicas) && - Objects.equals(this.selector, v1beta2ReplicaSetSpec.selector) && - Objects.equals(this.template, v1beta2ReplicaSetSpec.template); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(minReadySeconds, replicas, selector, template); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ReplicaSetSpec {\n"); - sb.append(" minReadySeconds: ").append(toIndentedString(minReadySeconds)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetStatus.java index 99bbaf3e15..ae9a7f7fb5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ReplicaSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,27 +33,35 @@ * ReplicaSetStatus represents the current status of a ReplicaSet. */ @ApiModel(description = "ReplicaSetStatus represents the current status of a ReplicaSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ReplicaSetStatus { - @SerializedName("availableReplicas") - private Integer availableReplicas = null; + public static final String SERIALIZED_NAME_AVAILABLE_REPLICAS = "availableReplicas"; + @SerializedName(SERIALIZED_NAME_AVAILABLE_REPLICAS) + private Integer availableReplicas; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("fullyLabeledReplicas") - private Integer fullyLabeledReplicas = null; + public static final String SERIALIZED_NAME_FULLY_LABELED_REPLICAS = "fullyLabeledReplicas"; + @SerializedName(SERIALIZED_NAME_FULLY_LABELED_REPLICAS) + private Integer fullyLabeledReplicas; + + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; public V1beta2ReplicaSetStatus availableReplicas(Integer availableReplicas) { + this.availableReplicas = availableReplicas; return this; } @@ -59,16 +70,22 @@ public V1beta2ReplicaSetStatus availableReplicas(Integer availableReplicas) { * The number of available replicas (ready for at least minReadySeconds) for this replica set. * @return availableReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of available replicas (ready for at least minReadySeconds) for this replica set.") + public Integer getAvailableReplicas() { return availableReplicas; } + + public void setAvailableReplicas(Integer availableReplicas) { this.availableReplicas = availableReplicas; } + public V1beta2ReplicaSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -85,16 +102,22 @@ public V1beta2ReplicaSetStatus addConditionsItem(V1beta2ReplicaSetCondition cond * Represents the latest available observations of a replica set's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a replica set's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta2ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas) { + this.fullyLabeledReplicas = fullyLabeledReplicas; return this; } @@ -103,16 +126,22 @@ public V1beta2ReplicaSetStatus fullyLabeledReplicas(Integer fullyLabeledReplicas * The number of pods that have labels matching the labels of the pod template of the replicaset. * @return fullyLabeledReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of pods that have labels matching the labels of the pod template of the replicaset.") + public Integer getFullyLabeledReplicas() { return fullyLabeledReplicas; } + + public void setFullyLabeledReplicas(Integer fullyLabeledReplicas) { this.fullyLabeledReplicas = fullyLabeledReplicas; } + public V1beta2ReplicaSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -121,16 +150,22 @@ public V1beta2ReplicaSetStatus observedGeneration(Long observedGeneration) { * ObservedGeneration reflects the generation of the most recently observed ReplicaSet. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "ObservedGeneration reflects the generation of the most recently observed ReplicaSet.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta2ReplicaSetStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -139,16 +174,22 @@ public V1beta2ReplicaSetStatus readyReplicas(Integer readyReplicas) { * The number of ready replicas for this replica set. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of ready replicas for this replica set.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1beta2ReplicaSetStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -158,10 +199,13 @@ public V1beta2ReplicaSetStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "Replicas is the most recently oberved number of replicas. More info: https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/#what-is-a-replicationcontroller") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -169,24 +213,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ReplicaSetStatus v1beta2ReplicaSetStatus = (V1beta2ReplicaSetStatus) o; - return Objects.equals(this.availableReplicas, v1beta2ReplicaSetStatus.availableReplicas) && - Objects.equals(this.conditions, v1beta2ReplicaSetStatus.conditions) && - Objects.equals(this.fullyLabeledReplicas, v1beta2ReplicaSetStatus.fullyLabeledReplicas) && - Objects.equals(this.observedGeneration, v1beta2ReplicaSetStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1beta2ReplicaSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1beta2ReplicaSetStatus.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(availableReplicas, conditions, fullyLabeledReplicas, observedGeneration, readyReplicas, replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -194,7 +226,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ReplicaSetStatus {\n"); - sb.append(" availableReplicas: ").append(toIndentedString(availableReplicas)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" fullyLabeledReplicas: ").append(toIndentedString(fullyLabeledReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSet.java index 10f66f7f82..6e94500d37 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,25 +31,32 @@ * Spec to control the desired behavior of daemon set rolling update. */ @ApiModel(description = "Spec to control the desired behavior of daemon set rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2RollingUpdateDaemonSet { - @SerializedName("maxUnavailable") - private IntOrString maxUnavailable = null; + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; + public V1beta2RollingUpdateDaemonSet maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of DaemonSet pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of total number of DaemonSet pods at the start of the update (ex: 10%). Absolute number is calculated from percentage by rounding up. This cannot be 0. Default value is 1. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their pods stopped for an update at any given time. The update starts by stopping at most 30% of those DaemonSet pods and then brings up new DaemonSet pods in their place. Once the new pods are available, it then proceeds onto other DaemonSet pods, thus ensuring that at least 70% of original number of DaemonSet pods are available at all times during the update.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxUnavailable() { return maxUnavailable; } + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -54,19 +64,12 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2RollingUpdateDaemonSet v1beta2RollingUpdateDaemonSet = (V1beta2RollingUpdateDaemonSet) o; - return Objects.equals(this.maxUnavailable, v1beta2RollingUpdateDaemonSet.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -74,7 +77,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2RollingUpdateDaemonSet {\n"); - sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDeployment.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDeployment.java index b4593bce8f..b0278c586f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDeployment.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateDeployment.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,46 +31,60 @@ * Spec to control the desired behavior of rolling update. */ @ApiModel(description = "Spec to control the desired behavior of rolling update.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2RollingUpdateDeployment { - @SerializedName("maxSurge") - private IntOrString maxSurge = null; + public static final String SERIALIZED_NAME_MAX_SURGE = "maxSurge"; + @SerializedName(SERIALIZED_NAME_MAX_SURGE) + private IntOrString maxSurge; + + public static final String SERIALIZED_NAME_MAX_UNAVAILABLE = "maxUnavailable"; + @SerializedName(SERIALIZED_NAME_MAX_UNAVAILABLE) + private IntOrString maxUnavailable; - @SerializedName("maxUnavailable") - private IntOrString maxUnavailable = null; public V1beta2RollingUpdateDeployment maxSurge(IntOrString maxSurge) { + this.maxSurge = maxSurge; return this; } /** - * The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxSurge **/ - @ApiModelProperty(value = "The maximum number of pods that can be scheduled above the desired number of pods. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up. Defaults to 25%. Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when the rolling update starts, such that the total number of old and new pods do not exceed 130% of desired pods. Once old pods have been killed, new ReplicaSet can be scaled up further, ensuring that total number of pods running at any time during the update is at most 130% of desired pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxSurge() { return maxSurge; } + + public void setMaxSurge(IntOrString maxSurge) { this.maxSurge = maxSurge; } + public V1beta2RollingUpdateDeployment maxUnavailable(IntOrString maxUnavailable) { + this.maxUnavailable = maxUnavailable; return this; } /** - * The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods. + * IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number. * @return maxUnavailable **/ - @ApiModelProperty(value = "The maximum number of pods that can be unavailable during the update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). Absolute number is calculated from percentage by rounding down. This can not be 0 if MaxSurge is 0. Defaults to 25%. Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods immediately when the rolling update starts. Once new pods are ready, old ReplicaSet can be scaled down further, followed by scaling up the new ReplicaSet, ensuring that the total number of pods available at all times during the update is at least 70% of desired pods.") + @javax.annotation.Nullable + @ApiModelProperty(value = "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.") + public IntOrString getMaxUnavailable() { return maxUnavailable; } + + public void setMaxUnavailable(IntOrString maxUnavailable) { this.maxUnavailable = maxUnavailable; } @@ -75,20 +92,12 @@ public void setMaxUnavailable(IntOrString maxUnavailable) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2RollingUpdateDeployment v1beta2RollingUpdateDeployment = (V1beta2RollingUpdateDeployment) o; - return Objects.equals(this.maxSurge, v1beta2RollingUpdateDeployment.maxSurge) && - Objects.equals(this.maxUnavailable, v1beta2RollingUpdateDeployment.maxUnavailable); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxSurge, maxUnavailable); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2RollingUpdateDeployment {\n"); - sb.append(" maxSurge: ").append(toIndentedString(maxSurge)).append("\n"); sb.append(" maxUnavailable: ").append(toIndentedString(maxUnavailable)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategy.java index 9fa31723a3..938419460a 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType. */ @ApiModel(description = "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2RollingUpdateStatefulSetStrategy { - @SerializedName("partition") - private Integer partition = null; + public static final String SERIALIZED_NAME_PARTITION = "partition"; + @SerializedName(SERIALIZED_NAME_PARTITION) + private Integer partition; + public V1beta2RollingUpdateStatefulSetStrategy partition(Integer partition) { + this.partition = partition; return this; } @@ -41,11 +47,15 @@ public V1beta2RollingUpdateStatefulSetStrategy partition(Integer partition) { * Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0. * @return partition **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.") + public Integer getPartition() { return partition; } + + public void setPartition(Integer partition) { this.partition = partition; } @@ -53,19 +63,12 @@ public void setPartition(Integer partition) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2RollingUpdateStatefulSetStrategy v1beta2RollingUpdateStatefulSetStrategy = (V1beta2RollingUpdateStatefulSetStrategy) o; - return Objects.equals(this.partition, v1beta2RollingUpdateStatefulSetStrategy.partition); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(partition); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2RollingUpdateStatefulSetStrategy {\n"); - sb.append(" partition: ").append(toIndentedString(partition)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Scale.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Scale.java index 45a0280f5a..8f6de8070c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Scale.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2Scale.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * Scale represents a scaling request for a resource. */ @ApiModel(description = "Scale represents a scaling request for a resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2Scale { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta2ScaleSpec spec; - @SerializedName("spec") - private V1beta2ScaleSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta2ScaleStatus status; - @SerializedName("status") - private V1beta2ScaleStatus status = null; public V1beta2Scale apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta2Scale apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2Scale kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V1beta2Scale kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2Scale metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta2Scale spec(V1beta2ScaleSpec spec) { + this.spec = spec; return this; } /** - * defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2ScaleSpec getSpec() { return spec; } + + public void setSpec(V1beta2ScaleSpec spec) { this.spec = spec; } + public V1beta2Scale status(V1beta2ScaleStatus status) { + this.status = status; return this; } /** - * current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only. + * Get status * @return status **/ - @ApiModelProperty(value = "current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2ScaleStatus getStatus() { return status; } + + public void setStatus(V1beta2ScaleStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta2ScaleStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2Scale v1beta2Scale = (V1beta2Scale) o; - return Objects.equals(this.apiVersion, v1beta2Scale.apiVersion) && - Objects.equals(this.kind, v1beta2Scale.kind) && - Objects.equals(this.metadata, v1beta2Scale.metadata) && - Objects.equals(this.spec, v1beta2Scale.spec) && - Objects.equals(this.status, v1beta2Scale.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2Scale {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleSpec.java index 16e9c59bfb..8b73a5d9dd 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,12 +30,15 @@ * ScaleSpec describes the attributes of a scale subresource */ @ApiModel(description = "ScaleSpec describes the attributes of a scale subresource") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ScaleSpec { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; + public V1beta2ScaleSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -41,11 +47,15 @@ public V1beta2ScaleSpec replicas(Integer replicas) { * desired number of instances for the scaled object. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "desired number of instances for the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } @@ -53,19 +63,12 @@ public void setReplicas(Integer replicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ScaleSpec v1beta2ScaleSpec = (V1beta2ScaleSpec) o; - return Objects.equals(this.replicas, v1beta2ScaleSpec.replicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -73,7 +76,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ScaleSpec {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleStatus.java index d9eb93293d..de89779494 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2ScaleStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * ScaleStatus represents the current status of a scale subresource. */ @ApiModel(description = "ScaleStatus represents the current status of a scale subresource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2ScaleStatus { - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("selector") + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) private Map selector = null; - @SerializedName("targetSelector") - private String targetSelector = null; + public static final String SERIALIZED_NAME_TARGET_SELECTOR = "targetSelector"; + @SerializedName(SERIALIZED_NAME_TARGET_SELECTOR) + private String targetSelector; + public V1beta2ScaleStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -51,15 +59,20 @@ public V1beta2ScaleStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "actual number of observed instances of the scaled object.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta2ScaleStatus selector(Map selector) { + this.selector = selector; return this; } @@ -76,16 +89,22 @@ public V1beta2ScaleStatus putSelectorItem(String key, String selectorItem) { * label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors * @return selector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label query over pods that should match the replicas count. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors") + public Map getSelector() { return selector; } + + public void setSelector(Map selector) { this.selector = selector; } + public V1beta2ScaleStatus targetSelector(String targetSelector) { + this.targetSelector = targetSelector; return this; } @@ -94,11 +113,15 @@ public V1beta2ScaleStatus targetSelector(String targetSelector) { * label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors * @return targetSelector **/ + @javax.annotation.Nullable @ApiModelProperty(value = "label selector for pods that should match the replicas count. This is a serializated version of both map-based and more expressive set-based selectors. This is done to avoid introspection in the clients. The string will be in the same format as the query-param syntax. If the target type only supports map-based selectors, both this field and map-based selector field are populated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + public String getTargetSelector() { return targetSelector; } + + public void setTargetSelector(String targetSelector) { this.targetSelector = targetSelector; } @@ -106,21 +129,12 @@ public void setTargetSelector(String targetSelector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2ScaleStatus v1beta2ScaleStatus = (V1beta2ScaleStatus) o; - return Objects.equals(this.replicas, v1beta2ScaleStatus.replicas) && - Objects.equals(this.selector, v1beta2ScaleStatus.selector) && - Objects.equals(this.targetSelector, v1beta2ScaleStatus.targetSelector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(replicas, selector, targetSelector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -128,7 +142,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2ScaleStatus {\n"); - sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" targetSelector: ").append(toIndentedString(targetSelector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSet.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSet.java index f08953aafd..621c6f7e70 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSet.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSet.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity. */ @ApiModel(description = "DEPRECATED - This group version of StatefulSet is deprecated by apps/v1/StatefulSet. See the release notes for more information. StatefulSet represents a set of pods with consistent identities. Identities are defined as: - Network: A single stable DNS and hostname. - Storage: As many VolumeClaims as requested. The StatefulSet guarantees that a given network identity will always map to the same storage identity.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2StatefulSet { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1beta2StatefulSetSpec spec; - @SerializedName("spec") - private V1beta2StatefulSetSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V1beta2StatefulSetStatus status; - @SerializedName("status") - private V1beta2StatefulSetStatus status = null; public V1beta2StatefulSet apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V1beta2StatefulSet apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2StatefulSet kind(String kind) { + this.kind = kind; return this; } @@ -74,16 +90,22 @@ public V1beta2StatefulSet kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2StatefulSet metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } @@ -92,47 +114,63 @@ public V1beta2StatefulSet metadata(V1ObjectMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V1beta2StatefulSet spec(V1beta2StatefulSetSpec spec) { + this.spec = spec; return this; } /** - * Spec defines the desired identities of pods in this set. + * Get spec * @return spec **/ - @ApiModelProperty(value = "Spec defines the desired identities of pods in this set.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2StatefulSetSpec getSpec() { return spec; } + + public void setSpec(V1beta2StatefulSetSpec spec) { this.spec = spec; } + public V1beta2StatefulSet status(V1beta2StatefulSetStatus status) { + this.status = status; return this; } /** - * Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time. + * Get status * @return status **/ - @ApiModelProperty(value = "Status is the current status of Pods in this StatefulSet. This data may be out of date by some window of time.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2StatefulSetStatus getStatus() { return status; } + + public void setStatus(V1beta2StatefulSetStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V1beta2StatefulSetStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2StatefulSet v1beta2StatefulSet = (V1beta2StatefulSet) o; - return Objects.equals(this.apiVersion, v1beta2StatefulSet.apiVersion) && - Objects.equals(this.kind, v1beta2StatefulSet.kind) && - Objects.equals(this.metadata, v1beta2StatefulSet.metadata) && - Objects.equals(this.spec, v1beta2StatefulSet.spec) && - Objects.equals(this.status, v1beta2StatefulSet.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2StatefulSet {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetCondition.java index a7a3604cdf..a3e59fc0a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * StatefulSetCondition describes the state of a statefulset at a certain point. */ @ApiModel(description = "StatefulSetCondition describes the state of a statefulset at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2StatefulSetCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2StatefulSetCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V1beta2StatefulSetCondition lastTransitionTime(DateTime lastTransitionTim * Last time the condition transitioned from one status to another. * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Last time the condition transitioned from one status to another.") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V1beta2StatefulSetCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V1beta2StatefulSetCondition message(String message) { * A human readable message indicating details about the transition. * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A human readable message indicating details about the transition.") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V1beta2StatefulSetCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V1beta2StatefulSetCondition reason(String reason) { * The reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V1beta2StatefulSetCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V1beta2StatefulSetCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "Status of the condition, one of True, False, Unknown.") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V1beta2StatefulSetCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V1beta2StatefulSetCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "Type of statefulset condition.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2StatefulSetCondition v1beta2StatefulSetCondition = (V1beta2StatefulSetCondition) o; - return Objects.equals(this.lastTransitionTime, v1beta2StatefulSetCondition.lastTransitionTime) && - Objects.equals(this.message, v1beta2StatefulSetCondition.message) && - Objects.equals(this.reason, v1beta2StatefulSetCondition.reason) && - Objects.equals(this.status, v1beta2StatefulSetCondition.status) && - Objects.equals(this.type, v1beta2StatefulSetCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2StatefulSetCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetList.java index afc16d0e69..7c8fe39d23 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * StatefulSetList is a collection of StatefulSets. */ @ApiModel(description = "StatefulSetList is a collection of StatefulSets.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2StatefulSetList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V1beta2StatefulSetList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V1beta2StatefulSetList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V1beta2StatefulSetList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V1beta2StatefulSetList addItemsItem(V1beta2StatefulSet itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V1beta2StatefulSetList kind(String kind) { + this.kind = kind; return this; } @@ -95,16 +115,22 @@ public V1beta2StatefulSetList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V1beta2StatefulSetList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } @@ -113,11 +139,15 @@ public V1beta2StatefulSetList metadata(V1ListMeta metadata) { * Get metadata * @return metadata **/ + @javax.annotation.Nullable @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2StatefulSetList v1beta2StatefulSetList = (V1beta2StatefulSetList) o; - return Objects.equals(this.apiVersion, v1beta2StatefulSetList.apiVersion) && - Objects.equals(this.items, v1beta2StatefulSetList.items) && - Objects.equals(this.kind, v1beta2StatefulSetList.kind) && - Objects.equals(this.metadata, v1beta2StatefulSetList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2StatefulSetList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetSpec.java index 41350e97ef..cfe744c17b 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -33,33 +36,43 @@ * A StatefulSetSpec is the specification of a StatefulSet. */ @ApiModel(description = "A StatefulSetSpec is the specification of a StatefulSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2StatefulSetSpec { - @SerializedName("podManagementPolicy") - private String podManagementPolicy = null; + public static final String SERIALIZED_NAME_POD_MANAGEMENT_POLICY = "podManagementPolicy"; + @SerializedName(SERIALIZED_NAME_POD_MANAGEMENT_POLICY) + private String podManagementPolicy; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("revisionHistoryLimit") - private Integer revisionHistoryLimit = null; + public static final String SERIALIZED_NAME_REVISION_HISTORY_LIMIT = "revisionHistoryLimit"; + @SerializedName(SERIALIZED_NAME_REVISION_HISTORY_LIMIT) + private Integer revisionHistoryLimit; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("serviceName") - private String serviceName = null; + public static final String SERIALIZED_NAME_SERVICE_NAME = "serviceName"; + @SerializedName(SERIALIZED_NAME_SERVICE_NAME) + private String serviceName; - @SerializedName("template") - private V1PodTemplateSpec template = null; + public static final String SERIALIZED_NAME_TEMPLATE = "template"; + @SerializedName(SERIALIZED_NAME_TEMPLATE) + private V1PodTemplateSpec template; - @SerializedName("updateStrategy") - private V1beta2StatefulSetUpdateStrategy updateStrategy = null; + public static final String SERIALIZED_NAME_UPDATE_STRATEGY = "updateStrategy"; + @SerializedName(SERIALIZED_NAME_UPDATE_STRATEGY) + private V1beta2StatefulSetUpdateStrategy updateStrategy; - @SerializedName("volumeClaimTemplates") + public static final String SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES = "volumeClaimTemplates"; + @SerializedName(SERIALIZED_NAME_VOLUME_CLAIM_TEMPLATES) private List volumeClaimTemplates = null; + public V1beta2StatefulSetSpec podManagementPolicy(String podManagementPolicy) { + this.podManagementPolicy = podManagementPolicy; return this; } @@ -68,16 +81,22 @@ public V1beta2StatefulSetSpec podManagementPolicy(String podManagementPolicy) { * podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once. * @return podManagementPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "podManagementPolicy controls how pods are created during initial scale up, when replacing pods on nodes, or when scaling down. The default policy is `OrderedReady`, where pods are created in increasing order (pod-0, then pod-1, etc) and the controller will wait until each pod is ready before continuing. When scaling down, the pods are removed in the opposite order. The alternative policy is `Parallel` which will create pods in parallel to match the desired scale without waiting, and on scale down will delete all pods at once.") + public String getPodManagementPolicy() { return podManagementPolicy; } + + public void setPodManagementPolicy(String podManagementPolicy) { this.podManagementPolicy = podManagementPolicy; } + public V1beta2StatefulSetSpec replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -86,16 +105,22 @@ public V1beta2StatefulSetSpec replicas(Integer replicas) { * replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1. * @return replicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "replicas is the desired number of replicas of the given Template. These are replicas in the sense that they are instantiations of the same Template, but individual replicas also have a consistent identity. If unspecified, defaults to 1.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta2StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) { + this.revisionHistoryLimit = revisionHistoryLimit; return this; } @@ -104,34 +129,45 @@ public V1beta2StatefulSetSpec revisionHistoryLimit(Integer revisionHistoryLimit) * revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10. * @return revisionHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "revisionHistoryLimit is the maximum number of revisions that will be maintained in the StatefulSet's revision history. The revision history consists of all revisions not represented by a currently applied StatefulSetSpec version. The default value is 10.") + public Integer getRevisionHistoryLimit() { return revisionHistoryLimit; } + + public void setRevisionHistoryLimit(Integer revisionHistoryLimit) { this.revisionHistoryLimit = revisionHistoryLimit; } + public V1beta2StatefulSetSpec selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors + * Get selector * @return selector **/ - @ApiModelProperty(required = true, value = "selector is a label query over pods that should match the replica count. It must match the pod template's labels. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors") + @ApiModelProperty(required = true, value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V1beta2StatefulSetSpec serviceName(String serviceName) { + this.serviceName = serviceName; return this; } @@ -141,51 +177,67 @@ public V1beta2StatefulSetSpec serviceName(String serviceName) { * @return serviceName **/ @ApiModelProperty(required = true, value = "serviceName is the name of the service that governs this StatefulSet. This service must exist before the StatefulSet, and is responsible for the network identity of the set. Pods get DNS/hostnames that follow the pattern: pod-specific-string.serviceName.default.svc.cluster.local where \"pod-specific-string\" is managed by the StatefulSet controller.") + public String getServiceName() { return serviceName; } + + public void setServiceName(String serviceName) { this.serviceName = serviceName; } + public V1beta2StatefulSetSpec template(V1PodTemplateSpec template) { + this.template = template; return this; } /** - * template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet. + * Get template * @return template **/ - @ApiModelProperty(required = true, value = "template is the object that describes the pod that will be created if insufficient replicas are detected. Each pod stamped out by the StatefulSet will fulfill this Template, but have a unique identity from the rest of the StatefulSet.") + @ApiModelProperty(required = true, value = "") + public V1PodTemplateSpec getTemplate() { return template; } + + public void setTemplate(V1PodTemplateSpec template) { this.template = template; } + public V1beta2StatefulSetSpec updateStrategy(V1beta2StatefulSetUpdateStrategy updateStrategy) { + this.updateStrategy = updateStrategy; return this; } /** - * updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template. + * Get updateStrategy * @return updateStrategy **/ - @ApiModelProperty(value = "updateStrategy indicates the StatefulSetUpdateStrategy that will be employed to update Pods in the StatefulSet when a revision is made to Template.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2StatefulSetUpdateStrategy getUpdateStrategy() { return updateStrategy; } + + public void setUpdateStrategy(V1beta2StatefulSetUpdateStrategy updateStrategy) { this.updateStrategy = updateStrategy; } + public V1beta2StatefulSetSpec volumeClaimTemplates(List volumeClaimTemplates) { + this.volumeClaimTemplates = volumeClaimTemplates; return this; } @@ -202,11 +254,15 @@ public V1beta2StatefulSetSpec addVolumeClaimTemplatesItem(V1PersistentVolumeClai * volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name. * @return volumeClaimTemplates **/ + @javax.annotation.Nullable @ApiModelProperty(value = "volumeClaimTemplates is a list of claims that pods are allowed to reference. The StatefulSet controller is responsible for mapping network identities to claims in a way that maintains the identity of a pod. Every claim in this list must have at least one matching (by name) volumeMount in one container in the template. A claim in this list takes precedence over any volumes in the template, with the same name.") + public List getVolumeClaimTemplates() { return volumeClaimTemplates; } + + public void setVolumeClaimTemplates(List volumeClaimTemplates) { this.volumeClaimTemplates = volumeClaimTemplates; } @@ -214,26 +270,12 @@ public void setVolumeClaimTemplates(List volumeClaimTem @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2StatefulSetSpec v1beta2StatefulSetSpec = (V1beta2StatefulSetSpec) o; - return Objects.equals(this.podManagementPolicy, v1beta2StatefulSetSpec.podManagementPolicy) && - Objects.equals(this.replicas, v1beta2StatefulSetSpec.replicas) && - Objects.equals(this.revisionHistoryLimit, v1beta2StatefulSetSpec.revisionHistoryLimit) && - Objects.equals(this.selector, v1beta2StatefulSetSpec.selector) && - Objects.equals(this.serviceName, v1beta2StatefulSetSpec.serviceName) && - Objects.equals(this.template, v1beta2StatefulSetSpec.template) && - Objects.equals(this.updateStrategy, v1beta2StatefulSetSpec.updateStrategy) && - Objects.equals(this.volumeClaimTemplates, v1beta2StatefulSetSpec.volumeClaimTemplates); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(podManagementPolicy, replicas, revisionHistoryLimit, selector, serviceName, template, updateStrategy, volumeClaimTemplates); + return HashCodeBuilder.reflectionHashCode(this); } @@ -241,7 +283,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2StatefulSetSpec {\n"); - sb.append(" podManagementPolicy: ").append(toIndentedString(podManagementPolicy)).append("\n"); sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n"); sb.append(" revisionHistoryLimit: ").append(toIndentedString(revisionHistoryLimit)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetStatus.java index 8f7bfd66d9..2781faf196 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,36 +33,47 @@ * StatefulSetStatus represents the current state of a StatefulSet. */ @ApiModel(description = "StatefulSetStatus represents the current state of a StatefulSet.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2StatefulSetStatus { - @SerializedName("collisionCount") - private Integer collisionCount = null; + public static final String SERIALIZED_NAME_COLLISION_COUNT = "collisionCount"; + @SerializedName(SERIALIZED_NAME_COLLISION_COUNT) + private Integer collisionCount; - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = null; - @SerializedName("currentReplicas") - private Integer currentReplicas = null; + public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; + @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + private Integer currentReplicas; + + public static final String SERIALIZED_NAME_CURRENT_REVISION = "currentRevision"; + @SerializedName(SERIALIZED_NAME_CURRENT_REVISION) + private String currentRevision; - @SerializedName("currentRevision") - private String currentRevision = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; + public static final String SERIALIZED_NAME_READY_REPLICAS = "readyReplicas"; + @SerializedName(SERIALIZED_NAME_READY_REPLICAS) + private Integer readyReplicas; - @SerializedName("readyReplicas") - private Integer readyReplicas = null; + public static final String SERIALIZED_NAME_REPLICAS = "replicas"; + @SerializedName(SERIALIZED_NAME_REPLICAS) + private Integer replicas; - @SerializedName("replicas") - private Integer replicas = null; + public static final String SERIALIZED_NAME_UPDATE_REVISION = "updateRevision"; + @SerializedName(SERIALIZED_NAME_UPDATE_REVISION) + private String updateRevision; - @SerializedName("updateRevision") - private String updateRevision = null; + public static final String SERIALIZED_NAME_UPDATED_REPLICAS = "updatedReplicas"; + @SerializedName(SERIALIZED_NAME_UPDATED_REPLICAS) + private Integer updatedReplicas; - @SerializedName("updatedReplicas") - private Integer updatedReplicas = null; public V1beta2StatefulSetStatus collisionCount(Integer collisionCount) { + this.collisionCount = collisionCount; return this; } @@ -68,16 +82,22 @@ public V1beta2StatefulSetStatus collisionCount(Integer collisionCount) { * collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision. * @return collisionCount **/ + @javax.annotation.Nullable @ApiModelProperty(value = "collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller uses this field as a collision avoidance mechanism when it needs to create the name for the newest ControllerRevision.") + public Integer getCollisionCount() { return collisionCount; } + + public void setCollisionCount(Integer collisionCount) { this.collisionCount = collisionCount; } + public V1beta2StatefulSetStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -94,16 +114,22 @@ public V1beta2StatefulSetStatus addConditionsItem(V1beta2StatefulSetCondition co * Represents the latest available observations of a statefulset's current state. * @return conditions **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Represents the latest available observations of a statefulset's current state.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V1beta2StatefulSetStatus currentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @@ -112,16 +138,22 @@ public V1beta2StatefulSetStatus currentReplicas(Integer currentReplicas) { * currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision. * @return currentReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by currentRevision.") + public Integer getCurrentReplicas() { return currentReplicas; } + + public void setCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; } + public V1beta2StatefulSetStatus currentRevision(String currentRevision) { + this.currentRevision = currentRevision; return this; } @@ -130,16 +162,22 @@ public V1beta2StatefulSetStatus currentRevision(String currentRevision) { * currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas). * @return currentRevision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [0,currentReplicas).") + public String getCurrentRevision() { return currentRevision; } + + public void setCurrentRevision(String currentRevision) { this.currentRevision = currentRevision; } + public V1beta2StatefulSetStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -148,16 +186,22 @@ public V1beta2StatefulSetStatus observedGeneration(Long observedGeneration) { * observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the StatefulSet's generation, which is updated on mutation by the API Server.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } + public V1beta2StatefulSetStatus readyReplicas(Integer readyReplicas) { + this.readyReplicas = readyReplicas; return this; } @@ -166,16 +210,22 @@ public V1beta2StatefulSetStatus readyReplicas(Integer readyReplicas) { * readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition. * @return readyReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "readyReplicas is the number of Pods created by the StatefulSet controller that have a Ready Condition.") + public Integer getReadyReplicas() { return readyReplicas; } + + public void setReadyReplicas(Integer readyReplicas) { this.readyReplicas = readyReplicas; } + public V1beta2StatefulSetStatus replicas(Integer replicas) { + this.replicas = replicas; return this; } @@ -185,15 +235,20 @@ public V1beta2StatefulSetStatus replicas(Integer replicas) { * @return replicas **/ @ApiModelProperty(required = true, value = "replicas is the number of Pods created by the StatefulSet controller.") + public Integer getReplicas() { return replicas; } + + public void setReplicas(Integer replicas) { this.replicas = replicas; } + public V1beta2StatefulSetStatus updateRevision(String updateRevision) { + this.updateRevision = updateRevision; return this; } @@ -202,16 +257,22 @@ public V1beta2StatefulSetStatus updateRevision(String updateRevision) { * updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas) * @return updateRevision **/ + @javax.annotation.Nullable @ApiModelProperty(value = "updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence [replicas-updatedReplicas,replicas)") + public String getUpdateRevision() { return updateRevision; } + + public void setUpdateRevision(String updateRevision) { this.updateRevision = updateRevision; } + public V1beta2StatefulSetStatus updatedReplicas(Integer updatedReplicas) { + this.updatedReplicas = updatedReplicas; return this; } @@ -220,11 +281,15 @@ public V1beta2StatefulSetStatus updatedReplicas(Integer updatedReplicas) { * updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision. * @return updatedReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version indicated by updateRevision.") + public Integer getUpdatedReplicas() { return updatedReplicas; } + + public void setUpdatedReplicas(Integer updatedReplicas) { this.updatedReplicas = updatedReplicas; } @@ -232,27 +297,12 @@ public void setUpdatedReplicas(Integer updatedReplicas) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2StatefulSetStatus v1beta2StatefulSetStatus = (V1beta2StatefulSetStatus) o; - return Objects.equals(this.collisionCount, v1beta2StatefulSetStatus.collisionCount) && - Objects.equals(this.conditions, v1beta2StatefulSetStatus.conditions) && - Objects.equals(this.currentReplicas, v1beta2StatefulSetStatus.currentReplicas) && - Objects.equals(this.currentRevision, v1beta2StatefulSetStatus.currentRevision) && - Objects.equals(this.observedGeneration, v1beta2StatefulSetStatus.observedGeneration) && - Objects.equals(this.readyReplicas, v1beta2StatefulSetStatus.readyReplicas) && - Objects.equals(this.replicas, v1beta2StatefulSetStatus.replicas) && - Objects.equals(this.updateRevision, v1beta2StatefulSetStatus.updateRevision) && - Objects.equals(this.updatedReplicas, v1beta2StatefulSetStatus.updatedReplicas); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(collisionCount, conditions, currentReplicas, currentRevision, observedGeneration, readyReplicas, replicas, updateRevision, updatedReplicas); + return HashCodeBuilder.reflectionHashCode(this); } @@ -260,7 +310,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2StatefulSetStatus {\n"); - sb.append(" collisionCount: ").append(toIndentedString(collisionCount)).append("\n"); sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategy.java b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategy.java index 5604b37fec..e0fd9fd4b3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategy.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategy.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,43 @@ * StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy. */ @ApiModel(description = "StatefulSetUpdateStrategy indicates the strategy that the StatefulSet controller will use to perform updates. It includes any additional parameters necessary to perform the update for the indicated strategy.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V1beta2StatefulSetUpdateStrategy { - @SerializedName("rollingUpdate") - private V1beta2RollingUpdateStatefulSetStrategy rollingUpdate = null; + public static final String SERIALIZED_NAME_ROLLING_UPDATE = "rollingUpdate"; + @SerializedName(SERIALIZED_NAME_ROLLING_UPDATE) + private V1beta2RollingUpdateStatefulSetStrategy rollingUpdate; + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V1beta2StatefulSetUpdateStrategy rollingUpdate(V1beta2RollingUpdateStatefulSetStrategy rollingUpdate) { + this.rollingUpdate = rollingUpdate; return this; } /** - * RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType. + * Get rollingUpdate * @return rollingUpdate **/ - @ApiModelProperty(value = "RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1beta2RollingUpdateStatefulSetStrategy getRollingUpdate() { return rollingUpdate; } + + public void setRollingUpdate(V1beta2RollingUpdateStatefulSetStrategy rollingUpdate) { this.rollingUpdate = rollingUpdate; } + public V1beta2StatefulSetUpdateStrategy type(String type) { + this.type = type; return this; } @@ -63,11 +76,15 @@ public V1beta2StatefulSetUpdateStrategy type(String type) { * Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate. * @return type **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Type indicates the type of the StatefulSetUpdateStrategy. Default is RollingUpdate.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -75,20 +92,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V1beta2StatefulSetUpdateStrategy v1beta2StatefulSetUpdateStrategy = (V1beta2StatefulSetUpdateStrategy) o; - return Objects.equals(this.rollingUpdate, v1beta2StatefulSetUpdateStrategy.rollingUpdate) && - Objects.equals(this.type, v1beta2StatefulSetUpdateStrategy.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(rollingUpdate, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +105,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V1beta2StatefulSetUpdateStrategy {\n"); - sb.append(" rollingUpdate: ").append(toIndentedString(rollingUpdate)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJob.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJob.java index d2dd5a2f09..122e59697c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJob.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJob.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * CronJob represents the configuration of a single cron job. */ @ApiModel(description = "CronJob represents the configuration of a single cron job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2alpha1CronJob { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V2alpha1CronJobSpec spec; - @SerializedName("spec") - private V2alpha1CronJobSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V2alpha1CronJobStatus status; - @SerializedName("status") - private V2alpha1CronJobStatus status = null; public V2alpha1CronJob apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V2alpha1CronJob apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2alpha1CronJob kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V2alpha1CronJob kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2alpha1CronJob metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V2alpha1CronJob spec(V2alpha1CronJobSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of a cron job, including the schedule. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2alpha1CronJobSpec getSpec() { return spec; } + + public void setSpec(V2alpha1CronJobSpec spec) { this.spec = spec; } + public V2alpha1CronJob status(V2alpha1CronJobStatus status) { + this.status = status; return this; } /** - * Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get status * @return status **/ - @ApiModelProperty(value = "Current status of a cron job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2alpha1CronJobStatus getStatus() { return status; } + + public void setStatus(V2alpha1CronJobStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V2alpha1CronJobStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2alpha1CronJob v2alpha1CronJob = (V2alpha1CronJob) o; - return Objects.equals(this.apiVersion, v2alpha1CronJob.apiVersion) && - Objects.equals(this.kind, v2alpha1CronJob.kind) && - Objects.equals(this.metadata, v2alpha1CronJob.metadata) && - Objects.equals(this.spec, v2alpha1CronJob.spec) && - Objects.equals(this.status, v2alpha1CronJob.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2alpha1CronJob {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobList.java index 1a9c4d83bd..e5e65f2dbe 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * CronJobList is a collection of cron jobs. */ @ApiModel(description = "CronJobList is a collection of cron jobs.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2alpha1CronJobList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V2alpha1CronJobList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V2alpha1CronJobList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2alpha1CronJobList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V2alpha1CronJobList addItemsItem(V2alpha1CronJob itemsItem) { * @return items **/ @ApiModelProperty(required = true, value = "items is the list of CronJobs.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V2alpha1CronJobList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V2alpha1CronJobList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2alpha1CronJobList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2alpha1CronJobList v2alpha1CronJobList = (V2alpha1CronJobList) o; - return Objects.equals(this.apiVersion, v2alpha1CronJobList.apiVersion) && - Objects.equals(this.items, v2alpha1CronJobList.items) && - Objects.equals(this.kind, v2alpha1CronJobList.kind) && - Objects.equals(this.metadata, v2alpha1CronJobList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2alpha1CronJobList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobSpec.java index c14ac456e9..1898809a3f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,30 +31,39 @@ * CronJobSpec describes how the job execution will look like and when it will actually run. */ @ApiModel(description = "CronJobSpec describes how the job execution will look like and when it will actually run.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2alpha1CronJobSpec { - @SerializedName("concurrencyPolicy") - private String concurrencyPolicy = null; + public static final String SERIALIZED_NAME_CONCURRENCY_POLICY = "concurrencyPolicy"; + @SerializedName(SERIALIZED_NAME_CONCURRENCY_POLICY) + private String concurrencyPolicy; + + public static final String SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT = "failedJobsHistoryLimit"; + @SerializedName(SERIALIZED_NAME_FAILED_JOBS_HISTORY_LIMIT) + private Integer failedJobsHistoryLimit; - @SerializedName("failedJobsHistoryLimit") - private Integer failedJobsHistoryLimit = null; + public static final String SERIALIZED_NAME_JOB_TEMPLATE = "jobTemplate"; + @SerializedName(SERIALIZED_NAME_JOB_TEMPLATE) + private V2alpha1JobTemplateSpec jobTemplate; - @SerializedName("jobTemplate") - private V2alpha1JobTemplateSpec jobTemplate = null; + public static final String SERIALIZED_NAME_SCHEDULE = "schedule"; + @SerializedName(SERIALIZED_NAME_SCHEDULE) + private String schedule; - @SerializedName("schedule") - private String schedule = null; + public static final String SERIALIZED_NAME_STARTING_DEADLINE_SECONDS = "startingDeadlineSeconds"; + @SerializedName(SERIALIZED_NAME_STARTING_DEADLINE_SECONDS) + private Long startingDeadlineSeconds; - @SerializedName("startingDeadlineSeconds") - private Long startingDeadlineSeconds = null; + public static final String SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT = "successfulJobsHistoryLimit"; + @SerializedName(SERIALIZED_NAME_SUCCESSFUL_JOBS_HISTORY_LIMIT) + private Integer successfulJobsHistoryLimit; - @SerializedName("successfulJobsHistoryLimit") - private Integer successfulJobsHistoryLimit = null; + public static final String SERIALIZED_NAME_SUSPEND = "suspend"; + @SerializedName(SERIALIZED_NAME_SUSPEND) + private Boolean suspend; - @SerializedName("suspend") - private Boolean suspend = null; public V2alpha1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { + this.concurrencyPolicy = concurrencyPolicy; return this; } @@ -60,16 +72,22 @@ public V2alpha1CronJobSpec concurrencyPolicy(String concurrencyPolicy) { * Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one * @return concurrencyPolicy **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Specifies how to treat concurrent executions of a Job. Valid values are: - \"Allow\" (default): allows CronJobs to run concurrently; - \"Forbid\": forbids concurrent runs, skipping next run if previous run hasn't finished yet; - \"Replace\": cancels currently running job and replaces it with a new one") + public String getConcurrencyPolicy() { return concurrencyPolicy; } + + public void setConcurrencyPolicy(String concurrencyPolicy) { this.concurrencyPolicy = concurrencyPolicy; } + public V2alpha1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit) { + this.failedJobsHistoryLimit = failedJobsHistoryLimit; return this; } @@ -78,34 +96,45 @@ public V2alpha1CronJobSpec failedJobsHistoryLimit(Integer failedJobsHistoryLimit * The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. * @return failedJobsHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.") + public Integer getFailedJobsHistoryLimit() { return failedJobsHistoryLimit; } + + public void setFailedJobsHistoryLimit(Integer failedJobsHistoryLimit) { this.failedJobsHistoryLimit = failedJobsHistoryLimit; } + public V2alpha1CronJobSpec jobTemplate(V2alpha1JobTemplateSpec jobTemplate) { + this.jobTemplate = jobTemplate; return this; } /** - * Specifies the job that will be created when executing a CronJob. + * Get jobTemplate * @return jobTemplate **/ - @ApiModelProperty(required = true, value = "Specifies the job that will be created when executing a CronJob.") + @ApiModelProperty(required = true, value = "") + public V2alpha1JobTemplateSpec getJobTemplate() { return jobTemplate; } + + public void setJobTemplate(V2alpha1JobTemplateSpec jobTemplate) { this.jobTemplate = jobTemplate; } + public V2alpha1CronJobSpec schedule(String schedule) { + this.schedule = schedule; return this; } @@ -115,15 +144,20 @@ public V2alpha1CronJobSpec schedule(String schedule) { * @return schedule **/ @ApiModelProperty(required = true, value = "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.") + public String getSchedule() { return schedule; } + + public void setSchedule(String schedule) { this.schedule = schedule; } + public V2alpha1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) { + this.startingDeadlineSeconds = startingDeadlineSeconds; return this; } @@ -132,16 +166,22 @@ public V2alpha1CronJobSpec startingDeadlineSeconds(Long startingDeadlineSeconds) * Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones. * @return startingDeadlineSeconds **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.") + public Long getStartingDeadlineSeconds() { return startingDeadlineSeconds; } + + public void setStartingDeadlineSeconds(Long startingDeadlineSeconds) { this.startingDeadlineSeconds = startingDeadlineSeconds; } + public V2alpha1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { + this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; return this; } @@ -150,16 +190,22 @@ public V2alpha1CronJobSpec successfulJobsHistoryLimit(Integer successfulJobsHist * The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified. * @return successfulJobsHistoryLimit **/ + @javax.annotation.Nullable @ApiModelProperty(value = "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.") + public Integer getSuccessfulJobsHistoryLimit() { return successfulJobsHistoryLimit; } + + public void setSuccessfulJobsHistoryLimit(Integer successfulJobsHistoryLimit) { this.successfulJobsHistoryLimit = successfulJobsHistoryLimit; } + public V2alpha1CronJobSpec suspend(Boolean suspend) { + this.suspend = suspend; return this; } @@ -168,11 +214,15 @@ public V2alpha1CronJobSpec suspend(Boolean suspend) { * This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false. * @return suspend **/ + @javax.annotation.Nullable @ApiModelProperty(value = "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.") - public Boolean isSuspend() { + + public Boolean getSuspend() { return suspend; } + + public void setSuspend(Boolean suspend) { this.suspend = suspend; } @@ -180,25 +230,12 @@ public void setSuspend(Boolean suspend) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2alpha1CronJobSpec v2alpha1CronJobSpec = (V2alpha1CronJobSpec) o; - return Objects.equals(this.concurrencyPolicy, v2alpha1CronJobSpec.concurrencyPolicy) && - Objects.equals(this.failedJobsHistoryLimit, v2alpha1CronJobSpec.failedJobsHistoryLimit) && - Objects.equals(this.jobTemplate, v2alpha1CronJobSpec.jobTemplate) && - Objects.equals(this.schedule, v2alpha1CronJobSpec.schedule) && - Objects.equals(this.startingDeadlineSeconds, v2alpha1CronJobSpec.startingDeadlineSeconds) && - Objects.equals(this.successfulJobsHistoryLimit, v2alpha1CronJobSpec.successfulJobsHistoryLimit) && - Objects.equals(this.suspend, v2alpha1CronJobSpec.suspend); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(concurrencyPolicy, failedJobsHistoryLimit, jobTemplate, schedule, startingDeadlineSeconds, successfulJobsHistoryLimit, suspend); + return HashCodeBuilder.reflectionHashCode(this); } @@ -206,7 +243,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2alpha1CronJobSpec {\n"); - sb.append(" concurrencyPolicy: ").append(toIndentedString(concurrencyPolicy)).append("\n"); sb.append(" failedJobsHistoryLimit: ").append(toIndentedString(failedJobsHistoryLimit)).append("\n"); sb.append(" jobTemplate: ").append(toIndentedString(jobTemplate)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobStatus.java index f6c4e3ea7c..1db3c2762e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1CronJobStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,15 +34,19 @@ * CronJobStatus represents the current state of a cron job. */ @ApiModel(description = "CronJobStatus represents the current state of a cron job.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2alpha1CronJobStatus { - @SerializedName("active") + public static final String SERIALIZED_NAME_ACTIVE = "active"; + @SerializedName(SERIALIZED_NAME_ACTIVE) private List active = null; - @SerializedName("lastScheduleTime") - private DateTime lastScheduleTime = null; + public static final String SERIALIZED_NAME_LAST_SCHEDULE_TIME = "lastScheduleTime"; + @SerializedName(SERIALIZED_NAME_LAST_SCHEDULE_TIME) + private DateTime lastScheduleTime; + public V2alpha1CronJobStatus active(List active) { + this.active = active; return this; } @@ -56,16 +63,22 @@ public V2alpha1CronJobStatus addActiveItem(V1ObjectReference activeItem) { * A list of pointers to currently running jobs. * @return active **/ + @javax.annotation.Nullable @ApiModelProperty(value = "A list of pointers to currently running jobs.") + public List getActive() { return active; } + + public void setActive(List active) { this.active = active; } + public V2alpha1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { + this.lastScheduleTime = lastScheduleTime; return this; } @@ -74,11 +87,15 @@ public V2alpha1CronJobStatus lastScheduleTime(DateTime lastScheduleTime) { * Information when was the last time the job was successfully scheduled. * @return lastScheduleTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Information when was the last time the job was successfully scheduled.") + public DateTime getLastScheduleTime() { return lastScheduleTime; } + + public void setLastScheduleTime(DateTime lastScheduleTime) { this.lastScheduleTime = lastScheduleTime; } @@ -86,20 +103,12 @@ public void setLastScheduleTime(DateTime lastScheduleTime) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2alpha1CronJobStatus v2alpha1CronJobStatus = (V2alpha1CronJobStatus) o; - return Objects.equals(this.active, v2alpha1CronJobStatus.active) && - Objects.equals(this.lastScheduleTime, v2alpha1CronJobStatus.lastScheduleTime); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(active, lastScheduleTime); + return HashCodeBuilder.reflectionHashCode(this); } @@ -107,7 +116,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2alpha1CronJobStatus {\n"); - sb.append(" active: ").append(toIndentedString(active)).append("\n"); sb.append(" lastScheduleTime: ").append(toIndentedString(lastScheduleTime)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1JobTemplateSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1JobTemplateSpec.java index 3b1e24eb20..ddded952e5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1JobTemplateSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2alpha1JobTemplateSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,60 @@ * JobTemplateSpec describes the data a Job should have when created from a template */ @ApiModel(description = "JobTemplateSpec describes the data a Job should have when created from a template") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2alpha1JobTemplateSpec { - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; + + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V1JobSpec spec; - @SerializedName("spec") - private V1JobSpec spec = null; public V2alpha1JobTemplateSpec metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "Standard object's metadata of the jobs created from this template. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V2alpha1JobTemplateSpec spec(V1JobSpec spec) { + this.spec = spec; return this; } /** - * Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + * Get spec * @return spec **/ - @ApiModelProperty(value = "Specification of the desired behavior of the job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1JobSpec getSpec() { return spec; } + + public void setSpec(V1JobSpec spec) { this.spec = spec; } @@ -76,20 +93,12 @@ public void setSpec(V1JobSpec spec) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2alpha1JobTemplateSpec v2alpha1JobTemplateSpec = (V2alpha1JobTemplateSpec) o; - return Objects.equals(this.metadata, v2alpha1JobTemplateSpec.metadata) && - Objects.equals(this.spec, v2alpha1JobTemplateSpec.spec); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metadata, spec); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +106,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2alpha1JobTemplateSpec {\n"); - sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); sb.append(" spec: ").append(toIndentedString(spec)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReference.java index 67b28da408..d234e877df 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1CrossVersionObjectReference { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V2beta1CrossVersionObjectReference apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -47,16 +55,22 @@ public V2beta1CrossVersionObjectReference apiVersion(String apiVersion) { * API version of the referent * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "API version of the referent") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2beta1CrossVersionObjectReference kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +80,20 @@ public V2beta1CrossVersionObjectReference kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\"") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2beta1CrossVersionObjectReference name(String name) { + this.name = name; return this; } @@ -84,10 +103,13 @@ public V2beta1CrossVersionObjectReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +117,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1CrossVersionObjectReference v2beta1CrossVersionObjectReference = (V2beta1CrossVersionObjectReference) o; - return Objects.equals(this.apiVersion, v2beta1CrossVersionObjectReference.apiVersion) && - Objects.equals(this.kind, v2beta1CrossVersionObjectReference.kind) && - Objects.equals(this.name, v2beta1CrossVersionObjectReference.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1CrossVersionObjectReference {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricSource.java index ef8f52ff4d..24f4d3e2e2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,21 +32,27 @@ * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set. */ @ApiModel(description = "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). Exactly one \"target\" type should be set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1ExternalMetricSource { - @SerializedName("metricName") - private String metricName = null; + public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; + @SerializedName(SERIALIZED_NAME_METRIC_NAME) + private String metricName; + + public static final String SERIALIZED_NAME_METRIC_SELECTOR = "metricSelector"; + @SerializedName(SERIALIZED_NAME_METRIC_SELECTOR) + private V1LabelSelector metricSelector; - @SerializedName("metricSelector") - private V1LabelSelector metricSelector = null; + public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; + @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) + private Quantity targetAverageValue; - @SerializedName("targetAverageValue") - private Quantity targetAverageValue = null; + public static final String SERIALIZED_NAME_TARGET_VALUE = "targetValue"; + @SerializedName(SERIALIZED_NAME_TARGET_VALUE) + private Quantity targetValue; - @SerializedName("targetValue") - private Quantity targetValue = null; public V2beta1ExternalMetricSource metricName(String metricName) { + this.metricName = metricName; return this; } @@ -53,64 +62,85 @@ public V2beta1ExternalMetricSource metricName(String metricName) { * @return metricName **/ @ApiModelProperty(required = true, value = "metricName is the name of the metric in question.") + public String getMetricName() { return metricName; } + + public void setMetricName(String metricName) { this.metricName = metricName; } + public V2beta1ExternalMetricSource metricSelector(V1LabelSelector metricSelector) { + this.metricSelector = metricSelector; return this; } /** - * metricSelector is used to identify a specific time series within a given metric. + * Get metricSelector * @return metricSelector **/ - @ApiModelProperty(value = "metricSelector is used to identify a specific time series within a given metric.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getMetricSelector() { return metricSelector; } + + public void setMetricSelector(V1LabelSelector metricSelector) { this.metricSelector = metricSelector; } + public V2beta1ExternalMetricSource targetAverageValue(Quantity targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } /** - * targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue. + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return targetAverageValue **/ - @ApiModelProperty(value = "targetAverageValue is the target per-pod value of global metric (as a quantity). Mutually exclusive with TargetValue.") + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getTargetAverageValue() { return targetAverageValue; } + + public void setTargetAverageValue(Quantity targetAverageValue) { this.targetAverageValue = targetAverageValue; } + public V2beta1ExternalMetricSource targetValue(Quantity targetValue) { + this.targetValue = targetValue; return this; } /** - * targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue. + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return targetValue **/ - @ApiModelProperty(value = "targetValue is the target value of the metric (as a quantity). Mutually exclusive with TargetAverageValue.") + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getTargetValue() { return targetValue; } + + public void setTargetValue(Quantity targetValue) { this.targetValue = targetValue; } @@ -118,22 +148,12 @@ public void setTargetValue(Quantity targetValue) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ExternalMetricSource v2beta1ExternalMetricSource = (V2beta1ExternalMetricSource) o; - return Objects.equals(this.metricName, v2beta1ExternalMetricSource.metricName) && - Objects.equals(this.metricSelector, v2beta1ExternalMetricSource.metricSelector) && - Objects.equals(this.targetAverageValue, v2beta1ExternalMetricSource.targetAverageValue) && - Objects.equals(this.targetValue, v2beta1ExternalMetricSource.targetValue); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metricName, metricSelector, targetAverageValue, targetValue); + return HashCodeBuilder.reflectionHashCode(this); } @@ -141,7 +161,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1ExternalMetricSource {\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); sb.append(" metricSelector: ").append(toIndentedString(metricSelector)).append("\n"); sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricStatus.java index c604443e5f..1774f162a2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ExternalMetricStatus.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.models.V1LabelSelector; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -28,57 +32,74 @@ * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ @ApiModel(description = "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1ExternalMetricStatus { - @SerializedName("currentAverageValue") - private String currentAverageValue = null; + public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; + @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) + private Quantity currentAverageValue; + + public static final String SERIALIZED_NAME_CURRENT_VALUE = "currentValue"; + @SerializedName(SERIALIZED_NAME_CURRENT_VALUE) + private Quantity currentValue; - @SerializedName("currentValue") - private String currentValue = null; + public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; + @SerializedName(SERIALIZED_NAME_METRIC_NAME) + private String metricName; - @SerializedName("metricName") - private String metricName = null; + public static final String SERIALIZED_NAME_METRIC_SELECTOR = "metricSelector"; + @SerializedName(SERIALIZED_NAME_METRIC_SELECTOR) + private V1LabelSelector metricSelector; - @SerializedName("metricSelector") - private V1LabelSelector metricSelector = null; - public V2beta1ExternalMetricStatus currentAverageValue(String currentAverageValue) { + public V2beta1ExternalMetricStatus currentAverageValue(Quantity currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } /** - * currentAverageValue is the current value of metric averaged over autoscaled pods. + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return currentAverageValue **/ - @ApiModelProperty(value = "currentAverageValue is the current value of metric averaged over autoscaled pods.") - public String getCurrentAverageValue() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getCurrentAverageValue() { return currentAverageValue; } - public void setCurrentAverageValue(String currentAverageValue) { + + + public void setCurrentAverageValue(Quantity currentAverageValue) { this.currentAverageValue = currentAverageValue; } - public V2beta1ExternalMetricStatus currentValue(String currentValue) { + + public V2beta1ExternalMetricStatus currentValue(Quantity currentValue) { + this.currentValue = currentValue; return this; } /** - * currentValue is the current value of the metric (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return currentValue **/ - @ApiModelProperty(required = true, value = "currentValue is the current value of the metric (as a quantity)") - public String getCurrentValue() { + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getCurrentValue() { return currentValue; } - public void setCurrentValue(String currentValue) { + + + public void setCurrentValue(Quantity currentValue) { this.currentValue = currentValue; } + public V2beta1ExternalMetricStatus metricName(String metricName) { + this.metricName = metricName; return this; } @@ -88,28 +109,37 @@ public V2beta1ExternalMetricStatus metricName(String metricName) { * @return metricName **/ @ApiModelProperty(required = true, value = "metricName is the name of a metric used for autoscaling in metric system.") + public String getMetricName() { return metricName; } + + public void setMetricName(String metricName) { this.metricName = metricName; } + public V2beta1ExternalMetricStatus metricSelector(V1LabelSelector metricSelector) { + this.metricSelector = metricSelector; return this; } /** - * metricSelector is used to identify a specific time series within a given metric. + * Get metricSelector * @return metricSelector **/ - @ApiModelProperty(value = "metricSelector is used to identify a specific time series within a given metric.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getMetricSelector() { return metricSelector; } + + public void setMetricSelector(V1LabelSelector metricSelector) { this.metricSelector = metricSelector; } @@ -117,22 +147,12 @@ public void setMetricSelector(V1LabelSelector metricSelector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ExternalMetricStatus v2beta1ExternalMetricStatus = (V2beta1ExternalMetricStatus) o; - return Objects.equals(this.currentAverageValue, v2beta1ExternalMetricStatus.currentAverageValue) && - Objects.equals(this.currentValue, v2beta1ExternalMetricStatus.currentValue) && - Objects.equals(this.metricName, v2beta1ExternalMetricStatus.metricName) && - Objects.equals(this.metricSelector, v2beta1ExternalMetricStatus.metricSelector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(currentAverageValue, currentValue, metricName, metricSelector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1ExternalMetricStatus {\n"); - sb.append(" currentAverageValue: ").append(toIndentedString(currentAverageValue)).append("\n"); sb.append(" currentValue: ").append(toIndentedString(currentValue)).append("\n"); sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscaler.java index ca1b61b968..36c751fb8d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscaler.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. */ @ApiModel(description = "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscaler { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V2beta1HorizontalPodAutoscalerSpec spec; - @SerializedName("spec") - private V2beta1HorizontalPodAutoscalerSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V2beta1HorizontalPodAutoscalerStatus status; - @SerializedName("status") - private V2beta1HorizontalPodAutoscalerStatus status = null; public V2beta1HorizontalPodAutoscaler apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V2beta1HorizontalPodAutoscaler apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2beta1HorizontalPodAutoscaler kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V2beta1HorizontalPodAutoscaler kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2beta1HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V2beta1HorizontalPodAutoscaler spec(V2beta1HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } /** - * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1HorizontalPodAutoscalerSpec getSpec() { return spec; } + + public void setSpec(V2beta1HorizontalPodAutoscalerSpec spec) { this.spec = spec; } + public V2beta1HorizontalPodAutoscaler status(V2beta1HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } /** - * status is the current information about the autoscaler. + * Get status * @return status **/ - @ApiModelProperty(value = "status is the current information about the autoscaler.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1HorizontalPodAutoscalerStatus getStatus() { return status; } + + public void setStatus(V2beta1HorizontalPodAutoscalerStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V2beta1HorizontalPodAutoscalerStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscaler v2beta1HorizontalPodAutoscaler = (V2beta1HorizontalPodAutoscaler) o; - return Objects.equals(this.apiVersion, v2beta1HorizontalPodAutoscaler.apiVersion) && - Objects.equals(this.kind, v2beta1HorizontalPodAutoscaler.kind) && - Objects.equals(this.metadata, v2beta1HorizontalPodAutoscaler.metadata) && - Objects.equals(this.spec, v2beta1HorizontalPodAutoscaler.spec) && - Objects.equals(this.status, v2beta1HorizontalPodAutoscaler.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1HorizontalPodAutoscaler {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerCondition.java index f5a2956094..6a0104edca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ @ApiModel(description = "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V2beta1HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V2beta1HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastT * lastTransitionTime is the last time the condition transitioned from one status to another * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "lastTransitionTime is the last time the condition transitioned from one status to another") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V2beta1HorizontalPodAutoscalerCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V2beta1HorizontalPodAutoscalerCondition message(String message) { * message is a human-readable explanation containing details about the transition * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "message is a human-readable explanation containing details about the transition") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V2beta1HorizontalPodAutoscalerCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V2beta1HorizontalPodAutoscalerCondition reason(String reason) { * reason is the reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "reason is the reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V2beta1HorizontalPodAutoscalerCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V2beta1HorizontalPodAutoscalerCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "status is the status of the condition (True, False, Unknown)") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V2beta1HorizontalPodAutoscalerCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V2beta1HorizontalPodAutoscalerCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type describes the current condition") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerCondition v2beta1HorizontalPodAutoscalerCondition = (V2beta1HorizontalPodAutoscalerCondition) o; - return Objects.equals(this.lastTransitionTime, v2beta1HorizontalPodAutoscalerCondition.lastTransitionTime) && - Objects.equals(this.message, v2beta1HorizontalPodAutoscalerCondition.message) && - Objects.equals(this.reason, v2beta1HorizontalPodAutoscalerCondition.reason) && - Objects.equals(this.status, v2beta1HorizontalPodAutoscalerCondition.status) && - Objects.equals(this.type, v2beta1HorizontalPodAutoscalerCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1HorizontalPodAutoscalerCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerList.java index c27d67c12f..974bbf8a57 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. */ @ApiModel(description = "HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V2beta1HorizontalPodAutoscalerList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V2beta1HorizontalPodAutoscalerList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2beta1HorizontalPodAutoscalerList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V2beta1HorizontalPodAutoscalerList addItemsItem(V2beta1HorizontalPodAutos * @return items **/ @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V2beta1HorizontalPodAutoscalerList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V2beta1HorizontalPodAutoscalerList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2beta1HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * metadata is the standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "metadata is the standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerList v2beta1HorizontalPodAutoscalerList = (V2beta1HorizontalPodAutoscalerList) o; - return Objects.equals(this.apiVersion, v2beta1HorizontalPodAutoscalerList.apiVersion) && - Objects.equals(this.items, v2beta1HorizontalPodAutoscalerList.items) && - Objects.equals(this.kind, v2beta1HorizontalPodAutoscalerList.kind) && - Objects.equals(this.metadata, v2beta1HorizontalPodAutoscalerList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1HorizontalPodAutoscalerList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpec.java index 3c1d33f3b8..41b580fae0 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerSpec { - @SerializedName("maxReplicas") - private Integer maxReplicas = null; + public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; + @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) + private Integer maxReplicas; - @SerializedName("metrics") + public static final String SERIALIZED_NAME_METRICS = "metrics"; + @SerializedName(SERIALIZED_NAME_METRICS) private List metrics = null; - @SerializedName("minReplicas") - private Integer minReplicas = null; + public static final String SERIALIZED_NAME_MIN_REPLICAS = "minReplicas"; + @SerializedName(SERIALIZED_NAME_MIN_REPLICAS) + private Integer minReplicas; + + public static final String SERIALIZED_NAME_SCALE_TARGET_REF = "scaleTargetRef"; + @SerializedName(SERIALIZED_NAME_SCALE_TARGET_REF) + private V2beta1CrossVersionObjectReference scaleTargetRef; - @SerializedName("scaleTargetRef") - private V2beta1CrossVersionObjectReference scaleTargetRef = null; public V2beta1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @@ -55,15 +64,20 @@ public V2beta1HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * @return maxReplicas **/ @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.") + public Integer getMaxReplicas() { return maxReplicas; } + + public void setMaxReplicas(Integer maxReplicas) { this.maxReplicas = maxReplicas; } + public V2beta1HorizontalPodAutoscalerSpec metrics(List metrics) { + this.metrics = metrics; return this; } @@ -80,16 +94,22 @@ public V2beta1HorizontalPodAutoscalerSpec addMetricsItem(V2beta1MetricSpec metri * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. * @return metrics **/ + @javax.annotation.Nullable @ApiModelProperty(value = "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond.") + public List getMetrics() { return metrics; } + + public void setMetrics(List metrics) { this.metrics = metrics; } + public V2beta1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @@ -98,29 +118,38 @@ public V2beta1HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. * @return minReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.") + public Integer getMinReplicas() { return minReplicas; } + + public void setMinReplicas(Integer minReplicas) { this.minReplicas = minReplicas; } + public V2beta1HorizontalPodAutoscalerSpec scaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } /** - * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + * Get scaleTargetRef * @return scaleTargetRef **/ - @ApiModelProperty(required = true, value = "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.") + @ApiModelProperty(required = true, value = "") + public V2beta1CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } + + public void setScaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = scaleTargetRef; } @@ -128,22 +157,12 @@ public void setScaleTargetRef(V2beta1CrossVersionObjectReference scaleTargetRef) @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerSpec v2beta1HorizontalPodAutoscalerSpec = (V2beta1HorizontalPodAutoscalerSpec) o; - return Objects.equals(this.maxReplicas, v2beta1HorizontalPodAutoscalerSpec.maxReplicas) && - Objects.equals(this.metrics, v2beta1HorizontalPodAutoscalerSpec.metrics) && - Objects.equals(this.minReplicas, v2beta1HorizontalPodAutoscalerSpec.minReplicas) && - Objects.equals(this.scaleTargetRef, v2beta1HorizontalPodAutoscalerSpec.scaleTargetRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxReplicas, metrics, minReplicas, scaleTargetRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +170,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1HorizontalPodAutoscalerSpec {\n"); - sb.append(" maxReplicas: ").append(toIndentedString(maxReplicas)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" minReplicas: ").append(toIndentedString(minReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatus.java index f905cdb48f..4c307bcd8c 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,27 +35,35 @@ * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1HorizontalPodAutoscalerStatus { - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = new ArrayList(); - @SerializedName("currentMetrics") + public static final String SERIALIZED_NAME_CURRENT_METRICS = "currentMetrics"; + @SerializedName(SERIALIZED_NAME_CURRENT_METRICS) private List currentMetrics = null; - @SerializedName("currentReplicas") - private Integer currentReplicas = null; + public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; + @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + private Integer currentReplicas; + + public static final String SERIALIZED_NAME_DESIRED_REPLICAS = "desiredReplicas"; + @SerializedName(SERIALIZED_NAME_DESIRED_REPLICAS) + private Integer desiredReplicas; - @SerializedName("desiredReplicas") - private Integer desiredReplicas = null; + public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; + @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) + private DateTime lastScaleTime; - @SerializedName("lastScaleTime") - private DateTime lastScaleTime = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; public V2beta1HorizontalPodAutoscalerStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -67,15 +78,20 @@ public V2beta1HorizontalPodAutoscalerStatus addConditionsItem(V2beta1HorizontalP * @return conditions **/ @ApiModelProperty(required = true, value = "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V2beta1HorizontalPodAutoscalerStatus currentMetrics(List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -92,16 +108,22 @@ public V2beta1HorizontalPodAutoscalerStatus addCurrentMetricsItem(V2beta1MetricS * currentMetrics is the last read state of the metrics used by this autoscaler. * @return currentMetrics **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentMetrics is the last read state of the metrics used by this autoscaler.") + public List getCurrentMetrics() { return currentMetrics; } + + public void setCurrentMetrics(List currentMetrics) { this.currentMetrics = currentMetrics; } + public V2beta1HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @@ -111,15 +133,20 @@ public V2beta1HorizontalPodAutoscalerStatus currentReplicas(Integer currentRepli * @return currentReplicas **/ @ApiModelProperty(required = true, value = "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.") + public Integer getCurrentReplicas() { return currentReplicas; } + + public void setCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; } + public V2beta1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @@ -129,15 +156,20 @@ public V2beta1HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredRepli * @return desiredReplicas **/ @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.") + public Integer getDesiredReplicas() { return desiredReplicas; } + + public void setDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } + public V2beta1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @@ -146,16 +178,22 @@ public V2beta1HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. * @return lastScaleTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.") + public DateTime getLastScaleTime() { return lastScaleTime; } + + public void setLastScaleTime(DateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } + public V2beta1HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -164,11 +202,15 @@ public V2beta1HorizontalPodAutoscalerStatus observedGeneration(Long observedGene * observedGeneration is the most recent generation observed by this autoscaler. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } @@ -176,24 +218,12 @@ public void setObservedGeneration(Long observedGeneration) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1HorizontalPodAutoscalerStatus v2beta1HorizontalPodAutoscalerStatus = (V2beta1HorizontalPodAutoscalerStatus) o; - return Objects.equals(this.conditions, v2beta1HorizontalPodAutoscalerStatus.conditions) && - Objects.equals(this.currentMetrics, v2beta1HorizontalPodAutoscalerStatus.currentMetrics) && - Objects.equals(this.currentReplicas, v2beta1HorizontalPodAutoscalerStatus.currentReplicas) && - Objects.equals(this.desiredReplicas, v2beta1HorizontalPodAutoscalerStatus.desiredReplicas) && - Objects.equals(this.lastScaleTime, v2beta1HorizontalPodAutoscalerStatus.lastScaleTime) && - Objects.equals(this.observedGeneration, v2beta1HorizontalPodAutoscalerStatus.observedGeneration); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); + return HashCodeBuilder.reflectionHashCode(this); } @@ -201,7 +231,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1HorizontalPodAutoscalerStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentMetrics: ").append(toIndentedString(currentMetrics)).append("\n"); sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricSpec.java index 49c86784d7..457b84f1c4 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,96 +34,127 @@ * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ @ApiModel(description = "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1MetricSpec { - @SerializedName("external") - private V2beta1ExternalMetricSource external = null; + public static final String SERIALIZED_NAME_EXTERNAL = "external"; + @SerializedName(SERIALIZED_NAME_EXTERNAL) + private V2beta1ExternalMetricSource external; + + public static final String SERIALIZED_NAME_OBJECT = "object"; + @SerializedName(SERIALIZED_NAME_OBJECT) + private V2beta1ObjectMetricSource _object; - @SerializedName("object") - private V2beta1ObjectMetricSource object = null; + public static final String SERIALIZED_NAME_PODS = "pods"; + @SerializedName(SERIALIZED_NAME_PODS) + private V2beta1PodsMetricSource pods; - @SerializedName("pods") - private V2beta1PodsMetricSource pods = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private V2beta1ResourceMetricSource resource; - @SerializedName("resource") - private V2beta1ResourceMetricSource resource = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V2beta1MetricSpec external(V2beta1ExternalMetricSource external) { + this.external = external; return this; } /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * Get external * @return external **/ - @ApiModelProperty(value = "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1ExternalMetricSource getExternal() { return external; } + + public void setExternal(V2beta1ExternalMetricSource external) { this.external = external; } - public V2beta1MetricSpec object(V2beta1ObjectMetricSource object) { - this.object = object; + + public V2beta1MetricSpec _object(V2beta1ObjectMetricSource _object) { + + this._object = _object; return this; } /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * @return object + * Get _object + * @return _object **/ - @ApiModelProperty(value = "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1ObjectMetricSource getObject() { - return object; + return _object; } - public void setObject(V2beta1ObjectMetricSource object) { - this.object = object; + + + public void setObject(V2beta1ObjectMetricSource _object) { + this._object = _object; } + public V2beta1MetricSpec pods(V2beta1PodsMetricSource pods) { + this.pods = pods; return this; } /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * Get pods * @return pods **/ - @ApiModelProperty(value = "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1PodsMetricSource getPods() { return pods; } + + public void setPods(V2beta1PodsMetricSource pods) { this.pods = pods; } + public V2beta1MetricSpec resource(V2beta1ResourceMetricSource resource) { + this.resource = resource; return this; } /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + * Get resource * @return resource **/ - @ApiModelProperty(value = "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1ResourceMetricSource getResource() { return resource; } + + public void setResource(V2beta1ResourceMetricSource resource) { this.resource = resource; } + public V2beta1MetricSpec type(String type) { + this.type = type; return this; } @@ -130,10 +164,13 @@ public V2beta1MetricSpec type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -141,23 +178,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1MetricSpec v2beta1MetricSpec = (V2beta1MetricSpec) o; - return Objects.equals(this.external, v2beta1MetricSpec.external) && - Objects.equals(this.object, v2beta1MetricSpec.object) && - Objects.equals(this.pods, v2beta1MetricSpec.pods) && - Objects.equals(this.resource, v2beta1MetricSpec.resource) && - Objects.equals(this.type, v2beta1MetricSpec.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(external, object, pods, resource, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -165,9 +191,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1MetricSpec {\n"); - sb.append(" external: ").append(toIndentedString(external)).append("\n"); - sb.append(" object: ").append(toIndentedString(object)).append("\n"); + sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); sb.append(" pods: ").append(toIndentedString(pods)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricStatus.java index 5d7b2eb3b3..d0abdb15fa 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1MetricStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,96 +34,127 @@ * MetricStatus describes the last-read state of a single metric. */ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1MetricStatus { - @SerializedName("external") - private V2beta1ExternalMetricStatus external = null; + public static final String SERIALIZED_NAME_EXTERNAL = "external"; + @SerializedName(SERIALIZED_NAME_EXTERNAL) + private V2beta1ExternalMetricStatus external; + + public static final String SERIALIZED_NAME_OBJECT = "object"; + @SerializedName(SERIALIZED_NAME_OBJECT) + private V2beta1ObjectMetricStatus _object; - @SerializedName("object") - private V2beta1ObjectMetricStatus object = null; + public static final String SERIALIZED_NAME_PODS = "pods"; + @SerializedName(SERIALIZED_NAME_PODS) + private V2beta1PodsMetricStatus pods; - @SerializedName("pods") - private V2beta1PodsMetricStatus pods = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private V2beta1ResourceMetricStatus resource; - @SerializedName("resource") - private V2beta1ResourceMetricStatus resource = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V2beta1MetricStatus external(V2beta1ExternalMetricStatus external) { + this.external = external; return this; } /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * Get external * @return external **/ - @ApiModelProperty(value = "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1ExternalMetricStatus getExternal() { return external; } + + public void setExternal(V2beta1ExternalMetricStatus external) { this.external = external; } - public V2beta1MetricStatus object(V2beta1ObjectMetricStatus object) { - this.object = object; + + public V2beta1MetricStatus _object(V2beta1ObjectMetricStatus _object) { + + this._object = _object; return this; } /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * @return object + * Get _object + * @return _object **/ - @ApiModelProperty(value = "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1ObjectMetricStatus getObject() { - return object; + return _object; } - public void setObject(V2beta1ObjectMetricStatus object) { - this.object = object; + + + public void setObject(V2beta1ObjectMetricStatus _object) { + this._object = _object; } + public V2beta1MetricStatus pods(V2beta1PodsMetricStatus pods) { + this.pods = pods; return this; } /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * Get pods * @return pods **/ - @ApiModelProperty(value = "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1PodsMetricStatus getPods() { return pods; } + + public void setPods(V2beta1PodsMetricStatus pods) { this.pods = pods; } + public V2beta1MetricStatus resource(V2beta1ResourceMetricStatus resource) { + this.resource = resource; return this; } /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + * Get resource * @return resource **/ - @ApiModelProperty(value = "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta1ResourceMetricStatus getResource() { return resource; } + + public void setResource(V2beta1ResourceMetricStatus resource) { this.resource = resource; } + public V2beta1MetricStatus type(String type) { + this.type = type; return this; } @@ -130,10 +164,13 @@ public V2beta1MetricStatus type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -141,23 +178,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1MetricStatus v2beta1MetricStatus = (V2beta1MetricStatus) o; - return Objects.equals(this.external, v2beta1MetricStatus.external) && - Objects.equals(this.object, v2beta1MetricStatus.object) && - Objects.equals(this.pods, v2beta1MetricStatus.pods) && - Objects.equals(this.resource, v2beta1MetricStatus.resource) && - Objects.equals(this.type, v2beta1MetricStatus.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(external, object, pods, resource, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -165,9 +191,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1MetricStatus {\n"); - sb.append(" external: ").append(toIndentedString(external)).append("\n"); - sb.append(" object: ").append(toIndentedString(object)).append("\n"); + sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); sb.append(" pods: ").append(toIndentedString(pods)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricSource.java index 7d0abcf383..2d55880492 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricSource.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.models.V1LabelSelector; import io.kubernetes.client.models.V2beta1CrossVersionObjectReference; import io.swagger.annotations.ApiModel; @@ -29,42 +33,55 @@ * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1ObjectMetricSource { - @SerializedName("averageValue") - private String averageValue = null; + public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; + @SerializedName(SERIALIZED_NAME_AVERAGE_VALUE) + private Quantity averageValue; + + public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; + @SerializedName(SERIALIZED_NAME_METRIC_NAME) + private String metricName; - @SerializedName("metricName") - private String metricName = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V2beta1CrossVersionObjectReference target; - @SerializedName("target") - private V2beta1CrossVersionObjectReference target = null; + public static final String SERIALIZED_NAME_TARGET_VALUE = "targetValue"; + @SerializedName(SERIALIZED_NAME_TARGET_VALUE) + private Quantity targetValue; - @SerializedName("targetValue") - private String targetValue = null; - public V2beta1ObjectMetricSource averageValue(String averageValue) { + public V2beta1ObjectMetricSource averageValue(Quantity averageValue) { + this.averageValue = averageValue; return this; } /** - * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return averageValue **/ - @ApiModelProperty(value = "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)") - public String getAverageValue() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getAverageValue() { return averageValue; } - public void setAverageValue(String averageValue) { + + + public void setAverageValue(Quantity averageValue) { this.averageValue = averageValue; } + public V2beta1ObjectMetricSource metricName(String metricName) { + this.metricName = metricName; return this; } @@ -74,88 +91,96 @@ public V2beta1ObjectMetricSource metricName(String metricName) { * @return metricName **/ @ApiModelProperty(required = true, value = "metricName is the name of the metric in question.") + public String getMetricName() { return metricName; } + + public void setMetricName(String metricName) { this.metricName = metricName; } + public V2beta1ObjectMetricSource selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * Get selector * @return selector **/ - @ApiModelProperty(value = "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V2beta1ObjectMetricSource target(V2beta1CrossVersionObjectReference target) { + this.target = target; return this; } /** - * target is the described Kubernetes object. + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "target is the described Kubernetes object.") + @ApiModelProperty(required = true, value = "") + public V2beta1CrossVersionObjectReference getTarget() { return target; } + + public void setTarget(V2beta1CrossVersionObjectReference target) { this.target = target; } - public V2beta1ObjectMetricSource targetValue(String targetValue) { + + public V2beta1ObjectMetricSource targetValue(Quantity targetValue) { + this.targetValue = targetValue; return this; } /** - * targetValue is the target value of the metric (as a quantity). + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return targetValue **/ - @ApiModelProperty(required = true, value = "targetValue is the target value of the metric (as a quantity).") - public String getTargetValue() { + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getTargetValue() { return targetValue; } - public void setTargetValue(String targetValue) { + + + public void setTargetValue(Quantity targetValue) { this.targetValue = targetValue; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ObjectMetricSource v2beta1ObjectMetricSource = (V2beta1ObjectMetricSource) o; - return Objects.equals(this.averageValue, v2beta1ObjectMetricSource.averageValue) && - Objects.equals(this.metricName, v2beta1ObjectMetricSource.metricName) && - Objects.equals(this.selector, v2beta1ObjectMetricSource.selector) && - Objects.equals(this.target, v2beta1ObjectMetricSource.target) && - Objects.equals(this.targetValue, v2beta1ObjectMetricSource.targetValue); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(averageValue, metricName, selector, target, targetValue); + return HashCodeBuilder.reflectionHashCode(this); } @@ -163,7 +188,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1ObjectMetricSource {\n"); - sb.append(" averageValue: ").append(toIndentedString(averageValue)).append("\n"); sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricStatus.java index 3306961125..638b08d825 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ObjectMetricStatus.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.models.V1LabelSelector; import io.kubernetes.client.models.V2beta1CrossVersionObjectReference; import io.swagger.annotations.ApiModel; @@ -29,60 +33,78 @@ * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1ObjectMetricStatus { - @SerializedName("averageValue") - private String averageValue = null; + public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; + @SerializedName(SERIALIZED_NAME_AVERAGE_VALUE) + private Quantity averageValue; + + public static final String SERIALIZED_NAME_CURRENT_VALUE = "currentValue"; + @SerializedName(SERIALIZED_NAME_CURRENT_VALUE) + private Quantity currentValue; - @SerializedName("currentValue") - private String currentValue = null; + public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; + @SerializedName(SERIALIZED_NAME_METRIC_NAME) + private String metricName; - @SerializedName("metricName") - private String metricName = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V2beta1CrossVersionObjectReference target; - @SerializedName("target") - private V2beta1CrossVersionObjectReference target = null; - public V2beta1ObjectMetricStatus averageValue(String averageValue) { + public V2beta1ObjectMetricStatus averageValue(Quantity averageValue) { + this.averageValue = averageValue; return this; } /** - * averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return averageValue **/ - @ApiModelProperty(value = "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)") - public String getAverageValue() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getAverageValue() { return averageValue; } - public void setAverageValue(String averageValue) { + + + public void setAverageValue(Quantity averageValue) { this.averageValue = averageValue; } - public V2beta1ObjectMetricStatus currentValue(String currentValue) { + + public V2beta1ObjectMetricStatus currentValue(Quantity currentValue) { + this.currentValue = currentValue; return this; } /** - * currentValue is the current value of the metric (as a quantity). + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return currentValue **/ - @ApiModelProperty(required = true, value = "currentValue is the current value of the metric (as a quantity).") - public String getCurrentValue() { + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getCurrentValue() { return currentValue; } - public void setCurrentValue(String currentValue) { + + + public void setCurrentValue(Quantity currentValue) { this.currentValue = currentValue; } + public V2beta1ObjectMetricStatus metricName(String metricName) { + this.metricName = metricName; return this; } @@ -92,46 +114,60 @@ public V2beta1ObjectMetricStatus metricName(String metricName) { * @return metricName **/ @ApiModelProperty(required = true, value = "metricName is the name of the metric in question.") + public String getMetricName() { return metricName; } + + public void setMetricName(String metricName) { this.metricName = metricName; } + public V2beta1ObjectMetricStatus selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * Get selector * @return selector **/ - @ApiModelProperty(value = "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the ObjectMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } + public V2beta1ObjectMetricStatus target(V2beta1CrossVersionObjectReference target) { + this.target = target; return this; } /** - * target is the described Kubernetes object. + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "target is the described Kubernetes object.") + @ApiModelProperty(required = true, value = "") + public V2beta1CrossVersionObjectReference getTarget() { return target; } + + public void setTarget(V2beta1CrossVersionObjectReference target) { this.target = target; } @@ -139,23 +175,12 @@ public void setTarget(V2beta1CrossVersionObjectReference target) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ObjectMetricStatus v2beta1ObjectMetricStatus = (V2beta1ObjectMetricStatus) o; - return Objects.equals(this.averageValue, v2beta1ObjectMetricStatus.averageValue) && - Objects.equals(this.currentValue, v2beta1ObjectMetricStatus.currentValue) && - Objects.equals(this.metricName, v2beta1ObjectMetricStatus.metricName) && - Objects.equals(this.selector, v2beta1ObjectMetricStatus.selector) && - Objects.equals(this.target, v2beta1ObjectMetricStatus.target); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(averageValue, currentValue, metricName, selector, target); + return HashCodeBuilder.reflectionHashCode(this); } @@ -163,7 +188,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1ObjectMetricStatus {\n"); - sb.append(" averageValue: ").append(toIndentedString(averageValue)).append("\n"); sb.append(" currentValue: ").append(toIndentedString(currentValue)).append("\n"); sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricSource.java index cfa9f51adb..66bc32b17f 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricSource.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.models.V1LabelSelector; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -28,18 +32,23 @@ * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. */ @ApiModel(description = "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1PodsMetricSource { - @SerializedName("metricName") - private String metricName = null; + public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; + @SerializedName(SERIALIZED_NAME_METRIC_NAME) + private String metricName; + + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; + public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; + @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) + private Quantity targetAverageValue; - @SerializedName("targetAverageValue") - private String targetAverageValue = null; public V2beta1PodsMetricSource metricName(String metricName) { + this.metricName = metricName; return this; } @@ -49,68 +58,73 @@ public V2beta1PodsMetricSource metricName(String metricName) { * @return metricName **/ @ApiModelProperty(required = true, value = "metricName is the name of the metric in question") + public String getMetricName() { return metricName; } + + public void setMetricName(String metricName) { this.metricName = metricName; } + public V2beta1PodsMetricSource selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics. + * Get selector * @return selector **/ - @ApiModelProperty(value = "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping When unset, just the metricName will be used to gather metrics.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } - public V2beta1PodsMetricSource targetAverageValue(String targetAverageValue) { + + public V2beta1PodsMetricSource targetAverageValue(Quantity targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } /** - * targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return targetAverageValue **/ - @ApiModelProperty(required = true, value = "targetAverageValue is the target value of the average of the metric across all relevant pods (as a quantity)") - public String getTargetAverageValue() { + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getTargetAverageValue() { return targetAverageValue; } - public void setTargetAverageValue(String targetAverageValue) { + + + public void setTargetAverageValue(Quantity targetAverageValue) { this.targetAverageValue = targetAverageValue; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1PodsMetricSource v2beta1PodsMetricSource = (V2beta1PodsMetricSource) o; - return Objects.equals(this.metricName, v2beta1PodsMetricSource.metricName) && - Objects.equals(this.selector, v2beta1PodsMetricSource.selector) && - Objects.equals(this.targetAverageValue, v2beta1PodsMetricSource.targetAverageValue); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metricName, selector, targetAverageValue); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1PodsMetricSource {\n"); - sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricStatus.java index cb7a01de4a..ebac1026a5 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1PodsMetricStatus.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.kubernetes.client.models.V1LabelSelector; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -28,36 +32,46 @@ * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ @ApiModel(description = "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1PodsMetricStatus { - @SerializedName("currentAverageValue") - private String currentAverageValue = null; + public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; + @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) + private Quantity currentAverageValue; + + public static final String SERIALIZED_NAME_METRIC_NAME = "metricName"; + @SerializedName(SERIALIZED_NAME_METRIC_NAME) + private String metricName; - @SerializedName("metricName") - private String metricName = null; + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; - public V2beta1PodsMetricStatus currentAverageValue(String currentAverageValue) { + public V2beta1PodsMetricStatus currentAverageValue(Quantity currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } /** - * currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return currentAverageValue **/ - @ApiModelProperty(required = true, value = "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)") - public String getCurrentAverageValue() { + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getCurrentAverageValue() { return currentAverageValue; } - public void setCurrentAverageValue(String currentAverageValue) { + + + public void setCurrentAverageValue(Quantity currentAverageValue) { this.currentAverageValue = currentAverageValue; } + public V2beta1PodsMetricStatus metricName(String metricName) { + this.metricName = metricName; return this; } @@ -67,28 +81,37 @@ public V2beta1PodsMetricStatus metricName(String metricName) { * @return metricName **/ @ApiModelProperty(required = true, value = "metricName is the name of the metric in question") + public String getMetricName() { return metricName; } + + public void setMetricName(String metricName) { this.metricName = metricName; } + public V2beta1PodsMetricStatus selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * Get selector * @return selector **/ - @ApiModelProperty(value = "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } @@ -96,21 +119,12 @@ public void setSelector(V1LabelSelector selector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1PodsMetricStatus v2beta1PodsMetricStatus = (V2beta1PodsMetricStatus) o; - return Objects.equals(this.currentAverageValue, v2beta1PodsMetricStatus.currentAverageValue) && - Objects.equals(this.metricName, v2beta1PodsMetricStatus.metricName) && - Objects.equals(this.selector, v2beta1PodsMetricStatus.selector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(currentAverageValue, metricName, selector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1PodsMetricStatus {\n"); - sb.append(" currentAverageValue: ").append(toIndentedString(currentAverageValue)).append("\n"); sb.append(" metricName: ").append(toIndentedString(metricName)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricSource.java index 94e031b87c..ec503a9a2e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,18 +31,23 @@ * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. */ @ApiModel(description = "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1ResourceMetricSource { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TARGET_AVERAGE_UTILIZATION = "targetAverageUtilization"; + @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_UTILIZATION) + private Integer targetAverageUtilization; - @SerializedName("targetAverageUtilization") - private Integer targetAverageUtilization = null; + public static final String SERIALIZED_NAME_TARGET_AVERAGE_VALUE = "targetAverageValue"; + @SerializedName(SERIALIZED_NAME_TARGET_AVERAGE_VALUE) + private Quantity targetAverageValue; - @SerializedName("targetAverageValue") - private Quantity targetAverageValue = null; public V2beta1ResourceMetricSource name(String name) { + this.name = name; return this; } @@ -49,15 +57,20 @@ public V2beta1ResourceMetricSource name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is the name of the resource in question.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V2beta1ResourceMetricSource targetAverageUtilization(Integer targetAverageUtilization) { + this.targetAverageUtilization = targetAverageUtilization; return this; } @@ -66,29 +79,39 @@ public V2beta1ResourceMetricSource targetAverageUtilization(Integer targetAverag * targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. * @return targetAverageUtilization **/ + @javax.annotation.Nullable @ApiModelProperty(value = "targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") + public Integer getTargetAverageUtilization() { return targetAverageUtilization; } + + public void setTargetAverageUtilization(Integer targetAverageUtilization) { this.targetAverageUtilization = targetAverageUtilization; } + public V2beta1ResourceMetricSource targetAverageValue(Quantity targetAverageValue) { + this.targetAverageValue = targetAverageValue; return this; } /** - * targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return targetAverageValue **/ - @ApiModelProperty(value = "targetAverageValue is the target value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type.") + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getTargetAverageValue() { return targetAverageValue; } + + public void setTargetAverageValue(Quantity targetAverageValue) { this.targetAverageValue = targetAverageValue; } @@ -96,21 +119,12 @@ public void setTargetAverageValue(Quantity targetAverageValue) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ResourceMetricSource v2beta1ResourceMetricSource = (V2beta1ResourceMetricSource) o; - return Objects.equals(this.name, v2beta1ResourceMetricSource.name) && - Objects.equals(this.targetAverageUtilization, v2beta1ResourceMetricSource.targetAverageUtilization) && - Objects.equals(this.targetAverageValue, v2beta1ResourceMetricSource.targetAverageValue); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, targetAverageUtilization, targetAverageValue); + return HashCodeBuilder.reflectionHashCode(this); } @@ -118,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1ResourceMetricSource {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" targetAverageUtilization: ").append(toIndentedString(targetAverageUtilization)).append("\n"); sb.append(" targetAverageValue: ").append(toIndentedString(targetAverageValue)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricStatus.java index 6ce1ec7de6..b9379d6fde 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta1ResourceMetricStatus.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,18 +31,23 @@ * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. */ @ApiModel(description = "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta1ResourceMetricStatus { - @SerializedName("currentAverageUtilization") - private Integer currentAverageUtilization = null; + public static final String SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION = "currentAverageUtilization"; + @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_UTILIZATION) + private Integer currentAverageUtilization; + + public static final String SERIALIZED_NAME_CURRENT_AVERAGE_VALUE = "currentAverageValue"; + @SerializedName(SERIALIZED_NAME_CURRENT_AVERAGE_VALUE) + private Quantity currentAverageValue; - @SerializedName("currentAverageValue") - private String currentAverageValue = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V2beta1ResourceMetricStatus currentAverageUtilization(Integer currentAverageUtilization) { + this.currentAverageUtilization = currentAverageUtilization; return this; } @@ -47,34 +56,45 @@ public V2beta1ResourceMetricStatus currentAverageUtilization(Integer currentAver * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification. * @return currentAverageUtilization **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. It will only be present if `targetAverageValue` was set in the corresponding metric specification.") + public Integer getCurrentAverageUtilization() { return currentAverageUtilization; } + + public void setCurrentAverageUtilization(Integer currentAverageUtilization) { this.currentAverageUtilization = currentAverageUtilization; } - public V2beta1ResourceMetricStatus currentAverageValue(String currentAverageValue) { + + public V2beta1ResourceMetricStatus currentAverageValue(Quantity currentAverageValue) { + this.currentAverageValue = currentAverageValue; return this; } /** - * currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification. + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return currentAverageValue **/ - @ApiModelProperty(required = true, value = "currentAverageValue is the current value of the average of the resource metric across all relevant pods, as a raw value (instead of as a percentage of the request), similar to the \"pods\" metric source type. It will always be set, regardless of the corresponding metric specification.") - public String getCurrentAverageValue() { + @ApiModelProperty(required = true, value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getCurrentAverageValue() { return currentAverageValue; } - public void setCurrentAverageValue(String currentAverageValue) { + + + public void setCurrentAverageValue(Quantity currentAverageValue) { this.currentAverageValue = currentAverageValue; } + public V2beta1ResourceMetricStatus name(String name) { + this.name = name; return this; } @@ -84,10 +104,13 @@ public V2beta1ResourceMetricStatus name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is the name of the resource in question.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +118,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta1ResourceMetricStatus v2beta1ResourceMetricStatus = (V2beta1ResourceMetricStatus) o; - return Objects.equals(this.currentAverageUtilization, v2beta1ResourceMetricStatus.currentAverageUtilization) && - Objects.equals(this.currentAverageValue, v2beta1ResourceMetricStatus.currentAverageValue) && - Objects.equals(this.name, v2beta1ResourceMetricStatus.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(currentAverageUtilization, currentAverageValue, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +131,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta1ResourceMetricStatus {\n"); - sb.append(" currentAverageUtilization: ").append(toIndentedString(currentAverageUtilization)).append("\n"); sb.append(" currentAverageValue: ").append(toIndentedString(currentAverageValue)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReference.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReference.java index 3a805ad3de..cec8cd6fee 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReference.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReference.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,18 +30,23 @@ * CrossVersionObjectReference contains enough information to let you identify the referred resource. */ @ApiModel(description = "CrossVersionObjectReference contains enough information to let you identify the referred resource.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2CrossVersionObjectReference { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V2beta2CrossVersionObjectReference apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -47,16 +55,22 @@ public V2beta2CrossVersionObjectReference apiVersion(String apiVersion) { * API version of the referent * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "API version of the referent") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2beta2CrossVersionObjectReference kind(String kind) { + this.kind = kind; return this; } @@ -66,15 +80,20 @@ public V2beta2CrossVersionObjectReference kind(String kind) { * @return kind **/ @ApiModelProperty(required = true, value = "Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds\"") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2beta2CrossVersionObjectReference name(String name) { + this.name = name; return this; } @@ -84,10 +103,13 @@ public V2beta2CrossVersionObjectReference name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -95,21 +117,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2CrossVersionObjectReference v2beta2CrossVersionObjectReference = (V2beta2CrossVersionObjectReference) o; - return Objects.equals(this.apiVersion, v2beta2CrossVersionObjectReference.apiVersion) && - Objects.equals(this.kind, v2beta2CrossVersionObjectReference.kind) && - Objects.equals(this.name, v2beta2CrossVersionObjectReference.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +130,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2CrossVersionObjectReference {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricSource.java index 637c0735c7..ab1304191e 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,58 @@ * ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). */ @ApiModel(description = "ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2ExternalMetricSource { - @SerializedName("metric") - private V2beta2MetricIdentifier metric = null; + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private V2beta2MetricIdentifier metric; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V2beta2MetricTarget target; - @SerializedName("target") - private V2beta2MetricTarget target = null; public V2beta2ExternalMetricSource metric(V2beta2MetricIdentifier metric) { + this.metric = metric; return this; } /** - * metric identifies the target metric by name and selector + * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "metric identifies the target metric by name and selector") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricIdentifier getMetric() { return metric; } + + public void setMetric(V2beta2MetricIdentifier metric) { this.metric = metric; } + public V2beta2ExternalMetricSource target(V2beta2MetricTarget target) { + this.target = target; return this; } /** - * target specifies the target value for the given metric + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "target specifies the target value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricTarget getTarget() { return target; } + + public void setTarget(V2beta2MetricTarget target) { this.target = target; } @@ -76,20 +91,12 @@ public void setTarget(V2beta2MetricTarget target) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2ExternalMetricSource v2beta2ExternalMetricSource = (V2beta2ExternalMetricSource) o; - return Objects.equals(this.metric, v2beta2ExternalMetricSource.metric) && - Objects.equals(this.target, v2beta2ExternalMetricSource.target); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metric, target); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2ExternalMetricSource {\n"); - sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricStatus.java index b201b87a67..7820f192af 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ExternalMetricStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,58 @@ * ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object. */ @ApiModel(description = "ExternalMetricStatus indicates the current value of a global metric not associated with any Kubernetes object.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2ExternalMetricStatus { - @SerializedName("current") - private V2beta2MetricValueStatus current = null; + public static final String SERIALIZED_NAME_CURRENT = "current"; + @SerializedName(SERIALIZED_NAME_CURRENT) + private V2beta2MetricValueStatus current; + + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private V2beta2MetricIdentifier metric; - @SerializedName("metric") - private V2beta2MetricIdentifier metric = null; public V2beta2ExternalMetricStatus current(V2beta2MetricValueStatus current) { + this.current = current; return this; } /** - * current contains the current value for the given metric + * Get current * @return current **/ - @ApiModelProperty(required = true, value = "current contains the current value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricValueStatus getCurrent() { return current; } + + public void setCurrent(V2beta2MetricValueStatus current) { this.current = current; } + public V2beta2ExternalMetricStatus metric(V2beta2MetricIdentifier metric) { + this.metric = metric; return this; } /** - * metric identifies the target metric by name and selector + * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "metric identifies the target metric by name and selector") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricIdentifier getMetric() { return metric; } + + public void setMetric(V2beta2MetricIdentifier metric) { this.metric = metric; } @@ -76,20 +91,12 @@ public void setMetric(V2beta2MetricIdentifier metric) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2ExternalMetricStatus v2beta2ExternalMetricStatus = (V2beta2ExternalMetricStatus) o; - return Objects.equals(this.current, v2beta2ExternalMetricStatus.current) && - Objects.equals(this.metric, v2beta2ExternalMetricStatus.metric); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(current, metric); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2ExternalMetricStatus {\n"); - sb.append(" current: ").append(toIndentedString(current)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscaler.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscaler.java index c79417c41e..9a87b353ce 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscaler.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscaler.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,24 +33,31 @@ * HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified. */ @ApiModel(description = "HorizontalPodAutoscaler is the configuration for a horizontal pod autoscaler, which automatically manages the replica count of any resource implementing the scale subresource based on the metrics specified.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscaler { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; + + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ObjectMeta metadata; - @SerializedName("metadata") - private V1ObjectMeta metadata = null; + public static final String SERIALIZED_NAME_SPEC = "spec"; + @SerializedName(SERIALIZED_NAME_SPEC) + private V2beta2HorizontalPodAutoscalerSpec spec; - @SerializedName("spec") - private V2beta2HorizontalPodAutoscalerSpec spec = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private V2beta2HorizontalPodAutoscalerStatus status; - @SerializedName("status") - private V2beta2HorizontalPodAutoscalerStatus status = null; public V2beta2HorizontalPodAutoscaler apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -56,16 +66,22 @@ public V2beta2HorizontalPodAutoscaler apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2beta2HorizontalPodAutoscaler kind(String kind) { + this.kind = kind; return this; } @@ -74,65 +90,87 @@ public V2beta2HorizontalPodAutoscaler kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2beta2HorizontalPodAutoscaler metadata(V1ObjectMeta metadata) { + this.metadata = metadata; return this; } /** - * metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "metadata is the standard object metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ObjectMeta getMetadata() { return metadata; } + + public void setMetadata(V1ObjectMeta metadata) { this.metadata = metadata; } + public V2beta2HorizontalPodAutoscaler spec(V2beta2HorizontalPodAutoscalerSpec spec) { + this.spec = spec; return this; } /** - * spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status. + * Get spec * @return spec **/ - @ApiModelProperty(value = "spec is the specification for the behaviour of the autoscaler. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2HorizontalPodAutoscalerSpec getSpec() { return spec; } + + public void setSpec(V2beta2HorizontalPodAutoscalerSpec spec) { this.spec = spec; } + public V2beta2HorizontalPodAutoscaler status(V2beta2HorizontalPodAutoscalerStatus status) { + this.status = status; return this; } /** - * status is the current information about the autoscaler. + * Get status * @return status **/ - @ApiModelProperty(value = "status is the current information about the autoscaler.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2HorizontalPodAutoscalerStatus getStatus() { return status; } + + public void setStatus(V2beta2HorizontalPodAutoscalerStatus status) { this.status = status; } @@ -140,23 +178,12 @@ public void setStatus(V2beta2HorizontalPodAutoscalerStatus status) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2HorizontalPodAutoscaler v2beta2HorizontalPodAutoscaler = (V2beta2HorizontalPodAutoscaler) o; - return Objects.equals(this.apiVersion, v2beta2HorizontalPodAutoscaler.apiVersion) && - Objects.equals(this.kind, v2beta2HorizontalPodAutoscaler.kind) && - Objects.equals(this.metadata, v2beta2HorizontalPodAutoscaler.metadata) && - Objects.equals(this.spec, v2beta2HorizontalPodAutoscaler.spec) && - Objects.equals(this.status, v2beta2HorizontalPodAutoscaler.status); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, kind, metadata, spec, status); + return HashCodeBuilder.reflectionHashCode(this); } @@ -164,7 +191,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2HorizontalPodAutoscaler {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); sb.append(" metadata: ").append(toIndentedString(metadata)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerCondition.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerCondition.java index eba9dc6b4c..b603489906 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerCondition.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerCondition.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,24 +31,31 @@ * HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point. */ @ApiModel(description = "HorizontalPodAutoscalerCondition describes the state of a HorizontalPodAutoscaler at a certain point.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerCondition { - @SerializedName("lastTransitionTime") - private DateTime lastTransitionTime = null; + public static final String SERIALIZED_NAME_LAST_TRANSITION_TIME = "lastTransitionTime"; + @SerializedName(SERIALIZED_NAME_LAST_TRANSITION_TIME) + private DateTime lastTransitionTime; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; - @SerializedName("message") - private String message = null; + public static final String SERIALIZED_NAME_REASON = "reason"; + @SerializedName(SERIALIZED_NAME_REASON) + private String reason; - @SerializedName("reason") - private String reason = null; + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private String status; - @SerializedName("status") - private String status = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V2beta2HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastTransitionTime) { + this.lastTransitionTime = lastTransitionTime; return this; } @@ -54,16 +64,22 @@ public V2beta2HorizontalPodAutoscalerCondition lastTransitionTime(DateTime lastT * lastTransitionTime is the last time the condition transitioned from one status to another * @return lastTransitionTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "lastTransitionTime is the last time the condition transitioned from one status to another") + public DateTime getLastTransitionTime() { return lastTransitionTime; } + + public void setLastTransitionTime(DateTime lastTransitionTime) { this.lastTransitionTime = lastTransitionTime; } + public V2beta2HorizontalPodAutoscalerCondition message(String message) { + this.message = message; return this; } @@ -72,16 +88,22 @@ public V2beta2HorizontalPodAutoscalerCondition message(String message) { * message is a human-readable explanation containing details about the transition * @return message **/ + @javax.annotation.Nullable @ApiModelProperty(value = "message is a human-readable explanation containing details about the transition") + public String getMessage() { return message; } + + public void setMessage(String message) { this.message = message; } + public V2beta2HorizontalPodAutoscalerCondition reason(String reason) { + this.reason = reason; return this; } @@ -90,16 +112,22 @@ public V2beta2HorizontalPodAutoscalerCondition reason(String reason) { * reason is the reason for the condition's last transition. * @return reason **/ + @javax.annotation.Nullable @ApiModelProperty(value = "reason is the reason for the condition's last transition.") + public String getReason() { return reason; } + + public void setReason(String reason) { this.reason = reason; } + public V2beta2HorizontalPodAutoscalerCondition status(String status) { + this.status = status; return this; } @@ -109,15 +137,20 @@ public V2beta2HorizontalPodAutoscalerCondition status(String status) { * @return status **/ @ApiModelProperty(required = true, value = "status is the status of the condition (True, False, Unknown)") + public String getStatus() { return status; } + + public void setStatus(String status) { this.status = status; } + public V2beta2HorizontalPodAutoscalerCondition type(String type) { + this.type = type; return this; } @@ -127,10 +160,13 @@ public V2beta2HorizontalPodAutoscalerCondition type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type describes the current condition") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -138,23 +174,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2HorizontalPodAutoscalerCondition v2beta2HorizontalPodAutoscalerCondition = (V2beta2HorizontalPodAutoscalerCondition) o; - return Objects.equals(this.lastTransitionTime, v2beta2HorizontalPodAutoscalerCondition.lastTransitionTime) && - Objects.equals(this.message, v2beta2HorizontalPodAutoscalerCondition.message) && - Objects.equals(this.reason, v2beta2HorizontalPodAutoscalerCondition.reason) && - Objects.equals(this.status, v2beta2HorizontalPodAutoscalerCondition.status) && - Objects.equals(this.type, v2beta2HorizontalPodAutoscalerCondition.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(lastTransitionTime, message, reason, status, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -162,7 +187,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2HorizontalPodAutoscalerCondition {\n"); - sb.append(" lastTransitionTime: ").append(toIndentedString(lastTransitionTime)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerList.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerList.java index 7938b54a6a..208be2dc40 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerList.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerList.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects. */ @ApiModel(description = "HorizontalPodAutoscalerList is a list of horizontal pod autoscaler objects.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerList { - @SerializedName("apiVersion") - private String apiVersion = null; + public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; + @SerializedName(SERIALIZED_NAME_API_VERSION) + private String apiVersion; - @SerializedName("items") + public static final String SERIALIZED_NAME_ITEMS = "items"; + @SerializedName(SERIALIZED_NAME_ITEMS) private List items = new ArrayList(); - @SerializedName("kind") - private String kind = null; + public static final String SERIALIZED_NAME_KIND = "kind"; + @SerializedName(SERIALIZED_NAME_KIND) + private String kind; + + public static final String SERIALIZED_NAME_METADATA = "metadata"; + @SerializedName(SERIALIZED_NAME_METADATA) + private V1ListMeta metadata; - @SerializedName("metadata") - private V1ListMeta metadata = null; public V2beta2HorizontalPodAutoscalerList apiVersion(String apiVersion) { + this.apiVersion = apiVersion; return this; } @@ -54,16 +63,22 @@ public V2beta2HorizontalPodAutoscalerList apiVersion(String apiVersion) { * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources * @return apiVersion **/ + @javax.annotation.Nullable @ApiModelProperty(value = "APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#resources") + public String getApiVersion() { return apiVersion; } + + public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } + public V2beta2HorizontalPodAutoscalerList items(List items) { + this.items = items; return this; } @@ -78,15 +93,20 @@ public V2beta2HorizontalPodAutoscalerList addItemsItem(V2beta2HorizontalPodAutos * @return items **/ @ApiModelProperty(required = true, value = "items is the list of horizontal pod autoscaler objects.") + public List getItems() { return items; } + + public void setItems(List items) { this.items = items; } + public V2beta2HorizontalPodAutoscalerList kind(String kind) { + this.kind = kind; return this; } @@ -95,29 +115,39 @@ public V2beta2HorizontalPodAutoscalerList kind(String kind) { * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds * @return kind **/ + @javax.annotation.Nullable @ApiModelProperty(value = "Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds") + public String getKind() { return kind; } + + public void setKind(String kind) { this.kind = kind; } + public V2beta2HorizontalPodAutoscalerList metadata(V1ListMeta metadata) { + this.metadata = metadata; return this; } /** - * metadata is the standard list metadata. + * Get metadata * @return metadata **/ - @ApiModelProperty(value = "metadata is the standard list metadata.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1ListMeta getMetadata() { return metadata; } + + public void setMetadata(V1ListMeta metadata) { this.metadata = metadata; } @@ -125,22 +155,12 @@ public void setMetadata(V1ListMeta metadata) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2HorizontalPodAutoscalerList v2beta2HorizontalPodAutoscalerList = (V2beta2HorizontalPodAutoscalerList) o; - return Objects.equals(this.apiVersion, v2beta2HorizontalPodAutoscalerList.apiVersion) && - Objects.equals(this.items, v2beta2HorizontalPodAutoscalerList.items) && - Objects.equals(this.kind, v2beta2HorizontalPodAutoscalerList.kind) && - Objects.equals(this.metadata, v2beta2HorizontalPodAutoscalerList.metadata); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(apiVersion, items, kind, metadata); + return HashCodeBuilder.reflectionHashCode(this); } @@ -148,7 +168,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2HorizontalPodAutoscalerList {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpec.java index 9b1e2dd8d9..0f5b7fdd42 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,21 +34,27 @@ * HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerSpec describes the desired functionality of the HorizontalPodAutoscaler.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerSpec { - @SerializedName("maxReplicas") - private Integer maxReplicas = null; + public static final String SERIALIZED_NAME_MAX_REPLICAS = "maxReplicas"; + @SerializedName(SERIALIZED_NAME_MAX_REPLICAS) + private Integer maxReplicas; - @SerializedName("metrics") + public static final String SERIALIZED_NAME_METRICS = "metrics"; + @SerializedName(SERIALIZED_NAME_METRICS) private List metrics = null; - @SerializedName("minReplicas") - private Integer minReplicas = null; + public static final String SERIALIZED_NAME_MIN_REPLICAS = "minReplicas"; + @SerializedName(SERIALIZED_NAME_MIN_REPLICAS) + private Integer minReplicas; + + public static final String SERIALIZED_NAME_SCALE_TARGET_REF = "scaleTargetRef"; + @SerializedName(SERIALIZED_NAME_SCALE_TARGET_REF) + private V2beta2CrossVersionObjectReference scaleTargetRef; - @SerializedName("scaleTargetRef") - private V2beta2CrossVersionObjectReference scaleTargetRef = null; public V2beta2HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { + this.maxReplicas = maxReplicas; return this; } @@ -55,15 +64,20 @@ public V2beta2HorizontalPodAutoscalerSpec maxReplicas(Integer maxReplicas) { * @return maxReplicas **/ @ApiModelProperty(required = true, value = "maxReplicas is the upper limit for the number of replicas to which the autoscaler can scale up. It cannot be less that minReplicas.") + public Integer getMaxReplicas() { return maxReplicas; } + + public void setMaxReplicas(Integer maxReplicas) { this.maxReplicas = maxReplicas; } + public V2beta2HorizontalPodAutoscalerSpec metrics(List metrics) { + this.metrics = metrics; return this; } @@ -80,16 +94,22 @@ public V2beta2HorizontalPodAutoscalerSpec addMetricsItem(V2beta2MetricSpec metri * metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization. * @return metrics **/ + @javax.annotation.Nullable @ApiModelProperty(value = "metrics contains the specifications for which to use to calculate the desired replica count (the maximum replica count across all metrics will be used). The desired replica count is calculated multiplying the ratio between the target value and the current value by the current number of pods. Ergo, metrics used must decrease as the pod count is increased, and vice-versa. See the individual metric source types for more information about how each type of metric must respond. If not set, the default metric will be set to 80% average CPU utilization.") + public List getMetrics() { return metrics; } + + public void setMetrics(List metrics) { this.metrics = metrics; } + public V2beta2HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { + this.minReplicas = minReplicas; return this; } @@ -98,29 +118,38 @@ public V2beta2HorizontalPodAutoscalerSpec minReplicas(Integer minReplicas) { * minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod. * @return minReplicas **/ + @javax.annotation.Nullable @ApiModelProperty(value = "minReplicas is the lower limit for the number of replicas to which the autoscaler can scale down. It defaults to 1 pod.") + public Integer getMinReplicas() { return minReplicas; } + + public void setMinReplicas(Integer minReplicas) { this.minReplicas = minReplicas; } + public V2beta2HorizontalPodAutoscalerSpec scaleTargetRef(V2beta2CrossVersionObjectReference scaleTargetRef) { + this.scaleTargetRef = scaleTargetRef; return this; } /** - * scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count. + * Get scaleTargetRef * @return scaleTargetRef **/ - @ApiModelProperty(required = true, value = "scaleTargetRef points to the target resource to scale, and is used to the pods for which metrics should be collected, as well as to actually change the replica count.") + @ApiModelProperty(required = true, value = "") + public V2beta2CrossVersionObjectReference getScaleTargetRef() { return scaleTargetRef; } + + public void setScaleTargetRef(V2beta2CrossVersionObjectReference scaleTargetRef) { this.scaleTargetRef = scaleTargetRef; } @@ -128,22 +157,12 @@ public void setScaleTargetRef(V2beta2CrossVersionObjectReference scaleTargetRef) @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2HorizontalPodAutoscalerSpec v2beta2HorizontalPodAutoscalerSpec = (V2beta2HorizontalPodAutoscalerSpec) o; - return Objects.equals(this.maxReplicas, v2beta2HorizontalPodAutoscalerSpec.maxReplicas) && - Objects.equals(this.metrics, v2beta2HorizontalPodAutoscalerSpec.metrics) && - Objects.equals(this.minReplicas, v2beta2HorizontalPodAutoscalerSpec.minReplicas) && - Objects.equals(this.scaleTargetRef, v2beta2HorizontalPodAutoscalerSpec.scaleTargetRef); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(maxReplicas, metrics, minReplicas, scaleTargetRef); + return HashCodeBuilder.reflectionHashCode(this); } @@ -151,7 +170,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2HorizontalPodAutoscalerSpec {\n"); - sb.append(" maxReplicas: ").append(toIndentedString(maxReplicas)).append("\n"); sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append(" minReplicas: ").append(toIndentedString(minReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatus.java index 8addd34d48..00b234b8d2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -32,27 +35,35 @@ * HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler. */ @ApiModel(description = "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2HorizontalPodAutoscalerStatus { - @SerializedName("conditions") + public static final String SERIALIZED_NAME_CONDITIONS = "conditions"; + @SerializedName(SERIALIZED_NAME_CONDITIONS) private List conditions = new ArrayList(); - @SerializedName("currentMetrics") + public static final String SERIALIZED_NAME_CURRENT_METRICS = "currentMetrics"; + @SerializedName(SERIALIZED_NAME_CURRENT_METRICS) private List currentMetrics = null; - @SerializedName("currentReplicas") - private Integer currentReplicas = null; + public static final String SERIALIZED_NAME_CURRENT_REPLICAS = "currentReplicas"; + @SerializedName(SERIALIZED_NAME_CURRENT_REPLICAS) + private Integer currentReplicas; + + public static final String SERIALIZED_NAME_DESIRED_REPLICAS = "desiredReplicas"; + @SerializedName(SERIALIZED_NAME_DESIRED_REPLICAS) + private Integer desiredReplicas; - @SerializedName("desiredReplicas") - private Integer desiredReplicas = null; + public static final String SERIALIZED_NAME_LAST_SCALE_TIME = "lastScaleTime"; + @SerializedName(SERIALIZED_NAME_LAST_SCALE_TIME) + private DateTime lastScaleTime; - @SerializedName("lastScaleTime") - private DateTime lastScaleTime = null; + public static final String SERIALIZED_NAME_OBSERVED_GENERATION = "observedGeneration"; + @SerializedName(SERIALIZED_NAME_OBSERVED_GENERATION) + private Long observedGeneration; - @SerializedName("observedGeneration") - private Long observedGeneration = null; public V2beta2HorizontalPodAutoscalerStatus conditions(List conditions) { + this.conditions = conditions; return this; } @@ -67,15 +78,20 @@ public V2beta2HorizontalPodAutoscalerStatus addConditionsItem(V2beta2HorizontalP * @return conditions **/ @ApiModelProperty(required = true, value = "conditions is the set of conditions required for this autoscaler to scale its target, and indicates whether or not those conditions are met.") + public List getConditions() { return conditions; } + + public void setConditions(List conditions) { this.conditions = conditions; } + public V2beta2HorizontalPodAutoscalerStatus currentMetrics(List currentMetrics) { + this.currentMetrics = currentMetrics; return this; } @@ -92,16 +108,22 @@ public V2beta2HorizontalPodAutoscalerStatus addCurrentMetricsItem(V2beta2MetricS * currentMetrics is the last read state of the metrics used by this autoscaler. * @return currentMetrics **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentMetrics is the last read state of the metrics used by this autoscaler.") + public List getCurrentMetrics() { return currentMetrics; } + + public void setCurrentMetrics(List currentMetrics) { this.currentMetrics = currentMetrics; } + public V2beta2HorizontalPodAutoscalerStatus currentReplicas(Integer currentReplicas) { + this.currentReplicas = currentReplicas; return this; } @@ -111,15 +133,20 @@ public V2beta2HorizontalPodAutoscalerStatus currentReplicas(Integer currentRepli * @return currentReplicas **/ @ApiModelProperty(required = true, value = "currentReplicas is current number of replicas of pods managed by this autoscaler, as last seen by the autoscaler.") + public Integer getCurrentReplicas() { return currentReplicas; } + + public void setCurrentReplicas(Integer currentReplicas) { this.currentReplicas = currentReplicas; } + public V2beta2HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredReplicas) { + this.desiredReplicas = desiredReplicas; return this; } @@ -129,15 +156,20 @@ public V2beta2HorizontalPodAutoscalerStatus desiredReplicas(Integer desiredRepli * @return desiredReplicas **/ @ApiModelProperty(required = true, value = "desiredReplicas is the desired number of replicas of pods managed by this autoscaler, as last calculated by the autoscaler.") + public Integer getDesiredReplicas() { return desiredReplicas; } + + public void setDesiredReplicas(Integer desiredReplicas) { this.desiredReplicas = desiredReplicas; } + public V2beta2HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime) { + this.lastScaleTime = lastScaleTime; return this; } @@ -146,16 +178,22 @@ public V2beta2HorizontalPodAutoscalerStatus lastScaleTime(DateTime lastScaleTime * lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed. * @return lastScaleTime **/ + @javax.annotation.Nullable @ApiModelProperty(value = "lastScaleTime is the last time the HorizontalPodAutoscaler scaled the number of pods, used by the autoscaler to control how often the number of pods is changed.") + public DateTime getLastScaleTime() { return lastScaleTime; } + + public void setLastScaleTime(DateTime lastScaleTime) { this.lastScaleTime = lastScaleTime; } + public V2beta2HorizontalPodAutoscalerStatus observedGeneration(Long observedGeneration) { + this.observedGeneration = observedGeneration; return this; } @@ -164,11 +202,15 @@ public V2beta2HorizontalPodAutoscalerStatus observedGeneration(Long observedGene * observedGeneration is the most recent generation observed by this autoscaler. * @return observedGeneration **/ + @javax.annotation.Nullable @ApiModelProperty(value = "observedGeneration is the most recent generation observed by this autoscaler.") + public Long getObservedGeneration() { return observedGeneration; } + + public void setObservedGeneration(Long observedGeneration) { this.observedGeneration = observedGeneration; } @@ -176,24 +218,12 @@ public void setObservedGeneration(Long observedGeneration) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2HorizontalPodAutoscalerStatus v2beta2HorizontalPodAutoscalerStatus = (V2beta2HorizontalPodAutoscalerStatus) o; - return Objects.equals(this.conditions, v2beta2HorizontalPodAutoscalerStatus.conditions) && - Objects.equals(this.currentMetrics, v2beta2HorizontalPodAutoscalerStatus.currentMetrics) && - Objects.equals(this.currentReplicas, v2beta2HorizontalPodAutoscalerStatus.currentReplicas) && - Objects.equals(this.desiredReplicas, v2beta2HorizontalPodAutoscalerStatus.desiredReplicas) && - Objects.equals(this.lastScaleTime, v2beta2HorizontalPodAutoscalerStatus.lastScaleTime) && - Objects.equals(this.observedGeneration, v2beta2HorizontalPodAutoscalerStatus.observedGeneration); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(conditions, currentMetrics, currentReplicas, desiredReplicas, lastScaleTime, observedGeneration); + return HashCodeBuilder.reflectionHashCode(this); } @@ -201,7 +231,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2HorizontalPodAutoscalerStatus {\n"); - sb.append(" conditions: ").append(toIndentedString(conditions)).append("\n"); sb.append(" currentMetrics: ").append(toIndentedString(currentMetrics)).append("\n"); sb.append(" currentReplicas: ").append(toIndentedString(currentReplicas)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricIdentifier.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricIdentifier.java index aea8e5dbe0..9d459cbebf 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricIdentifier.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricIdentifier.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * MetricIdentifier defines the name and optionally selector for a metric */ @ApiModel(description = "MetricIdentifier defines the name and optionally selector for a metric") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2MetricIdentifier { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_SELECTOR = "selector"; + @SerializedName(SERIALIZED_NAME_SELECTOR) + private V1LabelSelector selector; - @SerializedName("selector") - private V1LabelSelector selector = null; public V2beta2MetricIdentifier name(String name) { + this.name = name; return this; } @@ -46,28 +53,37 @@ public V2beta2MetricIdentifier name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is the name of the given metric") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V2beta2MetricIdentifier selector(V1LabelSelector selector) { + this.selector = selector; return this; } /** - * selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics. + * Get selector * @return selector **/ - @ApiModelProperty(value = "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V1LabelSelector getSelector() { return selector; } + + public void setSelector(V1LabelSelector selector) { this.selector = selector; } @@ -75,20 +91,12 @@ public void setSelector(V1LabelSelector selector) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2MetricIdentifier v2beta2MetricIdentifier = (V2beta2MetricIdentifier) o; - return Objects.equals(this.name, v2beta2MetricIdentifier.name) && - Objects.equals(this.selector, v2beta2MetricIdentifier.selector); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, selector); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2MetricIdentifier {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" selector: ").append(toIndentedString(selector)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricSpec.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricSpec.java index d867634c3a..f62a59bbeb 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricSpec.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricSpec.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,96 +34,127 @@ * MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). */ @ApiModel(description = "MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2MetricSpec { - @SerializedName("external") - private V2beta2ExternalMetricSource external = null; + public static final String SERIALIZED_NAME_EXTERNAL = "external"; + @SerializedName(SERIALIZED_NAME_EXTERNAL) + private V2beta2ExternalMetricSource external; + + public static final String SERIALIZED_NAME_OBJECT = "object"; + @SerializedName(SERIALIZED_NAME_OBJECT) + private V2beta2ObjectMetricSource _object; - @SerializedName("object") - private V2beta2ObjectMetricSource object = null; + public static final String SERIALIZED_NAME_PODS = "pods"; + @SerializedName(SERIALIZED_NAME_PODS) + private V2beta2PodsMetricSource pods; - @SerializedName("pods") - private V2beta2PodsMetricSource pods = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private V2beta2ResourceMetricSource resource; - @SerializedName("resource") - private V2beta2ResourceMetricSource resource = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V2beta2MetricSpec external(V2beta2ExternalMetricSource external) { + this.external = external; return this; } /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * Get external * @return external **/ - @ApiModelProperty(value = "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2ExternalMetricSource getExternal() { return external; } + + public void setExternal(V2beta2ExternalMetricSource external) { this.external = external; } - public V2beta2MetricSpec object(V2beta2ObjectMetricSource object) { - this.object = object; + + public V2beta2MetricSpec _object(V2beta2ObjectMetricSource _object) { + + this._object = _object; return this; } /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * @return object + * Get _object + * @return _object **/ - @ApiModelProperty(value = "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2ObjectMetricSource getObject() { - return object; + return _object; } - public void setObject(V2beta2ObjectMetricSource object) { - this.object = object; + + + public void setObject(V2beta2ObjectMetricSource _object) { + this._object = _object; } + public V2beta2MetricSpec pods(V2beta2PodsMetricSource pods) { + this.pods = pods; return this; } /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * Get pods * @return pods **/ - @ApiModelProperty(value = "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2PodsMetricSource getPods() { return pods; } + + public void setPods(V2beta2PodsMetricSource pods) { this.pods = pods; } + public V2beta2MetricSpec resource(V2beta2ResourceMetricSource resource) { + this.resource = resource; return this; } /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + * Get resource * @return resource **/ - @ApiModelProperty(value = "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2ResourceMetricSource getResource() { return resource; } + + public void setResource(V2beta2ResourceMetricSource resource) { this.resource = resource; } + public V2beta2MetricSpec type(String type) { + this.type = type; return this; } @@ -130,10 +164,13 @@ public V2beta2MetricSpec type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type is the type of metric source. It should be one of \"Object\", \"Pods\" or \"Resource\", each mapping to a matching field in the object.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -141,23 +178,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2MetricSpec v2beta2MetricSpec = (V2beta2MetricSpec) o; - return Objects.equals(this.external, v2beta2MetricSpec.external) && - Objects.equals(this.object, v2beta2MetricSpec.object) && - Objects.equals(this.pods, v2beta2MetricSpec.pods) && - Objects.equals(this.resource, v2beta2MetricSpec.resource) && - Objects.equals(this.type, v2beta2MetricSpec.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(external, object, pods, resource, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -165,9 +191,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2MetricSpec {\n"); - sb.append(" external: ").append(toIndentedString(external)).append("\n"); - sb.append(" object: ").append(toIndentedString(object)).append("\n"); + sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); sb.append(" pods: ").append(toIndentedString(pods)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricStatus.java index c140d3e86c..09e8c97de2 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -31,96 +34,127 @@ * MetricStatus describes the last-read state of a single metric. */ @ApiModel(description = "MetricStatus describes the last-read state of a single metric.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2MetricStatus { - @SerializedName("external") - private V2beta2ExternalMetricStatus external = null; + public static final String SERIALIZED_NAME_EXTERNAL = "external"; + @SerializedName(SERIALIZED_NAME_EXTERNAL) + private V2beta2ExternalMetricStatus external; + + public static final String SERIALIZED_NAME_OBJECT = "object"; + @SerializedName(SERIALIZED_NAME_OBJECT) + private V2beta2ObjectMetricStatus _object; - @SerializedName("object") - private V2beta2ObjectMetricStatus object = null; + public static final String SERIALIZED_NAME_PODS = "pods"; + @SerializedName(SERIALIZED_NAME_PODS) + private V2beta2PodsMetricStatus pods; - @SerializedName("pods") - private V2beta2PodsMetricStatus pods = null; + public static final String SERIALIZED_NAME_RESOURCE = "resource"; + @SerializedName(SERIALIZED_NAME_RESOURCE) + private V2beta2ResourceMetricStatus resource; - @SerializedName("resource") - private V2beta2ResourceMetricStatus resource = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; public V2beta2MetricStatus external(V2beta2ExternalMetricStatus external) { + this.external = external; return this; } /** - * external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). + * Get external * @return external **/ - @ApiModelProperty(value = "external refers to a global metric that is not associated with any Kubernetes object. It allows autoscaling based on information coming from components running outside of cluster (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2ExternalMetricStatus getExternal() { return external; } + + public void setExternal(V2beta2ExternalMetricStatus external) { this.external = external; } - public V2beta2MetricStatus object(V2beta2ObjectMetricStatus object) { - this.object = object; + + public V2beta2MetricStatus _object(V2beta2ObjectMetricStatus _object) { + + this._object = _object; return this; } /** - * object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object). - * @return object + * Get _object + * @return _object **/ - @ApiModelProperty(value = "object refers to a metric describing a single kubernetes object (for example, hits-per-second on an Ingress object).") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2ObjectMetricStatus getObject() { - return object; + return _object; } - public void setObject(V2beta2ObjectMetricStatus object) { - this.object = object; + + + public void setObject(V2beta2ObjectMetricStatus _object) { + this._object = _object; } + public V2beta2MetricStatus pods(V2beta2PodsMetricStatus pods) { + this.pods = pods; return this; } /** - * pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. + * Get pods * @return pods **/ - @ApiModelProperty(value = "pods refers to a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2PodsMetricStatus getPods() { return pods; } + + public void setPods(V2beta2PodsMetricStatus pods) { this.pods = pods; } + public V2beta2MetricStatus resource(V2beta2ResourceMetricStatus resource) { + this.resource = resource; return this; } /** - * resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. + * Get resource * @return resource **/ - @ApiModelProperty(value = "resource refers to a resource metric (such as those specified in requests and limits) known to Kubernetes describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") + @javax.annotation.Nullable + @ApiModelProperty(value = "") + public V2beta2ResourceMetricStatus getResource() { return resource; } + + public void setResource(V2beta2ResourceMetricStatus resource) { this.resource = resource; } + public V2beta2MetricStatus type(String type) { + this.type = type; return this; } @@ -130,10 +164,13 @@ public V2beta2MetricStatus type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type is the type of metric source. It will be one of \"Object\", \"Pods\" or \"Resource\", each corresponds to a matching field in the object.") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } @@ -141,23 +178,12 @@ public void setType(String type) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2MetricStatus v2beta2MetricStatus = (V2beta2MetricStatus) o; - return Objects.equals(this.external, v2beta2MetricStatus.external) && - Objects.equals(this.object, v2beta2MetricStatus.object) && - Objects.equals(this.pods, v2beta2MetricStatus.pods) && - Objects.equals(this.resource, v2beta2MetricStatus.resource) && - Objects.equals(this.type, v2beta2MetricStatus.type); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(external, object, pods, resource, type); + return HashCodeBuilder.reflectionHashCode(this); } @@ -165,9 +191,8 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2MetricStatus {\n"); - sb.append(" external: ").append(toIndentedString(external)).append("\n"); - sb.append(" object: ").append(toIndentedString(object)).append("\n"); + sb.append(" _object: ").append(toIndentedString(_object)).append("\n"); sb.append(" pods: ").append(toIndentedString(pods)).append("\n"); sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricTarget.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricTarget.java index 7e0bbbda2e..0253c36dca 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricTarget.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricTarget.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,21 +31,27 @@ * MetricTarget defines the target value, average value, or average utilization of a specific metric */ @ApiModel(description = "MetricTarget defines the target value, average value, or average utilization of a specific metric") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2MetricTarget { - @SerializedName("averageUtilization") - private Integer averageUtilization = null; + public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; + @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) + private Integer averageUtilization; + + public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; + @SerializedName(SERIALIZED_NAME_AVERAGE_VALUE) + private Quantity averageValue; - @SerializedName("averageValue") - private Quantity averageValue = null; + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private String type; - @SerializedName("type") - private String type = null; + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Quantity value; - @SerializedName("value") - private Quantity value = null; public V2beta2MetricTarget averageUtilization(Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @@ -51,34 +60,46 @@ public V2beta2MetricTarget averageUtilization(Integer averageUtilization) { * averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type * @return averageUtilization **/ + @javax.annotation.Nullable @ApiModelProperty(value = "averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type") + public Integer getAverageUtilization() { return averageUtilization; } + + public void setAverageUtilization(Integer averageUtilization) { this.averageUtilization = averageUtilization; } + public V2beta2MetricTarget averageValue(Quantity averageValue) { + this.averageValue = averageValue; return this; } /** - * averageValue is the target value of the average of the metric across all relevant pods (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return averageValue **/ - @ApiModelProperty(value = "averageValue is the target value of the average of the metric across all relevant pods (as a quantity)") + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getAverageValue() { return averageValue; } + + public void setAverageValue(Quantity averageValue) { this.averageValue = averageValue; } + public V2beta2MetricTarget type(String type) { + this.type = type; return this; } @@ -88,28 +109,37 @@ public V2beta2MetricTarget type(String type) { * @return type **/ @ApiModelProperty(required = true, value = "type represents whether the metric type is Utilization, Value, or AverageValue") + public String getType() { return type; } + + public void setType(String type) { this.type = type; } + public V2beta2MetricTarget value(Quantity value) { + this.value = value; return this; } /** - * value is the target value of the metric (as a quantity). + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return value **/ - @ApiModelProperty(value = "value is the target value of the metric (as a quantity).") + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + public Quantity getValue() { return value; } + + public void setValue(Quantity value) { this.value = value; } @@ -117,22 +147,12 @@ public void setValue(Quantity value) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2MetricTarget v2beta2MetricTarget = (V2beta2MetricTarget) o; - return Objects.equals(this.averageUtilization, v2beta2MetricTarget.averageUtilization) && - Objects.equals(this.averageValue, v2beta2MetricTarget.averageValue) && - Objects.equals(this.type, v2beta2MetricTarget.type) && - Objects.equals(this.value, v2beta2MetricTarget.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(averageUtilization, averageValue, type, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -140,7 +160,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2MetricTarget {\n"); - sb.append(" averageUtilization: ").append(toIndentedString(averageUtilization)).append("\n"); sb.append(" averageValue: ").append(toIndentedString(averageValue)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricValueStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricValueStatus.java index f9223104d5..630aa128c3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricValueStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2MetricValueStatus.java @@ -1,24 +1,28 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.custom.Quantity; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; @@ -27,18 +31,23 @@ * MetricValueStatus holds the current value for a metric */ @ApiModel(description = "MetricValueStatus holds the current value for a metric") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2MetricValueStatus { - @SerializedName("averageUtilization") - private Integer averageUtilization = null; + public static final String SERIALIZED_NAME_AVERAGE_UTILIZATION = "averageUtilization"; + @SerializedName(SERIALIZED_NAME_AVERAGE_UTILIZATION) + private Integer averageUtilization; + + public static final String SERIALIZED_NAME_AVERAGE_VALUE = "averageValue"; + @SerializedName(SERIALIZED_NAME_AVERAGE_VALUE) + private Quantity averageValue; - @SerializedName("averageValue") - private String averageValue = null; + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private Quantity value; - @SerializedName("value") - private String value = null; public V2beta2MetricValueStatus averageUtilization(Integer averageUtilization) { + this.averageUtilization = averageUtilization; return this; } @@ -47,69 +56,76 @@ public V2beta2MetricValueStatus averageUtilization(Integer averageUtilization) { * currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. * @return averageUtilization **/ + @javax.annotation.Nullable @ApiModelProperty(value = "currentAverageUtilization is the current value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods.") + public Integer getAverageUtilization() { return averageUtilization; } + + public void setAverageUtilization(Integer averageUtilization) { this.averageUtilization = averageUtilization; } - public V2beta2MetricValueStatus averageValue(String averageValue) { + + public V2beta2MetricValueStatus averageValue(Quantity averageValue) { + this.averageValue = averageValue; return this; } /** - * averageValue is the current value of the average of the metric across all relevant pods (as a quantity) + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return averageValue **/ - @ApiModelProperty(value = "averageValue is the current value of the average of the metric across all relevant pods (as a quantity)") - public String getAverageValue() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getAverageValue() { return averageValue; } - public void setAverageValue(String averageValue) { + + + public void setAverageValue(Quantity averageValue) { this.averageValue = averageValue; } - public V2beta2MetricValueStatus value(String value) { + + public V2beta2MetricValueStatus value(Quantity value) { + this.value = value; return this; } /** - * value is the current value of the metric (as a quantity). + * Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. * @return value **/ - @ApiModelProperty(value = "value is the current value of the metric (as a quantity).") - public String getValue() { + @javax.annotation.Nullable + @ApiModelProperty(value = "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors. The serialization format is: ::= (Note that may be empty, from the \"\" case in .) ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) ::= \"e\" | \"E\" No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: a. No precision is lost b. No fractional digits will be emitted c. The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: 1.5 will be serialized as \"1500m\" 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.") + + public Quantity getValue() { return value; } - public void setValue(String value) { + + + public void setValue(Quantity value) { this.value = value; } @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2MetricValueStatus v2beta2MetricValueStatus = (V2beta2MetricValueStatus) o; - return Objects.equals(this.averageUtilization, v2beta2MetricValueStatus.averageUtilization) && - Objects.equals(this.averageValue, v2beta2MetricValueStatus.averageValue) && - Objects.equals(this.value, v2beta2MetricValueStatus.value); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(averageUtilization, averageValue, value); + return HashCodeBuilder.reflectionHashCode(this); } @@ -117,7 +133,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2MetricValueStatus {\n"); - sb.append(" averageUtilization: ").append(toIndentedString(averageUtilization)).append("\n"); sb.append(" averageValue: ").append(toIndentedString(averageValue)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricSource.java index 03b66f36d4..b883d2ab9d 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,18 +33,23 @@ * ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2ObjectMetricSource { - @SerializedName("describedObject") - private V2beta2CrossVersionObjectReference describedObject = null; + public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; + @SerializedName(SERIALIZED_NAME_DESCRIBED_OBJECT) + private V2beta2CrossVersionObjectReference describedObject; + + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private V2beta2MetricIdentifier metric; - @SerializedName("metric") - private V2beta2MetricIdentifier metric = null; + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V2beta2MetricTarget target; - @SerializedName("target") - private V2beta2MetricTarget target = null; public V2beta2ObjectMetricSource describedObject(V2beta2CrossVersionObjectReference describedObject) { + this.describedObject = describedObject; return this; } @@ -51,46 +59,59 @@ public V2beta2ObjectMetricSource describedObject(V2beta2CrossVersionObjectRefere * @return describedObject **/ @ApiModelProperty(required = true, value = "") + public V2beta2CrossVersionObjectReference getDescribedObject() { return describedObject; } + + public void setDescribedObject(V2beta2CrossVersionObjectReference describedObject) { this.describedObject = describedObject; } + public V2beta2ObjectMetricSource metric(V2beta2MetricIdentifier metric) { + this.metric = metric; return this; } /** - * metric identifies the target metric by name and selector + * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "metric identifies the target metric by name and selector") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricIdentifier getMetric() { return metric; } + + public void setMetric(V2beta2MetricIdentifier metric) { this.metric = metric; } + public V2beta2ObjectMetricSource target(V2beta2MetricTarget target) { + this.target = target; return this; } /** - * target specifies the target value for the given metric + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "target specifies the target value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricTarget getTarget() { return target; } + + public void setTarget(V2beta2MetricTarget target) { this.target = target; } @@ -98,21 +119,12 @@ public void setTarget(V2beta2MetricTarget target) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2ObjectMetricSource v2beta2ObjectMetricSource = (V2beta2ObjectMetricSource) o; - return Objects.equals(this.describedObject, v2beta2ObjectMetricSource.describedObject) && - Objects.equals(this.metric, v2beta2ObjectMetricSource.metric) && - Objects.equals(this.target, v2beta2ObjectMetricSource.target); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(describedObject, metric, target); + return HashCodeBuilder.reflectionHashCode(this); } @@ -120,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2ObjectMetricSource {\n"); - sb.append(" describedObject: ").append(toIndentedString(describedObject)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricStatus.java index 32ace596f4..4eb2d089b1 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ObjectMetricStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -30,36 +33,46 @@ * ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). */ @ApiModel(description = "ObjectMetricStatus indicates the current value of a metric describing a kubernetes object (for example, hits-per-second on an Ingress object).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2ObjectMetricStatus { - @SerializedName("current") - private V2beta2MetricValueStatus current = null; + public static final String SERIALIZED_NAME_CURRENT = "current"; + @SerializedName(SERIALIZED_NAME_CURRENT) + private V2beta2MetricValueStatus current; + + public static final String SERIALIZED_NAME_DESCRIBED_OBJECT = "describedObject"; + @SerializedName(SERIALIZED_NAME_DESCRIBED_OBJECT) + private V2beta2CrossVersionObjectReference describedObject; - @SerializedName("describedObject") - private V2beta2CrossVersionObjectReference describedObject = null; + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private V2beta2MetricIdentifier metric; - @SerializedName("metric") - private V2beta2MetricIdentifier metric = null; public V2beta2ObjectMetricStatus current(V2beta2MetricValueStatus current) { + this.current = current; return this; } /** - * current contains the current value for the given metric + * Get current * @return current **/ - @ApiModelProperty(required = true, value = "current contains the current value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricValueStatus getCurrent() { return current; } + + public void setCurrent(V2beta2MetricValueStatus current) { this.current = current; } + public V2beta2ObjectMetricStatus describedObject(V2beta2CrossVersionObjectReference describedObject) { + this.describedObject = describedObject; return this; } @@ -69,28 +82,36 @@ public V2beta2ObjectMetricStatus describedObject(V2beta2CrossVersionObjectRefere * @return describedObject **/ @ApiModelProperty(required = true, value = "") + public V2beta2CrossVersionObjectReference getDescribedObject() { return describedObject; } + + public void setDescribedObject(V2beta2CrossVersionObjectReference describedObject) { this.describedObject = describedObject; } + public V2beta2ObjectMetricStatus metric(V2beta2MetricIdentifier metric) { + this.metric = metric; return this; } /** - * metric identifies the target metric by name and selector + * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "metric identifies the target metric by name and selector") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricIdentifier getMetric() { return metric; } + + public void setMetric(V2beta2MetricIdentifier metric) { this.metric = metric; } @@ -98,21 +119,12 @@ public void setMetric(V2beta2MetricIdentifier metric) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2ObjectMetricStatus v2beta2ObjectMetricStatus = (V2beta2ObjectMetricStatus) o; - return Objects.equals(this.current, v2beta2ObjectMetricStatus.current) && - Objects.equals(this.describedObject, v2beta2ObjectMetricStatus.describedObject) && - Objects.equals(this.metric, v2beta2ObjectMetricStatus.metric); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(current, describedObject, metric); + return HashCodeBuilder.reflectionHashCode(this); } @@ -120,7 +132,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2ObjectMetricStatus {\n"); - sb.append(" current: ").append(toIndentedString(current)).append("\n"); sb.append(" describedObject: ").append(toIndentedString(describedObject)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricSource.java index 98be0d2264..8edc547686 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,58 @@ * PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value. */ @ApiModel(description = "PodsMetricSource indicates how to scale on a metric describing each pod in the current scale target (for example, transactions-processed-per-second). The values will be averaged together before being compared to the target value.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2PodsMetricSource { - @SerializedName("metric") - private V2beta2MetricIdentifier metric = null; + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private V2beta2MetricIdentifier metric; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V2beta2MetricTarget target; - @SerializedName("target") - private V2beta2MetricTarget target = null; public V2beta2PodsMetricSource metric(V2beta2MetricIdentifier metric) { + this.metric = metric; return this; } /** - * metric identifies the target metric by name and selector + * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "metric identifies the target metric by name and selector") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricIdentifier getMetric() { return metric; } + + public void setMetric(V2beta2MetricIdentifier metric) { this.metric = metric; } + public V2beta2PodsMetricSource target(V2beta2MetricTarget target) { + this.target = target; return this; } /** - * target specifies the target value for the given metric + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "target specifies the target value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricTarget getTarget() { return target; } + + public void setTarget(V2beta2MetricTarget target) { this.target = target; } @@ -76,20 +91,12 @@ public void setTarget(V2beta2MetricTarget target) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2PodsMetricSource v2beta2PodsMetricSource = (V2beta2PodsMetricSource) o; - return Objects.equals(this.metric, v2beta2PodsMetricSource.metric) && - Objects.equals(this.target, v2beta2PodsMetricSource.target); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(metric, target); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2PodsMetricSource {\n"); - sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricStatus.java index e7d12a99b2..e0a9ff8779 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2PodsMetricStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -29,46 +32,58 @@ * PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second). */ @ApiModel(description = "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2PodsMetricStatus { - @SerializedName("current") - private V2beta2MetricValueStatus current = null; + public static final String SERIALIZED_NAME_CURRENT = "current"; + @SerializedName(SERIALIZED_NAME_CURRENT) + private V2beta2MetricValueStatus current; + + public static final String SERIALIZED_NAME_METRIC = "metric"; + @SerializedName(SERIALIZED_NAME_METRIC) + private V2beta2MetricIdentifier metric; - @SerializedName("metric") - private V2beta2MetricIdentifier metric = null; public V2beta2PodsMetricStatus current(V2beta2MetricValueStatus current) { + this.current = current; return this; } /** - * current contains the current value for the given metric + * Get current * @return current **/ - @ApiModelProperty(required = true, value = "current contains the current value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricValueStatus getCurrent() { return current; } + + public void setCurrent(V2beta2MetricValueStatus current) { this.current = current; } + public V2beta2PodsMetricStatus metric(V2beta2MetricIdentifier metric) { + this.metric = metric; return this; } /** - * metric identifies the target metric by name and selector + * Get metric * @return metric **/ - @ApiModelProperty(required = true, value = "metric identifies the target metric by name and selector") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricIdentifier getMetric() { return metric; } + + public void setMetric(V2beta2MetricIdentifier metric) { this.metric = metric; } @@ -76,20 +91,12 @@ public void setMetric(V2beta2MetricIdentifier metric) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2PodsMetricStatus v2beta2PodsMetricStatus = (V2beta2PodsMetricStatus) o; - return Objects.equals(this.current, v2beta2PodsMetricStatus.current) && - Objects.equals(this.metric, v2beta2PodsMetricStatus.metric); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(current, metric); + return HashCodeBuilder.reflectionHashCode(this); } @@ -97,7 +104,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2PodsMetricStatus {\n"); - sb.append(" current: ").append(toIndentedString(current)).append("\n"); sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricSource.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricSource.java index f008fe6c17..70800705ad 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricSource.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricSource.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,15 +31,19 @@ * ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set. */ @ApiModel(description = "ResourceMetricSource indicates how to scale on a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). The values will be averaged together before being compared to the target. Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. Only one \"target\" type should be set.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2ResourceMetricSource { - @SerializedName("name") - private String name = null; + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_TARGET = "target"; + @SerializedName(SERIALIZED_NAME_TARGET) + private V2beta2MetricTarget target; - @SerializedName("target") - private V2beta2MetricTarget target = null; public V2beta2ResourceMetricSource name(String name) { + this.name = name; return this; } @@ -46,28 +53,36 @@ public V2beta2ResourceMetricSource name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "name is the name of the resource in question.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } + public V2beta2ResourceMetricSource target(V2beta2MetricTarget target) { + this.target = target; return this; } /** - * target specifies the target value for the given metric + * Get target * @return target **/ - @ApiModelProperty(required = true, value = "target specifies the target value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricTarget getTarget() { return target; } + + public void setTarget(V2beta2MetricTarget target) { this.target = target; } @@ -75,20 +90,12 @@ public void setTarget(V2beta2MetricTarget target) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2ResourceMetricSource v2beta2ResourceMetricSource = (V2beta2ResourceMetricSource) o; - return Objects.equals(this.name, v2beta2ResourceMetricSource.name) && - Objects.equals(this.target, v2beta2ResourceMetricSource.target); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(name, target); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2ResourceMetricSource {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" target: ").append(toIndentedString(target)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricStatus.java b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricStatus.java index b49cc71904..747ae914a3 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricStatus.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/V2beta2ResourceMetricStatus.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -28,33 +31,42 @@ * ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source. */ @ApiModel(description = "ResourceMetricStatus indicates the current value of a resource metric known to Kubernetes, as specified in requests and limits, describing each pod in the current scale target (e.g. CPU or memory). Such metrics are built in to Kubernetes, and have special scaling options on top of those available to normal per-pod metrics using the \"pods\" source.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class V2beta2ResourceMetricStatus { - @SerializedName("current") - private V2beta2MetricValueStatus current = null; + public static final String SERIALIZED_NAME_CURRENT = "current"; + @SerializedName(SERIALIZED_NAME_CURRENT) + private V2beta2MetricValueStatus current; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; - @SerializedName("name") - private String name = null; public V2beta2ResourceMetricStatus current(V2beta2MetricValueStatus current) { + this.current = current; return this; } /** - * current contains the current value for the given metric + * Get current * @return current **/ - @ApiModelProperty(required = true, value = "current contains the current value for the given metric") + @ApiModelProperty(required = true, value = "") + public V2beta2MetricValueStatus getCurrent() { return current; } + + public void setCurrent(V2beta2MetricValueStatus current) { this.current = current; } + public V2beta2ResourceMetricStatus name(String name) { + this.name = name; return this; } @@ -64,10 +76,13 @@ public V2beta2ResourceMetricStatus name(String name) { * @return name **/ @ApiModelProperty(required = true, value = "Name is the name of the resource in question.") + public String getName() { return name; } + + public void setName(String name) { this.name = name; } @@ -75,20 +90,12 @@ public void setName(String name) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - V2beta2ResourceMetricStatus v2beta2ResourceMetricStatus = (V2beta2ResourceMetricStatus) o; - return Objects.equals(this.current, v2beta2ResourceMetricStatus.current) && - Objects.equals(this.name, v2beta2ResourceMetricStatus.name); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(current, name); + return HashCodeBuilder.reflectionHashCode(this); } @@ -96,7 +103,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class V2beta2ResourceMetricStatus {\n"); - sb.append(" current: ").append(toIndentedString(current)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append("}"); diff --git a/kubernetes/src/main/java/io/kubernetes/client/models/VersionInfo.java b/kubernetes/src/main/java/io/kubernetes/client/models/VersionInfo.java index 54c64ad6a8..5218c04cde 100644 --- a/kubernetes/src/main/java/io/kubernetes/client/models/VersionInfo.java +++ b/kubernetes/src/main/java/io/kubernetes/client/models/VersionInfo.java @@ -1,19 +1,22 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ package io.kubernetes.client.models; +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; import java.util.Objects; +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; @@ -27,36 +30,47 @@ * Info contains versioning information. how we'll want to distribute that information. */ @ApiModel(description = "Info contains versioning information. how we'll want to distribute that information.") - +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2019-10-22T00:42:19.661Z[Etc/UTC]") public class VersionInfo { - @SerializedName("buildDate") - private String buildDate = null; + public static final String SERIALIZED_NAME_BUILD_DATE = "buildDate"; + @SerializedName(SERIALIZED_NAME_BUILD_DATE) + private String buildDate; + + public static final String SERIALIZED_NAME_COMPILER = "compiler"; + @SerializedName(SERIALIZED_NAME_COMPILER) + private String compiler; - @SerializedName("compiler") - private String compiler = null; + public static final String SERIALIZED_NAME_GIT_COMMIT = "gitCommit"; + @SerializedName(SERIALIZED_NAME_GIT_COMMIT) + private String gitCommit; - @SerializedName("gitCommit") - private String gitCommit = null; + public static final String SERIALIZED_NAME_GIT_TREE_STATE = "gitTreeState"; + @SerializedName(SERIALIZED_NAME_GIT_TREE_STATE) + private String gitTreeState; - @SerializedName("gitTreeState") - private String gitTreeState = null; + public static final String SERIALIZED_NAME_GIT_VERSION = "gitVersion"; + @SerializedName(SERIALIZED_NAME_GIT_VERSION) + private String gitVersion; - @SerializedName("gitVersion") - private String gitVersion = null; + public static final String SERIALIZED_NAME_GO_VERSION = "goVersion"; + @SerializedName(SERIALIZED_NAME_GO_VERSION) + private String goVersion; - @SerializedName("goVersion") - private String goVersion = null; + public static final String SERIALIZED_NAME_MAJOR = "major"; + @SerializedName(SERIALIZED_NAME_MAJOR) + private String major; - @SerializedName("major") - private String major = null; + public static final String SERIALIZED_NAME_MINOR = "minor"; + @SerializedName(SERIALIZED_NAME_MINOR) + private String minor; - @SerializedName("minor") - private String minor = null; + public static final String SERIALIZED_NAME_PLATFORM = "platform"; + @SerializedName(SERIALIZED_NAME_PLATFORM) + private String platform; - @SerializedName("platform") - private String platform = null; public VersionInfo buildDate(String buildDate) { + this.buildDate = buildDate; return this; } @@ -66,15 +80,20 @@ public VersionInfo buildDate(String buildDate) { * @return buildDate **/ @ApiModelProperty(required = true, value = "") + public String getBuildDate() { return buildDate; } + + public void setBuildDate(String buildDate) { this.buildDate = buildDate; } + public VersionInfo compiler(String compiler) { + this.compiler = compiler; return this; } @@ -84,15 +103,20 @@ public VersionInfo compiler(String compiler) { * @return compiler **/ @ApiModelProperty(required = true, value = "") + public String getCompiler() { return compiler; } + + public void setCompiler(String compiler) { this.compiler = compiler; } + public VersionInfo gitCommit(String gitCommit) { + this.gitCommit = gitCommit; return this; } @@ -102,15 +126,20 @@ public VersionInfo gitCommit(String gitCommit) { * @return gitCommit **/ @ApiModelProperty(required = true, value = "") + public String getGitCommit() { return gitCommit; } + + public void setGitCommit(String gitCommit) { this.gitCommit = gitCommit; } + public VersionInfo gitTreeState(String gitTreeState) { + this.gitTreeState = gitTreeState; return this; } @@ -120,15 +149,20 @@ public VersionInfo gitTreeState(String gitTreeState) { * @return gitTreeState **/ @ApiModelProperty(required = true, value = "") + public String getGitTreeState() { return gitTreeState; } + + public void setGitTreeState(String gitTreeState) { this.gitTreeState = gitTreeState; } + public VersionInfo gitVersion(String gitVersion) { + this.gitVersion = gitVersion; return this; } @@ -138,15 +172,20 @@ public VersionInfo gitVersion(String gitVersion) { * @return gitVersion **/ @ApiModelProperty(required = true, value = "") + public String getGitVersion() { return gitVersion; } + + public void setGitVersion(String gitVersion) { this.gitVersion = gitVersion; } + public VersionInfo goVersion(String goVersion) { + this.goVersion = goVersion; return this; } @@ -156,15 +195,20 @@ public VersionInfo goVersion(String goVersion) { * @return goVersion **/ @ApiModelProperty(required = true, value = "") + public String getGoVersion() { return goVersion; } + + public void setGoVersion(String goVersion) { this.goVersion = goVersion; } + public VersionInfo major(String major) { + this.major = major; return this; } @@ -174,15 +218,20 @@ public VersionInfo major(String major) { * @return major **/ @ApiModelProperty(required = true, value = "") + public String getMajor() { return major; } + + public void setMajor(String major) { this.major = major; } + public VersionInfo minor(String minor) { + this.minor = minor; return this; } @@ -192,15 +241,20 @@ public VersionInfo minor(String minor) { * @return minor **/ @ApiModelProperty(required = true, value = "") + public String getMinor() { return minor; } + + public void setMinor(String minor) { this.minor = minor; } + public VersionInfo platform(String platform) { + this.platform = platform; return this; } @@ -210,10 +264,13 @@ public VersionInfo platform(String platform) { * @return platform **/ @ApiModelProperty(required = true, value = "") + public String getPlatform() { return platform; } + + public void setPlatform(String platform) { this.platform = platform; } @@ -221,27 +278,12 @@ public void setPlatform(String platform) { @Override public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - VersionInfo versionInfo = (VersionInfo) o; - return Objects.equals(this.buildDate, versionInfo.buildDate) && - Objects.equals(this.compiler, versionInfo.compiler) && - Objects.equals(this.gitCommit, versionInfo.gitCommit) && - Objects.equals(this.gitTreeState, versionInfo.gitTreeState) && - Objects.equals(this.gitVersion, versionInfo.gitVersion) && - Objects.equals(this.goVersion, versionInfo.goVersion) && - Objects.equals(this.major, versionInfo.major) && - Objects.equals(this.minor, versionInfo.minor) && - Objects.equals(this.platform, versionInfo.platform); + return EqualsBuilder.reflectionEquals(this, o); } @Override public int hashCode() { - return Objects.hash(buildDate, compiler, gitCommit, gitTreeState, gitVersion, goVersion, major, minor, platform); + return HashCodeBuilder.reflectionHashCode(this); } @@ -249,7 +291,6 @@ public int hashCode() { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class VersionInfo {\n"); - sb.append(" buildDate: ").append(toIndentedString(buildDate)).append("\n"); sb.append(" compiler: ").append(toIndentedString(compiler)).append("\n"); sb.append(" gitCommit: ").append(toIndentedString(gitCommit)).append("\n"); diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationApiTest.java index dff523abe0..6ef299ea4d 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1ApiTest.java index 4605c21b56..cc0462a3db 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AdmissionregistrationV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1MutatingWebhookConfiguration; import io.kubernetes.client.models.V1beta1MutatingWebhookConfigurationList; @@ -88,14 +87,20 @@ public void createValidatingWebhookConfigurationTest() throws ApiException { @Test public void deleteCollectionMutatingWebhookConfigurationTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionMutatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -111,14 +116,20 @@ public void deleteCollectionMutatingWebhookConfigurationTest() throws ApiExcepti @Test public void deleteCollectionValidatingWebhookConfigurationTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionValidatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -135,12 +146,12 @@ public void deleteCollectionValidatingWebhookConfigurationTest() throws ApiExcep public void deleteMutatingWebhookConfigurationTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteMutatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteMutatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -157,12 +168,12 @@ public void deleteMutatingWebhookConfigurationTest() throws ApiException { public void deleteValidatingWebhookConfigurationTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteValidatingWebhookConfiguration(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteValidatingWebhookConfiguration(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -193,6 +204,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listMutatingWebhookConfigurationTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -200,7 +212,7 @@ public void listMutatingWebhookConfigurationTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1MutatingWebhookConfigurationList response = api.listMutatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1MutatingWebhookConfigurationList response = api.listMutatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -216,6 +228,7 @@ public void listMutatingWebhookConfigurationTest() throws ApiException { @Test public void listValidatingWebhookConfigurationTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -223,7 +236,7 @@ public void listValidatingWebhookConfigurationTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ValidatingWebhookConfigurationList response = api.listValidatingWebhookConfiguration(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1ValidatingWebhookConfigurationList response = api.listValidatingWebhookConfiguration(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -239,7 +252,7 @@ public void listValidatingWebhookConfigurationTest() throws ApiException { @Test public void patchMutatingWebhookConfigurationTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -260,7 +273,7 @@ public void patchMutatingWebhookConfigurationTest() throws ApiException { @Test public void patchValidatingWebhookConfigurationTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsApiTest.java index 3a4cbe40f4..a461cbe6f3 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsV1beta1ApiTest.java index 8a63e258b5..01b8c2e153 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiextensionsV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CustomResourceDefinition; import io.kubernetes.client.models.V1beta1CustomResourceDefinitionList; @@ -67,14 +66,20 @@ public void createCustomResourceDefinitionTest() throws ApiException { @Test public void deleteCollectionCustomResourceDefinitionTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionCustomResourceDefinition(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionCustomResourceDefinitionTest() throws ApiException { public void deleteCustomResourceDefinitionTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteCustomResourceDefinition(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteCustomResourceDefinition(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listCustomResourceDefinitionTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listCustomResourceDefinitionTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1CustomResourceDefinitionList response = api.listCustomResourceDefinition(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1CustomResourceDefinitionList response = api.listCustomResourceDefinition(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listCustomResourceDefinitionTest() throws ApiException { @Test public void patchCustomResourceDefinitionTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -171,7 +177,7 @@ public void patchCustomResourceDefinitionTest() throws ApiException { @Test public void patchCustomResourceDefinitionStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationApiTest.java index 69d24ee7bb..b46538b013 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1ApiTest.java index 4d638e0143..4aed414397 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.V1APIService; import io.kubernetes.client.models.V1APIServiceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import org.junit.Test; import org.junit.Ignore; @@ -68,12 +67,12 @@ public void createAPIServiceTest() throws ApiException { public void deleteAPIServiceTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteAPIService(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -89,14 +88,20 @@ public void deleteAPIServiceTest() throws ApiException { @Test public void deleteCollectionAPIServiceTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionAPIService(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listAPIServiceTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listAPIServiceTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1APIServiceList response = api.listAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1APIServiceList response = api.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listAPIServiceTest() throws ApiException { @Test public void patchAPIServiceTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -171,7 +177,7 @@ public void patchAPIServiceTest() throws ApiException { @Test public void patchAPIServiceStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1beta1ApiTest.java index 9c00de6479..19acd51ccb 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ApiregistrationV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1APIService; import io.kubernetes.client.models.V1beta1APIServiceList; @@ -68,12 +67,12 @@ public void createAPIServiceTest() throws ApiException { public void deleteAPIServiceTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteAPIService(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteAPIService(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -89,14 +88,20 @@ public void deleteAPIServiceTest() throws ApiException { @Test public void deleteCollectionAPIServiceTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionAPIService(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listAPIServiceTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listAPIServiceTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1APIServiceList response = api.listAPIService(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1APIServiceList response = api.listAPIService(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listAPIServiceTest() throws ApiException { @Test public void patchAPIServiceTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -171,7 +177,7 @@ public void patchAPIServiceTest() throws ApiException { @Test public void patchAPIServiceStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ApisApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ApisApiTest.java index aa1bd5fe64..f145782638 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ApisApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ApisApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsApiTest.java index 854bf03e7b..0d8fc361ac 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1ApiTest.java index eb6eef4ce8..8e850e3f83 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -22,7 +22,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1Deployment; import io.kubernetes.client.models.V1DeploymentList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1ReplicaSet; import io.kubernetes.client.models.V1ReplicaSetList; import io.kubernetes.client.models.V1Scale; @@ -158,14 +157,20 @@ public void createNamespacedStatefulSetTest() throws ApiException { public void deleteCollectionNamespacedControllerRevisionTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -182,14 +187,20 @@ public void deleteCollectionNamespacedControllerRevisionTest() throws ApiExcepti public void deleteCollectionNamespacedDaemonSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -206,14 +217,20 @@ public void deleteCollectionNamespacedDaemonSetTest() throws ApiException { public void deleteCollectionNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -230,14 +247,20 @@ public void deleteCollectionNamespacedDeploymentTest() throws ApiException { public void deleteCollectionNamespacedReplicaSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -254,14 +277,20 @@ public void deleteCollectionNamespacedReplicaSetTest() throws ApiException { public void deleteCollectionNamespacedStatefulSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -279,12 +308,12 @@ public void deleteNamespacedControllerRevisionTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -302,12 +331,12 @@ public void deleteNamespacedDaemonSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -325,12 +354,12 @@ public void deleteNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -348,12 +377,12 @@ public void deleteNamespacedReplicaSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -371,12 +400,12 @@ public void deleteNamespacedStatefulSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -406,6 +435,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listControllerRevisionForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -414,7 +444,7 @@ public void listControllerRevisionForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ControllerRevisionList response = api.listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ControllerRevisionList response = api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -429,6 +459,7 @@ public void listControllerRevisionForAllNamespacesTest() throws ApiException { */ @Test public void listDaemonSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -437,7 +468,7 @@ public void listDaemonSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1DaemonSetList response = api.listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1DaemonSetList response = api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -452,6 +483,7 @@ public void listDaemonSetForAllNamespacesTest() throws ApiException { */ @Test public void listDeploymentForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -460,7 +492,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1DeploymentList response = api.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1DeploymentList response = api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -477,6 +509,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { public void listNamespacedControllerRevisionTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -484,7 +517,7 @@ public void listNamespacedControllerRevisionTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ControllerRevisionList response = api.listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ControllerRevisionList response = api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -501,6 +534,7 @@ public void listNamespacedControllerRevisionTest() throws ApiException { public void listNamespacedDaemonSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -508,7 +542,7 @@ public void listNamespacedDaemonSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1DaemonSetList response = api.listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DaemonSetList response = api.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -525,6 +559,7 @@ public void listNamespacedDaemonSetTest() throws ApiException { public void listNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -532,7 +567,7 @@ public void listNamespacedDeploymentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1DeploymentList response = api.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeploymentList response = api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -549,6 +584,7 @@ public void listNamespacedDeploymentTest() throws ApiException { public void listNamespacedReplicaSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -556,7 +592,7 @@ public void listNamespacedReplicaSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ReplicaSetList response = api.listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ReplicaSetList response = api.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -573,6 +609,7 @@ public void listNamespacedReplicaSetTest() throws ApiException { public void listNamespacedStatefulSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -580,7 +617,7 @@ public void listNamespacedStatefulSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1StatefulSetList response = api.listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1StatefulSetList response = api.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -595,6 +632,7 @@ public void listNamespacedStatefulSetTest() throws ApiException { */ @Test public void listReplicaSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -603,7 +641,7 @@ public void listReplicaSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ReplicaSetList response = api.listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ReplicaSetList response = api.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -618,6 +656,7 @@ public void listReplicaSetForAllNamespacesTest() throws ApiException { */ @Test public void listStatefulSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -626,7 +665,7 @@ public void listStatefulSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1StatefulSetList response = api.listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1StatefulSetList response = api.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -643,7 +682,7 @@ public void listStatefulSetForAllNamespacesTest() throws ApiException { public void patchNamespacedControllerRevisionTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -665,7 +704,7 @@ public void patchNamespacedControllerRevisionTest() throws ApiException { public void patchNamespacedDaemonSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -687,7 +726,7 @@ public void patchNamespacedDaemonSetTest() throws ApiException { public void patchNamespacedDaemonSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -709,7 +748,7 @@ public void patchNamespacedDaemonSetStatusTest() throws ApiException { public void patchNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -731,7 +770,7 @@ public void patchNamespacedDeploymentTest() throws ApiException { public void patchNamespacedDeploymentScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -753,7 +792,7 @@ public void patchNamespacedDeploymentScaleTest() throws ApiException { public void patchNamespacedDeploymentStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -775,7 +814,7 @@ public void patchNamespacedDeploymentStatusTest() throws ApiException { public void patchNamespacedReplicaSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -797,7 +836,7 @@ public void patchNamespacedReplicaSetTest() throws ApiException { public void patchNamespacedReplicaSetScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -819,7 +858,7 @@ public void patchNamespacedReplicaSetScaleTest() throws ApiException { public void patchNamespacedReplicaSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -841,7 +880,7 @@ public void patchNamespacedReplicaSetStatusTest() throws ApiException { public void patchNamespacedStatefulSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -863,7 +902,7 @@ public void patchNamespacedStatefulSetTest() throws ApiException { public void patchNamespacedStatefulSetScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -885,7 +924,7 @@ public void patchNamespacedStatefulSetScaleTest() throws ApiException { public void patchNamespacedStatefulSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta1ApiTest.java index 2cd9f0065f..a5d41276f8 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,6 @@ import io.kubernetes.client.models.AppsV1beta1Scale; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1ControllerRevision; import io.kubernetes.client.models.V1beta1ControllerRevisionList; @@ -136,14 +135,20 @@ public void createNamespacedStatefulSetTest() throws ApiException { public void deleteCollectionNamespacedControllerRevisionTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -160,14 +165,20 @@ public void deleteCollectionNamespacedControllerRevisionTest() throws ApiExcepti public void deleteCollectionNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -184,14 +195,20 @@ public void deleteCollectionNamespacedDeploymentTest() throws ApiException { public void deleteCollectionNamespacedStatefulSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -209,12 +226,12 @@ public void deleteNamespacedControllerRevisionTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -232,12 +249,12 @@ public void deleteNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -255,12 +272,12 @@ public void deleteNamespacedStatefulSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -290,6 +307,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listControllerRevisionForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -298,7 +316,7 @@ public void listControllerRevisionForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ControllerRevisionList response = api.listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1ControllerRevisionList response = api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -313,6 +331,7 @@ public void listControllerRevisionForAllNamespacesTest() throws ApiException { */ @Test public void listDeploymentForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -321,7 +340,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - AppsV1beta1DeploymentList response = api.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + AppsV1beta1DeploymentList response = api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -338,6 +357,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { public void listNamespacedControllerRevisionTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -345,7 +365,7 @@ public void listNamespacedControllerRevisionTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ControllerRevisionList response = api.listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1ControllerRevisionList response = api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -362,6 +382,7 @@ public void listNamespacedControllerRevisionTest() throws ApiException { public void listNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -369,7 +390,7 @@ public void listNamespacedDeploymentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - AppsV1beta1DeploymentList response = api.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + AppsV1beta1DeploymentList response = api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -386,6 +407,7 @@ public void listNamespacedDeploymentTest() throws ApiException { public void listNamespacedStatefulSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -393,7 +415,7 @@ public void listNamespacedStatefulSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1StatefulSetList response = api.listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1StatefulSetList response = api.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -408,6 +430,7 @@ public void listNamespacedStatefulSetTest() throws ApiException { */ @Test public void listStatefulSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -416,7 +439,7 @@ public void listStatefulSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1StatefulSetList response = api.listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1StatefulSetList response = api.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -433,7 +456,7 @@ public void listStatefulSetForAllNamespacesTest() throws ApiException { public void patchNamespacedControllerRevisionTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -455,7 +478,7 @@ public void patchNamespacedControllerRevisionTest() throws ApiException { public void patchNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -477,7 +500,7 @@ public void patchNamespacedDeploymentTest() throws ApiException { public void patchNamespacedDeploymentScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -499,7 +522,7 @@ public void patchNamespacedDeploymentScaleTest() throws ApiException { public void patchNamespacedDeploymentStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -521,7 +544,7 @@ public void patchNamespacedDeploymentStatusTest() throws ApiException { public void patchNamespacedStatefulSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -543,7 +566,7 @@ public void patchNamespacedStatefulSetTest() throws ApiException { public void patchNamespacedStatefulSetScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -565,7 +588,7 @@ public void patchNamespacedStatefulSetScaleTest() throws ApiException { public void patchNamespacedStatefulSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta2ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta2ApiTest.java index fcc102c918..84e3db72f4 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta2ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AppsV1beta2ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta2ControllerRevision; import io.kubernetes.client.models.V1beta2ControllerRevisionList; @@ -158,14 +157,20 @@ public void createNamespacedStatefulSetTest() throws ApiException { public void deleteCollectionNamespacedControllerRevisionTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -182,14 +187,20 @@ public void deleteCollectionNamespacedControllerRevisionTest() throws ApiExcepti public void deleteCollectionNamespacedDaemonSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -206,14 +217,20 @@ public void deleteCollectionNamespacedDaemonSetTest() throws ApiException { public void deleteCollectionNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -230,14 +247,20 @@ public void deleteCollectionNamespacedDeploymentTest() throws ApiException { public void deleteCollectionNamespacedReplicaSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -254,14 +277,20 @@ public void deleteCollectionNamespacedReplicaSetTest() throws ApiException { public void deleteCollectionNamespacedStatefulSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -279,12 +308,12 @@ public void deleteNamespacedControllerRevisionTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedControllerRevision(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedControllerRevision(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -302,12 +331,12 @@ public void deleteNamespacedDaemonSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -325,12 +354,12 @@ public void deleteNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -348,12 +377,12 @@ public void deleteNamespacedReplicaSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -371,12 +400,12 @@ public void deleteNamespacedStatefulSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedStatefulSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedStatefulSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -406,6 +435,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listControllerRevisionForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -414,7 +444,7 @@ public void listControllerRevisionForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2ControllerRevisionList response = api.listControllerRevisionForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta2ControllerRevisionList response = api.listControllerRevisionForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -429,6 +459,7 @@ public void listControllerRevisionForAllNamespacesTest() throws ApiException { */ @Test public void listDaemonSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -437,7 +468,7 @@ public void listDaemonSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2DaemonSetList response = api.listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta2DaemonSetList response = api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -452,6 +483,7 @@ public void listDaemonSetForAllNamespacesTest() throws ApiException { */ @Test public void listDeploymentForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -460,7 +492,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2DeploymentList response = api.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta2DeploymentList response = api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -477,6 +509,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { public void listNamespacedControllerRevisionTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -484,7 +517,7 @@ public void listNamespacedControllerRevisionTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2ControllerRevisionList response = api.listNamespacedControllerRevision(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta2ControllerRevisionList response = api.listNamespacedControllerRevision(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -501,6 +534,7 @@ public void listNamespacedControllerRevisionTest() throws ApiException { public void listNamespacedDaemonSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -508,7 +542,7 @@ public void listNamespacedDaemonSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2DaemonSetList response = api.listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta2DaemonSetList response = api.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -525,6 +559,7 @@ public void listNamespacedDaemonSetTest() throws ApiException { public void listNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -532,7 +567,7 @@ public void listNamespacedDeploymentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2DeploymentList response = api.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta2DeploymentList response = api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -549,6 +584,7 @@ public void listNamespacedDeploymentTest() throws ApiException { public void listNamespacedReplicaSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -556,7 +592,7 @@ public void listNamespacedReplicaSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2ReplicaSetList response = api.listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta2ReplicaSetList response = api.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -573,6 +609,7 @@ public void listNamespacedReplicaSetTest() throws ApiException { public void listNamespacedStatefulSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -580,7 +617,7 @@ public void listNamespacedStatefulSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2StatefulSetList response = api.listNamespacedStatefulSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta2StatefulSetList response = api.listNamespacedStatefulSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -595,6 +632,7 @@ public void listNamespacedStatefulSetTest() throws ApiException { */ @Test public void listReplicaSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -603,7 +641,7 @@ public void listReplicaSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2ReplicaSetList response = api.listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta2ReplicaSetList response = api.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -618,6 +656,7 @@ public void listReplicaSetForAllNamespacesTest() throws ApiException { */ @Test public void listStatefulSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -626,7 +665,7 @@ public void listStatefulSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta2StatefulSetList response = api.listStatefulSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta2StatefulSetList response = api.listStatefulSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -643,7 +682,7 @@ public void listStatefulSetForAllNamespacesTest() throws ApiException { public void patchNamespacedControllerRevisionTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -665,7 +704,7 @@ public void patchNamespacedControllerRevisionTest() throws ApiException { public void patchNamespacedDaemonSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -687,7 +726,7 @@ public void patchNamespacedDaemonSetTest() throws ApiException { public void patchNamespacedDaemonSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -709,7 +748,7 @@ public void patchNamespacedDaemonSetStatusTest() throws ApiException { public void patchNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -731,7 +770,7 @@ public void patchNamespacedDeploymentTest() throws ApiException { public void patchNamespacedDeploymentScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -753,7 +792,7 @@ public void patchNamespacedDeploymentScaleTest() throws ApiException { public void patchNamespacedDeploymentStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -775,7 +814,7 @@ public void patchNamespacedDeploymentStatusTest() throws ApiException { public void patchNamespacedReplicaSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -797,7 +836,7 @@ public void patchNamespacedReplicaSetTest() throws ApiException { public void patchNamespacedReplicaSetScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -819,7 +858,7 @@ public void patchNamespacedReplicaSetScaleTest() throws ApiException { public void patchNamespacedReplicaSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -841,7 +880,7 @@ public void patchNamespacedReplicaSetStatusTest() throws ApiException { public void patchNamespacedStatefulSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -863,7 +902,7 @@ public void patchNamespacedStatefulSetTest() throws ApiException { public void patchNamespacedStatefulSetScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -885,7 +924,7 @@ public void patchNamespacedStatefulSetScaleTest() throws ApiException { public void patchNamespacedStatefulSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationApiTest.java index 2aa2c1aa4a..5afa7c8db1 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationV1alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationV1alpha1ApiTest.java index 6435abfdab..836909a5cb 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationV1alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuditregistrationV1alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1AuditSink; import io.kubernetes.client.models.V1alpha1AuditSinkList; @@ -68,12 +67,12 @@ public void createAuditSinkTest() throws ApiException { public void deleteAuditSinkTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteAuditSink(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteAuditSink(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -89,14 +88,20 @@ public void deleteAuditSinkTest() throws ApiException { @Test public void deleteCollectionAuditSinkTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionAuditSink(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionAuditSink(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listAuditSinkTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listAuditSinkTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1AuditSinkList response = api.listAuditSink(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1AuditSinkList response = api.listAuditSink(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listAuditSinkTest() throws ApiException { @Test public void patchAuditSinkTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationApiTest.java index 17b3c84795..bf78a2bb59 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1ApiTest.java index f1d06462ec..b24f210503 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1beta1ApiTest.java index dbe807803c..9078e8243e 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthenticationV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationApiTest.java index 386f794c77..28ab82356a 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1ApiTest.java index 938e9cc8fb..5c12fdd637 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1beta1ApiTest.java index 8166a010c2..92d42ab0f3 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AuthorizationV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingApiTest.java index 04272b6043..ba0838552c 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV1ApiTest.java index 41ed6ee24b..f84a38be92 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1HorizontalPodAutoscaler; import io.kubernetes.client.models.V1HorizontalPodAutoscalerList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import org.junit.Test; import org.junit.Ignore; @@ -69,14 +68,20 @@ public void createNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void deleteCollectionNamespacedHorizontalPodAutoscalerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedHorizontalPodAutoscalerTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiExceptio String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1HorizontalPodAutoscalerList response = api.listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1HorizontalPodAutoscalerList response = api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiExceptio public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1HorizontalPodAutoscalerList response = api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1HorizontalPodAutoscalerList response = api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void patchNamespacedHorizontalPodAutoscalerTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void patchNamespacedHorizontalPodAutoscalerStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta1ApiTest.java index 7288dfc73a..dd865baed1 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V2beta1HorizontalPodAutoscaler; import io.kubernetes.client.models.V2beta1HorizontalPodAutoscalerList; @@ -69,14 +68,20 @@ public void createNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void deleteCollectionNamespacedHorizontalPodAutoscalerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedHorizontalPodAutoscalerTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiExceptio String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V2beta1HorizontalPodAutoscalerList response = api.listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V2beta1HorizontalPodAutoscalerList response = api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiExceptio public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V2beta1HorizontalPodAutoscalerList response = api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V2beta1HorizontalPodAutoscalerList response = api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void patchNamespacedHorizontalPodAutoscalerTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void patchNamespacedHorizontalPodAutoscalerStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta2ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta2ApiTest.java index 12a523bc04..e7d5d06a80 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta2ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/AutoscalingV2beta2ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V2beta2HorizontalPodAutoscaler; import io.kubernetes.client.models.V2beta2HorizontalPodAutoscalerList; @@ -69,14 +68,20 @@ public void createNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void deleteCollectionNamespacedHorizontalPodAutoscalerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedHorizontalPodAutoscalerTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedHorizontalPodAutoscaler(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiExceptio String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V2beta2HorizontalPodAutoscalerList response = api.listHorizontalPodAutoscalerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V2beta2HorizontalPodAutoscalerList response = api.listHorizontalPodAutoscalerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listHorizontalPodAutoscalerForAllNamespacesTest() throws ApiExceptio public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V2beta2HorizontalPodAutoscalerList response = api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V2beta2HorizontalPodAutoscalerList response = api.listNamespacedHorizontalPodAutoscaler(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void patchNamespacedHorizontalPodAutoscalerTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedHorizontalPodAutoscalerTest() throws ApiException { public void patchNamespacedHorizontalPodAutoscalerStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchApiTest.java index 1cd11f45c8..3994df3efe 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1ApiTest.java index d8492cfadf..f88f85980b 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1Job; import io.kubernetes.client.models.V1JobList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import org.junit.Test; import org.junit.Ignore; @@ -69,14 +68,20 @@ public void createNamespacedJobTest() throws ApiException { public void deleteCollectionNamespacedJobTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedJobTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listJobForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listJobForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1JobList response = api.listJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1JobList response = api.listJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listJobForAllNamespacesTest() throws ApiException { public void listNamespacedJobTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedJobTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1JobList response = api.listNamespacedJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1JobList response = api.listNamespacedJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedJobTest() throws ApiException { public void patchNamespacedJobTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedJobTest() throws ApiException { public void patchNamespacedJobStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1beta1ApiTest.java index 563ddc2141..7c3205e9c4 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CronJob; import io.kubernetes.client.models.V1beta1CronJobList; @@ -69,14 +68,20 @@ public void createNamespacedCronJobTest() throws ApiException { public void deleteCollectionNamespacedCronJobTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedCronJobTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedCronJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listCronJobForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listCronJobForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1CronJobList response = api.listCronJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1CronJobList response = api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listCronJobForAllNamespacesTest() throws ApiException { public void listNamespacedCronJobTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedCronJobTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1CronJobList response = api.listNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1CronJobList response = api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedCronJobTest() throws ApiException { public void patchNamespacedCronJobTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedCronJobTest() throws ApiException { public void patchNamespacedCronJobStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV2alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV2alpha1ApiTest.java index a119ccd83a..c4f9204ed9 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV2alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/BatchV2alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V2alpha1CronJob; import io.kubernetes.client.models.V2alpha1CronJobList; @@ -69,14 +68,20 @@ public void createNamespacedCronJobTest() throws ApiException { public void deleteCollectionNamespacedCronJobTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedCronJobTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedCronJob(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedCronJob(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listCronJobForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listCronJobForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V2alpha1CronJobList response = api.listCronJobForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V2alpha1CronJobList response = api.listCronJobForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listCronJobForAllNamespacesTest() throws ApiException { public void listNamespacedCronJobTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedCronJobTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V2alpha1CronJobList response = api.listNamespacedCronJob(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V2alpha1CronJobList response = api.listNamespacedCronJob(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedCronJobTest() throws ApiException { public void patchNamespacedCronJobTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedCronJobTest() throws ApiException { public void patchNamespacedCronJobStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesApiTest.java index 3fc1454e81..1888b7d66a 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesV1beta1ApiTest.java index d4f39b95af..eab01657a5 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CertificatesV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CertificateSigningRequest; import io.kubernetes.client.models.V1beta1CertificateSigningRequestList; @@ -68,12 +67,12 @@ public void createCertificateSigningRequestTest() throws ApiException { public void deleteCertificateSigningRequestTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteCertificateSigningRequest(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteCertificateSigningRequest(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -89,14 +88,20 @@ public void deleteCertificateSigningRequestTest() throws ApiException { @Test public void deleteCollectionCertificateSigningRequestTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionCertificateSigningRequest(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listCertificateSigningRequestTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listCertificateSigningRequestTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1CertificateSigningRequestList response = api.listCertificateSigningRequest(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1CertificateSigningRequestList response = api.listCertificateSigningRequest(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listCertificateSigningRequestTest() throws ApiException { @Test public void patchCertificateSigningRequestTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -171,7 +177,7 @@ public void patchCertificateSigningRequestTest() throws ApiException { @Test public void patchCertificateSigningRequestStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationApiTest.java index e07fc3684f..c919800cbd 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1ApiTest.java index 3f542fe9dd..685fa595b8 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1Lease; import io.kubernetes.client.models.V1LeaseList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import org.junit.Test; import org.junit.Ignore; @@ -69,14 +68,20 @@ public void createNamespacedLeaseTest() throws ApiException { public void deleteCollectionNamespacedLeaseTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedLeaseTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedLease(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listLeaseForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listLeaseForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1LeaseList response = api.listLeaseForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1LeaseList response = api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listLeaseForAllNamespacesTest() throws ApiException { public void listNamespacedLeaseTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedLeaseTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1LeaseList response = api.listNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1LeaseList response = api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedLeaseTest() throws ApiException { public void patchNamespacedLeaseTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1beta1ApiTest.java index 488e38dc25..04174f9917 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CoordinationV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1Lease; import io.kubernetes.client.models.V1beta1LeaseList; @@ -69,14 +68,20 @@ public void createNamespacedLeaseTest() throws ApiException { public void deleteCollectionNamespacedLeaseTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedLeaseTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedLease(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedLease(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listLeaseForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listLeaseForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1LeaseList response = api.listLeaseForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1LeaseList response = api.listLeaseForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listLeaseForAllNamespacesTest() throws ApiException { public void listNamespacedLeaseTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedLeaseTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1LeaseList response = api.listNamespacedLease(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1LeaseList response = api.listNamespacedLease(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedLeaseTest() throws ApiException { public void patchNamespacedLeaseTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CoreApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CoreApiTest.java index 7bd21268a4..ef3df8e41d 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CoreApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CoreApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CoreV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CoreV1ApiTest.java index 1909ba7589..63b4549e70 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CoreV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CoreV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -31,7 +31,6 @@ import io.kubernetes.client.models.V1NamespaceList; import io.kubernetes.client.models.V1Node; import io.kubernetes.client.models.V1NodeList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1PersistentVolume; import io.kubernetes.client.models.V1PersistentVolumeClaim; import io.kubernetes.client.models.V1PersistentVolumeClaimList; @@ -1330,14 +1329,20 @@ public void createPersistentVolumeTest() throws ApiException { public void deleteCollectionNamespacedConfigMapTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedConfigMap(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1354,14 +1359,20 @@ public void deleteCollectionNamespacedConfigMapTest() throws ApiException { public void deleteCollectionNamespacedEndpointsTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedEndpoints(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1378,14 +1389,20 @@ public void deleteCollectionNamespacedEndpointsTest() throws ApiException { public void deleteCollectionNamespacedEventTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1402,14 +1419,20 @@ public void deleteCollectionNamespacedEventTest() throws ApiException { public void deleteCollectionNamespacedLimitRangeTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedLimitRange(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1426,14 +1449,20 @@ public void deleteCollectionNamespacedLimitRangeTest() throws ApiException { public void deleteCollectionNamespacedPersistentVolumeClaimTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1450,14 +1479,20 @@ public void deleteCollectionNamespacedPersistentVolumeClaimTest() throws ApiExce public void deleteCollectionNamespacedPodTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedPod(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1474,14 +1509,20 @@ public void deleteCollectionNamespacedPodTest() throws ApiException { public void deleteCollectionNamespacedPodTemplateTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedPodTemplate(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1498,14 +1539,20 @@ public void deleteCollectionNamespacedPodTemplateTest() throws ApiException { public void deleteCollectionNamespacedReplicationControllerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedReplicationController(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1522,14 +1569,20 @@ public void deleteCollectionNamespacedReplicationControllerTest() throws ApiExce public void deleteCollectionNamespacedResourceQuotaTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedResourceQuota(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1546,14 +1599,20 @@ public void deleteCollectionNamespacedResourceQuotaTest() throws ApiException { public void deleteCollectionNamespacedSecretTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedSecret(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1570,14 +1629,20 @@ public void deleteCollectionNamespacedSecretTest() throws ApiException { public void deleteCollectionNamespacedServiceAccountTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedServiceAccount(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1593,14 +1658,20 @@ public void deleteCollectionNamespacedServiceAccountTest() throws ApiException { @Test public void deleteCollectionNodeTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNode(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1616,14 +1687,20 @@ public void deleteCollectionNodeTest() throws ApiException { @Test public void deleteCollectionPersistentVolumeTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionPersistentVolume(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionPersistentVolume(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -1640,12 +1717,12 @@ public void deleteCollectionPersistentVolumeTest() throws ApiException { public void deleteNamespaceTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespace(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespace(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1663,12 +1740,12 @@ public void deleteNamespacedConfigMapTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedConfigMap(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedConfigMap(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1686,12 +1763,12 @@ public void deleteNamespacedEndpointsTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedEndpoints(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedEndpoints(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1709,12 +1786,12 @@ public void deleteNamespacedEventTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedEvent(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1732,12 +1809,12 @@ public void deleteNamespacedLimitRangeTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedLimitRange(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedLimitRange(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1755,12 +1832,12 @@ public void deleteNamespacedPersistentVolumeClaimTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedPersistentVolumeClaim(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1778,12 +1855,12 @@ public void deleteNamespacedPodTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedPod(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedPod(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1801,12 +1878,12 @@ public void deleteNamespacedPodTemplateTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedPodTemplate(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedPodTemplate(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1824,12 +1901,12 @@ public void deleteNamespacedReplicationControllerTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedReplicationController(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedReplicationController(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1847,12 +1924,12 @@ public void deleteNamespacedResourceQuotaTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedResourceQuota(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedResourceQuota(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1870,12 +1947,12 @@ public void deleteNamespacedSecretTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedSecret(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedSecret(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1893,12 +1970,12 @@ public void deleteNamespacedServiceTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedService(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedService(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1916,12 +1993,12 @@ public void deleteNamespacedServiceAccountTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedServiceAccount(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedServiceAccount(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1938,12 +2015,12 @@ public void deleteNamespacedServiceAccountTest() throws ApiException { public void deleteNodeTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNode(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1960,12 +2037,12 @@ public void deleteNodeTest() throws ApiException { public void deletePersistentVolumeTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deletePersistentVolume(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deletePersistentVolume(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -1995,6 +2072,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listComponentStatusTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2003,7 +2081,7 @@ public void listComponentStatusTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ComponentStatusList response = api.listComponentStatus(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ComponentStatusList response = api.listComponentStatus(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2018,6 +2096,7 @@ public void listComponentStatusTest() throws ApiException { */ @Test public void listConfigMapForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2026,7 +2105,7 @@ public void listConfigMapForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ConfigMapList response = api.listConfigMapForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ConfigMapList response = api.listConfigMapForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2041,6 +2120,7 @@ public void listConfigMapForAllNamespacesTest() throws ApiException { */ @Test public void listEndpointsForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2049,7 +2129,7 @@ public void listEndpointsForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1EndpointsList response = api.listEndpointsForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1EndpointsList response = api.listEndpointsForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2064,6 +2144,7 @@ public void listEndpointsForAllNamespacesTest() throws ApiException { */ @Test public void listEventForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2072,7 +2153,7 @@ public void listEventForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1EventList response = api.listEventForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1EventList response = api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2087,6 +2168,7 @@ public void listEventForAllNamespacesTest() throws ApiException { */ @Test public void listLimitRangeForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2095,7 +2177,7 @@ public void listLimitRangeForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1LimitRangeList response = api.listLimitRangeForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1LimitRangeList response = api.listLimitRangeForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2111,6 +2193,7 @@ public void listLimitRangeForAllNamespacesTest() throws ApiException { @Test public void listNamespaceTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2118,7 +2201,7 @@ public void listNamespaceTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1NamespaceList response = api.listNamespace(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1NamespaceList response = api.listNamespace(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2135,6 +2218,7 @@ public void listNamespaceTest() throws ApiException { public void listNamespacedConfigMapTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2142,7 +2226,7 @@ public void listNamespacedConfigMapTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ConfigMapList response = api.listNamespacedConfigMap(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ConfigMapList response = api.listNamespacedConfigMap(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2159,6 +2243,7 @@ public void listNamespacedConfigMapTest() throws ApiException { public void listNamespacedEndpointsTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2166,7 +2251,7 @@ public void listNamespacedEndpointsTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1EndpointsList response = api.listNamespacedEndpoints(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1EndpointsList response = api.listNamespacedEndpoints(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2183,6 +2268,7 @@ public void listNamespacedEndpointsTest() throws ApiException { public void listNamespacedEventTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2190,7 +2276,7 @@ public void listNamespacedEventTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1EventList response = api.listNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1EventList response = api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2207,6 +2293,7 @@ public void listNamespacedEventTest() throws ApiException { public void listNamespacedLimitRangeTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2214,7 +2301,7 @@ public void listNamespacedLimitRangeTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1LimitRangeList response = api.listNamespacedLimitRange(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1LimitRangeList response = api.listNamespacedLimitRange(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2231,6 +2318,7 @@ public void listNamespacedLimitRangeTest() throws ApiException { public void listNamespacedPersistentVolumeClaimTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2238,7 +2326,7 @@ public void listNamespacedPersistentVolumeClaimTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PersistentVolumeClaimList response = api.listNamespacedPersistentVolumeClaim(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1PersistentVolumeClaimList response = api.listNamespacedPersistentVolumeClaim(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2255,6 +2343,7 @@ public void listNamespacedPersistentVolumeClaimTest() throws ApiException { public void listNamespacedPodTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2262,7 +2351,7 @@ public void listNamespacedPodTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PodList response = api.listNamespacedPod(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1PodList response = api.listNamespacedPod(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2279,6 +2368,7 @@ public void listNamespacedPodTest() throws ApiException { public void listNamespacedPodTemplateTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2286,7 +2376,7 @@ public void listNamespacedPodTemplateTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PodTemplateList response = api.listNamespacedPodTemplate(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1PodTemplateList response = api.listNamespacedPodTemplate(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2303,6 +2393,7 @@ public void listNamespacedPodTemplateTest() throws ApiException { public void listNamespacedReplicationControllerTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2310,7 +2401,7 @@ public void listNamespacedReplicationControllerTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ReplicationControllerList response = api.listNamespacedReplicationController(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ReplicationControllerList response = api.listNamespacedReplicationController(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2327,6 +2418,7 @@ public void listNamespacedReplicationControllerTest() throws ApiException { public void listNamespacedResourceQuotaTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2334,7 +2426,7 @@ public void listNamespacedResourceQuotaTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ResourceQuotaList response = api.listNamespacedResourceQuota(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ResourceQuotaList response = api.listNamespacedResourceQuota(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2351,6 +2443,7 @@ public void listNamespacedResourceQuotaTest() throws ApiException { public void listNamespacedSecretTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2358,7 +2451,7 @@ public void listNamespacedSecretTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1SecretList response = api.listNamespacedSecret(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1SecretList response = api.listNamespacedSecret(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2375,6 +2468,7 @@ public void listNamespacedSecretTest() throws ApiException { public void listNamespacedServiceTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2382,7 +2476,7 @@ public void listNamespacedServiceTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ServiceList response = api.listNamespacedService(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ServiceList response = api.listNamespacedService(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2399,6 +2493,7 @@ public void listNamespacedServiceTest() throws ApiException { public void listNamespacedServiceAccountTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2406,7 +2501,7 @@ public void listNamespacedServiceAccountTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ServiceAccountList response = api.listNamespacedServiceAccount(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ServiceAccountList response = api.listNamespacedServiceAccount(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2422,6 +2517,7 @@ public void listNamespacedServiceAccountTest() throws ApiException { @Test public void listNodeTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2429,7 +2525,7 @@ public void listNodeTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1NodeList response = api.listNode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1NodeList response = api.listNode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2445,6 +2541,7 @@ public void listNodeTest() throws ApiException { @Test public void listPersistentVolumeTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2452,7 +2549,7 @@ public void listPersistentVolumeTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PersistentVolumeList response = api.listPersistentVolume(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1PersistentVolumeList response = api.listPersistentVolume(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2467,6 +2564,7 @@ public void listPersistentVolumeTest() throws ApiException { */ @Test public void listPersistentVolumeClaimForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2475,7 +2573,7 @@ public void listPersistentVolumeClaimForAllNamespacesTest() throws ApiException String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PersistentVolumeClaimList response = api.listPersistentVolumeClaimForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1PersistentVolumeClaimList response = api.listPersistentVolumeClaimForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2490,6 +2588,7 @@ public void listPersistentVolumeClaimForAllNamespacesTest() throws ApiException */ @Test public void listPodForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2498,7 +2597,7 @@ public void listPodForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PodList response = api.listPodForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1PodList response = api.listPodForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2513,6 +2612,7 @@ public void listPodForAllNamespacesTest() throws ApiException { */ @Test public void listPodTemplateForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2521,7 +2621,7 @@ public void listPodTemplateForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PodTemplateList response = api.listPodTemplateForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1PodTemplateList response = api.listPodTemplateForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2536,6 +2636,7 @@ public void listPodTemplateForAllNamespacesTest() throws ApiException { */ @Test public void listReplicationControllerForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2544,7 +2645,7 @@ public void listReplicationControllerForAllNamespacesTest() throws ApiException String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ReplicationControllerList response = api.listReplicationControllerForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ReplicationControllerList response = api.listReplicationControllerForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2559,6 +2660,7 @@ public void listReplicationControllerForAllNamespacesTest() throws ApiException */ @Test public void listResourceQuotaForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2567,7 +2669,7 @@ public void listResourceQuotaForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ResourceQuotaList response = api.listResourceQuotaForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ResourceQuotaList response = api.listResourceQuotaForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2582,6 +2684,7 @@ public void listResourceQuotaForAllNamespacesTest() throws ApiException { */ @Test public void listSecretForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2590,7 +2693,7 @@ public void listSecretForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1SecretList response = api.listSecretForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1SecretList response = api.listSecretForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2605,6 +2708,7 @@ public void listSecretForAllNamespacesTest() throws ApiException { */ @Test public void listServiceAccountForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2613,7 +2717,7 @@ public void listServiceAccountForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ServiceAccountList response = api.listServiceAccountForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ServiceAccountList response = api.listServiceAccountForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2628,6 +2732,7 @@ public void listServiceAccountForAllNamespacesTest() throws ApiException { */ @Test public void listServiceForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -2636,7 +2741,7 @@ public void listServiceForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ServiceList response = api.listServiceForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1ServiceList response = api.listServiceForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -2652,7 +2757,7 @@ public void listServiceForAllNamespacesTest() throws ApiException { @Test public void patchNamespaceTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2673,7 +2778,7 @@ public void patchNamespaceTest() throws ApiException { @Test public void patchNamespaceStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2695,7 +2800,7 @@ public void patchNamespaceStatusTest() throws ApiException { public void patchNamespacedConfigMapTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2717,7 +2822,7 @@ public void patchNamespacedConfigMapTest() throws ApiException { public void patchNamespacedEndpointsTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2739,7 +2844,7 @@ public void patchNamespacedEndpointsTest() throws ApiException { public void patchNamespacedEventTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2761,7 +2866,7 @@ public void patchNamespacedEventTest() throws ApiException { public void patchNamespacedLimitRangeTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2783,7 +2888,7 @@ public void patchNamespacedLimitRangeTest() throws ApiException { public void patchNamespacedPersistentVolumeClaimTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2805,7 +2910,7 @@ public void patchNamespacedPersistentVolumeClaimTest() throws ApiException { public void patchNamespacedPersistentVolumeClaimStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2827,7 +2932,7 @@ public void patchNamespacedPersistentVolumeClaimStatusTest() throws ApiException public void patchNamespacedPodTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2849,7 +2954,7 @@ public void patchNamespacedPodTest() throws ApiException { public void patchNamespacedPodStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2871,7 +2976,7 @@ public void patchNamespacedPodStatusTest() throws ApiException { public void patchNamespacedPodTemplateTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2893,7 +2998,7 @@ public void patchNamespacedPodTemplateTest() throws ApiException { public void patchNamespacedReplicationControllerTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2915,7 +3020,7 @@ public void patchNamespacedReplicationControllerTest() throws ApiException { public void patchNamespacedReplicationControllerScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2937,7 +3042,7 @@ public void patchNamespacedReplicationControllerScaleTest() throws ApiException public void patchNamespacedReplicationControllerStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2959,7 +3064,7 @@ public void patchNamespacedReplicationControllerStatusTest() throws ApiException public void patchNamespacedResourceQuotaTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -2981,7 +3086,7 @@ public void patchNamespacedResourceQuotaTest() throws ApiException { public void patchNamespacedResourceQuotaStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3003,7 +3108,7 @@ public void patchNamespacedResourceQuotaStatusTest() throws ApiException { public void patchNamespacedSecretTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3025,7 +3130,7 @@ public void patchNamespacedSecretTest() throws ApiException { public void patchNamespacedServiceTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3047,7 +3152,7 @@ public void patchNamespacedServiceTest() throws ApiException { public void patchNamespacedServiceAccountTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3069,7 +3174,7 @@ public void patchNamespacedServiceAccountTest() throws ApiException { public void patchNamespacedServiceStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3090,7 +3195,7 @@ public void patchNamespacedServiceStatusTest() throws ApiException { @Test public void patchNodeTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3111,7 +3216,7 @@ public void patchNodeTest() throws ApiException { @Test public void patchNodeStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3132,7 +3237,7 @@ public void patchNodeStatusTest() throws ApiException { @Test public void patchPersistentVolumeTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -3153,7 +3258,7 @@ public void patchPersistentVolumeTest() throws ApiException { @Test public void patchPersistentVolumeStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/CustomObjectsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/CustomObjectsApiTest.java index 80fe65b61b..615550beda 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/CustomObjectsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/CustomObjectsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/EventsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/EventsApiTest.java index 621daaeaf4..09996654df 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/EventsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/EventsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/EventsV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/EventsV1beta1ApiTest.java index 88d42da4ff..045a72859c 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/EventsV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/EventsV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1Event; import io.kubernetes.client.models.V1beta1EventList; @@ -69,14 +68,20 @@ public void createNamespacedEventTest() throws ApiException { public void deleteCollectionNamespacedEventTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedEventTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedEvent(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedEvent(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listEventForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listEventForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1EventList response = api.listEventForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1EventList response = api.listEventForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listEventForAllNamespacesTest() throws ApiException { public void listNamespacedEventTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedEventTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1EventList response = api.listNamespacedEvent(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1EventList response = api.listNamespacedEvent(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedEventTest() throws ApiException { public void patchNamespacedEventTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsApiTest.java index 586583e028..1ccca4459e 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsV1beta1ApiTest.java index 45b01be978..9359ba999f 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/ExtensionsV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -24,7 +24,6 @@ import io.kubernetes.client.models.ExtensionsV1beta1Scale; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1DaemonSet; import io.kubernetes.client.models.V1beta1DaemonSetList; @@ -201,14 +200,20 @@ public void createPodSecurityPolicyTest() throws ApiException { public void deleteCollectionNamespacedDaemonSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -225,14 +230,20 @@ public void deleteCollectionNamespacedDaemonSetTest() throws ApiException { public void deleteCollectionNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -249,14 +260,20 @@ public void deleteCollectionNamespacedDeploymentTest() throws ApiException { public void deleteCollectionNamespacedIngressTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -273,14 +290,20 @@ public void deleteCollectionNamespacedIngressTest() throws ApiException { public void deleteCollectionNamespacedNetworkPolicyTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -297,14 +320,20 @@ public void deleteCollectionNamespacedNetworkPolicyTest() throws ApiException { public void deleteCollectionNamespacedReplicaSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -320,14 +349,20 @@ public void deleteCollectionNamespacedReplicaSetTest() throws ApiException { @Test public void deleteCollectionPodSecurityPolicyTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -345,12 +380,12 @@ public void deleteNamespacedDaemonSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDaemonSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDaemonSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -368,12 +403,12 @@ public void deleteNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedDeployment(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -391,12 +426,12 @@ public void deleteNamespacedIngressTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedIngress(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -414,12 +449,12 @@ public void deleteNamespacedNetworkPolicyTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedNetworkPolicy(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -437,12 +472,12 @@ public void deleteNamespacedReplicaSetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedReplicaSet(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedReplicaSet(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -459,12 +494,12 @@ public void deleteNamespacedReplicaSetTest() throws ApiException { public void deletePodSecurityPolicyTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deletePodSecurityPolicy(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -494,6 +529,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listDaemonSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -502,7 +538,7 @@ public void listDaemonSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1DaemonSetList response = api.listDaemonSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1DaemonSetList response = api.listDaemonSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -517,6 +553,7 @@ public void listDaemonSetForAllNamespacesTest() throws ApiException { */ @Test public void listDeploymentForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -525,7 +562,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - ExtensionsV1beta1DeploymentList response = api.listDeploymentForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + ExtensionsV1beta1DeploymentList response = api.listDeploymentForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -540,6 +577,7 @@ public void listDeploymentForAllNamespacesTest() throws ApiException { */ @Test public void listIngressForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -548,7 +586,7 @@ public void listIngressForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - ExtensionsV1beta1IngressList response = api.listIngressForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + ExtensionsV1beta1IngressList response = api.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -565,6 +603,7 @@ public void listIngressForAllNamespacesTest() throws ApiException { public void listNamespacedDaemonSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -572,7 +611,7 @@ public void listNamespacedDaemonSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1DaemonSetList response = api.listNamespacedDaemonSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1DaemonSetList response = api.listNamespacedDaemonSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -589,6 +628,7 @@ public void listNamespacedDaemonSetTest() throws ApiException { public void listNamespacedDeploymentTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -596,7 +636,7 @@ public void listNamespacedDeploymentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - ExtensionsV1beta1DeploymentList response = api.listNamespacedDeployment(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + ExtensionsV1beta1DeploymentList response = api.listNamespacedDeployment(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -613,6 +653,7 @@ public void listNamespacedDeploymentTest() throws ApiException { public void listNamespacedIngressTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -620,7 +661,7 @@ public void listNamespacedIngressTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - ExtensionsV1beta1IngressList response = api.listNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + ExtensionsV1beta1IngressList response = api.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -637,6 +678,7 @@ public void listNamespacedIngressTest() throws ApiException { public void listNamespacedNetworkPolicyTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -644,7 +686,7 @@ public void listNamespacedNetworkPolicyTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1NetworkPolicyList response = api.listNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1NetworkPolicyList response = api.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -661,6 +703,7 @@ public void listNamespacedNetworkPolicyTest() throws ApiException { public void listNamespacedReplicaSetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -668,7 +711,7 @@ public void listNamespacedReplicaSetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ReplicaSetList response = api.listNamespacedReplicaSet(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1ReplicaSetList response = api.listNamespacedReplicaSet(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -683,6 +726,7 @@ public void listNamespacedReplicaSetTest() throws ApiException { */ @Test public void listNetworkPolicyForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -691,7 +735,7 @@ public void listNetworkPolicyForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1NetworkPolicyList response = api.listNetworkPolicyForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1NetworkPolicyList response = api.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -707,6 +751,7 @@ public void listNetworkPolicyForAllNamespacesTest() throws ApiException { @Test public void listPodSecurityPolicyTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -714,7 +759,7 @@ public void listPodSecurityPolicyTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - ExtensionsV1beta1PodSecurityPolicyList response = api.listPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + ExtensionsV1beta1PodSecurityPolicyList response = api.listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -729,6 +774,7 @@ public void listPodSecurityPolicyTest() throws ApiException { */ @Test public void listReplicaSetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -737,7 +783,7 @@ public void listReplicaSetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ReplicaSetList response = api.listReplicaSetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1ReplicaSetList response = api.listReplicaSetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -754,7 +800,7 @@ public void listReplicaSetForAllNamespacesTest() throws ApiException { public void patchNamespacedDaemonSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -776,7 +822,7 @@ public void patchNamespacedDaemonSetTest() throws ApiException { public void patchNamespacedDaemonSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -798,7 +844,7 @@ public void patchNamespacedDaemonSetStatusTest() throws ApiException { public void patchNamespacedDeploymentTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -820,7 +866,7 @@ public void patchNamespacedDeploymentTest() throws ApiException { public void patchNamespacedDeploymentScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -842,7 +888,7 @@ public void patchNamespacedDeploymentScaleTest() throws ApiException { public void patchNamespacedDeploymentStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -864,7 +910,7 @@ public void patchNamespacedDeploymentStatusTest() throws ApiException { public void patchNamespacedIngressTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -886,7 +932,7 @@ public void patchNamespacedIngressTest() throws ApiException { public void patchNamespacedIngressStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -908,7 +954,7 @@ public void patchNamespacedIngressStatusTest() throws ApiException { public void patchNamespacedNetworkPolicyTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -930,7 +976,7 @@ public void patchNamespacedNetworkPolicyTest() throws ApiException { public void patchNamespacedReplicaSetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -952,7 +998,7 @@ public void patchNamespacedReplicaSetTest() throws ApiException { public void patchNamespacedReplicaSetScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -974,7 +1020,7 @@ public void patchNamespacedReplicaSetScaleTest() throws ApiException { public void patchNamespacedReplicaSetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -996,7 +1042,7 @@ public void patchNamespacedReplicaSetStatusTest() throws ApiException { public void patchNamespacedReplicationControllerDummyScaleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -1017,7 +1063,7 @@ public void patchNamespacedReplicationControllerDummyScaleTest() throws ApiExcep @Test public void patchPodSecurityPolicyTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/LogsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/LogsApiTest.java index 8f176efa6a..9de8e6b65b 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/LogsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/LogsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingApiTest.java index 247dab1e28..3ede340705 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1ApiTest.java index 0c56066efa..b1e6944e76 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.V1DeleteOptions; import io.kubernetes.client.models.V1NetworkPolicy; import io.kubernetes.client.models.V1NetworkPolicyList; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import org.junit.Test; import org.junit.Ignore; @@ -69,14 +68,20 @@ public void createNamespacedNetworkPolicyTest() throws ApiException { public void deleteCollectionNamespacedNetworkPolicyTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedNetworkPolicyTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedNetworkPolicy(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedNetworkPolicy(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -131,6 +136,7 @@ public void getAPIResourcesTest() throws ApiException { public void listNamespacedNetworkPolicyTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -138,7 +144,7 @@ public void listNamespacedNetworkPolicyTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1NetworkPolicyList response = api.listNamespacedNetworkPolicy(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1NetworkPolicyList response = api.listNamespacedNetworkPolicy(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -153,6 +159,7 @@ public void listNamespacedNetworkPolicyTest() throws ApiException { */ @Test public void listNetworkPolicyForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNetworkPolicyForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1NetworkPolicyList response = api.listNetworkPolicyForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1NetworkPolicyList response = api.listNetworkPolicyForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNetworkPolicyForAllNamespacesTest() throws ApiException { public void patchNamespacedNetworkPolicyTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1beta1ApiTest.java index 22ff786330..d6bfa3adca 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/NetworkingV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.NetworkingV1beta1IngressList; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import org.junit.Test; import org.junit.Ignore; @@ -69,14 +68,20 @@ public void createNamespacedIngressTest() throws ApiException { public void deleteCollectionNamespacedIngressTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedIngressTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedIngress(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedIngress(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -129,6 +134,7 @@ public void getAPIResourcesTest() throws ApiException { */ @Test public void listIngressForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -137,7 +143,7 @@ public void listIngressForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - NetworkingV1beta1IngressList response = api.listIngressForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + NetworkingV1beta1IngressList response = api.listIngressForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -154,6 +160,7 @@ public void listIngressForAllNamespacesTest() throws ApiException { public void listNamespacedIngressTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listNamespacedIngressTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - NetworkingV1beta1IngressList response = api.listNamespacedIngress(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + NetworkingV1beta1IngressList response = api.listNamespacedIngress(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listNamespacedIngressTest() throws ApiException { public void patchNamespacedIngressTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -200,7 +207,7 @@ public void patchNamespacedIngressTest() throws ApiException { public void patchNamespacedIngressStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/NodeApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/NodeApiTest.java index 64008816cd..3029e0492d 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/NodeApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/NodeApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1alpha1ApiTest.java index 5c53d71ff2..8a45c4a109 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1RuntimeClass; import io.kubernetes.client.models.V1alpha1RuntimeClassList; @@ -67,14 +66,20 @@ public void createRuntimeClassTest() throws ApiException { @Test public void deleteCollectionRuntimeClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionRuntimeClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionRuntimeClassTest() throws ApiException { public void deleteRuntimeClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteRuntimeClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listRuntimeClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listRuntimeClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1RuntimeClassList response = api.listRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1RuntimeClassList response = api.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listRuntimeClassTest() throws ApiException { @Test public void patchRuntimeClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1beta1ApiTest.java index eb1dcf95d4..fd6e496a76 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/NodeV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1RuntimeClass; import io.kubernetes.client.models.V1beta1RuntimeClassList; @@ -67,14 +66,20 @@ public void createRuntimeClassTest() throws ApiException { @Test public void deleteCollectionRuntimeClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionRuntimeClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionRuntimeClassTest() throws ApiException { public void deleteRuntimeClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteRuntimeClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteRuntimeClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listRuntimeClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listRuntimeClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1RuntimeClassList response = api.listRuntimeClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1RuntimeClassList response = api.listRuntimeClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listRuntimeClassTest() throws ApiException { @Test public void patchRuntimeClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyApiTest.java index 11636c9d75..e3759a2c73 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyV1beta1ApiTest.java index 2b273e2525..572810fc38 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/PolicyV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -18,7 +18,6 @@ import io.kubernetes.client.models.PolicyV1beta1PodSecurityPolicyList; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1PodDisruptionBudget; import io.kubernetes.client.models.V1beta1PodDisruptionBudgetList; @@ -90,14 +89,20 @@ public void createPodSecurityPolicyTest() throws ApiException { public void deleteCollectionNamespacedPodDisruptionBudgetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -113,14 +118,20 @@ public void deleteCollectionNamespacedPodDisruptionBudgetTest() throws ApiExcept @Test public void deleteCollectionPodSecurityPolicyTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -138,12 +149,12 @@ public void deleteNamespacedPodDisruptionBudgetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedPodDisruptionBudget(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -160,12 +171,12 @@ public void deleteNamespacedPodDisruptionBudgetTest() throws ApiException { public void deletePodSecurityPolicyTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deletePodSecurityPolicy(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deletePodSecurityPolicy(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -197,6 +208,7 @@ public void getAPIResourcesTest() throws ApiException { public void listNamespacedPodDisruptionBudgetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -204,7 +216,7 @@ public void listNamespacedPodDisruptionBudgetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1PodDisruptionBudgetList response = api.listNamespacedPodDisruptionBudget(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1PodDisruptionBudgetList response = api.listNamespacedPodDisruptionBudget(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -219,6 +231,7 @@ public void listNamespacedPodDisruptionBudgetTest() throws ApiException { */ @Test public void listPodDisruptionBudgetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -227,7 +240,7 @@ public void listPodDisruptionBudgetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1PodDisruptionBudgetList response = api.listPodDisruptionBudgetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1PodDisruptionBudgetList response = api.listPodDisruptionBudgetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -243,6 +256,7 @@ public void listPodDisruptionBudgetForAllNamespacesTest() throws ApiException { @Test public void listPodSecurityPolicyTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -250,7 +264,7 @@ public void listPodSecurityPolicyTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - PolicyV1beta1PodSecurityPolicyList response = api.listPodSecurityPolicy(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + PolicyV1beta1PodSecurityPolicyList response = api.listPodSecurityPolicy(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -267,7 +281,7 @@ public void listPodSecurityPolicyTest() throws ApiException { public void patchNamespacedPodDisruptionBudgetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -289,7 +303,7 @@ public void patchNamespacedPodDisruptionBudgetTest() throws ApiException { public void patchNamespacedPodDisruptionBudgetStatusTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -310,7 +324,7 @@ public void patchNamespacedPodDisruptionBudgetStatusTest() throws ApiException { @Test public void patchPodSecurityPolicyTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationApiTest.java index 8359991717..25c8fa3804 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1ApiTest.java index ab23306d94..d2e4785ee2 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -20,7 +20,6 @@ import io.kubernetes.client.models.V1ClusterRoleBindingList; import io.kubernetes.client.models.V1ClusterRoleList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Role; import io.kubernetes.client.models.V1RoleBinding; import io.kubernetes.client.models.V1RoleBindingList; @@ -133,12 +132,12 @@ public void createNamespacedRoleBindingTest() throws ApiException { public void deleteClusterRoleTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -155,12 +154,12 @@ public void deleteClusterRoleTest() throws ApiException { public void deleteClusterRoleBindingTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -176,14 +175,20 @@ public void deleteClusterRoleBindingTest() throws ApiException { @Test public void deleteCollectionClusterRoleTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -199,14 +204,20 @@ public void deleteCollectionClusterRoleTest() throws ApiException { @Test public void deleteCollectionClusterRoleBindingTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -223,14 +234,20 @@ public void deleteCollectionClusterRoleBindingTest() throws ApiException { public void deleteCollectionNamespacedRoleTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -247,14 +264,20 @@ public void deleteCollectionNamespacedRoleTest() throws ApiException { public void deleteCollectionNamespacedRoleBindingTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -272,12 +295,12 @@ public void deleteNamespacedRoleTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -295,12 +318,12 @@ public void deleteNamespacedRoleBindingTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -331,6 +354,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listClusterRoleTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -338,7 +362,7 @@ public void listClusterRoleTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ClusterRoleList response = api.listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ClusterRoleList response = api.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -354,6 +378,7 @@ public void listClusterRoleTest() throws ApiException { @Test public void listClusterRoleBindingTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -361,7 +386,7 @@ public void listClusterRoleBindingTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1ClusterRoleBindingList response = api.listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1ClusterRoleBindingList response = api.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -378,6 +403,7 @@ public void listClusterRoleBindingTest() throws ApiException { public void listNamespacedRoleTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -385,7 +411,7 @@ public void listNamespacedRoleTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1RoleList response = api.listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1RoleList response = api.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -402,6 +428,7 @@ public void listNamespacedRoleTest() throws ApiException { public void listNamespacedRoleBindingTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -409,7 +436,7 @@ public void listNamespacedRoleBindingTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1RoleBindingList response = api.listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1RoleBindingList response = api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -424,6 +451,7 @@ public void listNamespacedRoleBindingTest() throws ApiException { */ @Test public void listRoleBindingForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -432,7 +460,7 @@ public void listRoleBindingForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1RoleBindingList response = api.listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1RoleBindingList response = api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -447,6 +475,7 @@ public void listRoleBindingForAllNamespacesTest() throws ApiException { */ @Test public void listRoleForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -455,7 +484,7 @@ public void listRoleForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1RoleList response = api.listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1RoleList response = api.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -471,7 +500,7 @@ public void listRoleForAllNamespacesTest() throws ApiException { @Test public void patchClusterRoleTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -492,7 +521,7 @@ public void patchClusterRoleTest() throws ApiException { @Test public void patchClusterRoleBindingTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -514,7 +543,7 @@ public void patchClusterRoleBindingTest() throws ApiException { public void patchNamespacedRoleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -536,7 +565,7 @@ public void patchNamespacedRoleTest() throws ApiException { public void patchNamespacedRoleBindingTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1ApiTest.java index 772e83a12f..fb6def37b9 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1ClusterRole; import io.kubernetes.client.models.V1alpha1ClusterRoleBinding; @@ -133,12 +132,12 @@ public void createNamespacedRoleBindingTest() throws ApiException { public void deleteClusterRoleTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -155,12 +154,12 @@ public void deleteClusterRoleTest() throws ApiException { public void deleteClusterRoleBindingTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -176,14 +175,20 @@ public void deleteClusterRoleBindingTest() throws ApiException { @Test public void deleteCollectionClusterRoleTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -199,14 +204,20 @@ public void deleteCollectionClusterRoleTest() throws ApiException { @Test public void deleteCollectionClusterRoleBindingTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -223,14 +234,20 @@ public void deleteCollectionClusterRoleBindingTest() throws ApiException { public void deleteCollectionNamespacedRoleTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -247,14 +264,20 @@ public void deleteCollectionNamespacedRoleTest() throws ApiException { public void deleteCollectionNamespacedRoleBindingTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -272,12 +295,12 @@ public void deleteNamespacedRoleTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -295,12 +318,12 @@ public void deleteNamespacedRoleBindingTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -331,6 +354,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listClusterRoleTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -338,7 +362,7 @@ public void listClusterRoleTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1ClusterRoleList response = api.listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1ClusterRoleList response = api.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -354,6 +378,7 @@ public void listClusterRoleTest() throws ApiException { @Test public void listClusterRoleBindingTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -361,7 +386,7 @@ public void listClusterRoleBindingTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1ClusterRoleBindingList response = api.listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1ClusterRoleBindingList response = api.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -378,6 +403,7 @@ public void listClusterRoleBindingTest() throws ApiException { public void listNamespacedRoleTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -385,7 +411,7 @@ public void listNamespacedRoleTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1RoleList response = api.listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1RoleList response = api.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -402,6 +428,7 @@ public void listNamespacedRoleTest() throws ApiException { public void listNamespacedRoleBindingTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -409,7 +436,7 @@ public void listNamespacedRoleBindingTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1RoleBindingList response = api.listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1RoleBindingList response = api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -424,6 +451,7 @@ public void listNamespacedRoleBindingTest() throws ApiException { */ @Test public void listRoleBindingForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -432,7 +460,7 @@ public void listRoleBindingForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1RoleBindingList response = api.listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1alpha1RoleBindingList response = api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -447,6 +475,7 @@ public void listRoleBindingForAllNamespacesTest() throws ApiException { */ @Test public void listRoleForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -455,7 +484,7 @@ public void listRoleForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1RoleList response = api.listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1alpha1RoleList response = api.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -471,7 +500,7 @@ public void listRoleForAllNamespacesTest() throws ApiException { @Test public void patchClusterRoleTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -492,7 +521,7 @@ public void patchClusterRoleTest() throws ApiException { @Test public void patchClusterRoleBindingTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -514,7 +543,7 @@ public void patchClusterRoleBindingTest() throws ApiException { public void patchNamespacedRoleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -536,7 +565,7 @@ public void patchNamespacedRoleTest() throws ApiException { public void patchNamespacedRoleBindingTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1ApiTest.java index aeb0ff9c95..b37afae8de 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/RbacAuthorizationV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1ClusterRole; import io.kubernetes.client.models.V1beta1ClusterRoleBinding; @@ -133,12 +132,12 @@ public void createNamespacedRoleBindingTest() throws ApiException { public void deleteClusterRoleTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteClusterRole(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteClusterRole(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -155,12 +154,12 @@ public void deleteClusterRoleTest() throws ApiException { public void deleteClusterRoleBindingTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteClusterRoleBinding(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteClusterRoleBinding(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -176,14 +175,20 @@ public void deleteClusterRoleBindingTest() throws ApiException { @Test public void deleteCollectionClusterRoleTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionClusterRole(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -199,14 +204,20 @@ public void deleteCollectionClusterRoleTest() throws ApiException { @Test public void deleteCollectionClusterRoleBindingTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionClusterRoleBinding(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -223,14 +234,20 @@ public void deleteCollectionClusterRoleBindingTest() throws ApiException { public void deleteCollectionNamespacedRoleTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -247,14 +264,20 @@ public void deleteCollectionNamespacedRoleTest() throws ApiException { public void deleteCollectionNamespacedRoleBindingTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -272,12 +295,12 @@ public void deleteNamespacedRoleTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedRole(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedRole(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -295,12 +318,12 @@ public void deleteNamespacedRoleBindingTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedRoleBinding(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedRoleBinding(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -331,6 +354,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listClusterRoleTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -338,7 +362,7 @@ public void listClusterRoleTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ClusterRoleList response = api.listClusterRole(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1ClusterRoleList response = api.listClusterRole(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -354,6 +378,7 @@ public void listClusterRoleTest() throws ApiException { @Test public void listClusterRoleBindingTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -361,7 +386,7 @@ public void listClusterRoleBindingTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1ClusterRoleBindingList response = api.listClusterRoleBinding(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1ClusterRoleBindingList response = api.listClusterRoleBinding(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -378,6 +403,7 @@ public void listClusterRoleBindingTest() throws ApiException { public void listNamespacedRoleTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -385,7 +411,7 @@ public void listNamespacedRoleTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1RoleList response = api.listNamespacedRole(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1RoleList response = api.listNamespacedRole(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -402,6 +428,7 @@ public void listNamespacedRoleTest() throws ApiException { public void listNamespacedRoleBindingTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -409,7 +436,7 @@ public void listNamespacedRoleBindingTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1RoleBindingList response = api.listNamespacedRoleBinding(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1RoleBindingList response = api.listNamespacedRoleBinding(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -424,6 +451,7 @@ public void listNamespacedRoleBindingTest() throws ApiException { */ @Test public void listRoleBindingForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -432,7 +460,7 @@ public void listRoleBindingForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1RoleBindingList response = api.listRoleBindingForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1RoleBindingList response = api.listRoleBindingForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -447,6 +475,7 @@ public void listRoleBindingForAllNamespacesTest() throws ApiException { */ @Test public void listRoleForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -455,7 +484,7 @@ public void listRoleForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1RoleList response = api.listRoleForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1beta1RoleList response = api.listRoleForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -471,7 +500,7 @@ public void listRoleForAllNamespacesTest() throws ApiException { @Test public void patchClusterRoleTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -492,7 +521,7 @@ public void patchClusterRoleTest() throws ApiException { @Test public void patchClusterRoleBindingTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -514,7 +543,7 @@ public void patchClusterRoleBindingTest() throws ApiException { public void patchNamespacedRoleTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -536,7 +565,7 @@ public void patchNamespacedRoleTest() throws ApiException { public void patchNamespacedRoleBindingTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingApiTest.java index d24b66dd85..78cdcdce5e 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1ApiTest.java index 426b2e49a3..991dfd7727 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1PriorityClass; import io.kubernetes.client.models.V1PriorityClassList; import io.kubernetes.client.models.V1Status; @@ -67,14 +66,20 @@ public void createPriorityClassTest() throws ApiException { @Test public void deleteCollectionPriorityClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionPriorityClassTest() throws ApiException { public void deletePriorityClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listPriorityClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listPriorityClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1PriorityClassList response = api.listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1PriorityClassList response = api.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listPriorityClassTest() throws ApiException { @Test public void patchPriorityClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1alpha1ApiTest.java index 22f718b6f9..f0398fa928 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1PriorityClass; import io.kubernetes.client.models.V1alpha1PriorityClassList; @@ -67,14 +66,20 @@ public void createPriorityClassTest() throws ApiException { @Test public void deleteCollectionPriorityClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionPriorityClassTest() throws ApiException { public void deletePriorityClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listPriorityClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listPriorityClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1PriorityClassList response = api.listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1PriorityClassList response = api.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listPriorityClassTest() throws ApiException { @Test public void patchPriorityClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1beta1ApiTest.java index d99d6251da..7e7127123a 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/SchedulingV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1PriorityClass; import io.kubernetes.client.models.V1beta1PriorityClassList; @@ -67,14 +66,20 @@ public void createPriorityClassTest() throws ApiException { @Test public void deleteCollectionPriorityClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionPriorityClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionPriorityClassTest() throws ApiException { public void deletePriorityClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deletePriorityClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deletePriorityClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listPriorityClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listPriorityClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1PriorityClassList response = api.listPriorityClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1PriorityClassList response = api.listPriorityClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listPriorityClassTest() throws ApiException { @Test public void patchPriorityClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsApiTest.java index 8c3f46526a..430ecccce9 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsV1alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsV1alpha1ApiTest.java index dd4124805b..db6df4e091 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsV1alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/SettingsV1alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1PodPreset; import io.kubernetes.client.models.V1alpha1PodPresetList; @@ -69,14 +68,20 @@ public void createNamespacedPodPresetTest() throws ApiException { public void deleteCollectionNamespacedPodPresetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionNamespacedPodPreset(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionNamespacedPodPreset(namespace, pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -94,12 +99,12 @@ public void deleteNamespacedPodPresetTest() throws ApiException { String name = null; String namespace = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteNamespacedPodPreset(name, namespace, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteNamespacedPodPreset(name, namespace, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -131,6 +136,7 @@ public void getAPIResourcesTest() throws ApiException { public void listNamespacedPodPresetTest() throws ApiException { String namespace = null; String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -138,7 +144,7 @@ public void listNamespacedPodPresetTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1PodPresetList response = api.listNamespacedPodPreset(namespace, pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1PodPresetList response = api.listNamespacedPodPreset(namespace, pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -153,6 +159,7 @@ public void listNamespacedPodPresetTest() throws ApiException { */ @Test public void listPodPresetForAllNamespacesTest() throws ApiException { + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -161,7 +168,7 @@ public void listPodPresetForAllNamespacesTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1PodPresetList response = api.listPodPresetForAllNamespaces(_continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); + V1alpha1PodPresetList response = api.listPodPresetForAllNamespaces(allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, pretty, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -178,7 +185,7 @@ public void listPodPresetForAllNamespacesTest() throws ApiException { public void patchNamespacedPodPresetTest() throws ApiException { String name = null; String namespace = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageApiTest.java index 0aa88a2b1e..5ee5d3aeb8 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1ApiTest.java index 21e64ee2ea..dd18cba29b 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1StorageClass; import io.kubernetes.client.models.V1StorageClassList; @@ -88,14 +87,20 @@ public void createVolumeAttachmentTest() throws ApiException { @Test public void deleteCollectionStorageClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionStorageClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -111,14 +116,20 @@ public void deleteCollectionStorageClassTest() throws ApiException { @Test public void deleteCollectionVolumeAttachmentTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -135,12 +146,12 @@ public void deleteCollectionVolumeAttachmentTest() throws ApiException { public void deleteStorageClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteStorageClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -157,12 +168,12 @@ public void deleteStorageClassTest() throws ApiException { public void deleteVolumeAttachmentTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -193,6 +204,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listStorageClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -200,7 +212,7 @@ public void listStorageClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1StorageClassList response = api.listStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1StorageClassList response = api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -216,6 +228,7 @@ public void listStorageClassTest() throws ApiException { @Test public void listVolumeAttachmentTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -223,7 +236,7 @@ public void listVolumeAttachmentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1VolumeAttachmentList response = api.listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1VolumeAttachmentList response = api.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -239,7 +252,7 @@ public void listVolumeAttachmentTest() throws ApiException { @Test public void patchStorageClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -260,7 +273,7 @@ public void patchStorageClassTest() throws ApiException { @Test public void patchVolumeAttachmentTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -281,7 +294,7 @@ public void patchVolumeAttachmentTest() throws ApiException { @Test public void patchVolumeAttachmentStatusTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1alpha1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1alpha1ApiTest.java index fe67c72973..2605f62f50 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1alpha1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1alpha1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1alpha1VolumeAttachment; import io.kubernetes.client.models.V1alpha1VolumeAttachmentList; @@ -67,14 +66,20 @@ public void createVolumeAttachmentTest() throws ApiException { @Test public void deleteCollectionVolumeAttachmentTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -91,12 +96,12 @@ public void deleteCollectionVolumeAttachmentTest() throws ApiException { public void deleteVolumeAttachmentTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -127,6 +132,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listVolumeAttachmentTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -134,7 +140,7 @@ public void listVolumeAttachmentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1alpha1VolumeAttachmentList response = api.listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1alpha1VolumeAttachmentList response = api.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -150,7 +156,7 @@ public void listVolumeAttachmentTest() throws ApiException { @Test public void patchVolumeAttachmentTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1beta1ApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1beta1ApiTest.java index ff5fe3560a..9b6f83a4d9 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1beta1ApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/StorageV1beta1ApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ @@ -16,7 +16,6 @@ import io.kubernetes.client.ApiException; import io.kubernetes.client.models.V1APIResourceList; import io.kubernetes.client.models.V1DeleteOptions; -import io.kubernetes.client.custom.V1Patch; import io.kubernetes.client.models.V1Status; import io.kubernetes.client.models.V1beta1CSIDriver; import io.kubernetes.client.models.V1beta1CSIDriverList; @@ -131,12 +130,12 @@ public void createVolumeAttachmentTest() throws ApiException { public void deleteCSIDriverTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteCSIDriver(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteCSIDriver(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -153,12 +152,12 @@ public void deleteCSIDriverTest() throws ApiException { public void deleteCSINodeTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteCSINode(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteCSINode(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -174,14 +173,20 @@ public void deleteCSINodeTest() throws ApiException { @Test public void deleteCollectionCSIDriverTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionCSIDriver(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionCSIDriver(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -197,14 +202,20 @@ public void deleteCollectionCSIDriverTest() throws ApiException { @Test public void deleteCollectionCSINodeTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionCSINode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionCSINode(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -220,14 +231,20 @@ public void deleteCollectionCSINodeTest() throws ApiException { @Test public void deleteCollectionStorageClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionStorageClass(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -243,14 +260,20 @@ public void deleteCollectionStorageClassTest() throws ApiException { @Test public void deleteCollectionVolumeAttachmentTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; + String dryRun = null; String fieldSelector = null; + Integer gracePeriodSeconds = null; String labelSelector = null; Integer limit = null; + Boolean orphanDependents = null; + String propagationPolicy = null; String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1Status response = api.deleteCollectionVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1DeleteOptions body = null; + V1Status response = api.deleteCollectionVolumeAttachment(pretty, allowWatchBookmarks, _continue, dryRun, fieldSelector, gracePeriodSeconds, labelSelector, limit, orphanDependents, propagationPolicy, resourceVersion, timeoutSeconds, watch, body); // TODO: test validations } @@ -267,12 +290,12 @@ public void deleteCollectionVolumeAttachmentTest() throws ApiException { public void deleteStorageClassTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteStorageClass(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteStorageClass(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -289,12 +312,12 @@ public void deleteStorageClassTest() throws ApiException { public void deleteVolumeAttachmentTest() throws ApiException { String name = null; String pretty = null; - V1DeleteOptions body = null; String dryRun = null; Integer gracePeriodSeconds = null; Boolean orphanDependents = null; String propagationPolicy = null; - V1Status response = api.deleteVolumeAttachment(name, pretty, body, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy); + V1DeleteOptions body = null; + V1Status response = api.deleteVolumeAttachment(name, pretty, dryRun, gracePeriodSeconds, orphanDependents, propagationPolicy, body); // TODO: test validations } @@ -325,6 +348,7 @@ public void getAPIResourcesTest() throws ApiException { @Test public void listCSIDriverTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -332,7 +356,7 @@ public void listCSIDriverTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1CSIDriverList response = api.listCSIDriver(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1CSIDriverList response = api.listCSIDriver(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -348,6 +372,7 @@ public void listCSIDriverTest() throws ApiException { @Test public void listCSINodeTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -355,7 +380,7 @@ public void listCSINodeTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1CSINodeList response = api.listCSINode(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1CSINodeList response = api.listCSINode(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -371,6 +396,7 @@ public void listCSINodeTest() throws ApiException { @Test public void listStorageClassTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -378,7 +404,7 @@ public void listStorageClassTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1StorageClassList response = api.listStorageClass(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1StorageClassList response = api.listStorageClass(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -394,6 +420,7 @@ public void listStorageClassTest() throws ApiException { @Test public void listVolumeAttachmentTest() throws ApiException { String pretty = null; + Boolean allowWatchBookmarks = null; String _continue = null; String fieldSelector = null; String labelSelector = null; @@ -401,7 +428,7 @@ public void listVolumeAttachmentTest() throws ApiException { String resourceVersion = null; Integer timeoutSeconds = null; Boolean watch = null; - V1beta1VolumeAttachmentList response = api.listVolumeAttachment(pretty, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); + V1beta1VolumeAttachmentList response = api.listVolumeAttachment(pretty, allowWatchBookmarks, _continue, fieldSelector, labelSelector, limit, resourceVersion, timeoutSeconds, watch); // TODO: test validations } @@ -417,7 +444,7 @@ public void listVolumeAttachmentTest() throws ApiException { @Test public void patchCSIDriverTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -438,7 +465,7 @@ public void patchCSIDriverTest() throws ApiException { @Test public void patchCSINodeTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -459,7 +486,7 @@ public void patchCSINodeTest() throws ApiException { @Test public void patchStorageClassTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; @@ -480,7 +507,7 @@ public void patchStorageClassTest() throws ApiException { @Test public void patchVolumeAttachmentTest() throws ApiException { String name = null; - V1Patch body = null; + Object body = null; String pretty = null; String dryRun = null; String fieldManager = null; diff --git a/kubernetes/src/test/java/io/kubernetes/client/apis/VersionApiTest.java b/kubernetes/src/test/java/io/kubernetes/client/apis/VersionApiTest.java index 49f9c2105f..0070ae1d41 100644 --- a/kubernetes/src/test/java/io/kubernetes/client/apis/VersionApiTest.java +++ b/kubernetes/src/test/java/io/kubernetes/client/apis/VersionApiTest.java @@ -1,12 +1,12 @@ /* * Kubernetes - * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * - * OpenAPI spec version: v1.14.2 + * The version of the OpenAPI document: v1.15.6 * * - * NOTE: This class is auto generated by the swagger code generator program. - * https://github.com/swagger-api/swagger-codegen.git + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech * Do not edit the class manually. */ diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReferenceTest.java new file mode 100644 index 0000000000..f2cd129e8b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AdmissionregistrationV1beta1ServiceReferenceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AdmissionregistrationV1beta1ServiceReference + */ +public class AdmissionregistrationV1beta1ServiceReferenceTest { + private final AdmissionregistrationV1beta1ServiceReference model = new AdmissionregistrationV1beta1ServiceReference(); + + /** + * Model tests for AdmissionregistrationV1beta1ServiceReference + */ + @Test + public void testAdmissionregistrationV1beta1ServiceReference() { + // TODO: test AdmissionregistrationV1beta1ServiceReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfigTest.java new file mode 100644 index 0000000000..727a076f21 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AdmissionregistrationV1beta1WebhookClientConfigTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AdmissionregistrationV1beta1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AdmissionregistrationV1beta1WebhookClientConfig + */ +public class AdmissionregistrationV1beta1WebhookClientConfigTest { + private final AdmissionregistrationV1beta1WebhookClientConfig model = new AdmissionregistrationV1beta1WebhookClientConfig(); + + /** + * Model tests for AdmissionregistrationV1beta1WebhookClientConfig + */ + @Test + public void testAdmissionregistrationV1beta1WebhookClientConfig() { + // TODO: test AdmissionregistrationV1beta1WebhookClientConfig + } + + /** + * Test the property 'caBundle' + */ + @Test + public void caBundleTest() { + // TODO: test caBundle + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReferenceTest.java new file mode 100644 index 0000000000..87d7ed6c77 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ApiextensionsV1beta1ServiceReferenceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApiextensionsV1beta1ServiceReference + */ +public class ApiextensionsV1beta1ServiceReferenceTest { + private final ApiextensionsV1beta1ServiceReference model = new ApiextensionsV1beta1ServiceReference(); + + /** + * Model tests for ApiextensionsV1beta1ServiceReference + */ + @Test + public void testApiextensionsV1beta1ServiceReference() { + // TODO: test ApiextensionsV1beta1ServiceReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfigTest.java new file mode 100644 index 0000000000..e63d89e37d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ApiextensionsV1beta1WebhookClientConfigTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ApiextensionsV1beta1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApiextensionsV1beta1WebhookClientConfig + */ +public class ApiextensionsV1beta1WebhookClientConfigTest { + private final ApiextensionsV1beta1WebhookClientConfig model = new ApiextensionsV1beta1WebhookClientConfig(); + + /** + * Model tests for ApiextensionsV1beta1WebhookClientConfig + */ + @Test + public void testApiextensionsV1beta1WebhookClientConfig() { + // TODO: test ApiextensionsV1beta1WebhookClientConfig + } + + /** + * Test the property 'caBundle' + */ + @Test + public void caBundleTest() { + // TODO: test caBundle + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReferenceTest.java new file mode 100644 index 0000000000..6591702ae0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ApiregistrationV1beta1ServiceReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ApiregistrationV1beta1ServiceReference + */ +public class ApiregistrationV1beta1ServiceReferenceTest { + private final ApiregistrationV1beta1ServiceReference model = new ApiregistrationV1beta1ServiceReference(); + + /** + * Model tests for ApiregistrationV1beta1ServiceReference + */ + @Test + public void testApiregistrationV1beta1ServiceReference() { + // TODO: test ApiregistrationV1beta1ServiceReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentConditionTest.java new file mode 100644 index 0000000000..98f32d37f8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1DeploymentCondition + */ +public class AppsV1beta1DeploymentConditionTest { + private final AppsV1beta1DeploymentCondition model = new AppsV1beta1DeploymentCondition(); + + /** + * Model tests for AppsV1beta1DeploymentCondition + */ + @Test + public void testAppsV1beta1DeploymentCondition() { + // TODO: test AppsV1beta1DeploymentCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'lastUpdateTime' + */ + @Test + public void lastUpdateTimeTest() { + // TODO: test lastUpdateTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentListTest.java new file mode 100644 index 0000000000..9f1cbe01c5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1Deployment; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1DeploymentList + */ +public class AppsV1beta1DeploymentListTest { + private final AppsV1beta1DeploymentList model = new AppsV1beta1DeploymentList(); + + /** + * Model tests for AppsV1beta1DeploymentList + */ + @Test + public void testAppsV1beta1DeploymentList() { + // TODO: test AppsV1beta1DeploymentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollbackTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollbackTest.java new file mode 100644 index 0000000000..36f706728f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentRollbackTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1RollbackConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1DeploymentRollback + */ +public class AppsV1beta1DeploymentRollbackTest { + private final AppsV1beta1DeploymentRollback model = new AppsV1beta1DeploymentRollback(); + + /** + * Model tests for AppsV1beta1DeploymentRollback + */ + @Test + public void testAppsV1beta1DeploymentRollback() { + // TODO: test AppsV1beta1DeploymentRollback + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'rollbackTo' + */ + @Test + public void rollbackToTest() { + // TODO: test rollbackTo + } + + /** + * Test the property 'updatedAnnotations' + */ + @Test + public void updatedAnnotationsTest() { + // TODO: test updatedAnnotations + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpecTest.java new file mode 100644 index 0000000000..159b5b74b4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentSpecTest.java @@ -0,0 +1,119 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1DeploymentStrategy; +import io.kubernetes.client.models.AppsV1beta1RollbackConfig; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1DeploymentSpec + */ +public class AppsV1beta1DeploymentSpecTest { + private final AppsV1beta1DeploymentSpec model = new AppsV1beta1DeploymentSpec(); + + /** + * Model tests for AppsV1beta1DeploymentSpec + */ + @Test + public void testAppsV1beta1DeploymentSpec() { + // TODO: test AppsV1beta1DeploymentSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'paused' + */ + @Test + public void pausedTest() { + // TODO: test paused + } + + /** + * Test the property 'progressDeadlineSeconds' + */ + @Test + public void progressDeadlineSecondsTest() { + // TODO: test progressDeadlineSeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'rollbackTo' + */ + @Test + public void rollbackToTest() { + // TODO: test rollbackTo + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'strategy' + */ + @Test + public void strategyTest() { + // TODO: test strategy + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatusTest.java new file mode 100644 index 0000000000..13f1fdbd32 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentStatusTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1DeploymentCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1DeploymentStatus + */ +public class AppsV1beta1DeploymentStatusTest { + private final AppsV1beta1DeploymentStatus model = new AppsV1beta1DeploymentStatus(); + + /** + * Model tests for AppsV1beta1DeploymentStatus + */ + @Test + public void testAppsV1beta1DeploymentStatus() { + // TODO: test AppsV1beta1DeploymentStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'unavailableReplicas' + */ + @Test + public void unavailableReplicasTest() { + // TODO: test unavailableReplicas + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategyTest.java new file mode 100644 index 0000000000..2511442be2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1RollingUpdateDeployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1DeploymentStrategy + */ +public class AppsV1beta1DeploymentStrategyTest { + private final AppsV1beta1DeploymentStrategy model = new AppsV1beta1DeploymentStrategy(); + + /** + * Model tests for AppsV1beta1DeploymentStrategy + */ + @Test + public void testAppsV1beta1DeploymentStrategy() { + // TODO: test AppsV1beta1DeploymentStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentTest.java new file mode 100644 index 0000000000..4e1ce986b9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1DeploymentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1DeploymentSpec; +import io.kubernetes.client.models.AppsV1beta1DeploymentStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1Deployment + */ +public class AppsV1beta1DeploymentTest { + private final AppsV1beta1Deployment model = new AppsV1beta1Deployment(); + + /** + * Model tests for AppsV1beta1Deployment + */ + @Test + public void testAppsV1beta1Deployment() { + // TODO: test AppsV1beta1Deployment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1RollbackConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1RollbackConfigTest.java new file mode 100644 index 0000000000..57f177d24b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1RollbackConfigTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1RollbackConfig + */ +public class AppsV1beta1RollbackConfigTest { + private final AppsV1beta1RollbackConfig model = new AppsV1beta1RollbackConfig(); + + /** + * Model tests for AppsV1beta1RollbackConfig + */ + @Test + public void testAppsV1beta1RollbackConfig() { + // TODO: test AppsV1beta1RollbackConfig + } + + /** + * Test the property 'revision' + */ + @Test + public void revisionTest() { + // TODO: test revision + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeploymentTest.java new file mode 100644 index 0000000000..d9bae001b9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1RollingUpdateDeploymentTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1RollingUpdateDeployment + */ +public class AppsV1beta1RollingUpdateDeploymentTest { + private final AppsV1beta1RollingUpdateDeployment model = new AppsV1beta1RollingUpdateDeployment(); + + /** + * Model tests for AppsV1beta1RollingUpdateDeployment + */ + @Test + public void testAppsV1beta1RollingUpdateDeployment() { + // TODO: test AppsV1beta1RollingUpdateDeployment + } + + /** + * Test the property 'maxSurge' + */ + @Test + public void maxSurgeTest() { + // TODO: test maxSurge + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleSpecTest.java new file mode 100644 index 0000000000..6289a6ac8b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1ScaleSpec + */ +public class AppsV1beta1ScaleSpecTest { + private final AppsV1beta1ScaleSpec model = new AppsV1beta1ScaleSpec(); + + /** + * Model tests for AppsV1beta1ScaleSpec + */ + @Test + public void testAppsV1beta1ScaleSpec() { + // TODO: test AppsV1beta1ScaleSpec + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleStatusTest.java new file mode 100644 index 0000000000..8d21c0cfe1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleStatusTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1ScaleStatus + */ +public class AppsV1beta1ScaleStatusTest { + private final AppsV1beta1ScaleStatus model = new AppsV1beta1ScaleStatus(); + + /** + * Model tests for AppsV1beta1ScaleStatus + */ + @Test + public void testAppsV1beta1ScaleStatus() { + // TODO: test AppsV1beta1ScaleStatus + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'targetSelector' + */ + @Test + public void targetSelectorTest() { + // TODO: test targetSelector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleTest.java new file mode 100644 index 0000000000..81bc82fd5f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/AppsV1beta1ScaleTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AppsV1beta1ScaleSpec; +import io.kubernetes.client.models.AppsV1beta1ScaleStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for AppsV1beta1Scale + */ +public class AppsV1beta1ScaleTest { + private final AppsV1beta1Scale model = new AppsV1beta1Scale(); + + /** + * Model tests for AppsV1beta1Scale + */ + @Test + public void testAppsV1beta1Scale() { + // TODO: test AppsV1beta1Scale + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriverTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriverTest.java new file mode 100644 index 0000000000..6447ff331c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedCSIDriverTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1AllowedCSIDriver + */ +public class ExtensionsV1beta1AllowedCSIDriverTest { + private final ExtensionsV1beta1AllowedCSIDriver model = new ExtensionsV1beta1AllowedCSIDriver(); + + /** + * Model tests for ExtensionsV1beta1AllowedCSIDriver + */ + @Test + public void testExtensionsV1beta1AllowedCSIDriver() { + // TODO: test ExtensionsV1beta1AllowedCSIDriver + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolumeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolumeTest.java new file mode 100644 index 0000000000..56ec2d08c9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedFlexVolumeTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1AllowedFlexVolume + */ +public class ExtensionsV1beta1AllowedFlexVolumeTest { + private final ExtensionsV1beta1AllowedFlexVolume model = new ExtensionsV1beta1AllowedFlexVolume(); + + /** + * Model tests for ExtensionsV1beta1AllowedFlexVolume + */ + @Test + public void testExtensionsV1beta1AllowedFlexVolume() { + // TODO: test ExtensionsV1beta1AllowedFlexVolume + } + + /** + * Test the property 'driver' + */ + @Test + public void driverTest() { + // TODO: test driver + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPathTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPathTest.java new file mode 100644 index 0000000000..8dd4cef778 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1AllowedHostPathTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1AllowedHostPath + */ +public class ExtensionsV1beta1AllowedHostPathTest { + private final ExtensionsV1beta1AllowedHostPath model = new ExtensionsV1beta1AllowedHostPath(); + + /** + * Model tests for ExtensionsV1beta1AllowedHostPath + */ + @Test + public void testExtensionsV1beta1AllowedHostPath() { + // TODO: test ExtensionsV1beta1AllowedHostPath + } + + /** + * Test the property 'pathPrefix' + */ + @Test + public void pathPrefixTest() { + // TODO: test pathPrefix + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentConditionTest.java new file mode 100644 index 0000000000..a1a01b3d0a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1DeploymentCondition + */ +public class ExtensionsV1beta1DeploymentConditionTest { + private final ExtensionsV1beta1DeploymentCondition model = new ExtensionsV1beta1DeploymentCondition(); + + /** + * Model tests for ExtensionsV1beta1DeploymentCondition + */ + @Test + public void testExtensionsV1beta1DeploymentCondition() { + // TODO: test ExtensionsV1beta1DeploymentCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'lastUpdateTime' + */ + @Test + public void lastUpdateTimeTest() { + // TODO: test lastUpdateTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentListTest.java new file mode 100644 index 0000000000..9c4dfac0b2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1Deployment; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1DeploymentList + */ +public class ExtensionsV1beta1DeploymentListTest { + private final ExtensionsV1beta1DeploymentList model = new ExtensionsV1beta1DeploymentList(); + + /** + * Model tests for ExtensionsV1beta1DeploymentList + */ + @Test + public void testExtensionsV1beta1DeploymentList() { + // TODO: test ExtensionsV1beta1DeploymentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollbackTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollbackTest.java new file mode 100644 index 0000000000..9f6875f680 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentRollbackTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1RollbackConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1DeploymentRollback + */ +public class ExtensionsV1beta1DeploymentRollbackTest { + private final ExtensionsV1beta1DeploymentRollback model = new ExtensionsV1beta1DeploymentRollback(); + + /** + * Model tests for ExtensionsV1beta1DeploymentRollback + */ + @Test + public void testExtensionsV1beta1DeploymentRollback() { + // TODO: test ExtensionsV1beta1DeploymentRollback + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'rollbackTo' + */ + @Test + public void rollbackToTest() { + // TODO: test rollbackTo + } + + /** + * Test the property 'updatedAnnotations' + */ + @Test + public void updatedAnnotationsTest() { + // TODO: test updatedAnnotations + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpecTest.java new file mode 100644 index 0000000000..fff3c6b424 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentSpecTest.java @@ -0,0 +1,119 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1DeploymentStrategy; +import io.kubernetes.client.models.ExtensionsV1beta1RollbackConfig; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1DeploymentSpec + */ +public class ExtensionsV1beta1DeploymentSpecTest { + private final ExtensionsV1beta1DeploymentSpec model = new ExtensionsV1beta1DeploymentSpec(); + + /** + * Model tests for ExtensionsV1beta1DeploymentSpec + */ + @Test + public void testExtensionsV1beta1DeploymentSpec() { + // TODO: test ExtensionsV1beta1DeploymentSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'paused' + */ + @Test + public void pausedTest() { + // TODO: test paused + } + + /** + * Test the property 'progressDeadlineSeconds' + */ + @Test + public void progressDeadlineSecondsTest() { + // TODO: test progressDeadlineSeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'rollbackTo' + */ + @Test + public void rollbackToTest() { + // TODO: test rollbackTo + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'strategy' + */ + @Test + public void strategyTest() { + // TODO: test strategy + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatusTest.java new file mode 100644 index 0000000000..2cae7191e5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStatusTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1DeploymentCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1DeploymentStatus + */ +public class ExtensionsV1beta1DeploymentStatusTest { + private final ExtensionsV1beta1DeploymentStatus model = new ExtensionsV1beta1DeploymentStatus(); + + /** + * Model tests for ExtensionsV1beta1DeploymentStatus + */ + @Test + public void testExtensionsV1beta1DeploymentStatus() { + // TODO: test ExtensionsV1beta1DeploymentStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'unavailableReplicas' + */ + @Test + public void unavailableReplicasTest() { + // TODO: test unavailableReplicas + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategyTest.java new file mode 100644 index 0000000000..3fe6382773 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1RollingUpdateDeployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1DeploymentStrategy + */ +public class ExtensionsV1beta1DeploymentStrategyTest { + private final ExtensionsV1beta1DeploymentStrategy model = new ExtensionsV1beta1DeploymentStrategy(); + + /** + * Model tests for ExtensionsV1beta1DeploymentStrategy + */ + @Test + public void testExtensionsV1beta1DeploymentStrategy() { + // TODO: test ExtensionsV1beta1DeploymentStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentTest.java new file mode 100644 index 0000000000..2a4aed6e7a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1DeploymentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1DeploymentSpec; +import io.kubernetes.client.models.ExtensionsV1beta1DeploymentStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1Deployment + */ +public class ExtensionsV1beta1DeploymentTest { + private final ExtensionsV1beta1Deployment model = new ExtensionsV1beta1Deployment(); + + /** + * Model tests for ExtensionsV1beta1Deployment + */ + @Test + public void testExtensionsV1beta1Deployment() { + // TODO: test ExtensionsV1beta1Deployment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptionsTest.java new file mode 100644 index 0000000000..e56e1180cd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1FSGroupStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1FSGroupStrategyOptions + */ +public class ExtensionsV1beta1FSGroupStrategyOptionsTest { + private final ExtensionsV1beta1FSGroupStrategyOptions model = new ExtensionsV1beta1FSGroupStrategyOptions(); + + /** + * Model tests for ExtensionsV1beta1FSGroupStrategyOptions + */ + @Test + public void testExtensionsV1beta1FSGroupStrategyOptions() { + // TODO: test ExtensionsV1beta1FSGroupStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPathTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPathTest.java new file mode 100644 index 0000000000..7fbaa9f535 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressPathTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IngressBackend; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1HTTPIngressPath + */ +public class ExtensionsV1beta1HTTPIngressPathTest { + private final ExtensionsV1beta1HTTPIngressPath model = new ExtensionsV1beta1HTTPIngressPath(); + + /** + * Model tests for ExtensionsV1beta1HTTPIngressPath + */ + @Test + public void testExtensionsV1beta1HTTPIngressPath() { + // TODO: test ExtensionsV1beta1HTTPIngressPath + } + + /** + * Test the property 'backend' + */ + @Test + public void backendTest() { + // TODO: test backend + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValueTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValueTest.java new file mode 100644 index 0000000000..3dd6782b94 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HTTPIngressRuleValueTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1HTTPIngressPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1HTTPIngressRuleValue + */ +public class ExtensionsV1beta1HTTPIngressRuleValueTest { + private final ExtensionsV1beta1HTTPIngressRuleValue model = new ExtensionsV1beta1HTTPIngressRuleValue(); + + /** + * Model tests for ExtensionsV1beta1HTTPIngressRuleValue + */ + @Test + public void testExtensionsV1beta1HTTPIngressRuleValue() { + // TODO: test ExtensionsV1beta1HTTPIngressRuleValue + } + + /** + * Test the property 'paths' + */ + @Test + public void pathsTest() { + // TODO: test paths + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRangeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRangeTest.java new file mode 100644 index 0000000000..917143b9a6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1HostPortRangeTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1HostPortRange + */ +public class ExtensionsV1beta1HostPortRangeTest { + private final ExtensionsV1beta1HostPortRange model = new ExtensionsV1beta1HostPortRange(); + + /** + * Model tests for ExtensionsV1beta1HostPortRange + */ + @Test + public void testExtensionsV1beta1HostPortRange() { + // TODO: test ExtensionsV1beta1HostPortRange + } + + /** + * Test the property 'max' + */ + @Test + public void maxTest() { + // TODO: test max + } + + /** + * Test the property 'min' + */ + @Test + public void minTest() { + // TODO: test min + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IDRangeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IDRangeTest.java new file mode 100644 index 0000000000..55d54e0ada --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IDRangeTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IDRange + */ +public class ExtensionsV1beta1IDRangeTest { + private final ExtensionsV1beta1IDRange model = new ExtensionsV1beta1IDRange(); + + /** + * Model tests for ExtensionsV1beta1IDRange + */ + @Test + public void testExtensionsV1beta1IDRange() { + // TODO: test ExtensionsV1beta1IDRange + } + + /** + * Test the property 'max' + */ + @Test + public void maxTest() { + // TODO: test max + } + + /** + * Test the property 'min' + */ + @Test + public void minTest() { + // TODO: test min + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackendTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackendTest.java new file mode 100644 index 0000000000..fd3ab28c76 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressBackendTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IngressBackend + */ +public class ExtensionsV1beta1IngressBackendTest { + private final ExtensionsV1beta1IngressBackend model = new ExtensionsV1beta1IngressBackend(); + + /** + * Model tests for ExtensionsV1beta1IngressBackend + */ + @Test + public void testExtensionsV1beta1IngressBackend() { + // TODO: test ExtensionsV1beta1IngressBackend + } + + /** + * Test the property 'serviceName' + */ + @Test + public void serviceNameTest() { + // TODO: test serviceName + } + + /** + * Test the property 'servicePort' + */ + @Test + public void servicePortTest() { + // TODO: test servicePort + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressListTest.java new file mode 100644 index 0000000000..a62d8df73b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1Ingress; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IngressList + */ +public class ExtensionsV1beta1IngressListTest { + private final ExtensionsV1beta1IngressList model = new ExtensionsV1beta1IngressList(); + + /** + * Model tests for ExtensionsV1beta1IngressList + */ + @Test + public void testExtensionsV1beta1IngressList() { + // TODO: test ExtensionsV1beta1IngressList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRuleTest.java new file mode 100644 index 0000000000..45fb29c0b4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressRuleTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1HTTPIngressRuleValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IngressRule + */ +public class ExtensionsV1beta1IngressRuleTest { + private final ExtensionsV1beta1IngressRule model = new ExtensionsV1beta1IngressRule(); + + /** + * Model tests for ExtensionsV1beta1IngressRule + */ + @Test + public void testExtensionsV1beta1IngressRule() { + // TODO: test ExtensionsV1beta1IngressRule + } + + /** + * Test the property 'host' + */ + @Test + public void hostTest() { + // TODO: test host + } + + /** + * Test the property 'http' + */ + @Test + public void httpTest() { + // TODO: test http + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpecTest.java new file mode 100644 index 0000000000..79956f078a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressSpecTest.java @@ -0,0 +1,72 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IngressBackend; +import io.kubernetes.client.models.ExtensionsV1beta1IngressRule; +import io.kubernetes.client.models.ExtensionsV1beta1IngressTLS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IngressSpec + */ +public class ExtensionsV1beta1IngressSpecTest { + private final ExtensionsV1beta1IngressSpec model = new ExtensionsV1beta1IngressSpec(); + + /** + * Model tests for ExtensionsV1beta1IngressSpec + */ + @Test + public void testExtensionsV1beta1IngressSpec() { + // TODO: test ExtensionsV1beta1IngressSpec + } + + /** + * Test the property 'backend' + */ + @Test + public void backendTest() { + // TODO: test backend + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'tls' + */ + @Test + public void tlsTest() { + // TODO: test tls + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatusTest.java new file mode 100644 index 0000000000..2df8b59249 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressStatusTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LoadBalancerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IngressStatus + */ +public class ExtensionsV1beta1IngressStatusTest { + private final ExtensionsV1beta1IngressStatus model = new ExtensionsV1beta1IngressStatus(); + + /** + * Model tests for ExtensionsV1beta1IngressStatus + */ + @Test + public void testExtensionsV1beta1IngressStatus() { + // TODO: test ExtensionsV1beta1IngressStatus + } + + /** + * Test the property 'loadBalancer' + */ + @Test + public void loadBalancerTest() { + // TODO: test loadBalancer + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLSTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLSTest.java new file mode 100644 index 0000000000..83618f3e37 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTLSTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1IngressTLS + */ +public class ExtensionsV1beta1IngressTLSTest { + private final ExtensionsV1beta1IngressTLS model = new ExtensionsV1beta1IngressTLS(); + + /** + * Model tests for ExtensionsV1beta1IngressTLS + */ + @Test + public void testExtensionsV1beta1IngressTLS() { + // TODO: test ExtensionsV1beta1IngressTLS + } + + /** + * Test the property 'hosts' + */ + @Test + public void hostsTest() { + // TODO: test hosts + } + + /** + * Test the property 'secretName' + */ + @Test + public void secretNameTest() { + // TODO: test secretName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTest.java new file mode 100644 index 0000000000..6dd10ab119 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1IngressTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IngressSpec; +import io.kubernetes.client.models.ExtensionsV1beta1IngressStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1Ingress + */ +public class ExtensionsV1beta1IngressTest { + private final ExtensionsV1beta1Ingress model = new ExtensionsV1beta1Ingress(); + + /** + * Model tests for ExtensionsV1beta1Ingress + */ + @Test + public void testExtensionsV1beta1Ingress() { + // TODO: test ExtensionsV1beta1Ingress + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyListTest.java new file mode 100644 index 0000000000..c8e5f58df1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1PodSecurityPolicy; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1PodSecurityPolicyList + */ +public class ExtensionsV1beta1PodSecurityPolicyListTest { + private final ExtensionsV1beta1PodSecurityPolicyList model = new ExtensionsV1beta1PodSecurityPolicyList(); + + /** + * Model tests for ExtensionsV1beta1PodSecurityPolicyList + */ + @Test + public void testExtensionsV1beta1PodSecurityPolicyList() { + // TODO: test ExtensionsV1beta1PodSecurityPolicyList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpecTest.java new file mode 100644 index 0000000000..45832c0590 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicySpecTest.java @@ -0,0 +1,247 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1AllowedCSIDriver; +import io.kubernetes.client.models.ExtensionsV1beta1AllowedFlexVolume; +import io.kubernetes.client.models.ExtensionsV1beta1AllowedHostPath; +import io.kubernetes.client.models.ExtensionsV1beta1FSGroupStrategyOptions; +import io.kubernetes.client.models.ExtensionsV1beta1HostPortRange; +import io.kubernetes.client.models.ExtensionsV1beta1RunAsGroupStrategyOptions; +import io.kubernetes.client.models.ExtensionsV1beta1RunAsUserStrategyOptions; +import io.kubernetes.client.models.ExtensionsV1beta1RuntimeClassStrategyOptions; +import io.kubernetes.client.models.ExtensionsV1beta1SELinuxStrategyOptions; +import io.kubernetes.client.models.ExtensionsV1beta1SupplementalGroupsStrategyOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1PodSecurityPolicySpec + */ +public class ExtensionsV1beta1PodSecurityPolicySpecTest { + private final ExtensionsV1beta1PodSecurityPolicySpec model = new ExtensionsV1beta1PodSecurityPolicySpec(); + + /** + * Model tests for ExtensionsV1beta1PodSecurityPolicySpec + */ + @Test + public void testExtensionsV1beta1PodSecurityPolicySpec() { + // TODO: test ExtensionsV1beta1PodSecurityPolicySpec + } + + /** + * Test the property 'allowPrivilegeEscalation' + */ + @Test + public void allowPrivilegeEscalationTest() { + // TODO: test allowPrivilegeEscalation + } + + /** + * Test the property 'allowedCSIDrivers' + */ + @Test + public void allowedCSIDriversTest() { + // TODO: test allowedCSIDrivers + } + + /** + * Test the property 'allowedCapabilities' + */ + @Test + public void allowedCapabilitiesTest() { + // TODO: test allowedCapabilities + } + + /** + * Test the property 'allowedFlexVolumes' + */ + @Test + public void allowedFlexVolumesTest() { + // TODO: test allowedFlexVolumes + } + + /** + * Test the property 'allowedHostPaths' + */ + @Test + public void allowedHostPathsTest() { + // TODO: test allowedHostPaths + } + + /** + * Test the property 'allowedProcMountTypes' + */ + @Test + public void allowedProcMountTypesTest() { + // TODO: test allowedProcMountTypes + } + + /** + * Test the property 'allowedUnsafeSysctls' + */ + @Test + public void allowedUnsafeSysctlsTest() { + // TODO: test allowedUnsafeSysctls + } + + /** + * Test the property 'defaultAddCapabilities' + */ + @Test + public void defaultAddCapabilitiesTest() { + // TODO: test defaultAddCapabilities + } + + /** + * Test the property 'defaultAllowPrivilegeEscalation' + */ + @Test + public void defaultAllowPrivilegeEscalationTest() { + // TODO: test defaultAllowPrivilegeEscalation + } + + /** + * Test the property 'forbiddenSysctls' + */ + @Test + public void forbiddenSysctlsTest() { + // TODO: test forbiddenSysctls + } + + /** + * Test the property 'fsGroup' + */ + @Test + public void fsGroupTest() { + // TODO: test fsGroup + } + + /** + * Test the property 'hostIPC' + */ + @Test + public void hostIPCTest() { + // TODO: test hostIPC + } + + /** + * Test the property 'hostNetwork' + */ + @Test + public void hostNetworkTest() { + // TODO: test hostNetwork + } + + /** + * Test the property 'hostPID' + */ + @Test + public void hostPIDTest() { + // TODO: test hostPID + } + + /** + * Test the property 'hostPorts' + */ + @Test + public void hostPortsTest() { + // TODO: test hostPorts + } + + /** + * Test the property 'privileged' + */ + @Test + public void privilegedTest() { + // TODO: test privileged + } + + /** + * Test the property 'readOnlyRootFilesystem' + */ + @Test + public void readOnlyRootFilesystemTest() { + // TODO: test readOnlyRootFilesystem + } + + /** + * Test the property 'requiredDropCapabilities' + */ + @Test + public void requiredDropCapabilitiesTest() { + // TODO: test requiredDropCapabilities + } + + /** + * Test the property 'runAsGroup' + */ + @Test + public void runAsGroupTest() { + // TODO: test runAsGroup + } + + /** + * Test the property 'runAsUser' + */ + @Test + public void runAsUserTest() { + // TODO: test runAsUser + } + + /** + * Test the property 'runtimeClass' + */ + @Test + public void runtimeClassTest() { + // TODO: test runtimeClass + } + + /** + * Test the property 'seLinux' + */ + @Test + public void seLinuxTest() { + // TODO: test seLinux + } + + /** + * Test the property 'supplementalGroups' + */ + @Test + public void supplementalGroupsTest() { + // TODO: test supplementalGroups + } + + /** + * Test the property 'volumes' + */ + @Test + public void volumesTest() { + // TODO: test volumes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyTest.java new file mode 100644 index 0000000000..bf30e222d3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1PodSecurityPolicyTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1PodSecurityPolicySpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1PodSecurityPolicy + */ +public class ExtensionsV1beta1PodSecurityPolicyTest { + private final ExtensionsV1beta1PodSecurityPolicy model = new ExtensionsV1beta1PodSecurityPolicy(); + + /** + * Model tests for ExtensionsV1beta1PodSecurityPolicy + */ + @Test + public void testExtensionsV1beta1PodSecurityPolicy() { + // TODO: test ExtensionsV1beta1PodSecurityPolicy + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfigTest.java new file mode 100644 index 0000000000..f45a46781c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RollbackConfigTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1RollbackConfig + */ +public class ExtensionsV1beta1RollbackConfigTest { + private final ExtensionsV1beta1RollbackConfig model = new ExtensionsV1beta1RollbackConfig(); + + /** + * Model tests for ExtensionsV1beta1RollbackConfig + */ + @Test + public void testExtensionsV1beta1RollbackConfig() { + // TODO: test ExtensionsV1beta1RollbackConfig + } + + /** + * Test the property 'revision' + */ + @Test + public void revisionTest() { + // TODO: test revision + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeploymentTest.java new file mode 100644 index 0000000000..b8496e4b1a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RollingUpdateDeploymentTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1RollingUpdateDeployment + */ +public class ExtensionsV1beta1RollingUpdateDeploymentTest { + private final ExtensionsV1beta1RollingUpdateDeployment model = new ExtensionsV1beta1RollingUpdateDeployment(); + + /** + * Model tests for ExtensionsV1beta1RollingUpdateDeployment + */ + @Test + public void testExtensionsV1beta1RollingUpdateDeployment() { + // TODO: test ExtensionsV1beta1RollingUpdateDeployment + } + + /** + * Test the property 'maxSurge' + */ + @Test + public void maxSurgeTest() { + // TODO: test maxSurge + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptionsTest.java new file mode 100644 index 0000000000..15cb5819ef --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsGroupStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1RunAsGroupStrategyOptions + */ +public class ExtensionsV1beta1RunAsGroupStrategyOptionsTest { + private final ExtensionsV1beta1RunAsGroupStrategyOptions model = new ExtensionsV1beta1RunAsGroupStrategyOptions(); + + /** + * Model tests for ExtensionsV1beta1RunAsGroupStrategyOptions + */ + @Test + public void testExtensionsV1beta1RunAsGroupStrategyOptions() { + // TODO: test ExtensionsV1beta1RunAsGroupStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptionsTest.java new file mode 100644 index 0000000000..4c7e3723ac --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RunAsUserStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1RunAsUserStrategyOptions + */ +public class ExtensionsV1beta1RunAsUserStrategyOptionsTest { + private final ExtensionsV1beta1RunAsUserStrategyOptions model = new ExtensionsV1beta1RunAsUserStrategyOptions(); + + /** + * Model tests for ExtensionsV1beta1RunAsUserStrategyOptions + */ + @Test + public void testExtensionsV1beta1RunAsUserStrategyOptions() { + // TODO: test ExtensionsV1beta1RunAsUserStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RuntimeClassStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RuntimeClassStrategyOptionsTest.java new file mode 100644 index 0000000000..15fbf4bac4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1RuntimeClassStrategyOptionsTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1RuntimeClassStrategyOptions + */ +public class ExtensionsV1beta1RuntimeClassStrategyOptionsTest { + private final ExtensionsV1beta1RuntimeClassStrategyOptions model = new ExtensionsV1beta1RuntimeClassStrategyOptions(); + + /** + * Model tests for ExtensionsV1beta1RuntimeClassStrategyOptions + */ + @Test + public void testExtensionsV1beta1RuntimeClassStrategyOptions() { + // TODO: test ExtensionsV1beta1RuntimeClassStrategyOptions + } + + /** + * Test the property 'allowedRuntimeClassNames' + */ + @Test + public void allowedRuntimeClassNamesTest() { + // TODO: test allowedRuntimeClassNames + } + + /** + * Test the property 'defaultRuntimeClassName' + */ + @Test + public void defaultRuntimeClassNameTest() { + // TODO: test defaultRuntimeClassName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptionsTest.java new file mode 100644 index 0000000000..a8970e3cc8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1SELinuxStrategyOptionsTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SELinuxOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1SELinuxStrategyOptions + */ +public class ExtensionsV1beta1SELinuxStrategyOptionsTest { + private final ExtensionsV1beta1SELinuxStrategyOptions model = new ExtensionsV1beta1SELinuxStrategyOptions(); + + /** + * Model tests for ExtensionsV1beta1SELinuxStrategyOptions + */ + @Test + public void testExtensionsV1beta1SELinuxStrategyOptions() { + // TODO: test ExtensionsV1beta1SELinuxStrategyOptions + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + + /** + * Test the property 'seLinuxOptions' + */ + @Test + public void seLinuxOptionsTest() { + // TODO: test seLinuxOptions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpecTest.java new file mode 100644 index 0000000000..c0cc4ea756 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1ScaleSpec + */ +public class ExtensionsV1beta1ScaleSpecTest { + private final ExtensionsV1beta1ScaleSpec model = new ExtensionsV1beta1ScaleSpec(); + + /** + * Model tests for ExtensionsV1beta1ScaleSpec + */ + @Test + public void testExtensionsV1beta1ScaleSpec() { + // TODO: test ExtensionsV1beta1ScaleSpec + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatusTest.java new file mode 100644 index 0000000000..cf235e1f08 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleStatusTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1ScaleStatus + */ +public class ExtensionsV1beta1ScaleStatusTest { + private final ExtensionsV1beta1ScaleStatus model = new ExtensionsV1beta1ScaleStatus(); + + /** + * Model tests for ExtensionsV1beta1ScaleStatus + */ + @Test + public void testExtensionsV1beta1ScaleStatus() { + // TODO: test ExtensionsV1beta1ScaleStatus + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'targetSelector' + */ + @Test + public void targetSelectorTest() { + // TODO: test targetSelector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleTest.java new file mode 100644 index 0000000000..e99116363d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1ScaleTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1ScaleSpec; +import io.kubernetes.client.models.ExtensionsV1beta1ScaleStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1Scale + */ +public class ExtensionsV1beta1ScaleTest { + private final ExtensionsV1beta1Scale model = new ExtensionsV1beta1Scale(); + + /** + * Model tests for ExtensionsV1beta1Scale + */ + @Test + public void testExtensionsV1beta1Scale() { + // TODO: test ExtensionsV1beta1Scale + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptionsTest.java new file mode 100644 index 0000000000..97d8800db5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/ExtensionsV1beta1SupplementalGroupsStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ExtensionsV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for ExtensionsV1beta1SupplementalGroupsStrategyOptions + */ +public class ExtensionsV1beta1SupplementalGroupsStrategyOptionsTest { + private final ExtensionsV1beta1SupplementalGroupsStrategyOptions model = new ExtensionsV1beta1SupplementalGroupsStrategyOptions(); + + /** + * Model tests for ExtensionsV1beta1SupplementalGroupsStrategyOptions + */ + @Test + public void testExtensionsV1beta1SupplementalGroupsStrategyOptions() { + // TODO: test ExtensionsV1beta1SupplementalGroupsStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPathTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPathTest.java new file mode 100644 index 0000000000..6092feef48 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressPathTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.NetworkingV1beta1IngressBackend; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1HTTPIngressPath + */ +public class NetworkingV1beta1HTTPIngressPathTest { + private final NetworkingV1beta1HTTPIngressPath model = new NetworkingV1beta1HTTPIngressPath(); + + /** + * Model tests for NetworkingV1beta1HTTPIngressPath + */ + @Test + public void testNetworkingV1beta1HTTPIngressPath() { + // TODO: test NetworkingV1beta1HTTPIngressPath + } + + /** + * Test the property 'backend' + */ + @Test + public void backendTest() { + // TODO: test backend + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValueTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValueTest.java new file mode 100644 index 0000000000..b903eceb3e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1HTTPIngressRuleValueTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.NetworkingV1beta1HTTPIngressPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1HTTPIngressRuleValue + */ +public class NetworkingV1beta1HTTPIngressRuleValueTest { + private final NetworkingV1beta1HTTPIngressRuleValue model = new NetworkingV1beta1HTTPIngressRuleValue(); + + /** + * Model tests for NetworkingV1beta1HTTPIngressRuleValue + */ + @Test + public void testNetworkingV1beta1HTTPIngressRuleValue() { + // TODO: test NetworkingV1beta1HTTPIngressRuleValue + } + + /** + * Test the property 'paths' + */ + @Test + public void pathsTest() { + // TODO: test paths + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackendTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackendTest.java new file mode 100644 index 0000000000..45b25d2fb8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressBackendTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1IngressBackend + */ +public class NetworkingV1beta1IngressBackendTest { + private final NetworkingV1beta1IngressBackend model = new NetworkingV1beta1IngressBackend(); + + /** + * Model tests for NetworkingV1beta1IngressBackend + */ + @Test + public void testNetworkingV1beta1IngressBackend() { + // TODO: test NetworkingV1beta1IngressBackend + } + + /** + * Test the property 'serviceName' + */ + @Test + public void serviceNameTest() { + // TODO: test serviceName + } + + /** + * Test the property 'servicePort' + */ + @Test + public void servicePortTest() { + // TODO: test servicePort + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressListTest.java new file mode 100644 index 0000000000..34b1991653 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.NetworkingV1beta1Ingress; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1IngressList + */ +public class NetworkingV1beta1IngressListTest { + private final NetworkingV1beta1IngressList model = new NetworkingV1beta1IngressList(); + + /** + * Model tests for NetworkingV1beta1IngressList + */ + @Test + public void testNetworkingV1beta1IngressList() { + // TODO: test NetworkingV1beta1IngressList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressRuleTest.java new file mode 100644 index 0000000000..fba7ec169f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressRuleTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.NetworkingV1beta1HTTPIngressRuleValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1IngressRule + */ +public class NetworkingV1beta1IngressRuleTest { + private final NetworkingV1beta1IngressRule model = new NetworkingV1beta1IngressRule(); + + /** + * Model tests for NetworkingV1beta1IngressRule + */ + @Test + public void testNetworkingV1beta1IngressRule() { + // TODO: test NetworkingV1beta1IngressRule + } + + /** + * Test the property 'host' + */ + @Test + public void hostTest() { + // TODO: test host + } + + /** + * Test the property 'http' + */ + @Test + public void httpTest() { + // TODO: test http + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpecTest.java new file mode 100644 index 0000000000..208c3000f4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressSpecTest.java @@ -0,0 +1,72 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.NetworkingV1beta1IngressBackend; +import io.kubernetes.client.models.NetworkingV1beta1IngressRule; +import io.kubernetes.client.models.NetworkingV1beta1IngressTLS; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1IngressSpec + */ +public class NetworkingV1beta1IngressSpecTest { + private final NetworkingV1beta1IngressSpec model = new NetworkingV1beta1IngressSpec(); + + /** + * Model tests for NetworkingV1beta1IngressSpec + */ + @Test + public void testNetworkingV1beta1IngressSpec() { + // TODO: test NetworkingV1beta1IngressSpec + } + + /** + * Test the property 'backend' + */ + @Test + public void backendTest() { + // TODO: test backend + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'tls' + */ + @Test + public void tlsTest() { + // TODO: test tls + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatusTest.java new file mode 100644 index 0000000000..cc08f7f9cd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressStatusTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LoadBalancerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1IngressStatus + */ +public class NetworkingV1beta1IngressStatusTest { + private final NetworkingV1beta1IngressStatus model = new NetworkingV1beta1IngressStatus(); + + /** + * Model tests for NetworkingV1beta1IngressStatus + */ + @Test + public void testNetworkingV1beta1IngressStatus() { + // TODO: test NetworkingV1beta1IngressStatus + } + + /** + * Test the property 'loadBalancer' + */ + @Test + public void loadBalancerTest() { + // TODO: test loadBalancer + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLSTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLSTest.java new file mode 100644 index 0000000000..af283d81bd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressTLSTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1IngressTLS + */ +public class NetworkingV1beta1IngressTLSTest { + private final NetworkingV1beta1IngressTLS model = new NetworkingV1beta1IngressTLS(); + + /** + * Model tests for NetworkingV1beta1IngressTLS + */ + @Test + public void testNetworkingV1beta1IngressTLS() { + // TODO: test NetworkingV1beta1IngressTLS + } + + /** + * Test the property 'hosts' + */ + @Test + public void hostsTest() { + // TODO: test hosts + } + + /** + * Test the property 'secretName' + */ + @Test + public void secretNameTest() { + // TODO: test secretName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressTest.java new file mode 100644 index 0000000000..0435f6c5d4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/NetworkingV1beta1IngressTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.NetworkingV1beta1IngressSpec; +import io.kubernetes.client.models.NetworkingV1beta1IngressStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for NetworkingV1beta1Ingress + */ +public class NetworkingV1beta1IngressTest { + private final NetworkingV1beta1Ingress model = new NetworkingV1beta1Ingress(); + + /** + * Model tests for NetworkingV1beta1Ingress + */ + @Test + public void testNetworkingV1beta1Ingress() { + // TODO: test NetworkingV1beta1Ingress + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriverTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriverTest.java new file mode 100644 index 0000000000..0f85cff5c5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedCSIDriverTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1AllowedCSIDriver + */ +public class PolicyV1beta1AllowedCSIDriverTest { + private final PolicyV1beta1AllowedCSIDriver model = new PolicyV1beta1AllowedCSIDriver(); + + /** + * Model tests for PolicyV1beta1AllowedCSIDriver + */ + @Test + public void testPolicyV1beta1AllowedCSIDriver() { + // TODO: test PolicyV1beta1AllowedCSIDriver + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolumeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolumeTest.java new file mode 100644 index 0000000000..02761849a8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedFlexVolumeTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1AllowedFlexVolume + */ +public class PolicyV1beta1AllowedFlexVolumeTest { + private final PolicyV1beta1AllowedFlexVolume model = new PolicyV1beta1AllowedFlexVolume(); + + /** + * Model tests for PolicyV1beta1AllowedFlexVolume + */ + @Test + public void testPolicyV1beta1AllowedFlexVolume() { + // TODO: test PolicyV1beta1AllowedFlexVolume + } + + /** + * Test the property 'driver' + */ + @Test + public void driverTest() { + // TODO: test driver + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPathTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPathTest.java new file mode 100644 index 0000000000..0a1bdc2755 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1AllowedHostPathTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1AllowedHostPath + */ +public class PolicyV1beta1AllowedHostPathTest { + private final PolicyV1beta1AllowedHostPath model = new PolicyV1beta1AllowedHostPath(); + + /** + * Model tests for PolicyV1beta1AllowedHostPath + */ + @Test + public void testPolicyV1beta1AllowedHostPath() { + // TODO: test PolicyV1beta1AllowedHostPath + } + + /** + * Test the property 'pathPrefix' + */ + @Test + public void pathPrefixTest() { + // TODO: test pathPrefix + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptionsTest.java new file mode 100644 index 0000000000..4630db51bf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1FSGroupStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1FSGroupStrategyOptions + */ +public class PolicyV1beta1FSGroupStrategyOptionsTest { + private final PolicyV1beta1FSGroupStrategyOptions model = new PolicyV1beta1FSGroupStrategyOptions(); + + /** + * Model tests for PolicyV1beta1FSGroupStrategyOptions + */ + @Test + public void testPolicyV1beta1FSGroupStrategyOptions() { + // TODO: test PolicyV1beta1FSGroupStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1HostPortRangeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1HostPortRangeTest.java new file mode 100644 index 0000000000..21bf6d9a22 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1HostPortRangeTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1HostPortRange + */ +public class PolicyV1beta1HostPortRangeTest { + private final PolicyV1beta1HostPortRange model = new PolicyV1beta1HostPortRange(); + + /** + * Model tests for PolicyV1beta1HostPortRange + */ + @Test + public void testPolicyV1beta1HostPortRange() { + // TODO: test PolicyV1beta1HostPortRange + } + + /** + * Test the property 'max' + */ + @Test + public void maxTest() { + // TODO: test max + } + + /** + * Test the property 'min' + */ + @Test + public void minTest() { + // TODO: test min + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1IDRangeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1IDRangeTest.java new file mode 100644 index 0000000000..cfba8e22e4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1IDRangeTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1IDRange + */ +public class PolicyV1beta1IDRangeTest { + private final PolicyV1beta1IDRange model = new PolicyV1beta1IDRange(); + + /** + * Model tests for PolicyV1beta1IDRange + */ + @Test + public void testPolicyV1beta1IDRange() { + // TODO: test PolicyV1beta1IDRange + } + + /** + * Test the property 'max' + */ + @Test + public void maxTest() { + // TODO: test max + } + + /** + * Test the property 'min' + */ + @Test + public void minTest() { + // TODO: test min + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyListTest.java new file mode 100644 index 0000000000..0c3a51a0d0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1PodSecurityPolicy; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1PodSecurityPolicyList + */ +public class PolicyV1beta1PodSecurityPolicyListTest { + private final PolicyV1beta1PodSecurityPolicyList model = new PolicyV1beta1PodSecurityPolicyList(); + + /** + * Model tests for PolicyV1beta1PodSecurityPolicyList + */ + @Test + public void testPolicyV1beta1PodSecurityPolicyList() { + // TODO: test PolicyV1beta1PodSecurityPolicyList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpecTest.java new file mode 100644 index 0000000000..f1c3805381 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicySpecTest.java @@ -0,0 +1,247 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1AllowedCSIDriver; +import io.kubernetes.client.models.PolicyV1beta1AllowedFlexVolume; +import io.kubernetes.client.models.PolicyV1beta1AllowedHostPath; +import io.kubernetes.client.models.PolicyV1beta1FSGroupStrategyOptions; +import io.kubernetes.client.models.PolicyV1beta1HostPortRange; +import io.kubernetes.client.models.PolicyV1beta1RunAsGroupStrategyOptions; +import io.kubernetes.client.models.PolicyV1beta1RunAsUserStrategyOptions; +import io.kubernetes.client.models.PolicyV1beta1RuntimeClassStrategyOptions; +import io.kubernetes.client.models.PolicyV1beta1SELinuxStrategyOptions; +import io.kubernetes.client.models.PolicyV1beta1SupplementalGroupsStrategyOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1PodSecurityPolicySpec + */ +public class PolicyV1beta1PodSecurityPolicySpecTest { + private final PolicyV1beta1PodSecurityPolicySpec model = new PolicyV1beta1PodSecurityPolicySpec(); + + /** + * Model tests for PolicyV1beta1PodSecurityPolicySpec + */ + @Test + public void testPolicyV1beta1PodSecurityPolicySpec() { + // TODO: test PolicyV1beta1PodSecurityPolicySpec + } + + /** + * Test the property 'allowPrivilegeEscalation' + */ + @Test + public void allowPrivilegeEscalationTest() { + // TODO: test allowPrivilegeEscalation + } + + /** + * Test the property 'allowedCSIDrivers' + */ + @Test + public void allowedCSIDriversTest() { + // TODO: test allowedCSIDrivers + } + + /** + * Test the property 'allowedCapabilities' + */ + @Test + public void allowedCapabilitiesTest() { + // TODO: test allowedCapabilities + } + + /** + * Test the property 'allowedFlexVolumes' + */ + @Test + public void allowedFlexVolumesTest() { + // TODO: test allowedFlexVolumes + } + + /** + * Test the property 'allowedHostPaths' + */ + @Test + public void allowedHostPathsTest() { + // TODO: test allowedHostPaths + } + + /** + * Test the property 'allowedProcMountTypes' + */ + @Test + public void allowedProcMountTypesTest() { + // TODO: test allowedProcMountTypes + } + + /** + * Test the property 'allowedUnsafeSysctls' + */ + @Test + public void allowedUnsafeSysctlsTest() { + // TODO: test allowedUnsafeSysctls + } + + /** + * Test the property 'defaultAddCapabilities' + */ + @Test + public void defaultAddCapabilitiesTest() { + // TODO: test defaultAddCapabilities + } + + /** + * Test the property 'defaultAllowPrivilegeEscalation' + */ + @Test + public void defaultAllowPrivilegeEscalationTest() { + // TODO: test defaultAllowPrivilegeEscalation + } + + /** + * Test the property 'forbiddenSysctls' + */ + @Test + public void forbiddenSysctlsTest() { + // TODO: test forbiddenSysctls + } + + /** + * Test the property 'fsGroup' + */ + @Test + public void fsGroupTest() { + // TODO: test fsGroup + } + + /** + * Test the property 'hostIPC' + */ + @Test + public void hostIPCTest() { + // TODO: test hostIPC + } + + /** + * Test the property 'hostNetwork' + */ + @Test + public void hostNetworkTest() { + // TODO: test hostNetwork + } + + /** + * Test the property 'hostPID' + */ + @Test + public void hostPIDTest() { + // TODO: test hostPID + } + + /** + * Test the property 'hostPorts' + */ + @Test + public void hostPortsTest() { + // TODO: test hostPorts + } + + /** + * Test the property 'privileged' + */ + @Test + public void privilegedTest() { + // TODO: test privileged + } + + /** + * Test the property 'readOnlyRootFilesystem' + */ + @Test + public void readOnlyRootFilesystemTest() { + // TODO: test readOnlyRootFilesystem + } + + /** + * Test the property 'requiredDropCapabilities' + */ + @Test + public void requiredDropCapabilitiesTest() { + // TODO: test requiredDropCapabilities + } + + /** + * Test the property 'runAsGroup' + */ + @Test + public void runAsGroupTest() { + // TODO: test runAsGroup + } + + /** + * Test the property 'runAsUser' + */ + @Test + public void runAsUserTest() { + // TODO: test runAsUser + } + + /** + * Test the property 'runtimeClass' + */ + @Test + public void runtimeClassTest() { + // TODO: test runtimeClass + } + + /** + * Test the property 'seLinux' + */ + @Test + public void seLinuxTest() { + // TODO: test seLinux + } + + /** + * Test the property 'supplementalGroups' + */ + @Test + public void supplementalGroupsTest() { + // TODO: test supplementalGroups + } + + /** + * Test the property 'volumes' + */ + @Test + public void volumesTest() { + // TODO: test volumes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyTest.java new file mode 100644 index 0000000000..5cf8888562 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1PodSecurityPolicyTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1PodSecurityPolicySpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1PodSecurityPolicy + */ +public class PolicyV1beta1PodSecurityPolicyTest { + private final PolicyV1beta1PodSecurityPolicy model = new PolicyV1beta1PodSecurityPolicy(); + + /** + * Model tests for PolicyV1beta1PodSecurityPolicy + */ + @Test + public void testPolicyV1beta1PodSecurityPolicy() { + // TODO: test PolicyV1beta1PodSecurityPolicy + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptionsTest.java new file mode 100644 index 0000000000..1cdc79b61e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RunAsGroupStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1RunAsGroupStrategyOptions + */ +public class PolicyV1beta1RunAsGroupStrategyOptionsTest { + private final PolicyV1beta1RunAsGroupStrategyOptions model = new PolicyV1beta1RunAsGroupStrategyOptions(); + + /** + * Model tests for PolicyV1beta1RunAsGroupStrategyOptions + */ + @Test + public void testPolicyV1beta1RunAsGroupStrategyOptions() { + // TODO: test PolicyV1beta1RunAsGroupStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptionsTest.java new file mode 100644 index 0000000000..b60769b684 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RunAsUserStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1RunAsUserStrategyOptions + */ +public class PolicyV1beta1RunAsUserStrategyOptionsTest { + private final PolicyV1beta1RunAsUserStrategyOptions model = new PolicyV1beta1RunAsUserStrategyOptions(); + + /** + * Model tests for PolicyV1beta1RunAsUserStrategyOptions + */ + @Test + public void testPolicyV1beta1RunAsUserStrategyOptions() { + // TODO: test PolicyV1beta1RunAsUserStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RuntimeClassStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RuntimeClassStrategyOptionsTest.java new file mode 100644 index 0000000000..5b9ccc4c6b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1RuntimeClassStrategyOptionsTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1RuntimeClassStrategyOptions + */ +public class PolicyV1beta1RuntimeClassStrategyOptionsTest { + private final PolicyV1beta1RuntimeClassStrategyOptions model = new PolicyV1beta1RuntimeClassStrategyOptions(); + + /** + * Model tests for PolicyV1beta1RuntimeClassStrategyOptions + */ + @Test + public void testPolicyV1beta1RuntimeClassStrategyOptions() { + // TODO: test PolicyV1beta1RuntimeClassStrategyOptions + } + + /** + * Test the property 'allowedRuntimeClassNames' + */ + @Test + public void allowedRuntimeClassNamesTest() { + // TODO: test allowedRuntimeClassNames + } + + /** + * Test the property 'defaultRuntimeClassName' + */ + @Test + public void defaultRuntimeClassNameTest() { + // TODO: test defaultRuntimeClassName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptionsTest.java new file mode 100644 index 0000000000..1dfdcadff3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1SELinuxStrategyOptionsTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SELinuxOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1SELinuxStrategyOptions + */ +public class PolicyV1beta1SELinuxStrategyOptionsTest { + private final PolicyV1beta1SELinuxStrategyOptions model = new PolicyV1beta1SELinuxStrategyOptions(); + + /** + * Model tests for PolicyV1beta1SELinuxStrategyOptions + */ + @Test + public void testPolicyV1beta1SELinuxStrategyOptions() { + // TODO: test PolicyV1beta1SELinuxStrategyOptions + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + + /** + * Test the property 'seLinuxOptions' + */ + @Test + public void seLinuxOptionsTest() { + // TODO: test seLinuxOptions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptionsTest.java new file mode 100644 index 0000000000..1b83ec074a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/PolicyV1beta1SupplementalGroupsStrategyOptionsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.PolicyV1beta1IDRange; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for PolicyV1beta1SupplementalGroupsStrategyOptions + */ +public class PolicyV1beta1SupplementalGroupsStrategyOptionsTest { + private final PolicyV1beta1SupplementalGroupsStrategyOptions model = new PolicyV1beta1SupplementalGroupsStrategyOptions(); + + /** + * Model tests for PolicyV1beta1SupplementalGroupsStrategyOptions + */ + @Test + public void testPolicyV1beta1SupplementalGroupsStrategyOptions() { + // TODO: test PolicyV1beta1SupplementalGroupsStrategyOptions + } + + /** + * Test the property 'ranges' + */ + @Test + public void rangesTest() { + // TODO: test ranges + } + + /** + * Test the property 'rule' + */ + @Test + public void ruleTest() { + // TODO: test rule + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/RuntimeRawExtensionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/RuntimeRawExtensionTest.java new file mode 100644 index 0000000000..b684bfa7e5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/RuntimeRawExtensionTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for RuntimeRawExtension + */ +public class RuntimeRawExtensionTest { + private final RuntimeRawExtension model = new RuntimeRawExtension(); + + /** + * Model tests for RuntimeRawExtension + */ + @Test + public void testRuntimeRawExtension() { + // TODO: test RuntimeRawExtension + } + + /** + * Test the property 'raw' + */ + @Test + public void rawTest() { + // TODO: test raw + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIGroupListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIGroupListTest.java new file mode 100644 index 0000000000..5ccfd4c15d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIGroupListTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1APIGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIGroupList + */ +public class V1APIGroupListTest { + private final V1APIGroupList model = new V1APIGroupList(); + + /** + * Model tests for V1APIGroupList + */ + @Test + public void testV1APIGroupList() { + // TODO: test V1APIGroupList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIGroupTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIGroupTest.java new file mode 100644 index 0000000000..4fb13a1756 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIGroupTest.java @@ -0,0 +1,95 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1GroupVersionForDiscovery; +import io.kubernetes.client.models.V1ServerAddressByClientCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIGroup + */ +public class V1APIGroupTest { + private final V1APIGroup model = new V1APIGroup(); + + /** + * Model tests for V1APIGroup + */ + @Test + public void testV1APIGroup() { + // TODO: test V1APIGroup + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'preferredVersion' + */ + @Test + public void preferredVersionTest() { + // TODO: test preferredVersion + } + + /** + * Test the property 'serverAddressByClientCIDRs' + */ + @Test + public void serverAddressByClientCIDRsTest() { + // TODO: test serverAddressByClientCIDRs + } + + /** + * Test the property 'versions' + */ + @Test + public void versionsTest() { + // TODO: test versions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIResourceListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIResourceListTest.java new file mode 100644 index 0000000000..a2ef083b92 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIResourceListTest.java @@ -0,0 +1,78 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1APIResource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIResourceList + */ +public class V1APIResourceListTest { + private final V1APIResourceList model = new V1APIResourceList(); + + /** + * Model tests for V1APIResourceList + */ + @Test + public void testV1APIResourceList() { + // TODO: test V1APIResourceList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'groupVersion' + */ + @Test + public void groupVersionTest() { + // TODO: test groupVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIResourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIResourceTest.java new file mode 100644 index 0000000000..fbca264919 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIResourceTest.java @@ -0,0 +1,125 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIResource + */ +public class V1APIResourceTest { + private final V1APIResource model = new V1APIResource(); + + /** + * Model tests for V1APIResource + */ + @Test + public void testV1APIResource() { + // TODO: test V1APIResource + } + + /** + * Test the property 'categories' + */ + @Test + public void categoriesTest() { + // TODO: test categories + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespaced' + */ + @Test + public void namespacedTest() { + // TODO: test namespaced + } + + /** + * Test the property 'shortNames' + */ + @Test + public void shortNamesTest() { + // TODO: test shortNames + } + + /** + * Test the property 'singularName' + */ + @Test + public void singularNameTest() { + // TODO: test singularName + } + + /** + * Test the property 'storageVersionHash' + */ + @Test + public void storageVersionHashTest() { + // TODO: test storageVersionHash + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceConditionTest.java new file mode 100644 index 0000000000..98bb9d8977 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIServiceCondition + */ +public class V1APIServiceConditionTest { + private final V1APIServiceCondition model = new V1APIServiceCondition(); + + /** + * Model tests for V1APIServiceCondition + */ + @Test + public void testV1APIServiceCondition() { + // TODO: test V1APIServiceCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceListTest.java new file mode 100644 index 0000000000..b360b8cb7e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1APIService; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIServiceList + */ +public class V1APIServiceListTest { + private final V1APIServiceList model = new V1APIServiceList(); + + /** + * Model tests for V1APIServiceList + */ + @Test + public void testV1APIServiceList() { + // TODO: test V1APIServiceList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceSpecTest.java new file mode 100644 index 0000000000..38504d9935 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceSpecTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIServiceSpec + */ +public class V1APIServiceSpecTest { + private final V1APIServiceSpec model = new V1APIServiceSpec(); + + /** + * Model tests for V1APIServiceSpec + */ + @Test + public void testV1APIServiceSpec() { + // TODO: test V1APIServiceSpec + } + + /** + * Test the property 'caBundle' + */ + @Test + public void caBundleTest() { + // TODO: test caBundle + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'groupPriorityMinimum' + */ + @Test + public void groupPriorityMinimumTest() { + // TODO: test groupPriorityMinimum + } + + /** + * Test the property 'insecureSkipTLSVerify' + */ + @Test + public void insecureSkipTLSVerifyTest() { + // TODO: test insecureSkipTLSVerify + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'versionPriority' + */ + @Test + public void versionPriorityTest() { + // TODO: test versionPriority + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceStatusTest.java new file mode 100644 index 0000000000..cac62bda72 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceStatusTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1APIServiceCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIServiceStatus + */ +public class V1APIServiceStatusTest { + private final V1APIServiceStatus model = new V1APIServiceStatus(); + + /** + * Model tests for V1APIServiceStatus + */ + @Test + public void testV1APIServiceStatus() { + // TODO: test V1APIServiceStatus + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceTest.java new file mode 100644 index 0000000000..ebadf7595c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIServiceTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1APIServiceSpec; +import io.kubernetes.client.models.V1APIServiceStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIService + */ +public class V1APIServiceTest { + private final V1APIService model = new V1APIService(); + + /** + * Model tests for V1APIService + */ + @Test + public void testV1APIService() { + // TODO: test V1APIService + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1APIVersionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIVersionsTest.java new file mode 100644 index 0000000000..4f0d95e3b5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1APIVersionsTest.java @@ -0,0 +1,78 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ServerAddressByClientCIDR; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1APIVersions + */ +public class V1APIVersionsTest { + private final V1APIVersions model = new V1APIVersions(); + + /** + * Model tests for V1APIVersions + */ + @Test + public void testV1APIVersions() { + // TODO: test V1APIVersions + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'serverAddressByClientCIDRs' + */ + @Test + public void serverAddressByClientCIDRsTest() { + // TODO: test serverAddressByClientCIDRs + } + + /** + * Test the property 'versions' + */ + @Test + public void versionsTest() { + // TODO: test versions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSourceTest.java new file mode 100644 index 0000000000..2f58e952a3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AWSElasticBlockStoreVolumeSourceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1AWSElasticBlockStoreVolumeSource + */ +public class V1AWSElasticBlockStoreVolumeSourceTest { + private final V1AWSElasticBlockStoreVolumeSource model = new V1AWSElasticBlockStoreVolumeSource(); + + /** + * Model tests for V1AWSElasticBlockStoreVolumeSource + */ + @Test + public void testV1AWSElasticBlockStoreVolumeSource() { + // TODO: test V1AWSElasticBlockStoreVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'partition' + */ + @Test + public void partitionTest() { + // TODO: test partition + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'volumeID' + */ + @Test + public void volumeIDTest() { + // TODO: test volumeID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AffinityTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AffinityTest.java new file mode 100644 index 0000000000..419b512b85 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AffinityTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeAffinity; +import io.kubernetes.client.models.V1PodAffinity; +import io.kubernetes.client.models.V1PodAntiAffinity; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Affinity + */ +public class V1AffinityTest { + private final V1Affinity model = new V1Affinity(); + + /** + * Model tests for V1Affinity + */ + @Test + public void testV1Affinity() { + // TODO: test V1Affinity + } + + /** + * Test the property 'nodeAffinity' + */ + @Test + public void nodeAffinityTest() { + // TODO: test nodeAffinity + } + + /** + * Test the property 'podAffinity' + */ + @Test + public void podAffinityTest() { + // TODO: test podAffinity + } + + /** + * Test the property 'podAntiAffinity' + */ + @Test + public void podAntiAffinityTest() { + // TODO: test podAntiAffinity + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AggregationRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AggregationRuleTest.java new file mode 100644 index 0000000000..5bbdc7dfab --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AggregationRuleTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1AggregationRule + */ +public class V1AggregationRuleTest { + private final V1AggregationRule model = new V1AggregationRule(); + + /** + * Model tests for V1AggregationRule + */ + @Test + public void testV1AggregationRule() { + // TODO: test V1AggregationRule + } + + /** + * Test the property 'clusterRoleSelectors' + */ + @Test + public void clusterRoleSelectorsTest() { + // TODO: test clusterRoleSelectors + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AttachedVolumeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AttachedVolumeTest.java new file mode 100644 index 0000000000..812b6b4162 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AttachedVolumeTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1AttachedVolume + */ +public class V1AttachedVolumeTest { + private final V1AttachedVolume model = new V1AttachedVolume(); + + /** + * Model tests for V1AttachedVolume + */ + @Test + public void testV1AttachedVolume() { + // TODO: test V1AttachedVolume + } + + /** + * Test the property 'devicePath' + */ + @Test + public void devicePathTest() { + // TODO: test devicePath + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureDiskVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureDiskVolumeSourceTest.java new file mode 100644 index 0000000000..17b3e638a5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureDiskVolumeSourceTest.java @@ -0,0 +1,91 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1AzureDiskVolumeSource + */ +public class V1AzureDiskVolumeSourceTest { + private final V1AzureDiskVolumeSource model = new V1AzureDiskVolumeSource(); + + /** + * Model tests for V1AzureDiskVolumeSource + */ + @Test + public void testV1AzureDiskVolumeSource() { + // TODO: test V1AzureDiskVolumeSource + } + + /** + * Test the property 'cachingMode' + */ + @Test + public void cachingModeTest() { + // TODO: test cachingMode + } + + /** + * Test the property 'diskName' + */ + @Test + public void diskNameTest() { + // TODO: test diskName + } + + /** + * Test the property 'diskURI' + */ + @Test + public void diskURITest() { + // TODO: test diskURI + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSourceTest.java new file mode 100644 index 0000000000..72d24eb045 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureFilePersistentVolumeSourceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1AzureFilePersistentVolumeSource + */ +public class V1AzureFilePersistentVolumeSourceTest { + private final V1AzureFilePersistentVolumeSource model = new V1AzureFilePersistentVolumeSource(); + + /** + * Model tests for V1AzureFilePersistentVolumeSource + */ + @Test + public void testV1AzureFilePersistentVolumeSource() { + // TODO: test V1AzureFilePersistentVolumeSource + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretName' + */ + @Test + public void secretNameTest() { + // TODO: test secretName + } + + /** + * Test the property 'secretNamespace' + */ + @Test + public void secretNamespaceTest() { + // TODO: test secretNamespace + } + + /** + * Test the property 'shareName' + */ + @Test + public void shareNameTest() { + // TODO: test shareName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureFileVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureFileVolumeSourceTest.java new file mode 100644 index 0000000000..81222e1080 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1AzureFileVolumeSourceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1AzureFileVolumeSource + */ +public class V1AzureFileVolumeSourceTest { + private final V1AzureFileVolumeSource model = new V1AzureFileVolumeSource(); + + /** + * Model tests for V1AzureFileVolumeSource + */ + @Test + public void testV1AzureFileVolumeSource() { + // TODO: test V1AzureFileVolumeSource + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretName' + */ + @Test + public void secretNameTest() { + // TODO: test secretName + } + + /** + * Test the property 'shareName' + */ + @Test + public void shareNameTest() { + // TODO: test shareName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1BindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1BindingTest.java new file mode 100644 index 0000000000..2fd7f52b42 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1BindingTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Binding + */ +public class V1BindingTest { + private final V1Binding model = new V1Binding(); + + /** + * Model tests for V1Binding + */ + @Test + public void testV1Binding() { + // TODO: test V1Binding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CSIPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CSIPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..2ee3b1a664 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CSIPersistentVolumeSourceTest.java @@ -0,0 +1,119 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CSIPersistentVolumeSource + */ +public class V1CSIPersistentVolumeSourceTest { + private final V1CSIPersistentVolumeSource model = new V1CSIPersistentVolumeSource(); + + /** + * Model tests for V1CSIPersistentVolumeSource + */ + @Test + public void testV1CSIPersistentVolumeSource() { + // TODO: test V1CSIPersistentVolumeSource + } + + /** + * Test the property 'controllerExpandSecretRef' + */ + @Test + public void controllerExpandSecretRefTest() { + // TODO: test controllerExpandSecretRef + } + + /** + * Test the property 'controllerPublishSecretRef' + */ + @Test + public void controllerPublishSecretRefTest() { + // TODO: test controllerPublishSecretRef + } + + /** + * Test the property 'driver' + */ + @Test + public void driverTest() { + // TODO: test driver + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'nodePublishSecretRef' + */ + @Test + public void nodePublishSecretRefTest() { + // TODO: test nodePublishSecretRef + } + + /** + * Test the property 'nodeStageSecretRef' + */ + @Test + public void nodeStageSecretRefTest() { + // TODO: test nodeStageSecretRef + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'volumeAttributes' + */ + @Test + public void volumeAttributesTest() { + // TODO: test volumeAttributes + } + + /** + * Test the property 'volumeHandle' + */ + @Test + public void volumeHandleTest() { + // TODO: test volumeHandle + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CSIVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CSIVolumeSourceTest.java new file mode 100644 index 0000000000..bb8fd55124 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CSIVolumeSourceTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CSIVolumeSource + */ +public class V1CSIVolumeSourceTest { + private final V1CSIVolumeSource model = new V1CSIVolumeSource(); + + /** + * Model tests for V1CSIVolumeSource + */ + @Test + public void testV1CSIVolumeSource() { + // TODO: test V1CSIVolumeSource + } + + /** + * Test the property 'driver' + */ + @Test + public void driverTest() { + // TODO: test driver + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'nodePublishSecretRef' + */ + @Test + public void nodePublishSecretRefTest() { + // TODO: test nodePublishSecretRef + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'volumeAttributes' + */ + @Test + public void volumeAttributesTest() { + // TODO: test volumeAttributes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CapabilitiesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CapabilitiesTest.java new file mode 100644 index 0000000000..1727028bfb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CapabilitiesTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Capabilities + */ +public class V1CapabilitiesTest { + private final V1Capabilities model = new V1Capabilities(); + + /** + * Model tests for V1Capabilities + */ + @Test + public void testV1Capabilities() { + // TODO: test V1Capabilities + } + + /** + * Test the property 'add' + */ + @Test + public void addTest() { + // TODO: test add + } + + /** + * Test the property 'drop' + */ + @Test + public void dropTest() { + // TODO: test drop + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..ad64f6c02b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CephFSPersistentVolumeSourceTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CephFSPersistentVolumeSource + */ +public class V1CephFSPersistentVolumeSourceTest { + private final V1CephFSPersistentVolumeSource model = new V1CephFSPersistentVolumeSource(); + + /** + * Model tests for V1CephFSPersistentVolumeSource + */ + @Test + public void testV1CephFSPersistentVolumeSource() { + // TODO: test V1CephFSPersistentVolumeSource + } + + /** + * Test the property 'monitors' + */ + @Test + public void monitorsTest() { + // TODO: test monitors + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretFile' + */ + @Test + public void secretFileTest() { + // TODO: test secretFile + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CephFSVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CephFSVolumeSourceTest.java new file mode 100644 index 0000000000..eed8b2a216 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CephFSVolumeSourceTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CephFSVolumeSource + */ +public class V1CephFSVolumeSourceTest { + private final V1CephFSVolumeSource model = new V1CephFSVolumeSource(); + + /** + * Model tests for V1CephFSVolumeSource + */ + @Test + public void testV1CephFSVolumeSource() { + // TODO: test V1CephFSVolumeSource + } + + /** + * Test the property 'monitors' + */ + @Test + public void monitorsTest() { + // TODO: test monitors + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretFile' + */ + @Test + public void secretFileTest() { + // TODO: test secretFile + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CinderPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CinderPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..7f4f1f5eed --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CinderPersistentVolumeSourceTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CinderPersistentVolumeSource + */ +public class V1CinderPersistentVolumeSourceTest { + private final V1CinderPersistentVolumeSource model = new V1CinderPersistentVolumeSource(); + + /** + * Model tests for V1CinderPersistentVolumeSource + */ + @Test + public void testV1CinderPersistentVolumeSource() { + // TODO: test V1CinderPersistentVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'volumeID' + */ + @Test + public void volumeIDTest() { + // TODO: test volumeID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CinderVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CinderVolumeSourceTest.java new file mode 100644 index 0000000000..5f8e7bdaa9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CinderVolumeSourceTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CinderVolumeSource + */ +public class V1CinderVolumeSourceTest { + private final V1CinderVolumeSource model = new V1CinderVolumeSource(); + + /** + * Model tests for V1CinderVolumeSource + */ + @Test + public void testV1CinderVolumeSource() { + // TODO: test V1CinderVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'volumeID' + */ + @Test + public void volumeIDTest() { + // TODO: test volumeID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ClientIPConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClientIPConfigTest.java new file mode 100644 index 0000000000..76196f3f2b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClientIPConfigTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ClientIPConfig + */ +public class V1ClientIPConfigTest { + private final V1ClientIPConfig model = new V1ClientIPConfig(); + + /** + * Model tests for V1ClientIPConfig + */ + @Test + public void testV1ClientIPConfig() { + // TODO: test V1ClientIPConfig + } + + /** + * Test the property 'timeoutSeconds' + */ + @Test + public void timeoutSecondsTest() { + // TODO: test timeoutSeconds + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleBindingListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleBindingListTest.java new file mode 100644 index 0000000000..5b17f55b73 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleBindingListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ClusterRoleBinding; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ClusterRoleBindingList + */ +public class V1ClusterRoleBindingListTest { + private final V1ClusterRoleBindingList model = new V1ClusterRoleBindingList(); + + /** + * Model tests for V1ClusterRoleBindingList + */ + @Test + public void testV1ClusterRoleBindingList() { + // TODO: test V1ClusterRoleBindingList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleBindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleBindingTest.java new file mode 100644 index 0000000000..a95b4446db --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleBindingTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1RoleRef; +import io.kubernetes.client.models.V1Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ClusterRoleBinding + */ +public class V1ClusterRoleBindingTest { + private final V1ClusterRoleBinding model = new V1ClusterRoleBinding(); + + /** + * Model tests for V1ClusterRoleBinding + */ + @Test + public void testV1ClusterRoleBinding() { + // TODO: test V1ClusterRoleBinding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'roleRef' + */ + @Test + public void roleRefTest() { + // TODO: test roleRef + } + + /** + * Test the property 'subjects' + */ + @Test + public void subjectsTest() { + // TODO: test subjects + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleListTest.java new file mode 100644 index 0000000000..8af917622b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ClusterRole; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ClusterRoleList + */ +public class V1ClusterRoleListTest { + private final V1ClusterRoleList model = new V1ClusterRoleList(); + + /** + * Model tests for V1ClusterRoleList + */ + @Test + public void testV1ClusterRoleList() { + // TODO: test V1ClusterRoleList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleTest.java new file mode 100644 index 0000000000..a4f4c6c694 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ClusterRoleTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1AggregationRule; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ClusterRole + */ +public class V1ClusterRoleTest { + private final V1ClusterRole model = new V1ClusterRole(); + + /** + * Model tests for V1ClusterRole + */ + @Test + public void testV1ClusterRole() { + // TODO: test V1ClusterRole + } + + /** + * Test the property 'aggregationRule' + */ + @Test + public void aggregationRuleTest() { + // TODO: test aggregationRule + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentConditionTest.java new file mode 100644 index 0000000000..e034a52b20 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentConditionTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ComponentCondition + */ +public class V1ComponentConditionTest { + private final V1ComponentCondition model = new V1ComponentCondition(); + + /** + * Model tests for V1ComponentCondition + */ + @Test + public void testV1ComponentCondition() { + // TODO: test V1ComponentCondition + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentStatusListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentStatusListTest.java new file mode 100644 index 0000000000..686fc004bc --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentStatusListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ComponentStatus; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ComponentStatusList + */ +public class V1ComponentStatusListTest { + private final V1ComponentStatusList model = new V1ComponentStatusList(); + + /** + * Model tests for V1ComponentStatusList + */ + @Test + public void testV1ComponentStatusList() { + // TODO: test V1ComponentStatusList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentStatusTest.java new file mode 100644 index 0000000000..24f9f6ba91 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ComponentStatusTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ComponentCondition; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ComponentStatus + */ +public class V1ComponentStatusTest { + private final V1ComponentStatus model = new V1ComponentStatus(); + + /** + * Model tests for V1ComponentStatus + */ + @Test + public void testV1ComponentStatus() { + // TODO: test V1ComponentStatus + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapEnvSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapEnvSourceTest.java new file mode 100644 index 0000000000..b9324e61f0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapEnvSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMapEnvSource + */ +public class V1ConfigMapEnvSourceTest { + private final V1ConfigMapEnvSource model = new V1ConfigMapEnvSource(); + + /** + * Model tests for V1ConfigMapEnvSource + */ + @Test + public void testV1ConfigMapEnvSource() { + // TODO: test V1ConfigMapEnvSource + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapKeySelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapKeySelectorTest.java new file mode 100644 index 0000000000..c30e5d256f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapKeySelectorTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMapKeySelector + */ +public class V1ConfigMapKeySelectorTest { + private final V1ConfigMapKeySelector model = new V1ConfigMapKeySelector(); + + /** + * Model tests for V1ConfigMapKeySelector + */ + @Test + public void testV1ConfigMapKeySelector() { + // TODO: test V1ConfigMapKeySelector + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapListTest.java new file mode 100644 index 0000000000..ab5f77e662 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ConfigMap; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMapList + */ +public class V1ConfigMapListTest { + private final V1ConfigMapList model = new V1ConfigMapList(); + + /** + * Model tests for V1ConfigMapList + */ + @Test + public void testV1ConfigMapList() { + // TODO: test V1ConfigMapList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSourceTest.java new file mode 100644 index 0000000000..3bbb4399ff --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapNodeConfigSourceTest.java @@ -0,0 +1,83 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMapNodeConfigSource + */ +public class V1ConfigMapNodeConfigSourceTest { + private final V1ConfigMapNodeConfigSource model = new V1ConfigMapNodeConfigSource(); + + /** + * Model tests for V1ConfigMapNodeConfigSource + */ + @Test + public void testV1ConfigMapNodeConfigSource() { + // TODO: test V1ConfigMapNodeConfigSource + } + + /** + * Test the property 'kubeletConfigKey' + */ + @Test + public void kubeletConfigKeyTest() { + // TODO: test kubeletConfigKey + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'resourceVersion' + */ + @Test + public void resourceVersionTest() { + // TODO: test resourceVersion + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapProjectionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapProjectionTest.java new file mode 100644 index 0000000000..f5e6058c6b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapProjectionTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMapProjection + */ +public class V1ConfigMapProjectionTest { + private final V1ConfigMapProjection model = new V1ConfigMapProjection(); + + /** + * Model tests for V1ConfigMapProjection + */ + @Test + public void testV1ConfigMapProjection() { + // TODO: test V1ConfigMapProjection + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapTest.java new file mode 100644 index 0000000000..eac8ff683c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMap + */ +public class V1ConfigMapTest { + private final V1ConfigMap model = new V1ConfigMap(); + + /** + * Model tests for V1ConfigMap + */ + @Test + public void testV1ConfigMap() { + // TODO: test V1ConfigMap + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'binaryData' + */ + @Test + public void binaryDataTest() { + // TODO: test binaryData + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapVolumeSourceTest.java new file mode 100644 index 0000000000..0f663c5104 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ConfigMapVolumeSourceTest.java @@ -0,0 +1,78 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ConfigMapVolumeSource + */ +public class V1ConfigMapVolumeSourceTest { + private final V1ConfigMapVolumeSource model = new V1ConfigMapVolumeSource(); + + /** + * Model tests for V1ConfigMapVolumeSource + */ + @Test + public void testV1ConfigMapVolumeSource() { + // TODO: test V1ConfigMapVolumeSource + } + + /** + * Test the property 'defaultMode' + */ + @Test + public void defaultModeTest() { + // TODO: test defaultMode + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerImageTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerImageTest.java new file mode 100644 index 0000000000..b676d4fd84 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerImageTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerImage + */ +public class V1ContainerImageTest { + private final V1ContainerImage model = new V1ContainerImage(); + + /** + * Model tests for V1ContainerImage + */ + @Test + public void testV1ContainerImage() { + // TODO: test V1ContainerImage + } + + /** + * Test the property 'names' + */ + @Test + public void namesTest() { + // TODO: test names + } + + /** + * Test the property 'sizeBytes' + */ + @Test + public void sizeBytesTest() { + // TODO: test sizeBytes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerPortTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerPortTest.java new file mode 100644 index 0000000000..f409f5a4ca --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerPortTest.java @@ -0,0 +1,83 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerPort + */ +public class V1ContainerPortTest { + private final V1ContainerPort model = new V1ContainerPort(); + + /** + * Model tests for V1ContainerPort + */ + @Test + public void testV1ContainerPort() { + // TODO: test V1ContainerPort + } + + /** + * Test the property 'containerPort' + */ + @Test + public void containerPortTest() { + // TODO: test containerPort + } + + /** + * Test the property 'hostIP' + */ + @Test + public void hostIPTest() { + // TODO: test hostIP + } + + /** + * Test the property 'hostPort' + */ + @Test + public void hostPortTest() { + // TODO: test hostPort + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'protocol' + */ + @Test + public void protocolTest() { + // TODO: test protocol + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateRunningTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateRunningTest.java new file mode 100644 index 0000000000..4d4bc58e61 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateRunningTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerStateRunning + */ +public class V1ContainerStateRunningTest { + private final V1ContainerStateRunning model = new V1ContainerStateRunning(); + + /** + * Model tests for V1ContainerStateRunning + */ + @Test + public void testV1ContainerStateRunning() { + // TODO: test V1ContainerStateRunning + } + + /** + * Test the property 'startedAt' + */ + @Test + public void startedAtTest() { + // TODO: test startedAt + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateTerminatedTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateTerminatedTest.java new file mode 100644 index 0000000000..24e470abbe --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateTerminatedTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerStateTerminated + */ +public class V1ContainerStateTerminatedTest { + private final V1ContainerStateTerminated model = new V1ContainerStateTerminated(); + + /** + * Model tests for V1ContainerStateTerminated + */ + @Test + public void testV1ContainerStateTerminated() { + // TODO: test V1ContainerStateTerminated + } + + /** + * Test the property 'containerID' + */ + @Test + public void containerIDTest() { + // TODO: test containerID + } + + /** + * Test the property 'exitCode' + */ + @Test + public void exitCodeTest() { + // TODO: test exitCode + } + + /** + * Test the property 'finishedAt' + */ + @Test + public void finishedAtTest() { + // TODO: test finishedAt + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'signal' + */ + @Test + public void signalTest() { + // TODO: test signal + } + + /** + * Test the property 'startedAt' + */ + @Test + public void startedAtTest() { + // TODO: test startedAt + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateTest.java new file mode 100644 index 0000000000..0bff3416c8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ContainerStateRunning; +import io.kubernetes.client.models.V1ContainerStateTerminated; +import io.kubernetes.client.models.V1ContainerStateWaiting; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerState + */ +public class V1ContainerStateTest { + private final V1ContainerState model = new V1ContainerState(); + + /** + * Model tests for V1ContainerState + */ + @Test + public void testV1ContainerState() { + // TODO: test V1ContainerState + } + + /** + * Test the property 'running' + */ + @Test + public void runningTest() { + // TODO: test running + } + + /** + * Test the property 'terminated' + */ + @Test + public void terminatedTest() { + // TODO: test terminated + } + + /** + * Test the property 'waiting' + */ + @Test + public void waitingTest() { + // TODO: test waiting + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateWaitingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateWaitingTest.java new file mode 100644 index 0000000000..ee9cdd5899 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStateWaitingTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerStateWaiting + */ +public class V1ContainerStateWaitingTest { + private final V1ContainerStateWaiting model = new V1ContainerStateWaiting(); + + /** + * Model tests for V1ContainerStateWaiting + */ + @Test + public void testV1ContainerStateWaiting() { + // TODO: test V1ContainerStateWaiting + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStatusTest.java new file mode 100644 index 0000000000..f604e90b84 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerStatusTest.java @@ -0,0 +1,108 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ContainerState; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ContainerStatus + */ +public class V1ContainerStatusTest { + private final V1ContainerStatus model = new V1ContainerStatus(); + + /** + * Model tests for V1ContainerStatus + */ + @Test + public void testV1ContainerStatus() { + // TODO: test V1ContainerStatus + } + + /** + * Test the property 'containerID' + */ + @Test + public void containerIDTest() { + // TODO: test containerID + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'imageID' + */ + @Test + public void imageIDTest() { + // TODO: test imageID + } + + /** + * Test the property 'lastState' + */ + @Test + public void lastStateTest() { + // TODO: test lastState + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'ready' + */ + @Test + public void readyTest() { + // TODO: test ready + } + + /** + * Test the property 'restartCount' + */ + @Test + public void restartCountTest() { + // TODO: test restartCount + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerTest.java new file mode 100644 index 0000000000..ef0dfb329b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ContainerTest.java @@ -0,0 +1,222 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ContainerPort; +import io.kubernetes.client.models.V1EnvFromSource; +import io.kubernetes.client.models.V1EnvVar; +import io.kubernetes.client.models.V1Lifecycle; +import io.kubernetes.client.models.V1Probe; +import io.kubernetes.client.models.V1ResourceRequirements; +import io.kubernetes.client.models.V1SecurityContext; +import io.kubernetes.client.models.V1VolumeDevice; +import io.kubernetes.client.models.V1VolumeMount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Container + */ +public class V1ContainerTest { + private final V1Container model = new V1Container(); + + /** + * Model tests for V1Container + */ + @Test + public void testV1Container() { + // TODO: test V1Container + } + + /** + * Test the property 'args' + */ + @Test + public void argsTest() { + // TODO: test args + } + + /** + * Test the property 'command' + */ + @Test + public void commandTest() { + // TODO: test command + } + + /** + * Test the property 'env' + */ + @Test + public void envTest() { + // TODO: test env + } + + /** + * Test the property 'envFrom' + */ + @Test + public void envFromTest() { + // TODO: test envFrom + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'imagePullPolicy' + */ + @Test + public void imagePullPolicyTest() { + // TODO: test imagePullPolicy + } + + /** + * Test the property 'lifecycle' + */ + @Test + public void lifecycleTest() { + // TODO: test lifecycle + } + + /** + * Test the property 'livenessProbe' + */ + @Test + public void livenessProbeTest() { + // TODO: test livenessProbe + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + + /** + * Test the property 'readinessProbe' + */ + @Test + public void readinessProbeTest() { + // TODO: test readinessProbe + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'securityContext' + */ + @Test + public void securityContextTest() { + // TODO: test securityContext + } + + /** + * Test the property 'stdin' + */ + @Test + public void stdinTest() { + // TODO: test stdin + } + + /** + * Test the property 'stdinOnce' + */ + @Test + public void stdinOnceTest() { + // TODO: test stdinOnce + } + + /** + * Test the property 'terminationMessagePath' + */ + @Test + public void terminationMessagePathTest() { + // TODO: test terminationMessagePath + } + + /** + * Test the property 'terminationMessagePolicy' + */ + @Test + public void terminationMessagePolicyTest() { + // TODO: test terminationMessagePolicy + } + + /** + * Test the property 'tty' + */ + @Test + public void ttyTest() { + // TODO: test tty + } + + /** + * Test the property 'volumeDevices' + */ + @Test + public void volumeDevicesTest() { + // TODO: test volumeDevices + } + + /** + * Test the property 'volumeMounts' + */ + @Test + public void volumeMountsTest() { + // TODO: test volumeMounts + } + + /** + * Test the property 'workingDir' + */ + @Test + public void workingDirTest() { + // TODO: test workingDir + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ControllerRevisionListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ControllerRevisionListTest.java new file mode 100644 index 0000000000..4fea397af1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ControllerRevisionListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ControllerRevision; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ControllerRevisionList + */ +public class V1ControllerRevisionListTest { + private final V1ControllerRevisionList model = new V1ControllerRevisionList(); + + /** + * Model tests for V1ControllerRevisionList + */ + @Test + public void testV1ControllerRevisionList() { + // TODO: test V1ControllerRevisionList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ControllerRevisionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ControllerRevisionTest.java new file mode 100644 index 0000000000..3013d1e9f3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ControllerRevisionTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.RuntimeRawExtension; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ControllerRevision + */ +public class V1ControllerRevisionTest { + private final V1ControllerRevision model = new V1ControllerRevision(); + + /** + * Model tests for V1ControllerRevision + */ + @Test + public void testV1ControllerRevision() { + // TODO: test V1ControllerRevision + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'revision' + */ + @Test + public void revisionTest() { + // TODO: test revision + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1CrossVersionObjectReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1CrossVersionObjectReferenceTest.java new file mode 100644 index 0000000000..294306c48b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1CrossVersionObjectReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1CrossVersionObjectReference + */ +public class V1CrossVersionObjectReferenceTest { + private final V1CrossVersionObjectReference model = new V1CrossVersionObjectReference(); + + /** + * Model tests for V1CrossVersionObjectReference + */ + @Test + public void testV1CrossVersionObjectReference() { + // TODO: test V1CrossVersionObjectReference + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonEndpointTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonEndpointTest.java new file mode 100644 index 0000000000..f8379e8082 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonEndpointTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonEndpoint + */ +public class V1DaemonEndpointTest { + private final V1DaemonEndpoint model = new V1DaemonEndpoint(); + + /** + * Model tests for V1DaemonEndpoint + */ + @Test + public void testV1DaemonEndpoint() { + // TODO: test V1DaemonEndpoint + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetConditionTest.java new file mode 100644 index 0000000000..51aff1826f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonSetCondition + */ +public class V1DaemonSetConditionTest { + private final V1DaemonSetCondition model = new V1DaemonSetCondition(); + + /** + * Model tests for V1DaemonSetCondition + */ + @Test + public void testV1DaemonSetCondition() { + // TODO: test V1DaemonSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetListTest.java new file mode 100644 index 0000000000..8f972085ee --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DaemonSet; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonSetList + */ +public class V1DaemonSetListTest { + private final V1DaemonSetList model = new V1DaemonSetList(); + + /** + * Model tests for V1DaemonSetList + */ + @Test + public void testV1DaemonSetList() { + // TODO: test V1DaemonSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetSpecTest.java new file mode 100644 index 0000000000..021c298365 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetSpecTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DaemonSetUpdateStrategy; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonSetSpec + */ +public class V1DaemonSetSpecTest { + private final V1DaemonSetSpec model = new V1DaemonSetSpec(); + + /** + * Model tests for V1DaemonSetSpec + */ + @Test + public void testV1DaemonSetSpec() { + // TODO: test V1DaemonSetSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'updateStrategy' + */ + @Test + public void updateStrategyTest() { + // TODO: test updateStrategy + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetStatusTest.java new file mode 100644 index 0000000000..5810e1809b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetStatusTest.java @@ -0,0 +1,126 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DaemonSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonSetStatus + */ +public class V1DaemonSetStatusTest { + private final V1DaemonSetStatus model = new V1DaemonSetStatus(); + + /** + * Model tests for V1DaemonSetStatus + */ + @Test + public void testV1DaemonSetStatus() { + // TODO: test V1DaemonSetStatus + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentNumberScheduled' + */ + @Test + public void currentNumberScheduledTest() { + // TODO: test currentNumberScheduled + } + + /** + * Test the property 'desiredNumberScheduled' + */ + @Test + public void desiredNumberScheduledTest() { + // TODO: test desiredNumberScheduled + } + + /** + * Test the property 'numberAvailable' + */ + @Test + public void numberAvailableTest() { + // TODO: test numberAvailable + } + + /** + * Test the property 'numberMisscheduled' + */ + @Test + public void numberMisscheduledTest() { + // TODO: test numberMisscheduled + } + + /** + * Test the property 'numberReady' + */ + @Test + public void numberReadyTest() { + // TODO: test numberReady + } + + /** + * Test the property 'numberUnavailable' + */ + @Test + public void numberUnavailableTest() { + // TODO: test numberUnavailable + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'updatedNumberScheduled' + */ + @Test + public void updatedNumberScheduledTest() { + // TODO: test updatedNumberScheduled + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetTest.java new file mode 100644 index 0000000000..f8636c9cde --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DaemonSetSpec; +import io.kubernetes.client.models.V1DaemonSetStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonSet + */ +public class V1DaemonSetTest { + private final V1DaemonSet model = new V1DaemonSet(); + + /** + * Model tests for V1DaemonSet + */ + @Test + public void testV1DaemonSet() { + // TODO: test V1DaemonSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategyTest.java new file mode 100644 index 0000000000..b2819d3f79 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DaemonSetUpdateStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1RollingUpdateDaemonSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DaemonSetUpdateStrategy + */ +public class V1DaemonSetUpdateStrategyTest { + private final V1DaemonSetUpdateStrategy model = new V1DaemonSetUpdateStrategy(); + + /** + * Model tests for V1DaemonSetUpdateStrategy + */ + @Test + public void testV1DaemonSetUpdateStrategy() { + // TODO: test V1DaemonSetUpdateStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeleteOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeleteOptionsTest.java new file mode 100644 index 0000000000..d4c45e56cc --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeleteOptionsTest.java @@ -0,0 +1,102 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Preconditions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DeleteOptions + */ +public class V1DeleteOptionsTest { + private final V1DeleteOptions model = new V1DeleteOptions(); + + /** + * Model tests for V1DeleteOptions + */ + @Test + public void testV1DeleteOptions() { + // TODO: test V1DeleteOptions + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'dryRun' + */ + @Test + public void dryRunTest() { + // TODO: test dryRun + } + + /** + * Test the property 'gracePeriodSeconds' + */ + @Test + public void gracePeriodSecondsTest() { + // TODO: test gracePeriodSeconds + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'orphanDependents' + */ + @Test + public void orphanDependentsTest() { + // TODO: test orphanDependents + } + + /** + * Test the property 'preconditions' + */ + @Test + public void preconditionsTest() { + // TODO: test preconditions + } + + /** + * Test the property 'propagationPolicy' + */ + @Test + public void propagationPolicyTest() { + // TODO: test propagationPolicy + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentConditionTest.java new file mode 100644 index 0000000000..7a8e91f5ba --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DeploymentCondition + */ +public class V1DeploymentConditionTest { + private final V1DeploymentCondition model = new V1DeploymentCondition(); + + /** + * Model tests for V1DeploymentCondition + */ + @Test + public void testV1DeploymentCondition() { + // TODO: test V1DeploymentCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'lastUpdateTime' + */ + @Test + public void lastUpdateTimeTest() { + // TODO: test lastUpdateTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentListTest.java new file mode 100644 index 0000000000..35e048ee5e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Deployment; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DeploymentList + */ +public class V1DeploymentListTest { + private final V1DeploymentList model = new V1DeploymentList(); + + /** + * Model tests for V1DeploymentList + */ + @Test + public void testV1DeploymentList() { + // TODO: test V1DeploymentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentSpecTest.java new file mode 100644 index 0000000000..586132aaf0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentSpecTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DeploymentStrategy; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DeploymentSpec + */ +public class V1DeploymentSpecTest { + private final V1DeploymentSpec model = new V1DeploymentSpec(); + + /** + * Model tests for V1DeploymentSpec + */ + @Test + public void testV1DeploymentSpec() { + // TODO: test V1DeploymentSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'paused' + */ + @Test + public void pausedTest() { + // TODO: test paused + } + + /** + * Test the property 'progressDeadlineSeconds' + */ + @Test + public void progressDeadlineSecondsTest() { + // TODO: test progressDeadlineSeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'strategy' + */ + @Test + public void strategyTest() { + // TODO: test strategy + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentStatusTest.java new file mode 100644 index 0000000000..77d7767e5c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentStatusTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DeploymentCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DeploymentStatus + */ +public class V1DeploymentStatusTest { + private final V1DeploymentStatus model = new V1DeploymentStatus(); + + /** + * Model tests for V1DeploymentStatus + */ + @Test + public void testV1DeploymentStatus() { + // TODO: test V1DeploymentStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'unavailableReplicas' + */ + @Test + public void unavailableReplicasTest() { + // TODO: test unavailableReplicas + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentStrategyTest.java new file mode 100644 index 0000000000..a0c3d1d375 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1RollingUpdateDeployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DeploymentStrategy + */ +public class V1DeploymentStrategyTest { + private final V1DeploymentStrategy model = new V1DeploymentStrategy(); + + /** + * Model tests for V1DeploymentStrategy + */ + @Test + public void testV1DeploymentStrategy() { + // TODO: test V1DeploymentStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentTest.java new file mode 100644 index 0000000000..dfb4a24275 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DeploymentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DeploymentSpec; +import io.kubernetes.client.models.V1DeploymentStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Deployment + */ +public class V1DeploymentTest { + private final V1Deployment model = new V1Deployment(); + + /** + * Model tests for V1Deployment + */ + @Test + public void testV1Deployment() { + // TODO: test V1Deployment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIProjectionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIProjectionTest.java new file mode 100644 index 0000000000..a769a454a3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIProjectionTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DownwardAPIVolumeFile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DownwardAPIProjection + */ +public class V1DownwardAPIProjectionTest { + private final V1DownwardAPIProjection model = new V1DownwardAPIProjection(); + + /** + * Model tests for V1DownwardAPIProjection + */ + @Test + public void testV1DownwardAPIProjection() { + // TODO: test V1DownwardAPIProjection + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIVolumeFileTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIVolumeFileTest.java new file mode 100644 index 0000000000..601b4efb6a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIVolumeFileTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectFieldSelector; +import io.kubernetes.client.models.V1ResourceFieldSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DownwardAPIVolumeFile + */ +public class V1DownwardAPIVolumeFileTest { + private final V1DownwardAPIVolumeFile model = new V1DownwardAPIVolumeFile(); + + /** + * Model tests for V1DownwardAPIVolumeFile + */ + @Test + public void testV1DownwardAPIVolumeFile() { + // TODO: test V1DownwardAPIVolumeFile + } + + /** + * Test the property 'fieldRef' + */ + @Test + public void fieldRefTest() { + // TODO: test fieldRef + } + + /** + * Test the property 'mode' + */ + @Test + public void modeTest() { + // TODO: test mode + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'resourceFieldRef' + */ + @Test + public void resourceFieldRefTest() { + // TODO: test resourceFieldRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIVolumeSourceTest.java new file mode 100644 index 0000000000..1cda71b165 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1DownwardAPIVolumeSourceTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DownwardAPIVolumeFile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1DownwardAPIVolumeSource + */ +public class V1DownwardAPIVolumeSourceTest { + private final V1DownwardAPIVolumeSource model = new V1DownwardAPIVolumeSource(); + + /** + * Model tests for V1DownwardAPIVolumeSource + */ + @Test + public void testV1DownwardAPIVolumeSource() { + // TODO: test V1DownwardAPIVolumeSource + } + + /** + * Test the property 'defaultMode' + */ + @Test + public void defaultModeTest() { + // TODO: test defaultMode + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EmptyDirVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EmptyDirVolumeSourceTest.java new file mode 100644 index 0000000000..4cae4a9031 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EmptyDirVolumeSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EmptyDirVolumeSource + */ +public class V1EmptyDirVolumeSourceTest { + private final V1EmptyDirVolumeSource model = new V1EmptyDirVolumeSource(); + + /** + * Model tests for V1EmptyDirVolumeSource + */ + @Test + public void testV1EmptyDirVolumeSource() { + // TODO: test V1EmptyDirVolumeSource + } + + /** + * Test the property 'medium' + */ + @Test + public void mediumTest() { + // TODO: test medium + } + + /** + * Test the property 'sizeLimit' + */ + @Test + public void sizeLimitTest() { + // TODO: test sizeLimit + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointAddressTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointAddressTest.java new file mode 100644 index 0000000000..6e8fdd1f5e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointAddressTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EndpointAddress + */ +public class V1EndpointAddressTest { + private final V1EndpointAddress model = new V1EndpointAddress(); + + /** + * Model tests for V1EndpointAddress + */ + @Test + public void testV1EndpointAddress() { + // TODO: test V1EndpointAddress + } + + /** + * Test the property 'hostname' + */ + @Test + public void hostnameTest() { + // TODO: test hostname + } + + /** + * Test the property 'ip' + */ + @Test + public void ipTest() { + // TODO: test ip + } + + /** + * Test the property 'nodeName' + */ + @Test + public void nodeNameTest() { + // TODO: test nodeName + } + + /** + * Test the property 'targetRef' + */ + @Test + public void targetRefTest() { + // TODO: test targetRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointPortTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointPortTest.java new file mode 100644 index 0000000000..34c279c813 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointPortTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EndpointPort + */ +public class V1EndpointPortTest { + private final V1EndpointPort model = new V1EndpointPort(); + + /** + * Model tests for V1EndpointPort + */ + @Test + public void testV1EndpointPort() { + // TODO: test V1EndpointPort + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + + /** + * Test the property 'protocol' + */ + @Test + public void protocolTest() { + // TODO: test protocol + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointSubsetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointSubsetTest.java new file mode 100644 index 0000000000..426264a8bd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointSubsetTest.java @@ -0,0 +1,71 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1EndpointAddress; +import io.kubernetes.client.models.V1EndpointPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EndpointSubset + */ +public class V1EndpointSubsetTest { + private final V1EndpointSubset model = new V1EndpointSubset(); + + /** + * Model tests for V1EndpointSubset + */ + @Test + public void testV1EndpointSubset() { + // TODO: test V1EndpointSubset + } + + /** + * Test the property 'addresses' + */ + @Test + public void addressesTest() { + // TODO: test addresses + } + + /** + * Test the property 'notReadyAddresses' + */ + @Test + public void notReadyAddressesTest() { + // TODO: test notReadyAddresses + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointsListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointsListTest.java new file mode 100644 index 0000000000..3a4b783819 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointsListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Endpoints; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EndpointsList + */ +public class V1EndpointsListTest { + private final V1EndpointsList model = new V1EndpointsList(); + + /** + * Model tests for V1EndpointsList + */ + @Test + public void testV1EndpointsList() { + // TODO: test V1EndpointsList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointsTest.java new file mode 100644 index 0000000000..0f6c9e18bd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EndpointsTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1EndpointSubset; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Endpoints + */ +public class V1EndpointsTest { + private final V1Endpoints model = new V1Endpoints(); + + /** + * Model tests for V1Endpoints + */ + @Test + public void testV1Endpoints() { + // TODO: test V1Endpoints + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'subsets' + */ + @Test + public void subsetsTest() { + // TODO: test subsets + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvFromSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvFromSourceTest.java new file mode 100644 index 0000000000..e7a3178574 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvFromSourceTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ConfigMapEnvSource; +import io.kubernetes.client.models.V1SecretEnvSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EnvFromSource + */ +public class V1EnvFromSourceTest { + private final V1EnvFromSource model = new V1EnvFromSource(); + + /** + * Model tests for V1EnvFromSource + */ + @Test + public void testV1EnvFromSource() { + // TODO: test V1EnvFromSource + } + + /** + * Test the property 'configMapRef' + */ + @Test + public void configMapRefTest() { + // TODO: test configMapRef + } + + /** + * Test the property 'prefix' + */ + @Test + public void prefixTest() { + // TODO: test prefix + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvVarSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvVarSourceTest.java new file mode 100644 index 0000000000..de0649f280 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvVarSourceTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ConfigMapKeySelector; +import io.kubernetes.client.models.V1ObjectFieldSelector; +import io.kubernetes.client.models.V1ResourceFieldSelector; +import io.kubernetes.client.models.V1SecretKeySelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EnvVarSource + */ +public class V1EnvVarSourceTest { + private final V1EnvVarSource model = new V1EnvVarSource(); + + /** + * Model tests for V1EnvVarSource + */ + @Test + public void testV1EnvVarSource() { + // TODO: test V1EnvVarSource + } + + /** + * Test the property 'configMapKeyRef' + */ + @Test + public void configMapKeyRefTest() { + // TODO: test configMapKeyRef + } + + /** + * Test the property 'fieldRef' + */ + @Test + public void fieldRefTest() { + // TODO: test fieldRef + } + + /** + * Test the property 'resourceFieldRef' + */ + @Test + public void resourceFieldRefTest() { + // TODO: test resourceFieldRef + } + + /** + * Test the property 'secretKeyRef' + */ + @Test + public void secretKeyRefTest() { + // TODO: test secretKeyRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvVarTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvVarTest.java new file mode 100644 index 0000000000..7b997d7beb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EnvVarTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1EnvVarSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EnvVar + */ +public class V1EnvVarTest { + private final V1EnvVar model = new V1EnvVar(); + + /** + * Model tests for V1EnvVar + */ + @Test + public void testV1EnvVar() { + // TODO: test V1EnvVar + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'valueFrom' + */ + @Test + public void valueFromTest() { + // TODO: test valueFrom + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EventListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventListTest.java new file mode 100644 index 0000000000..b902fa76a1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Event; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EventList + */ +public class V1EventListTest { + private final V1EventList model = new V1EventList(); + + /** + * Model tests for V1EventList + */ + @Test + public void testV1EventList() { + // TODO: test V1EventList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EventSeriesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventSeriesTest.java new file mode 100644 index 0000000000..1548f8a902 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventSeriesTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EventSeries + */ +public class V1EventSeriesTest { + private final V1EventSeries model = new V1EventSeries(); + + /** + * Model tests for V1EventSeries + */ + @Test + public void testV1EventSeries() { + // TODO: test V1EventSeries + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + + /** + * Test the property 'lastObservedTime' + */ + @Test + public void lastObservedTimeTest() { + // TODO: test lastObservedTime + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EventSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventSourceTest.java new file mode 100644 index 0000000000..e8001e4b2a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1EventSource + */ +public class V1EventSourceTest { + private final V1EventSource model = new V1EventSource(); + + /** + * Model tests for V1EventSource + */ + @Test + public void testV1EventSource() { + // TODO: test V1EventSource + } + + /** + * Test the property 'component' + */ + @Test + public void componentTest() { + // TODO: test component + } + + /** + * Test the property 'host' + */ + @Test + public void hostTest() { + // TODO: test host + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1EventTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventTest.java new file mode 100644 index 0000000000..52c4bfef42 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1EventTest.java @@ -0,0 +1,184 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1EventSeries; +import io.kubernetes.client.models.V1EventSource; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Event + */ +public class V1EventTest { + private final V1Event model = new V1Event(); + + /** + * Model tests for V1Event + */ + @Test + public void testV1Event() { + // TODO: test V1Event + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'firstTimestamp' + */ + @Test + public void firstTimestampTest() { + // TODO: test firstTimestamp + } + + /** + * Test the property 'involvedObject' + */ + @Test + public void involvedObjectTest() { + // TODO: test involvedObject + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'lastTimestamp' + */ + @Test + public void lastTimestampTest() { + // TODO: test lastTimestamp + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'related' + */ + @Test + public void relatedTest() { + // TODO: test related + } + + /** + * Test the property 'reportingComponent' + */ + @Test + public void reportingComponentTest() { + // TODO: test reportingComponent + } + + /** + * Test the property 'reportingInstance' + */ + @Test + public void reportingInstanceTest() { + // TODO: test reportingInstance + } + + /** + * Test the property 'series' + */ + @Test + public void seriesTest() { + // TODO: test series + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ExecActionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ExecActionTest.java new file mode 100644 index 0000000000..7cbe449d18 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ExecActionTest.java @@ -0,0 +1,53 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ExecAction + */ +public class V1ExecActionTest { + private final V1ExecAction model = new V1ExecAction(); + + /** + * Model tests for V1ExecAction + */ + @Test + public void testV1ExecAction() { + // TODO: test V1ExecAction + } + + /** + * Test the property 'command' + */ + @Test + public void commandTest() { + // TODO: test command + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1FCVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1FCVolumeSourceTest.java new file mode 100644 index 0000000000..1e23f800a8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1FCVolumeSourceTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1FCVolumeSource + */ +public class V1FCVolumeSourceTest { + private final V1FCVolumeSource model = new V1FCVolumeSource(); + + /** + * Model tests for V1FCVolumeSource + */ + @Test + public void testV1FCVolumeSource() { + // TODO: test V1FCVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'lun' + */ + @Test + public void lunTest() { + // TODO: test lun + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'targetWWNs' + */ + @Test + public void targetWWNsTest() { + // TODO: test targetWWNs + } + + /** + * Test the property 'wwids' + */ + @Test + public void wwidsTest() { + // TODO: test wwids + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1FlexPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1FlexPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..b6d666fc92 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1FlexPersistentVolumeSourceTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1FlexPersistentVolumeSource + */ +public class V1FlexPersistentVolumeSourceTest { + private final V1FlexPersistentVolumeSource model = new V1FlexPersistentVolumeSource(); + + /** + * Model tests for V1FlexPersistentVolumeSource + */ + @Test + public void testV1FlexPersistentVolumeSource() { + // TODO: test V1FlexPersistentVolumeSource + } + + /** + * Test the property 'driver' + */ + @Test + public void driverTest() { + // TODO: test driver + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'options' + */ + @Test + public void optionsTest() { + // TODO: test options + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1FlexVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1FlexVolumeSourceTest.java new file mode 100644 index 0000000000..3cea506fa2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1FlexVolumeSourceTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1FlexVolumeSource + */ +public class V1FlexVolumeSourceTest { + private final V1FlexVolumeSource model = new V1FlexVolumeSource(); + + /** + * Model tests for V1FlexVolumeSource + */ + @Test + public void testV1FlexVolumeSource() { + // TODO: test V1FlexVolumeSource + } + + /** + * Test the property 'driver' + */ + @Test + public void driverTest() { + // TODO: test driver + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'options' + */ + @Test + public void optionsTest() { + // TODO: test options + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1FlockerVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1FlockerVolumeSourceTest.java new file mode 100644 index 0000000000..0e6e5072be --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1FlockerVolumeSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1FlockerVolumeSource + */ +public class V1FlockerVolumeSourceTest { + private final V1FlockerVolumeSource model = new V1FlockerVolumeSource(); + + /** + * Model tests for V1FlockerVolumeSource + */ + @Test + public void testV1FlockerVolumeSource() { + // TODO: test V1FlockerVolumeSource + } + + /** + * Test the property 'datasetName' + */ + @Test + public void datasetNameTest() { + // TODO: test datasetName + } + + /** + * Test the property 'datasetUUID' + */ + @Test + public void datasetUUIDTest() { + // TODO: test datasetUUID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSourceTest.java new file mode 100644 index 0000000000..81955aaace --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1GCEPersistentDiskVolumeSourceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1GCEPersistentDiskVolumeSource + */ +public class V1GCEPersistentDiskVolumeSourceTest { + private final V1GCEPersistentDiskVolumeSource model = new V1GCEPersistentDiskVolumeSource(); + + /** + * Model tests for V1GCEPersistentDiskVolumeSource + */ + @Test + public void testV1GCEPersistentDiskVolumeSource() { + // TODO: test V1GCEPersistentDiskVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'partition' + */ + @Test + public void partitionTest() { + // TODO: test partition + } + + /** + * Test the property 'pdName' + */ + @Test + public void pdNameTest() { + // TODO: test pdName + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1GitRepoVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1GitRepoVolumeSourceTest.java new file mode 100644 index 0000000000..0da0cfd6ac --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1GitRepoVolumeSourceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1GitRepoVolumeSource + */ +public class V1GitRepoVolumeSourceTest { + private final V1GitRepoVolumeSource model = new V1GitRepoVolumeSource(); + + /** + * Model tests for V1GitRepoVolumeSource + */ + @Test + public void testV1GitRepoVolumeSource() { + // TODO: test V1GitRepoVolumeSource + } + + /** + * Test the property 'directory' + */ + @Test + public void directoryTest() { + // TODO: test directory + } + + /** + * Test the property 'repository' + */ + @Test + public void repositoryTest() { + // TODO: test repository + } + + /** + * Test the property 'revision' + */ + @Test + public void revisionTest() { + // TODO: test revision + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..6b803f4e2a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1GlusterfsPersistentVolumeSourceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1GlusterfsPersistentVolumeSource + */ +public class V1GlusterfsPersistentVolumeSourceTest { + private final V1GlusterfsPersistentVolumeSource model = new V1GlusterfsPersistentVolumeSource(); + + /** + * Model tests for V1GlusterfsPersistentVolumeSource + */ + @Test + public void testV1GlusterfsPersistentVolumeSource() { + // TODO: test V1GlusterfsPersistentVolumeSource + } + + /** + * Test the property 'endpoints' + */ + @Test + public void endpointsTest() { + // TODO: test endpoints + } + + /** + * Test the property 'endpointsNamespace' + */ + @Test + public void endpointsNamespaceTest() { + // TODO: test endpointsNamespace + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1GlusterfsVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1GlusterfsVolumeSourceTest.java new file mode 100644 index 0000000000..6c8d43d64c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1GlusterfsVolumeSourceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1GlusterfsVolumeSource + */ +public class V1GlusterfsVolumeSourceTest { + private final V1GlusterfsVolumeSource model = new V1GlusterfsVolumeSource(); + + /** + * Model tests for V1GlusterfsVolumeSource + */ + @Test + public void testV1GlusterfsVolumeSource() { + // TODO: test V1GlusterfsVolumeSource + } + + /** + * Test the property 'endpoints' + */ + @Test + public void endpointsTest() { + // TODO: test endpoints + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1GroupVersionForDiscoveryTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1GroupVersionForDiscoveryTest.java new file mode 100644 index 0000000000..ba44a7ec62 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1GroupVersionForDiscoveryTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1GroupVersionForDiscovery + */ +public class V1GroupVersionForDiscoveryTest { + private final V1GroupVersionForDiscovery model = new V1GroupVersionForDiscovery(); + + /** + * Model tests for V1GroupVersionForDiscovery + */ + @Test + public void testV1GroupVersionForDiscovery() { + // TODO: test V1GroupVersionForDiscovery + } + + /** + * Test the property 'groupVersion' + */ + @Test + public void groupVersionTest() { + // TODO: test groupVersion + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HTTPGetActionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HTTPGetActionTest.java new file mode 100644 index 0000000000..16bf4cc717 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HTTPGetActionTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1HTTPHeader; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HTTPGetAction + */ +public class V1HTTPGetActionTest { + private final V1HTTPGetAction model = new V1HTTPGetAction(); + + /** + * Model tests for V1HTTPGetAction + */ + @Test + public void testV1HTTPGetAction() { + // TODO: test V1HTTPGetAction + } + + /** + * Test the property 'host' + */ + @Test + public void hostTest() { + // TODO: test host + } + + /** + * Test the property 'httpHeaders' + */ + @Test + public void httpHeadersTest() { + // TODO: test httpHeaders + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + + /** + * Test the property 'scheme' + */ + @Test + public void schemeTest() { + // TODO: test scheme + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HTTPHeaderTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HTTPHeaderTest.java new file mode 100644 index 0000000000..3dd07fe45b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HTTPHeaderTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HTTPHeader + */ +public class V1HTTPHeaderTest { + private final V1HTTPHeader model = new V1HTTPHeader(); + + /** + * Model tests for V1HTTPHeader + */ + @Test + public void testV1HTTPHeader() { + // TODO: test V1HTTPHeader + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HandlerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HandlerTest.java new file mode 100644 index 0000000000..b63a707018 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HandlerTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ExecAction; +import io.kubernetes.client.models.V1HTTPGetAction; +import io.kubernetes.client.models.V1TCPSocketAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Handler + */ +public class V1HandlerTest { + private final V1Handler model = new V1Handler(); + + /** + * Model tests for V1Handler + */ + @Test + public void testV1Handler() { + // TODO: test V1Handler + } + + /** + * Test the property 'exec' + */ + @Test + public void execTest() { + // TODO: test exec + } + + /** + * Test the property 'httpGet' + */ + @Test + public void httpGetTest() { + // TODO: test httpGet + } + + /** + * Test the property 'tcpSocket' + */ + @Test + public void tcpSocketTest() { + // TODO: test tcpSocket + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerListTest.java new file mode 100644 index 0000000000..d0c137dee4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1HorizontalPodAutoscaler; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HorizontalPodAutoscalerList + */ +public class V1HorizontalPodAutoscalerListTest { + private final V1HorizontalPodAutoscalerList model = new V1HorizontalPodAutoscalerList(); + + /** + * Model tests for V1HorizontalPodAutoscalerList + */ + @Test + public void testV1HorizontalPodAutoscalerList() { + // TODO: test V1HorizontalPodAutoscalerList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpecTest.java new file mode 100644 index 0000000000..5bb710881f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerSpecTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1CrossVersionObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HorizontalPodAutoscalerSpec + */ +public class V1HorizontalPodAutoscalerSpecTest { + private final V1HorizontalPodAutoscalerSpec model = new V1HorizontalPodAutoscalerSpec(); + + /** + * Model tests for V1HorizontalPodAutoscalerSpec + */ + @Test + public void testV1HorizontalPodAutoscalerSpec() { + // TODO: test V1HorizontalPodAutoscalerSpec + } + + /** + * Test the property 'maxReplicas' + */ + @Test + public void maxReplicasTest() { + // TODO: test maxReplicas + } + + /** + * Test the property 'minReplicas' + */ + @Test + public void minReplicasTest() { + // TODO: test minReplicas + } + + /** + * Test the property 'scaleTargetRef' + */ + @Test + public void scaleTargetRefTest() { + // TODO: test scaleTargetRef + } + + /** + * Test the property 'targetCPUUtilizationPercentage' + */ + @Test + public void targetCPUUtilizationPercentageTest() { + // TODO: test targetCPUUtilizationPercentage + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatusTest.java new file mode 100644 index 0000000000..a1712566e7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerStatusTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HorizontalPodAutoscalerStatus + */ +public class V1HorizontalPodAutoscalerStatusTest { + private final V1HorizontalPodAutoscalerStatus model = new V1HorizontalPodAutoscalerStatus(); + + /** + * Model tests for V1HorizontalPodAutoscalerStatus + */ + @Test + public void testV1HorizontalPodAutoscalerStatus() { + // TODO: test V1HorizontalPodAutoscalerStatus + } + + /** + * Test the property 'currentCPUUtilizationPercentage' + */ + @Test + public void currentCPUUtilizationPercentageTest() { + // TODO: test currentCPUUtilizationPercentage + } + + /** + * Test the property 'currentReplicas' + */ + @Test + public void currentReplicasTest() { + // TODO: test currentReplicas + } + + /** + * Test the property 'desiredReplicas' + */ + @Test + public void desiredReplicasTest() { + // TODO: test desiredReplicas + } + + /** + * Test the property 'lastScaleTime' + */ + @Test + public void lastScaleTimeTest() { + // TODO: test lastScaleTime + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerTest.java new file mode 100644 index 0000000000..173ae1281e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HorizontalPodAutoscalerTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1HorizontalPodAutoscalerSpec; +import io.kubernetes.client.models.V1HorizontalPodAutoscalerStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HorizontalPodAutoscaler + */ +public class V1HorizontalPodAutoscalerTest { + private final V1HorizontalPodAutoscaler model = new V1HorizontalPodAutoscaler(); + + /** + * Model tests for V1HorizontalPodAutoscaler + */ + @Test + public void testV1HorizontalPodAutoscaler() { + // TODO: test V1HorizontalPodAutoscaler + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HostAliasTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HostAliasTest.java new file mode 100644 index 0000000000..2dd925fff5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HostAliasTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HostAlias + */ +public class V1HostAliasTest { + private final V1HostAlias model = new V1HostAlias(); + + /** + * Model tests for V1HostAlias + */ + @Test + public void testV1HostAlias() { + // TODO: test V1HostAlias + } + + /** + * Test the property 'hostnames' + */ + @Test + public void hostnamesTest() { + // TODO: test hostnames + } + + /** + * Test the property 'ip' + */ + @Test + public void ipTest() { + // TODO: test ip + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1HostPathVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1HostPathVolumeSourceTest.java new file mode 100644 index 0000000000..de3815cd56 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1HostPathVolumeSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1HostPathVolumeSource + */ +public class V1HostPathVolumeSourceTest { + private final V1HostPathVolumeSource model = new V1HostPathVolumeSource(); + + /** + * Model tests for V1HostPathVolumeSource + */ + @Test + public void testV1HostPathVolumeSource() { + // TODO: test V1HostPathVolumeSource + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1IPBlockTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1IPBlockTest.java new file mode 100644 index 0000000000..85d00eae0f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1IPBlockTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1IPBlock + */ +public class V1IPBlockTest { + private final V1IPBlock model = new V1IPBlock(); + + /** + * Model tests for V1IPBlock + */ + @Test + public void testV1IPBlock() { + // TODO: test V1IPBlock + } + + /** + * Test the property 'cidr' + */ + @Test + public void cidrTest() { + // TODO: test cidr + } + + /** + * Test the property 'except' + */ + @Test + public void exceptTest() { + // TODO: test except + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..5e31b832e0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ISCSIPersistentVolumeSourceTest.java @@ -0,0 +1,134 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ISCSIPersistentVolumeSource + */ +public class V1ISCSIPersistentVolumeSourceTest { + private final V1ISCSIPersistentVolumeSource model = new V1ISCSIPersistentVolumeSource(); + + /** + * Model tests for V1ISCSIPersistentVolumeSource + */ + @Test + public void testV1ISCSIPersistentVolumeSource() { + // TODO: test V1ISCSIPersistentVolumeSource + } + + /** + * Test the property 'chapAuthDiscovery' + */ + @Test + public void chapAuthDiscoveryTest() { + // TODO: test chapAuthDiscovery + } + + /** + * Test the property 'chapAuthSession' + */ + @Test + public void chapAuthSessionTest() { + // TODO: test chapAuthSession + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'initiatorName' + */ + @Test + public void initiatorNameTest() { + // TODO: test initiatorName + } + + /** + * Test the property 'iqn' + */ + @Test + public void iqnTest() { + // TODO: test iqn + } + + /** + * Test the property 'iscsiInterface' + */ + @Test + public void iscsiInterfaceTest() { + // TODO: test iscsiInterface + } + + /** + * Test the property 'lun' + */ + @Test + public void lunTest() { + // TODO: test lun + } + + /** + * Test the property 'portals' + */ + @Test + public void portalsTest() { + // TODO: test portals + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'targetPortal' + */ + @Test + public void targetPortalTest() { + // TODO: test targetPortal + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ISCSIVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ISCSIVolumeSourceTest.java new file mode 100644 index 0000000000..0bbceda327 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ISCSIVolumeSourceTest.java @@ -0,0 +1,134 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ISCSIVolumeSource + */ +public class V1ISCSIVolumeSourceTest { + private final V1ISCSIVolumeSource model = new V1ISCSIVolumeSource(); + + /** + * Model tests for V1ISCSIVolumeSource + */ + @Test + public void testV1ISCSIVolumeSource() { + // TODO: test V1ISCSIVolumeSource + } + + /** + * Test the property 'chapAuthDiscovery' + */ + @Test + public void chapAuthDiscoveryTest() { + // TODO: test chapAuthDiscovery + } + + /** + * Test the property 'chapAuthSession' + */ + @Test + public void chapAuthSessionTest() { + // TODO: test chapAuthSession + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'initiatorName' + */ + @Test + public void initiatorNameTest() { + // TODO: test initiatorName + } + + /** + * Test the property 'iqn' + */ + @Test + public void iqnTest() { + // TODO: test iqn + } + + /** + * Test the property 'iscsiInterface' + */ + @Test + public void iscsiInterfaceTest() { + // TODO: test iscsiInterface + } + + /** + * Test the property 'lun' + */ + @Test + public void lunTest() { + // TODO: test lun + } + + /** + * Test the property 'portals' + */ + @Test + public void portalsTest() { + // TODO: test portals + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'targetPortal' + */ + @Test + public void targetPortalTest() { + // TODO: test targetPortal + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1InitializerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1InitializerTest.java new file mode 100644 index 0000000000..22dae60acc --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1InitializerTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Initializer + */ +public class V1InitializerTest { + private final V1Initializer model = new V1Initializer(); + + /** + * Model tests for V1Initializer + */ + @Test + public void testV1Initializer() { + // TODO: test V1Initializer + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1InitializersTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1InitializersTest.java new file mode 100644 index 0000000000..9af4fa8176 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1InitializersTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Initializer; +import io.kubernetes.client.models.V1Status; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Initializers + */ +public class V1InitializersTest { + private final V1Initializers model = new V1Initializers(); + + /** + * Model tests for V1Initializers + */ + @Test + public void testV1Initializers() { + // TODO: test V1Initializers + } + + /** + * Test the property 'pending' + */ + @Test + public void pendingTest() { + // TODO: test pending + } + + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1JobConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobConditionTest.java new file mode 100644 index 0000000000..d35d6e8315 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1JobCondition + */ +public class V1JobConditionTest { + private final V1JobCondition model = new V1JobCondition(); + + /** + * Model tests for V1JobCondition + */ + @Test + public void testV1JobCondition() { + // TODO: test V1JobCondition + } + + /** + * Test the property 'lastProbeTime' + */ + @Test + public void lastProbeTimeTest() { + // TODO: test lastProbeTime + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1JobListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobListTest.java new file mode 100644 index 0000000000..0775975336 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Job; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1JobList + */ +public class V1JobListTest { + private final V1JobList model = new V1JobList(); + + /** + * Model tests for V1JobList + */ + @Test + public void testV1JobList() { + // TODO: test V1JobList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1JobSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobSpecTest.java new file mode 100644 index 0000000000..4799624067 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobSpecTest.java @@ -0,0 +1,109 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1JobSpec + */ +public class V1JobSpecTest { + private final V1JobSpec model = new V1JobSpec(); + + /** + * Model tests for V1JobSpec + */ + @Test + public void testV1JobSpec() { + // TODO: test V1JobSpec + } + + /** + * Test the property 'activeDeadlineSeconds' + */ + @Test + public void activeDeadlineSecondsTest() { + // TODO: test activeDeadlineSeconds + } + + /** + * Test the property 'backoffLimit' + */ + @Test + public void backoffLimitTest() { + // TODO: test backoffLimit + } + + /** + * Test the property 'completions' + */ + @Test + public void completionsTest() { + // TODO: test completions + } + + /** + * Test the property 'manualSelector' + */ + @Test + public void manualSelectorTest() { + // TODO: test manualSelector + } + + /** + * Test the property 'parallelism' + */ + @Test + public void parallelismTest() { + // TODO: test parallelism + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'ttlSecondsAfterFinished' + */ + @Test + public void ttlSecondsAfterFinishedTest() { + // TODO: test ttlSecondsAfterFinished + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1JobStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobStatusTest.java new file mode 100644 index 0000000000..9a0a8f04c4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobStatusTest.java @@ -0,0 +1,95 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1JobCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1JobStatus + */ +public class V1JobStatusTest { + private final V1JobStatus model = new V1JobStatus(); + + /** + * Model tests for V1JobStatus + */ + @Test + public void testV1JobStatus() { + // TODO: test V1JobStatus + } + + /** + * Test the property 'active' + */ + @Test + public void activeTest() { + // TODO: test active + } + + /** + * Test the property 'completionTime' + */ + @Test + public void completionTimeTest() { + // TODO: test completionTime + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'failed' + */ + @Test + public void failedTest() { + // TODO: test failed + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + + /** + * Test the property 'succeeded' + */ + @Test + public void succeededTest() { + // TODO: test succeeded + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1JobTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobTest.java new file mode 100644 index 0000000000..f55d0db0d0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1JobTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1JobSpec; +import io.kubernetes.client.models.V1JobStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Job + */ +public class V1JobTest { + private final V1Job model = new V1Job(); + + /** + * Model tests for V1Job + */ + @Test + public void testV1Job() { + // TODO: test V1Job + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1KeyToPathTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1KeyToPathTest.java new file mode 100644 index 0000000000..755d011d37 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1KeyToPathTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1KeyToPath + */ +public class V1KeyToPathTest { + private final V1KeyToPath model = new V1KeyToPath(); + + /** + * Model tests for V1KeyToPath + */ + @Test + public void testV1KeyToPath() { + // TODO: test V1KeyToPath + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'mode' + */ + @Test + public void modeTest() { + // TODO: test mode + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LabelSelectorRequirementTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LabelSelectorRequirementTest.java new file mode 100644 index 0000000000..b0a8d360a3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LabelSelectorRequirementTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LabelSelectorRequirement + */ +public class V1LabelSelectorRequirementTest { + private final V1LabelSelectorRequirement model = new V1LabelSelectorRequirement(); + + /** + * Model tests for V1LabelSelectorRequirement + */ + @Test + public void testV1LabelSelectorRequirement() { + // TODO: test V1LabelSelectorRequirement + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'operator' + */ + @Test + public void operatorTest() { + // TODO: test operator + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LabelSelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LabelSelectorTest.java new file mode 100644 index 0000000000..57d969ba6e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LabelSelectorTest.java @@ -0,0 +1,64 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LabelSelector + */ +public class V1LabelSelectorTest { + private final V1LabelSelector model = new V1LabelSelector(); + + /** + * Model tests for V1LabelSelector + */ + @Test + public void testV1LabelSelector() { + // TODO: test V1LabelSelector + } + + /** + * Test the property 'matchExpressions' + */ + @Test + public void matchExpressionsTest() { + // TODO: test matchExpressions + } + + /** + * Test the property 'matchLabels' + */ + @Test + public void matchLabelsTest() { + // TODO: test matchLabels + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseListTest.java new file mode 100644 index 0000000000..7a4c4bf1a5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Lease; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LeaseList + */ +public class V1LeaseListTest { + private final V1LeaseList model = new V1LeaseList(); + + /** + * Model tests for V1LeaseList + */ + @Test + public void testV1LeaseList() { + // TODO: test V1LeaseList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseSpecTest.java new file mode 100644 index 0000000000..b8a146f189 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseSpecTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LeaseSpec + */ +public class V1LeaseSpecTest { + private final V1LeaseSpec model = new V1LeaseSpec(); + + /** + * Model tests for V1LeaseSpec + */ + @Test + public void testV1LeaseSpec() { + // TODO: test V1LeaseSpec + } + + /** + * Test the property 'acquireTime' + */ + @Test + public void acquireTimeTest() { + // TODO: test acquireTime + } + + /** + * Test the property 'holderIdentity' + */ + @Test + public void holderIdentityTest() { + // TODO: test holderIdentity + } + + /** + * Test the property 'leaseDurationSeconds' + */ + @Test + public void leaseDurationSecondsTest() { + // TODO: test leaseDurationSeconds + } + + /** + * Test the property 'leaseTransitions' + */ + @Test + public void leaseTransitionsTest() { + // TODO: test leaseTransitions + } + + /** + * Test the property 'renewTime' + */ + @Test + public void renewTimeTest() { + // TODO: test renewTime + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseTest.java new file mode 100644 index 0000000000..944738368c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LeaseTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LeaseSpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Lease + */ +public class V1LeaseTest { + private final V1Lease model = new V1Lease(); + + /** + * Model tests for V1Lease + */ + @Test + public void testV1Lease() { + // TODO: test V1Lease + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LifecycleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LifecycleTest.java new file mode 100644 index 0000000000..29a6109844 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LifecycleTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Handler; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Lifecycle + */ +public class V1LifecycleTest { + private final V1Lifecycle model = new V1Lifecycle(); + + /** + * Model tests for V1Lifecycle + */ + @Test + public void testV1Lifecycle() { + // TODO: test V1Lifecycle + } + + /** + * Test the property 'postStart' + */ + @Test + public void postStartTest() { + // TODO: test postStart + } + + /** + * Test the property 'preStop' + */ + @Test + public void preStopTest() { + // TODO: test preStop + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeItemTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeItemTest.java new file mode 100644 index 0000000000..ad6cda7bdc --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeItemTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LimitRangeItem + */ +public class V1LimitRangeItemTest { + private final V1LimitRangeItem model = new V1LimitRangeItem(); + + /** + * Model tests for V1LimitRangeItem + */ + @Test + public void testV1LimitRangeItem() { + // TODO: test V1LimitRangeItem + } + + /** + * Test the property '_default' + */ + @Test + public void _defaultTest() { + // TODO: test _default + } + + /** + * Test the property 'defaultRequest' + */ + @Test + public void defaultRequestTest() { + // TODO: test defaultRequest + } + + /** + * Test the property 'max' + */ + @Test + public void maxTest() { + // TODO: test max + } + + /** + * Test the property 'maxLimitRequestRatio' + */ + @Test + public void maxLimitRequestRatioTest() { + // TODO: test maxLimitRequestRatio + } + + /** + * Test the property 'min' + */ + @Test + public void minTest() { + // TODO: test min + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeListTest.java new file mode 100644 index 0000000000..e38b365018 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LimitRange; +import io.kubernetes.client.models.V1ListMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LimitRangeList + */ +public class V1LimitRangeListTest { + private final V1LimitRangeList model = new V1LimitRangeList(); + + /** + * Model tests for V1LimitRangeList + */ + @Test + public void testV1LimitRangeList() { + // TODO: test V1LimitRangeList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeSpecTest.java new file mode 100644 index 0000000000..047e774f22 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeSpecTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LimitRangeItem; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LimitRangeSpec + */ +public class V1LimitRangeSpecTest { + private final V1LimitRangeSpec model = new V1LimitRangeSpec(); + + /** + * Model tests for V1LimitRangeSpec + */ + @Test + public void testV1LimitRangeSpec() { + // TODO: test V1LimitRangeSpec + } + + /** + * Test the property 'limits' + */ + @Test + public void limitsTest() { + // TODO: test limits + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeTest.java new file mode 100644 index 0000000000..8fe5205242 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LimitRangeTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LimitRangeSpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LimitRange + */ +public class V1LimitRangeTest { + private final V1LimitRange model = new V1LimitRange(); + + /** + * Model tests for V1LimitRange + */ + @Test + public void testV1LimitRange() { + // TODO: test V1LimitRange + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ListMetaTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ListMetaTest.java new file mode 100644 index 0000000000..8a4a719053 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ListMetaTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ListMeta + */ +public class V1ListMetaTest { + private final V1ListMeta model = new V1ListMeta(); + + /** + * Model tests for V1ListMeta + */ + @Test + public void testV1ListMeta() { + // TODO: test V1ListMeta + } + + /** + * Test the property '_continue' + */ + @Test + public void _continueTest() { + // TODO: test _continue + } + + /** + * Test the property 'remainingItemCount' + */ + @Test + public void remainingItemCountTest() { + // TODO: test remainingItemCount + } + + /** + * Test the property 'resourceVersion' + */ + @Test + public void resourceVersionTest() { + // TODO: test resourceVersion + } + + /** + * Test the property 'selfLink' + */ + @Test + public void selfLinkTest() { + // TODO: test selfLink + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LoadBalancerIngressTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LoadBalancerIngressTest.java new file mode 100644 index 0000000000..99f3668c2e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LoadBalancerIngressTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LoadBalancerIngress + */ +public class V1LoadBalancerIngressTest { + private final V1LoadBalancerIngress model = new V1LoadBalancerIngress(); + + /** + * Model tests for V1LoadBalancerIngress + */ + @Test + public void testV1LoadBalancerIngress() { + // TODO: test V1LoadBalancerIngress + } + + /** + * Test the property 'hostname' + */ + @Test + public void hostnameTest() { + // TODO: test hostname + } + + /** + * Test the property 'ip' + */ + @Test + public void ipTest() { + // TODO: test ip + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LoadBalancerStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LoadBalancerStatusTest.java new file mode 100644 index 0000000000..d3aa381b20 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LoadBalancerStatusTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LoadBalancerIngress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LoadBalancerStatus + */ +public class V1LoadBalancerStatusTest { + private final V1LoadBalancerStatus model = new V1LoadBalancerStatus(); + + /** + * Model tests for V1LoadBalancerStatus + */ + @Test + public void testV1LoadBalancerStatus() { + // TODO: test V1LoadBalancerStatus + } + + /** + * Test the property 'ingress' + */ + @Test + public void ingressTest() { + // TODO: test ingress + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalObjectReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalObjectReferenceTest.java new file mode 100644 index 0000000000..c5afcb1d06 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalObjectReferenceTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LocalObjectReference + */ +public class V1LocalObjectReferenceTest { + private final V1LocalObjectReference model = new V1LocalObjectReference(); + + /** + * Model tests for V1LocalObjectReference + */ + @Test + public void testV1LocalObjectReference() { + // TODO: test V1LocalObjectReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalSubjectAccessReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalSubjectAccessReviewTest.java new file mode 100644 index 0000000000..21f2e8dc08 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalSubjectAccessReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1SubjectAccessReviewSpec; +import io.kubernetes.client.models.V1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LocalSubjectAccessReview + */ +public class V1LocalSubjectAccessReviewTest { + private final V1LocalSubjectAccessReview model = new V1LocalSubjectAccessReview(); + + /** + * Model tests for V1LocalSubjectAccessReview + */ + @Test + public void testV1LocalSubjectAccessReview() { + // TODO: test V1LocalSubjectAccessReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalVolumeSourceTest.java new file mode 100644 index 0000000000..3e06860cac --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1LocalVolumeSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1LocalVolumeSource + */ +public class V1LocalVolumeSourceTest { + private final V1LocalVolumeSource model = new V1LocalVolumeSource(); + + /** + * Model tests for V1LocalVolumeSource + */ + @Test + public void testV1LocalVolumeSource() { + // TODO: test V1LocalVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ManagedFieldsEntryTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ManagedFieldsEntryTest.java new file mode 100644 index 0000000000..f9783cb0a2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ManagedFieldsEntryTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ManagedFieldsEntry + */ +public class V1ManagedFieldsEntryTest { + private final V1ManagedFieldsEntry model = new V1ManagedFieldsEntry(); + + /** + * Model tests for V1ManagedFieldsEntry + */ + @Test + public void testV1ManagedFieldsEntry() { + // TODO: test V1ManagedFieldsEntry + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'fields' + */ + @Test + public void fieldsTest() { + // TODO: test fields + } + + /** + * Test the property 'manager' + */ + @Test + public void managerTest() { + // TODO: test manager + } + + /** + * Test the property 'operation' + */ + @Test + public void operationTest() { + // TODO: test operation + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NFSVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NFSVolumeSourceTest.java new file mode 100644 index 0000000000..25a1f7d109 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NFSVolumeSourceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NFSVolumeSource + */ +public class V1NFSVolumeSourceTest { + private final V1NFSVolumeSource model = new V1NFSVolumeSource(); + + /** + * Model tests for V1NFSVolumeSource + */ + @Test + public void testV1NFSVolumeSource() { + // TODO: test V1NFSVolumeSource + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'server' + */ + @Test + public void serverTest() { + // TODO: test server + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceListTest.java new file mode 100644 index 0000000000..345cf74b02 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1Namespace; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NamespaceList + */ +public class V1NamespaceListTest { + private final V1NamespaceList model = new V1NamespaceList(); + + /** + * Model tests for V1NamespaceList + */ + @Test + public void testV1NamespaceList() { + // TODO: test V1NamespaceList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceSpecTest.java new file mode 100644 index 0000000000..7dbf038300 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceSpecTest.java @@ -0,0 +1,53 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NamespaceSpec + */ +public class V1NamespaceSpecTest { + private final V1NamespaceSpec model = new V1NamespaceSpec(); + + /** + * Model tests for V1NamespaceSpec + */ + @Test + public void testV1NamespaceSpec() { + // TODO: test V1NamespaceSpec + } + + /** + * Test the property 'finalizers' + */ + @Test + public void finalizersTest() { + // TODO: test finalizers + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceStatusTest.java new file mode 100644 index 0000000000..cc19e20788 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceStatusTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NamespaceStatus + */ +public class V1NamespaceStatusTest { + private final V1NamespaceStatus model = new V1NamespaceStatus(); + + /** + * Model tests for V1NamespaceStatus + */ + @Test + public void testV1NamespaceStatus() { + // TODO: test V1NamespaceStatus + } + + /** + * Test the property 'phase' + */ + @Test + public void phaseTest() { + // TODO: test phase + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceTest.java new file mode 100644 index 0000000000..e313f0c6c9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NamespaceTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NamespaceSpec; +import io.kubernetes.client.models.V1NamespaceStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Namespace + */ +public class V1NamespaceTest { + private final V1Namespace model = new V1Namespace(); + + /** + * Model tests for V1Namespace + */ + @Test + public void testV1Namespace() { + // TODO: test V1Namespace + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyEgressRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyEgressRuleTest.java new file mode 100644 index 0000000000..6bce56258c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyEgressRuleTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NetworkPolicyPeer; +import io.kubernetes.client.models.V1NetworkPolicyPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicyEgressRule + */ +public class V1NetworkPolicyEgressRuleTest { + private final V1NetworkPolicyEgressRule model = new V1NetworkPolicyEgressRule(); + + /** + * Model tests for V1NetworkPolicyEgressRule + */ + @Test + public void testV1NetworkPolicyEgressRule() { + // TODO: test V1NetworkPolicyEgressRule + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyIngressRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyIngressRuleTest.java new file mode 100644 index 0000000000..f6060e0ed3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyIngressRuleTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NetworkPolicyPeer; +import io.kubernetes.client.models.V1NetworkPolicyPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicyIngressRule + */ +public class V1NetworkPolicyIngressRuleTest { + private final V1NetworkPolicyIngressRule model = new V1NetworkPolicyIngressRule(); + + /** + * Model tests for V1NetworkPolicyIngressRule + */ + @Test + public void testV1NetworkPolicyIngressRule() { + // TODO: test V1NetworkPolicyIngressRule + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyListTest.java new file mode 100644 index 0000000000..32a4837171 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1NetworkPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicyList + */ +public class V1NetworkPolicyListTest { + private final V1NetworkPolicyList model = new V1NetworkPolicyList(); + + /** + * Model tests for V1NetworkPolicyList + */ + @Test + public void testV1NetworkPolicyList() { + // TODO: test V1NetworkPolicyList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyPeerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyPeerTest.java new file mode 100644 index 0000000000..70779b2d04 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyPeerTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1IPBlock; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicyPeer + */ +public class V1NetworkPolicyPeerTest { + private final V1NetworkPolicyPeer model = new V1NetworkPolicyPeer(); + + /** + * Model tests for V1NetworkPolicyPeer + */ + @Test + public void testV1NetworkPolicyPeer() { + // TODO: test V1NetworkPolicyPeer + } + + /** + * Test the property 'ipBlock' + */ + @Test + public void ipBlockTest() { + // TODO: test ipBlock + } + + /** + * Test the property 'namespaceSelector' + */ + @Test + public void namespaceSelectorTest() { + // TODO: test namespaceSelector + } + + /** + * Test the property 'podSelector' + */ + @Test + public void podSelectorTest() { + // TODO: test podSelector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyPortTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyPortTest.java new file mode 100644 index 0000000000..3977b8b89d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyPortTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicyPort + */ +public class V1NetworkPolicyPortTest { + private final V1NetworkPolicyPort model = new V1NetworkPolicyPort(); + + /** + * Model tests for V1NetworkPolicyPort + */ + @Test + public void testV1NetworkPolicyPort() { + // TODO: test V1NetworkPolicyPort + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + + /** + * Test the property 'protocol' + */ + @Test + public void protocolTest() { + // TODO: test protocol + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicySpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicySpecTest.java new file mode 100644 index 0000000000..0041181f0a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicySpecTest.java @@ -0,0 +1,80 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1NetworkPolicyEgressRule; +import io.kubernetes.client.models.V1NetworkPolicyIngressRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicySpec + */ +public class V1NetworkPolicySpecTest { + private final V1NetworkPolicySpec model = new V1NetworkPolicySpec(); + + /** + * Model tests for V1NetworkPolicySpec + */ + @Test + public void testV1NetworkPolicySpec() { + // TODO: test V1NetworkPolicySpec + } + + /** + * Test the property 'egress' + */ + @Test + public void egressTest() { + // TODO: test egress + } + + /** + * Test the property 'ingress' + */ + @Test + public void ingressTest() { + // TODO: test ingress + } + + /** + * Test the property 'podSelector' + */ + @Test + public void podSelectorTest() { + // TODO: test podSelector + } + + /** + * Test the property 'policyTypes' + */ + @Test + public void policyTypesTest() { + // TODO: test policyTypes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyTest.java new file mode 100644 index 0000000000..561cae62d8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NetworkPolicyTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NetworkPolicySpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NetworkPolicy + */ +public class V1NetworkPolicyTest { + private final V1NetworkPolicy model = new V1NetworkPolicy(); + + /** + * Model tests for V1NetworkPolicy + */ + @Test + public void testV1NetworkPolicy() { + // TODO: test V1NetworkPolicy + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeAddressTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeAddressTest.java new file mode 100644 index 0000000000..673855374b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeAddressTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeAddress + */ +public class V1NodeAddressTest { + private final V1NodeAddress model = new V1NodeAddress(); + + /** + * Model tests for V1NodeAddress + */ + @Test + public void testV1NodeAddress() { + // TODO: test V1NodeAddress + } + + /** + * Test the property 'address' + */ + @Test + public void addressTest() { + // TODO: test address + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeAffinityTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeAffinityTest.java new file mode 100644 index 0000000000..55678dc654 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeAffinityTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeSelector; +import io.kubernetes.client.models.V1PreferredSchedulingTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeAffinity + */ +public class V1NodeAffinityTest { + private final V1NodeAffinity model = new V1NodeAffinity(); + + /** + * Model tests for V1NodeAffinity + */ + @Test + public void testV1NodeAffinity() { + // TODO: test V1NodeAffinity + } + + /** + * Test the property 'preferredDuringSchedulingIgnoredDuringExecution' + */ + @Test + public void preferredDuringSchedulingIgnoredDuringExecutionTest() { + // TODO: test preferredDuringSchedulingIgnoredDuringExecution + } + + /** + * Test the property 'requiredDuringSchedulingIgnoredDuringExecution' + */ + @Test + public void requiredDuringSchedulingIgnoredDuringExecutionTest() { + // TODO: test requiredDuringSchedulingIgnoredDuringExecution + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConditionTest.java new file mode 100644 index 0000000000..25330425f7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeCondition + */ +public class V1NodeConditionTest { + private final V1NodeCondition model = new V1NodeCondition(); + + /** + * Model tests for V1NodeCondition + */ + @Test + public void testV1NodeCondition() { + // TODO: test V1NodeCondition + } + + /** + * Test the property 'lastHeartbeatTime' + */ + @Test + public void lastHeartbeatTimeTest() { + // TODO: test lastHeartbeatTime + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConfigSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConfigSourceTest.java new file mode 100644 index 0000000000..72b4c7ade8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConfigSourceTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ConfigMapNodeConfigSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeConfigSource + */ +public class V1NodeConfigSourceTest { + private final V1NodeConfigSource model = new V1NodeConfigSource(); + + /** + * Model tests for V1NodeConfigSource + */ + @Test + public void testV1NodeConfigSource() { + // TODO: test V1NodeConfigSource + } + + /** + * Test the property 'configMap' + */ + @Test + public void configMapTest() { + // TODO: test configMap + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConfigStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConfigStatusTest.java new file mode 100644 index 0000000000..c4092f57ad --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeConfigStatusTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeConfigSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeConfigStatus + */ +public class V1NodeConfigStatusTest { + private final V1NodeConfigStatus model = new V1NodeConfigStatus(); + + /** + * Model tests for V1NodeConfigStatus + */ + @Test + public void testV1NodeConfigStatus() { + // TODO: test V1NodeConfigStatus + } + + /** + * Test the property 'active' + */ + @Test + public void activeTest() { + // TODO: test active + } + + /** + * Test the property 'assigned' + */ + @Test + public void assignedTest() { + // TODO: test assigned + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } + + /** + * Test the property 'lastKnownGood' + */ + @Test + public void lastKnownGoodTest() { + // TODO: test lastKnownGood + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeDaemonEndpointsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeDaemonEndpointsTest.java new file mode 100644 index 0000000000..96a8d1fa2e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeDaemonEndpointsTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DaemonEndpoint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeDaemonEndpoints + */ +public class V1NodeDaemonEndpointsTest { + private final V1NodeDaemonEndpoints model = new V1NodeDaemonEndpoints(); + + /** + * Model tests for V1NodeDaemonEndpoints + */ + @Test + public void testV1NodeDaemonEndpoints() { + // TODO: test V1NodeDaemonEndpoints + } + + /** + * Test the property 'kubeletEndpoint' + */ + @Test + public void kubeletEndpointTest() { + // TODO: test kubeletEndpoint + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeListTest.java new file mode 100644 index 0000000000..77d410c2b6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1Node; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeList + */ +public class V1NodeListTest { + private final V1NodeList model = new V1NodeList(); + + /** + * Model tests for V1NodeList + */ + @Test + public void testV1NodeList() { + // TODO: test V1NodeList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorRequirementTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorRequirementTest.java new file mode 100644 index 0000000000..29ebf1477d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorRequirementTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeSelectorRequirement + */ +public class V1NodeSelectorRequirementTest { + private final V1NodeSelectorRequirement model = new V1NodeSelectorRequirement(); + + /** + * Model tests for V1NodeSelectorRequirement + */ + @Test + public void testV1NodeSelectorRequirement() { + // TODO: test V1NodeSelectorRequirement + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'operator' + */ + @Test + public void operatorTest() { + // TODO: test operator + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorTermTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorTermTest.java new file mode 100644 index 0000000000..ecee9bdc68 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorTermTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeSelectorTerm + */ +public class V1NodeSelectorTermTest { + private final V1NodeSelectorTerm model = new V1NodeSelectorTerm(); + + /** + * Model tests for V1NodeSelectorTerm + */ + @Test + public void testV1NodeSelectorTerm() { + // TODO: test V1NodeSelectorTerm + } + + /** + * Test the property 'matchExpressions' + */ + @Test + public void matchExpressionsTest() { + // TODO: test matchExpressions + } + + /** + * Test the property 'matchFields' + */ + @Test + public void matchFieldsTest() { + // TODO: test matchFields + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorTest.java new file mode 100644 index 0000000000..d82f978f42 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSelectorTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeSelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeSelector + */ +public class V1NodeSelectorTest { + private final V1NodeSelector model = new V1NodeSelector(); + + /** + * Model tests for V1NodeSelector + */ + @Test + public void testV1NodeSelector() { + // TODO: test V1NodeSelector + } + + /** + * Test the property 'nodeSelectorTerms' + */ + @Test + public void nodeSelectorTermsTest() { + // TODO: test nodeSelectorTerms + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSpecTest.java new file mode 100644 index 0000000000..3ac11456ab --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSpecTest.java @@ -0,0 +1,95 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeConfigSource; +import io.kubernetes.client.models.V1Taint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeSpec + */ +public class V1NodeSpecTest { + private final V1NodeSpec model = new V1NodeSpec(); + + /** + * Model tests for V1NodeSpec + */ + @Test + public void testV1NodeSpec() { + // TODO: test V1NodeSpec + } + + /** + * Test the property 'configSource' + */ + @Test + public void configSourceTest() { + // TODO: test configSource + } + + /** + * Test the property 'externalID' + */ + @Test + public void externalIDTest() { + // TODO: test externalID + } + + /** + * Test the property 'podCIDR' + */ + @Test + public void podCIDRTest() { + // TODO: test podCIDR + } + + /** + * Test the property 'providerID' + */ + @Test + public void providerIDTest() { + // TODO: test providerID + } + + /** + * Test the property 'taints' + */ + @Test + public void taintsTest() { + // TODO: test taints + } + + /** + * Test the property 'unschedulable' + */ + @Test + public void unschedulableTest() { + // TODO: test unschedulable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeStatusTest.java new file mode 100644 index 0000000000..8952a12873 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeStatusTest.java @@ -0,0 +1,142 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1AttachedVolume; +import io.kubernetes.client.models.V1ContainerImage; +import io.kubernetes.client.models.V1NodeAddress; +import io.kubernetes.client.models.V1NodeCondition; +import io.kubernetes.client.models.V1NodeConfigStatus; +import io.kubernetes.client.models.V1NodeDaemonEndpoints; +import io.kubernetes.client.models.V1NodeSystemInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeStatus + */ +public class V1NodeStatusTest { + private final V1NodeStatus model = new V1NodeStatus(); + + /** + * Model tests for V1NodeStatus + */ + @Test + public void testV1NodeStatus() { + // TODO: test V1NodeStatus + } + + /** + * Test the property 'addresses' + */ + @Test + public void addressesTest() { + // TODO: test addresses + } + + /** + * Test the property 'allocatable' + */ + @Test + public void allocatableTest() { + // TODO: test allocatable + } + + /** + * Test the property 'capacity' + */ + @Test + public void capacityTest() { + // TODO: test capacity + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'config' + */ + @Test + public void configTest() { + // TODO: test config + } + + /** + * Test the property 'daemonEndpoints' + */ + @Test + public void daemonEndpointsTest() { + // TODO: test daemonEndpoints + } + + /** + * Test the property 'images' + */ + @Test + public void imagesTest() { + // TODO: test images + } + + /** + * Test the property 'nodeInfo' + */ + @Test + public void nodeInfoTest() { + // TODO: test nodeInfo + } + + /** + * Test the property 'phase' + */ + @Test + public void phaseTest() { + // TODO: test phase + } + + /** + * Test the property 'volumesAttached' + */ + @Test + public void volumesAttachedTest() { + // TODO: test volumesAttached + } + + /** + * Test the property 'volumesInUse' + */ + @Test + public void volumesInUseTest() { + // TODO: test volumesInUse + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSystemInfoTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSystemInfoTest.java new file mode 100644 index 0000000000..43f6a0a7e4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeSystemInfoTest.java @@ -0,0 +1,123 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NodeSystemInfo + */ +public class V1NodeSystemInfoTest { + private final V1NodeSystemInfo model = new V1NodeSystemInfo(); + + /** + * Model tests for V1NodeSystemInfo + */ + @Test + public void testV1NodeSystemInfo() { + // TODO: test V1NodeSystemInfo + } + + /** + * Test the property 'architecture' + */ + @Test + public void architectureTest() { + // TODO: test architecture + } + + /** + * Test the property 'bootID' + */ + @Test + public void bootIDTest() { + // TODO: test bootID + } + + /** + * Test the property 'containerRuntimeVersion' + */ + @Test + public void containerRuntimeVersionTest() { + // TODO: test containerRuntimeVersion + } + + /** + * Test the property 'kernelVersion' + */ + @Test + public void kernelVersionTest() { + // TODO: test kernelVersion + } + + /** + * Test the property 'kubeProxyVersion' + */ + @Test + public void kubeProxyVersionTest() { + // TODO: test kubeProxyVersion + } + + /** + * Test the property 'kubeletVersion' + */ + @Test + public void kubeletVersionTest() { + // TODO: test kubeletVersion + } + + /** + * Test the property 'machineID' + */ + @Test + public void machineIDTest() { + // TODO: test machineID + } + + /** + * Test the property 'operatingSystem' + */ + @Test + public void operatingSystemTest() { + // TODO: test operatingSystem + } + + /** + * Test the property 'osImage' + */ + @Test + public void osImageTest() { + // TODO: test osImage + } + + /** + * Test the property 'systemUUID' + */ + @Test + public void systemUUIDTest() { + // TODO: test systemUUID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeTest.java new file mode 100644 index 0000000000..66c2e9bbc2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NodeTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeSpec; +import io.kubernetes.client.models.V1NodeStatus; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Node + */ +public class V1NodeTest { + private final V1Node model = new V1Node(); + + /** + * Model tests for V1Node + */ + @Test + public void testV1Node() { + // TODO: test V1Node + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NonResourceAttributesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NonResourceAttributesTest.java new file mode 100644 index 0000000000..ee9d12ee67 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NonResourceAttributesTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NonResourceAttributes + */ +public class V1NonResourceAttributesTest { + private final V1NonResourceAttributes model = new V1NonResourceAttributes(); + + /** + * Model tests for V1NonResourceAttributes + */ + @Test + public void testV1NonResourceAttributes() { + // TODO: test V1NonResourceAttributes + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'verb' + */ + @Test + public void verbTest() { + // TODO: test verb + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1NonResourceRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1NonResourceRuleTest.java new file mode 100644 index 0000000000..a8f16b5263 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1NonResourceRuleTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1NonResourceRule + */ +public class V1NonResourceRuleTest { + private final V1NonResourceRule model = new V1NonResourceRule(); + + /** + * Model tests for V1NonResourceRule + */ + @Test + public void testV1NonResourceRule() { + // TODO: test V1NonResourceRule + } + + /** + * Test the property 'nonResourceURLs' + */ + @Test + public void nonResourceURLsTest() { + // TODO: test nonResourceURLs + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectFieldSelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectFieldSelectorTest.java new file mode 100644 index 0000000000..5b7a0b4f72 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectFieldSelectorTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ObjectFieldSelector + */ +public class V1ObjectFieldSelectorTest { + private final V1ObjectFieldSelector model = new V1ObjectFieldSelector(); + + /** + * Model tests for V1ObjectFieldSelector + */ + @Test + public void testV1ObjectFieldSelector() { + // TODO: test V1ObjectFieldSelector + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'fieldPath' + */ + @Test + public void fieldPathTest() { + // TODO: test fieldPath + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectMetaTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectMetaTest.java new file mode 100644 index 0000000000..a08fe1f0f0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectMetaTest.java @@ -0,0 +1,187 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Initializers; +import io.kubernetes.client.models.V1ManagedFieldsEntry; +import io.kubernetes.client.models.V1OwnerReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ObjectMeta + */ +public class V1ObjectMetaTest { + private final V1ObjectMeta model = new V1ObjectMeta(); + + /** + * Model tests for V1ObjectMeta + */ + @Test + public void testV1ObjectMeta() { + // TODO: test V1ObjectMeta + } + + /** + * Test the property 'annotations' + */ + @Test + public void annotationsTest() { + // TODO: test annotations + } + + /** + * Test the property 'clusterName' + */ + @Test + public void clusterNameTest() { + // TODO: test clusterName + } + + /** + * Test the property 'creationTimestamp' + */ + @Test + public void creationTimestampTest() { + // TODO: test creationTimestamp + } + + /** + * Test the property 'deletionGracePeriodSeconds' + */ + @Test + public void deletionGracePeriodSecondsTest() { + // TODO: test deletionGracePeriodSeconds + } + + /** + * Test the property 'deletionTimestamp' + */ + @Test + public void deletionTimestampTest() { + // TODO: test deletionTimestamp + } + + /** + * Test the property 'finalizers' + */ + @Test + public void finalizersTest() { + // TODO: test finalizers + } + + /** + * Test the property 'generateName' + */ + @Test + public void generateNameTest() { + // TODO: test generateName + } + + /** + * Test the property 'generation' + */ + @Test + public void generationTest() { + // TODO: test generation + } + + /** + * Test the property 'initializers' + */ + @Test + public void initializersTest() { + // TODO: test initializers + } + + /** + * Test the property 'labels' + */ + @Test + public void labelsTest() { + // TODO: test labels + } + + /** + * Test the property 'managedFields' + */ + @Test + public void managedFieldsTest() { + // TODO: test managedFields + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'ownerReferences' + */ + @Test + public void ownerReferencesTest() { + // TODO: test ownerReferences + } + + /** + * Test the property 'resourceVersion' + */ + @Test + public void resourceVersionTest() { + // TODO: test resourceVersion + } + + /** + * Test the property 'selfLink' + */ + @Test + public void selfLinkTest() { + // TODO: test selfLink + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectReferenceTest.java new file mode 100644 index 0000000000..c0c26ad782 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ObjectReferenceTest.java @@ -0,0 +1,99 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ObjectReference + */ +public class V1ObjectReferenceTest { + private final V1ObjectReference model = new V1ObjectReference(); + + /** + * Model tests for V1ObjectReference + */ + @Test + public void testV1ObjectReference() { + // TODO: test V1ObjectReference + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'fieldPath' + */ + @Test + public void fieldPathTest() { + // TODO: test fieldPath + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'resourceVersion' + */ + @Test + public void resourceVersionTest() { + // TODO: test resourceVersion + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1OwnerReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1OwnerReferenceTest.java new file mode 100644 index 0000000000..72b384e757 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1OwnerReferenceTest.java @@ -0,0 +1,91 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1OwnerReference + */ +public class V1OwnerReferenceTest { + private final V1OwnerReference model = new V1OwnerReference(); + + /** + * Model tests for V1OwnerReference + */ + @Test + public void testV1OwnerReference() { + // TODO: test V1OwnerReference + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'blockOwnerDeletion' + */ + @Test + public void blockOwnerDeletionTest() { + // TODO: test blockOwnerDeletion + } + + /** + * Test the property 'controller' + */ + @Test + public void controllerTest() { + // TODO: test controller + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimConditionTest.java new file mode 100644 index 0000000000..f382691057 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeClaimCondition + */ +public class V1PersistentVolumeClaimConditionTest { + private final V1PersistentVolumeClaimCondition model = new V1PersistentVolumeClaimCondition(); + + /** + * Model tests for V1PersistentVolumeClaimCondition + */ + @Test + public void testV1PersistentVolumeClaimCondition() { + // TODO: test V1PersistentVolumeClaimCondition + } + + /** + * Test the property 'lastProbeTime' + */ + @Test + public void lastProbeTimeTest() { + // TODO: test lastProbeTime + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimListTest.java new file mode 100644 index 0000000000..791ca9a0ba --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1PersistentVolumeClaim; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeClaimList + */ +public class V1PersistentVolumeClaimListTest { + private final V1PersistentVolumeClaimList model = new V1PersistentVolumeClaimList(); + + /** + * Model tests for V1PersistentVolumeClaimList + */ + @Test + public void testV1PersistentVolumeClaimList() { + // TODO: test V1PersistentVolumeClaimList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpecTest.java new file mode 100644 index 0000000000..e5e1a4ce99 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimSpecTest.java @@ -0,0 +1,104 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1ResourceRequirements; +import io.kubernetes.client.models.V1TypedLocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeClaimSpec + */ +public class V1PersistentVolumeClaimSpecTest { + private final V1PersistentVolumeClaimSpec model = new V1PersistentVolumeClaimSpec(); + + /** + * Model tests for V1PersistentVolumeClaimSpec + */ + @Test + public void testV1PersistentVolumeClaimSpec() { + // TODO: test V1PersistentVolumeClaimSpec + } + + /** + * Test the property 'accessModes' + */ + @Test + public void accessModesTest() { + // TODO: test accessModes + } + + /** + * Test the property 'dataSource' + */ + @Test + public void dataSourceTest() { + // TODO: test dataSource + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'storageClassName' + */ + @Test + public void storageClassNameTest() { + // TODO: test storageClassName + } + + /** + * Test the property 'volumeMode' + */ + @Test + public void volumeModeTest() { + // TODO: test volumeMode + } + + /** + * Test the property 'volumeName' + */ + @Test + public void volumeNameTest() { + // TODO: test volumeName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatusTest.java new file mode 100644 index 0000000000..bd2c69d4af --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimStatusTest.java @@ -0,0 +1,80 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeClaimCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeClaimStatus + */ +public class V1PersistentVolumeClaimStatusTest { + private final V1PersistentVolumeClaimStatus model = new V1PersistentVolumeClaimStatus(); + + /** + * Model tests for V1PersistentVolumeClaimStatus + */ + @Test + public void testV1PersistentVolumeClaimStatus() { + // TODO: test V1PersistentVolumeClaimStatus + } + + /** + * Test the property 'accessModes' + */ + @Test + public void accessModesTest() { + // TODO: test accessModes + } + + /** + * Test the property 'capacity' + */ + @Test + public void capacityTest() { + // TODO: test capacity + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'phase' + */ + @Test + public void phaseTest() { + // TODO: test phase + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimTest.java new file mode 100644 index 0000000000..748bc07cf9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PersistentVolumeClaimSpec; +import io.kubernetes.client.models.V1PersistentVolumeClaimStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeClaim + */ +public class V1PersistentVolumeClaimTest { + private final V1PersistentVolumeClaim model = new V1PersistentVolumeClaim(); + + /** + * Model tests for V1PersistentVolumeClaim + */ + @Test + public void testV1PersistentVolumeClaim() { + // TODO: test V1PersistentVolumeClaim + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSourceTest.java new file mode 100644 index 0000000000..62c2b4a423 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeClaimVolumeSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeClaimVolumeSource + */ +public class V1PersistentVolumeClaimVolumeSourceTest { + private final V1PersistentVolumeClaimVolumeSource model = new V1PersistentVolumeClaimVolumeSource(); + + /** + * Model tests for V1PersistentVolumeClaimVolumeSource + */ + @Test + public void testV1PersistentVolumeClaimVolumeSource() { + // TODO: test V1PersistentVolumeClaimVolumeSource + } + + /** + * Test the property 'claimName' + */ + @Test + public void claimNameTest() { + // TODO: test claimName + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeListTest.java new file mode 100644 index 0000000000..2f91ec70b0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1PersistentVolume; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeList + */ +public class V1PersistentVolumeListTest { + private final V1PersistentVolumeList model = new V1PersistentVolumeList(); + + /** + * Model tests for V1PersistentVolumeList + */ + @Test + public void testV1PersistentVolumeList() { + // TODO: test V1PersistentVolumeList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeSpecTest.java new file mode 100644 index 0000000000..01322cac66 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeSpecTest.java @@ -0,0 +1,311 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1AWSElasticBlockStoreVolumeSource; +import io.kubernetes.client.models.V1AzureDiskVolumeSource; +import io.kubernetes.client.models.V1AzureFilePersistentVolumeSource; +import io.kubernetes.client.models.V1CSIPersistentVolumeSource; +import io.kubernetes.client.models.V1CephFSPersistentVolumeSource; +import io.kubernetes.client.models.V1CinderPersistentVolumeSource; +import io.kubernetes.client.models.V1FCVolumeSource; +import io.kubernetes.client.models.V1FlexPersistentVolumeSource; +import io.kubernetes.client.models.V1FlockerVolumeSource; +import io.kubernetes.client.models.V1GCEPersistentDiskVolumeSource; +import io.kubernetes.client.models.V1GlusterfsPersistentVolumeSource; +import io.kubernetes.client.models.V1HostPathVolumeSource; +import io.kubernetes.client.models.V1ISCSIPersistentVolumeSource; +import io.kubernetes.client.models.V1LocalVolumeSource; +import io.kubernetes.client.models.V1NFSVolumeSource; +import io.kubernetes.client.models.V1ObjectReference; +import io.kubernetes.client.models.V1PhotonPersistentDiskVolumeSource; +import io.kubernetes.client.models.V1PortworxVolumeSource; +import io.kubernetes.client.models.V1QuobyteVolumeSource; +import io.kubernetes.client.models.V1RBDPersistentVolumeSource; +import io.kubernetes.client.models.V1ScaleIOPersistentVolumeSource; +import io.kubernetes.client.models.V1StorageOSPersistentVolumeSource; +import io.kubernetes.client.models.V1VolumeNodeAffinity; +import io.kubernetes.client.models.V1VsphereVirtualDiskVolumeSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeSpec + */ +public class V1PersistentVolumeSpecTest { + private final V1PersistentVolumeSpec model = new V1PersistentVolumeSpec(); + + /** + * Model tests for V1PersistentVolumeSpec + */ + @Test + public void testV1PersistentVolumeSpec() { + // TODO: test V1PersistentVolumeSpec + } + + /** + * Test the property 'accessModes' + */ + @Test + public void accessModesTest() { + // TODO: test accessModes + } + + /** + * Test the property 'awsElasticBlockStore' + */ + @Test + public void awsElasticBlockStoreTest() { + // TODO: test awsElasticBlockStore + } + + /** + * Test the property 'azureDisk' + */ + @Test + public void azureDiskTest() { + // TODO: test azureDisk + } + + /** + * Test the property 'azureFile' + */ + @Test + public void azureFileTest() { + // TODO: test azureFile + } + + /** + * Test the property 'capacity' + */ + @Test + public void capacityTest() { + // TODO: test capacity + } + + /** + * Test the property 'cephfs' + */ + @Test + public void cephfsTest() { + // TODO: test cephfs + } + + /** + * Test the property 'cinder' + */ + @Test + public void cinderTest() { + // TODO: test cinder + } + + /** + * Test the property 'claimRef' + */ + @Test + public void claimRefTest() { + // TODO: test claimRef + } + + /** + * Test the property 'csi' + */ + @Test + public void csiTest() { + // TODO: test csi + } + + /** + * Test the property 'fc' + */ + @Test + public void fcTest() { + // TODO: test fc + } + + /** + * Test the property 'flexVolume' + */ + @Test + public void flexVolumeTest() { + // TODO: test flexVolume + } + + /** + * Test the property 'flocker' + */ + @Test + public void flockerTest() { + // TODO: test flocker + } + + /** + * Test the property 'gcePersistentDisk' + */ + @Test + public void gcePersistentDiskTest() { + // TODO: test gcePersistentDisk + } + + /** + * Test the property 'glusterfs' + */ + @Test + public void glusterfsTest() { + // TODO: test glusterfs + } + + /** + * Test the property 'hostPath' + */ + @Test + public void hostPathTest() { + // TODO: test hostPath + } + + /** + * Test the property 'iscsi' + */ + @Test + public void iscsiTest() { + // TODO: test iscsi + } + + /** + * Test the property 'local' + */ + @Test + public void localTest() { + // TODO: test local + } + + /** + * Test the property 'mountOptions' + */ + @Test + public void mountOptionsTest() { + // TODO: test mountOptions + } + + /** + * Test the property 'nfs' + */ + @Test + public void nfsTest() { + // TODO: test nfs + } + + /** + * Test the property 'nodeAffinity' + */ + @Test + public void nodeAffinityTest() { + // TODO: test nodeAffinity + } + + /** + * Test the property 'persistentVolumeReclaimPolicy' + */ + @Test + public void persistentVolumeReclaimPolicyTest() { + // TODO: test persistentVolumeReclaimPolicy + } + + /** + * Test the property 'photonPersistentDisk' + */ + @Test + public void photonPersistentDiskTest() { + // TODO: test photonPersistentDisk + } + + /** + * Test the property 'portworxVolume' + */ + @Test + public void portworxVolumeTest() { + // TODO: test portworxVolume + } + + /** + * Test the property 'quobyte' + */ + @Test + public void quobyteTest() { + // TODO: test quobyte + } + + /** + * Test the property 'rbd' + */ + @Test + public void rbdTest() { + // TODO: test rbd + } + + /** + * Test the property 'scaleIO' + */ + @Test + public void scaleIOTest() { + // TODO: test scaleIO + } + + /** + * Test the property 'storageClassName' + */ + @Test + public void storageClassNameTest() { + // TODO: test storageClassName + } + + /** + * Test the property 'storageos' + */ + @Test + public void storageosTest() { + // TODO: test storageos + } + + /** + * Test the property 'volumeMode' + */ + @Test + public void volumeModeTest() { + // TODO: test volumeMode + } + + /** + * Test the property 'vsphereVolume' + */ + @Test + public void vsphereVolumeTest() { + // TODO: test vsphereVolume + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeStatusTest.java new file mode 100644 index 0000000000..1e0241f3cf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeStatusTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolumeStatus + */ +public class V1PersistentVolumeStatusTest { + private final V1PersistentVolumeStatus model = new V1PersistentVolumeStatus(); + + /** + * Model tests for V1PersistentVolumeStatus + */ + @Test + public void testV1PersistentVolumeStatus() { + // TODO: test V1PersistentVolumeStatus + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'phase' + */ + @Test + public void phaseTest() { + // TODO: test phase + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeTest.java new file mode 100644 index 0000000000..f4bacb85c6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PersistentVolumeTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PersistentVolumeSpec; +import io.kubernetes.client.models.V1PersistentVolumeStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PersistentVolume + */ +public class V1PersistentVolumeTest { + private final V1PersistentVolume model = new V1PersistentVolume(); + + /** + * Model tests for V1PersistentVolume + */ + @Test + public void testV1PersistentVolume() { + // TODO: test V1PersistentVolume + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSourceTest.java new file mode 100644 index 0000000000..cf53a2abe9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PhotonPersistentDiskVolumeSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PhotonPersistentDiskVolumeSource + */ +public class V1PhotonPersistentDiskVolumeSourceTest { + private final V1PhotonPersistentDiskVolumeSource model = new V1PhotonPersistentDiskVolumeSource(); + + /** + * Model tests for V1PhotonPersistentDiskVolumeSource + */ + @Test + public void testV1PhotonPersistentDiskVolumeSource() { + // TODO: test V1PhotonPersistentDiskVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'pdID' + */ + @Test + public void pdIDTest() { + // TODO: test pdID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAffinityTermTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAffinityTermTest.java new file mode 100644 index 0000000000..bc03ad4d9b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAffinityTermTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodAffinityTerm + */ +public class V1PodAffinityTermTest { + private final V1PodAffinityTerm model = new V1PodAffinityTerm(); + + /** + * Model tests for V1PodAffinityTerm + */ + @Test + public void testV1PodAffinityTerm() { + // TODO: test V1PodAffinityTerm + } + + /** + * Test the property 'labelSelector' + */ + @Test + public void labelSelectorTest() { + // TODO: test labelSelector + } + + /** + * Test the property 'namespaces' + */ + @Test + public void namespacesTest() { + // TODO: test namespaces + } + + /** + * Test the property 'topologyKey' + */ + @Test + public void topologyKeyTest() { + // TODO: test topologyKey + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAffinityTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAffinityTest.java new file mode 100644 index 0000000000..e0722530d4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAffinityTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PodAffinityTerm; +import io.kubernetes.client.models.V1WeightedPodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodAffinity + */ +public class V1PodAffinityTest { + private final V1PodAffinity model = new V1PodAffinity(); + + /** + * Model tests for V1PodAffinity + */ + @Test + public void testV1PodAffinity() { + // TODO: test V1PodAffinity + } + + /** + * Test the property 'preferredDuringSchedulingIgnoredDuringExecution' + */ + @Test + public void preferredDuringSchedulingIgnoredDuringExecutionTest() { + // TODO: test preferredDuringSchedulingIgnoredDuringExecution + } + + /** + * Test the property 'requiredDuringSchedulingIgnoredDuringExecution' + */ + @Test + public void requiredDuringSchedulingIgnoredDuringExecutionTest() { + // TODO: test requiredDuringSchedulingIgnoredDuringExecution + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAntiAffinityTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAntiAffinityTest.java new file mode 100644 index 0000000000..a177fc7063 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodAntiAffinityTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PodAffinityTerm; +import io.kubernetes.client.models.V1WeightedPodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodAntiAffinity + */ +public class V1PodAntiAffinityTest { + private final V1PodAntiAffinity model = new V1PodAntiAffinity(); + + /** + * Model tests for V1PodAntiAffinity + */ + @Test + public void testV1PodAntiAffinity() { + // TODO: test V1PodAntiAffinity + } + + /** + * Test the property 'preferredDuringSchedulingIgnoredDuringExecution' + */ + @Test + public void preferredDuringSchedulingIgnoredDuringExecutionTest() { + // TODO: test preferredDuringSchedulingIgnoredDuringExecution + } + + /** + * Test the property 'requiredDuringSchedulingIgnoredDuringExecution' + */ + @Test + public void requiredDuringSchedulingIgnoredDuringExecutionTest() { + // TODO: test requiredDuringSchedulingIgnoredDuringExecution + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodConditionTest.java new file mode 100644 index 0000000000..67007396ff --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodCondition + */ +public class V1PodConditionTest { + private final V1PodCondition model = new V1PodCondition(); + + /** + * Model tests for V1PodCondition + */ + @Test + public void testV1PodCondition() { + // TODO: test V1PodCondition + } + + /** + * Test the property 'lastProbeTime' + */ + @Test + public void lastProbeTimeTest() { + // TODO: test lastProbeTime + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodDNSConfigOptionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodDNSConfigOptionTest.java new file mode 100644 index 0000000000..5e2ce16422 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodDNSConfigOptionTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodDNSConfigOption + */ +public class V1PodDNSConfigOptionTest { + private final V1PodDNSConfigOption model = new V1PodDNSConfigOption(); + + /** + * Model tests for V1PodDNSConfigOption + */ + @Test + public void testV1PodDNSConfigOption() { + // TODO: test V1PodDNSConfigOption + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodDNSConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodDNSConfigTest.java new file mode 100644 index 0000000000..a9083cf2db --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodDNSConfigTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PodDNSConfigOption; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodDNSConfig + */ +public class V1PodDNSConfigTest { + private final V1PodDNSConfig model = new V1PodDNSConfig(); + + /** + * Model tests for V1PodDNSConfig + */ + @Test + public void testV1PodDNSConfig() { + // TODO: test V1PodDNSConfig + } + + /** + * Test the property 'nameservers' + */ + @Test + public void nameserversTest() { + // TODO: test nameservers + } + + /** + * Test the property 'options' + */ + @Test + public void optionsTest() { + // TODO: test options + } + + /** + * Test the property 'searches' + */ + @Test + public void searchesTest() { + // TODO: test searches + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodListTest.java new file mode 100644 index 0000000000..fb010fde59 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1Pod; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodList + */ +public class V1PodListTest { + private final V1PodList model = new V1PodList(); + + /** + * Model tests for V1PodList + */ + @Test + public void testV1PodList() { + // TODO: test V1PodList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodReadinessGateTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodReadinessGateTest.java new file mode 100644 index 0000000000..9df4666d38 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodReadinessGateTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodReadinessGate + */ +public class V1PodReadinessGateTest { + private final V1PodReadinessGate model = new V1PodReadinessGate(); + + /** + * Model tests for V1PodReadinessGate + */ + @Test + public void testV1PodReadinessGate() { + // TODO: test V1PodReadinessGate + } + + /** + * Test the property 'conditionType' + */ + @Test + public void conditionTypeTest() { + // TODO: test conditionType + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodSecurityContextTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodSecurityContextTest.java new file mode 100644 index 0000000000..85fbc63280 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodSecurityContextTest.java @@ -0,0 +1,112 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SELinuxOptions; +import io.kubernetes.client.models.V1Sysctl; +import io.kubernetes.client.models.V1WindowsSecurityContextOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodSecurityContext + */ +public class V1PodSecurityContextTest { + private final V1PodSecurityContext model = new V1PodSecurityContext(); + + /** + * Model tests for V1PodSecurityContext + */ + @Test + public void testV1PodSecurityContext() { + // TODO: test V1PodSecurityContext + } + + /** + * Test the property 'fsGroup' + */ + @Test + public void fsGroupTest() { + // TODO: test fsGroup + } + + /** + * Test the property 'runAsGroup' + */ + @Test + public void runAsGroupTest() { + // TODO: test runAsGroup + } + + /** + * Test the property 'runAsNonRoot' + */ + @Test + public void runAsNonRootTest() { + // TODO: test runAsNonRoot + } + + /** + * Test the property 'runAsUser' + */ + @Test + public void runAsUserTest() { + // TODO: test runAsUser + } + + /** + * Test the property 'seLinuxOptions' + */ + @Test + public void seLinuxOptionsTest() { + // TODO: test seLinuxOptions + } + + /** + * Test the property 'supplementalGroups' + */ + @Test + public void supplementalGroupsTest() { + // TODO: test supplementalGroups + } + + /** + * Test the property 'sysctls' + */ + @Test + public void sysctlsTest() { + // TODO: test sysctls + } + + /** + * Test the property 'windowsOptions' + */ + @Test + public void windowsOptionsTest() { + // TODO: test windowsOptions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodSpecTest.java new file mode 100644 index 0000000000..d6f2294680 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodSpecTest.java @@ -0,0 +1,304 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Affinity; +import io.kubernetes.client.models.V1Container; +import io.kubernetes.client.models.V1HostAlias; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.kubernetes.client.models.V1PodDNSConfig; +import io.kubernetes.client.models.V1PodReadinessGate; +import io.kubernetes.client.models.V1PodSecurityContext; +import io.kubernetes.client.models.V1Toleration; +import io.kubernetes.client.models.V1Volume; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodSpec + */ +public class V1PodSpecTest { + private final V1PodSpec model = new V1PodSpec(); + + /** + * Model tests for V1PodSpec + */ + @Test + public void testV1PodSpec() { + // TODO: test V1PodSpec + } + + /** + * Test the property 'activeDeadlineSeconds' + */ + @Test + public void activeDeadlineSecondsTest() { + // TODO: test activeDeadlineSeconds + } + + /** + * Test the property 'affinity' + */ + @Test + public void affinityTest() { + // TODO: test affinity + } + + /** + * Test the property 'automountServiceAccountToken' + */ + @Test + public void automountServiceAccountTokenTest() { + // TODO: test automountServiceAccountToken + } + + /** + * Test the property 'containers' + */ + @Test + public void containersTest() { + // TODO: test containers + } + + /** + * Test the property 'dnsConfig' + */ + @Test + public void dnsConfigTest() { + // TODO: test dnsConfig + } + + /** + * Test the property 'dnsPolicy' + */ + @Test + public void dnsPolicyTest() { + // TODO: test dnsPolicy + } + + /** + * Test the property 'enableServiceLinks' + */ + @Test + public void enableServiceLinksTest() { + // TODO: test enableServiceLinks + } + + /** + * Test the property 'hostAliases' + */ + @Test + public void hostAliasesTest() { + // TODO: test hostAliases + } + + /** + * Test the property 'hostIPC' + */ + @Test + public void hostIPCTest() { + // TODO: test hostIPC + } + + /** + * Test the property 'hostNetwork' + */ + @Test + public void hostNetworkTest() { + // TODO: test hostNetwork + } + + /** + * Test the property 'hostPID' + */ + @Test + public void hostPIDTest() { + // TODO: test hostPID + } + + /** + * Test the property 'hostname' + */ + @Test + public void hostnameTest() { + // TODO: test hostname + } + + /** + * Test the property 'imagePullSecrets' + */ + @Test + public void imagePullSecretsTest() { + // TODO: test imagePullSecrets + } + + /** + * Test the property 'initContainers' + */ + @Test + public void initContainersTest() { + // TODO: test initContainers + } + + /** + * Test the property 'nodeName' + */ + @Test + public void nodeNameTest() { + // TODO: test nodeName + } + + /** + * Test the property 'nodeSelector' + */ + @Test + public void nodeSelectorTest() { + // TODO: test nodeSelector + } + + /** + * Test the property 'preemptionPolicy' + */ + @Test + public void preemptionPolicyTest() { + // TODO: test preemptionPolicy + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + + /** + * Test the property 'priorityClassName' + */ + @Test + public void priorityClassNameTest() { + // TODO: test priorityClassName + } + + /** + * Test the property 'readinessGates' + */ + @Test + public void readinessGatesTest() { + // TODO: test readinessGates + } + + /** + * Test the property 'restartPolicy' + */ + @Test + public void restartPolicyTest() { + // TODO: test restartPolicy + } + + /** + * Test the property 'runtimeClassName' + */ + @Test + public void runtimeClassNameTest() { + // TODO: test runtimeClassName + } + + /** + * Test the property 'schedulerName' + */ + @Test + public void schedulerNameTest() { + // TODO: test schedulerName + } + + /** + * Test the property 'securityContext' + */ + @Test + public void securityContextTest() { + // TODO: test securityContext + } + + /** + * Test the property 'serviceAccount' + */ + @Test + public void serviceAccountTest() { + // TODO: test serviceAccount + } + + /** + * Test the property 'serviceAccountName' + */ + @Test + public void serviceAccountNameTest() { + // TODO: test serviceAccountName + } + + /** + * Test the property 'shareProcessNamespace' + */ + @Test + public void shareProcessNamespaceTest() { + // TODO: test shareProcessNamespace + } + + /** + * Test the property 'subdomain' + */ + @Test + public void subdomainTest() { + // TODO: test subdomain + } + + /** + * Test the property 'terminationGracePeriodSeconds' + */ + @Test + public void terminationGracePeriodSecondsTest() { + // TODO: test terminationGracePeriodSeconds + } + + /** + * Test the property 'tolerations' + */ + @Test + public void tolerationsTest() { + // TODO: test tolerations + } + + /** + * Test the property 'volumes' + */ + @Test + public void volumesTest() { + // TODO: test volumes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodStatusTest.java new file mode 100644 index 0000000000..15d33e29a3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodStatusTest.java @@ -0,0 +1,136 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ContainerStatus; +import io.kubernetes.client.models.V1PodCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodStatus + */ +public class V1PodStatusTest { + private final V1PodStatus model = new V1PodStatus(); + + /** + * Model tests for V1PodStatus + */ + @Test + public void testV1PodStatus() { + // TODO: test V1PodStatus + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'containerStatuses' + */ + @Test + public void containerStatusesTest() { + // TODO: test containerStatuses + } + + /** + * Test the property 'hostIP' + */ + @Test + public void hostIPTest() { + // TODO: test hostIP + } + + /** + * Test the property 'initContainerStatuses' + */ + @Test + public void initContainerStatusesTest() { + // TODO: test initContainerStatuses + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'nominatedNodeName' + */ + @Test + public void nominatedNodeNameTest() { + // TODO: test nominatedNodeName + } + + /** + * Test the property 'phase' + */ + @Test + public void phaseTest() { + // TODO: test phase + } + + /** + * Test the property 'podIP' + */ + @Test + public void podIPTest() { + // TODO: test podIP + } + + /** + * Test the property 'qosClass' + */ + @Test + public void qosClassTest() { + // TODO: test qosClass + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'startTime' + */ + @Test + public void startTimeTest() { + // TODO: test startTime + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateListTest.java new file mode 100644 index 0000000000..1272821afe --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1PodTemplate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodTemplateList + */ +public class V1PodTemplateListTest { + private final V1PodTemplateList model = new V1PodTemplateList(); + + /** + * Model tests for V1PodTemplateList + */ + @Test + public void testV1PodTemplateList() { + // TODO: test V1PodTemplateList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateSpecTest.java new file mode 100644 index 0000000000..16be6f03b6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PodSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodTemplateSpec + */ +public class V1PodTemplateSpecTest { + private final V1PodTemplateSpec model = new V1PodTemplateSpec(); + + /** + * Model tests for V1PodTemplateSpec + */ + @Test + public void testV1PodTemplateSpec() { + // TODO: test V1PodTemplateSpec + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateTest.java new file mode 100644 index 0000000000..c7ef59ee54 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTemplateTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PodTemplate + */ +public class V1PodTemplateTest { + private final V1PodTemplate model = new V1PodTemplate(); + + /** + * Model tests for V1PodTemplate + */ + @Test + public void testV1PodTemplate() { + // TODO: test V1PodTemplate + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTest.java new file mode 100644 index 0000000000..0135b0ba41 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PodTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PodSpec; +import io.kubernetes.client.models.V1PodStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Pod + */ +public class V1PodTest { + private final V1Pod model = new V1Pod(); + + /** + * Model tests for V1Pod + */ + @Test + public void testV1Pod() { + // TODO: test V1Pod + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PolicyRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PolicyRuleTest.java new file mode 100644 index 0000000000..edf9d893f7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PolicyRuleTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PolicyRule + */ +public class V1PolicyRuleTest { + private final V1PolicyRule model = new V1PolicyRule(); + + /** + * Model tests for V1PolicyRule + */ + @Test + public void testV1PolicyRule() { + // TODO: test V1PolicyRule + } + + /** + * Test the property 'apiGroups' + */ + @Test + public void apiGroupsTest() { + // TODO: test apiGroups + } + + /** + * Test the property 'nonResourceURLs' + */ + @Test + public void nonResourceURLsTest() { + // TODO: test nonResourceURLs + } + + /** + * Test the property 'resourceNames' + */ + @Test + public void resourceNamesTest() { + // TODO: test resourceNames + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PortworxVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PortworxVolumeSourceTest.java new file mode 100644 index 0000000000..a8c05811a0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PortworxVolumeSourceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PortworxVolumeSource + */ +public class V1PortworxVolumeSourceTest { + private final V1PortworxVolumeSource model = new V1PortworxVolumeSource(); + + /** + * Model tests for V1PortworxVolumeSource + */ + @Test + public void testV1PortworxVolumeSource() { + // TODO: test V1PortworxVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'volumeID' + */ + @Test + public void volumeIDTest() { + // TODO: test volumeID + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PreconditionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PreconditionsTest.java new file mode 100644 index 0000000000..df30022209 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PreconditionsTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Preconditions + */ +public class V1PreconditionsTest { + private final V1Preconditions model = new V1Preconditions(); + + /** + * Model tests for V1Preconditions + */ + @Test + public void testV1Preconditions() { + // TODO: test V1Preconditions + } + + /** + * Test the property 'resourceVersion' + */ + @Test + public void resourceVersionTest() { + // TODO: test resourceVersion + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PreferredSchedulingTermTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PreferredSchedulingTermTest.java new file mode 100644 index 0000000000..23591bf156 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PreferredSchedulingTermTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeSelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PreferredSchedulingTerm + */ +public class V1PreferredSchedulingTermTest { + private final V1PreferredSchedulingTerm model = new V1PreferredSchedulingTerm(); + + /** + * Model tests for V1PreferredSchedulingTerm + */ + @Test + public void testV1PreferredSchedulingTerm() { + // TODO: test V1PreferredSchedulingTerm + } + + /** + * Test the property 'preference' + */ + @Test + public void preferenceTest() { + // TODO: test preference + } + + /** + * Test the property 'weight' + */ + @Test + public void weightTest() { + // TODO: test weight + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PriorityClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PriorityClassListTest.java new file mode 100644 index 0000000000..010dba768b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PriorityClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1PriorityClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PriorityClassList + */ +public class V1PriorityClassListTest { + private final V1PriorityClassList model = new V1PriorityClassList(); + + /** + * Model tests for V1PriorityClassList + */ + @Test + public void testV1PriorityClassList() { + // TODO: test V1PriorityClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1PriorityClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1PriorityClassTest.java new file mode 100644 index 0000000000..985ca62d72 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1PriorityClassTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1PriorityClass + */ +public class V1PriorityClassTest { + private final V1PriorityClass model = new V1PriorityClass(); + + /** + * Model tests for V1PriorityClass + */ + @Test + public void testV1PriorityClass() { + // TODO: test V1PriorityClass + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'globalDefault' + */ + @Test + public void globalDefaultTest() { + // TODO: test globalDefault + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'preemptionPolicy' + */ + @Test + public void preemptionPolicyTest() { + // TODO: test preemptionPolicy + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ProbeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ProbeTest.java new file mode 100644 index 0000000000..86e9d0ce20 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ProbeTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ExecAction; +import io.kubernetes.client.models.V1HTTPGetAction; +import io.kubernetes.client.models.V1TCPSocketAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Probe + */ +public class V1ProbeTest { + private final V1Probe model = new V1Probe(); + + /** + * Model tests for V1Probe + */ + @Test + public void testV1Probe() { + // TODO: test V1Probe + } + + /** + * Test the property 'exec' + */ + @Test + public void execTest() { + // TODO: test exec + } + + /** + * Test the property 'failureThreshold' + */ + @Test + public void failureThresholdTest() { + // TODO: test failureThreshold + } + + /** + * Test the property 'httpGet' + */ + @Test + public void httpGetTest() { + // TODO: test httpGet + } + + /** + * Test the property 'initialDelaySeconds' + */ + @Test + public void initialDelaySecondsTest() { + // TODO: test initialDelaySeconds + } + + /** + * Test the property 'periodSeconds' + */ + @Test + public void periodSecondsTest() { + // TODO: test periodSeconds + } + + /** + * Test the property 'successThreshold' + */ + @Test + public void successThresholdTest() { + // TODO: test successThreshold + } + + /** + * Test the property 'tcpSocket' + */ + @Test + public void tcpSocketTest() { + // TODO: test tcpSocket + } + + /** + * Test the property 'timeoutSeconds' + */ + @Test + public void timeoutSecondsTest() { + // TODO: test timeoutSeconds + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ProjectedVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ProjectedVolumeSourceTest.java new file mode 100644 index 0000000000..ccd5b86358 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ProjectedVolumeSourceTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1VolumeProjection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ProjectedVolumeSource + */ +public class V1ProjectedVolumeSourceTest { + private final V1ProjectedVolumeSource model = new V1ProjectedVolumeSource(); + + /** + * Model tests for V1ProjectedVolumeSource + */ + @Test + public void testV1ProjectedVolumeSource() { + // TODO: test V1ProjectedVolumeSource + } + + /** + * Test the property 'defaultMode' + */ + @Test + public void defaultModeTest() { + // TODO: test defaultMode + } + + /** + * Test the property 'sources' + */ + @Test + public void sourcesTest() { + // TODO: test sources + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1QuobyteVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1QuobyteVolumeSourceTest.java new file mode 100644 index 0000000000..54fbabc5af --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1QuobyteVolumeSourceTest.java @@ -0,0 +1,91 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1QuobyteVolumeSource + */ +public class V1QuobyteVolumeSourceTest { + private final V1QuobyteVolumeSource model = new V1QuobyteVolumeSource(); + + /** + * Model tests for V1QuobyteVolumeSource + */ + @Test + public void testV1QuobyteVolumeSource() { + // TODO: test V1QuobyteVolumeSource + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'registry' + */ + @Test + public void registryTest() { + // TODO: test registry + } + + /** + * Test the property 'tenant' + */ + @Test + public void tenantTest() { + // TODO: test tenant + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + + /** + * Test the property 'volume' + */ + @Test + public void volumeTest() { + // TODO: test volume + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RBDPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RBDPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..22755eacfa --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RBDPersistentVolumeSourceTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RBDPersistentVolumeSource + */ +public class V1RBDPersistentVolumeSourceTest { + private final V1RBDPersistentVolumeSource model = new V1RBDPersistentVolumeSource(); + + /** + * Model tests for V1RBDPersistentVolumeSource + */ + @Test + public void testV1RBDPersistentVolumeSource() { + // TODO: test V1RBDPersistentVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'keyring' + */ + @Test + public void keyringTest() { + // TODO: test keyring + } + + /** + * Test the property 'monitors' + */ + @Test + public void monitorsTest() { + // TODO: test monitors + } + + /** + * Test the property 'pool' + */ + @Test + public void poolTest() { + // TODO: test pool + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RBDVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RBDVolumeSourceTest.java new file mode 100644 index 0000000000..ba6ceebbf5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RBDVolumeSourceTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RBDVolumeSource + */ +public class V1RBDVolumeSourceTest { + private final V1RBDVolumeSource model = new V1RBDVolumeSource(); + + /** + * Model tests for V1RBDVolumeSource + */ + @Test + public void testV1RBDVolumeSource() { + // TODO: test V1RBDVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'keyring' + */ + @Test + public void keyringTest() { + // TODO: test keyring + } + + /** + * Test the property 'monitors' + */ + @Test + public void monitorsTest() { + // TODO: test monitors + } + + /** + * Test the property 'pool' + */ + @Test + public void poolTest() { + // TODO: test pool + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetConditionTest.java new file mode 100644 index 0000000000..70a34efd68 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicaSetCondition + */ +public class V1ReplicaSetConditionTest { + private final V1ReplicaSetCondition model = new V1ReplicaSetCondition(); + + /** + * Model tests for V1ReplicaSetCondition + */ + @Test + public void testV1ReplicaSetCondition() { + // TODO: test V1ReplicaSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetListTest.java new file mode 100644 index 0000000000..b21bcd3335 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1ReplicaSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicaSetList + */ +public class V1ReplicaSetListTest { + private final V1ReplicaSetList model = new V1ReplicaSetList(); + + /** + * Model tests for V1ReplicaSetList + */ + @Test + public void testV1ReplicaSetList() { + // TODO: test V1ReplicaSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetSpecTest.java new file mode 100644 index 0000000000..f1c6b1e6f1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetSpecTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicaSetSpec + */ +public class V1ReplicaSetSpecTest { + private final V1ReplicaSetSpec model = new V1ReplicaSetSpec(); + + /** + * Model tests for V1ReplicaSetSpec + */ + @Test + public void testV1ReplicaSetSpec() { + // TODO: test V1ReplicaSetSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetStatusTest.java new file mode 100644 index 0000000000..8736106ad8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetStatusTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ReplicaSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicaSetStatus + */ +public class V1ReplicaSetStatusTest { + private final V1ReplicaSetStatus model = new V1ReplicaSetStatus(); + + /** + * Model tests for V1ReplicaSetStatus + */ + @Test + public void testV1ReplicaSetStatus() { + // TODO: test V1ReplicaSetStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'fullyLabeledReplicas' + */ + @Test + public void fullyLabeledReplicasTest() { + // TODO: test fullyLabeledReplicas + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetTest.java new file mode 100644 index 0000000000..463bd8bdf3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicaSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ReplicaSetSpec; +import io.kubernetes.client.models.V1ReplicaSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicaSet + */ +public class V1ReplicaSetTest { + private final V1ReplicaSet model = new V1ReplicaSet(); + + /** + * Model tests for V1ReplicaSet + */ + @Test + public void testV1ReplicaSet() { + // TODO: test V1ReplicaSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerConditionTest.java new file mode 100644 index 0000000000..685dd9030b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicationControllerCondition + */ +public class V1ReplicationControllerConditionTest { + private final V1ReplicationControllerCondition model = new V1ReplicationControllerCondition(); + + /** + * Model tests for V1ReplicationControllerCondition + */ + @Test + public void testV1ReplicationControllerCondition() { + // TODO: test V1ReplicationControllerCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerListTest.java new file mode 100644 index 0000000000..5659cfe964 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1ReplicationController; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicationControllerList + */ +public class V1ReplicationControllerListTest { + private final V1ReplicationControllerList model = new V1ReplicationControllerList(); + + /** + * Model tests for V1ReplicationControllerList + */ + @Test + public void testV1ReplicationControllerList() { + // TODO: test V1ReplicationControllerList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerSpecTest.java new file mode 100644 index 0000000000..19a7f8d518 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerSpecTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicationControllerSpec + */ +public class V1ReplicationControllerSpecTest { + private final V1ReplicationControllerSpec model = new V1ReplicationControllerSpec(); + + /** + * Model tests for V1ReplicationControllerSpec + */ + @Test + public void testV1ReplicationControllerSpec() { + // TODO: test V1ReplicationControllerSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerStatusTest.java new file mode 100644 index 0000000000..f0f7206913 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerStatusTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ReplicationControllerCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicationControllerStatus + */ +public class V1ReplicationControllerStatusTest { + private final V1ReplicationControllerStatus model = new V1ReplicationControllerStatus(); + + /** + * Model tests for V1ReplicationControllerStatus + */ + @Test + public void testV1ReplicationControllerStatus() { + // TODO: test V1ReplicationControllerStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'fullyLabeledReplicas' + */ + @Test + public void fullyLabeledReplicasTest() { + // TODO: test fullyLabeledReplicas + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerTest.java new file mode 100644 index 0000000000..1308bdbd4f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ReplicationControllerTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ReplicationControllerSpec; +import io.kubernetes.client.models.V1ReplicationControllerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ReplicationController + */ +public class V1ReplicationControllerTest { + private final V1ReplicationController model = new V1ReplicationController(); + + /** + * Model tests for V1ReplicationController + */ + @Test + public void testV1ReplicationController() { + // TODO: test V1ReplicationController + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceAttributesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceAttributesTest.java new file mode 100644 index 0000000000..0c3bf42bde --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceAttributesTest.java @@ -0,0 +1,99 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceAttributes + */ +public class V1ResourceAttributesTest { + private final V1ResourceAttributes model = new V1ResourceAttributes(); + + /** + * Model tests for V1ResourceAttributes + */ + @Test + public void testV1ResourceAttributes() { + // TODO: test V1ResourceAttributes + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'subresource' + */ + @Test + public void subresourceTest() { + // TODO: test subresource + } + + /** + * Test the property 'verb' + */ + @Test + public void verbTest() { + // TODO: test verb + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceFieldSelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceFieldSelectorTest.java new file mode 100644 index 0000000000..ca51138922 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceFieldSelectorTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceFieldSelector + */ +public class V1ResourceFieldSelectorTest { + private final V1ResourceFieldSelector model = new V1ResourceFieldSelector(); + + /** + * Model tests for V1ResourceFieldSelector + */ + @Test + public void testV1ResourceFieldSelector() { + // TODO: test V1ResourceFieldSelector + } + + /** + * Test the property 'containerName' + */ + @Test + public void containerNameTest() { + // TODO: test containerName + } + + /** + * Test the property 'divisor' + */ + @Test + public void divisorTest() { + // TODO: test divisor + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaListTest.java new file mode 100644 index 0000000000..a5368d0302 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1ResourceQuota; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceQuotaList + */ +public class V1ResourceQuotaListTest { + private final V1ResourceQuotaList model = new V1ResourceQuotaList(); + + /** + * Model tests for V1ResourceQuotaList + */ + @Test + public void testV1ResourceQuotaList() { + // TODO: test V1ResourceQuotaList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaSpecTest.java new file mode 100644 index 0000000000..0766e8568b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaSpecTest.java @@ -0,0 +1,72 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ScopeSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceQuotaSpec + */ +public class V1ResourceQuotaSpecTest { + private final V1ResourceQuotaSpec model = new V1ResourceQuotaSpec(); + + /** + * Model tests for V1ResourceQuotaSpec + */ + @Test + public void testV1ResourceQuotaSpec() { + // TODO: test V1ResourceQuotaSpec + } + + /** + * Test the property 'hard' + */ + @Test + public void hardTest() { + // TODO: test hard + } + + /** + * Test the property 'scopeSelector' + */ + @Test + public void scopeSelectorTest() { + // TODO: test scopeSelector + } + + /** + * Test the property 'scopes' + */ + @Test + public void scopesTest() { + // TODO: test scopes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaStatusTest.java new file mode 100644 index 0000000000..09e684f3cd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaStatusTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceQuotaStatus + */ +public class V1ResourceQuotaStatusTest { + private final V1ResourceQuotaStatus model = new V1ResourceQuotaStatus(); + + /** + * Model tests for V1ResourceQuotaStatus + */ + @Test + public void testV1ResourceQuotaStatus() { + // TODO: test V1ResourceQuotaStatus + } + + /** + * Test the property 'hard' + */ + @Test + public void hardTest() { + // TODO: test hard + } + + /** + * Test the property 'used' + */ + @Test + public void usedTest() { + // TODO: test used + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaTest.java new file mode 100644 index 0000000000..653d9e03e2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceQuotaTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ResourceQuotaSpec; +import io.kubernetes.client.models.V1ResourceQuotaStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceQuota + */ +public class V1ResourceQuotaTest { + private final V1ResourceQuota model = new V1ResourceQuota(); + + /** + * Model tests for V1ResourceQuota + */ + @Test + public void testV1ResourceQuota() { + // TODO: test V1ResourceQuota + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceRequirementsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceRequirementsTest.java new file mode 100644 index 0000000000..bdf258c0e3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceRequirementsTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceRequirements + */ +public class V1ResourceRequirementsTest { + private final V1ResourceRequirements model = new V1ResourceRequirements(); + + /** + * Model tests for V1ResourceRequirements + */ + @Test + public void testV1ResourceRequirements() { + // TODO: test V1ResourceRequirements + } + + /** + * Test the property 'limits' + */ + @Test + public void limitsTest() { + // TODO: test limits + } + + /** + * Test the property 'requests' + */ + @Test + public void requestsTest() { + // TODO: test requests + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceRuleTest.java new file mode 100644 index 0000000000..51f068644f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ResourceRuleTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ResourceRule + */ +public class V1ResourceRuleTest { + private final V1ResourceRule model = new V1ResourceRule(); + + /** + * Model tests for V1ResourceRule + */ + @Test + public void testV1ResourceRule() { + // TODO: test V1ResourceRule + } + + /** + * Test the property 'apiGroups' + */ + @Test + public void apiGroupsTest() { + // TODO: test apiGroups + } + + /** + * Test the property 'resourceNames' + */ + @Test + public void resourceNamesTest() { + // TODO: test resourceNames + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleBindingListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleBindingListTest.java new file mode 100644 index 0000000000..a929cee1a3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleBindingListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1RoleBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RoleBindingList + */ +public class V1RoleBindingListTest { + private final V1RoleBindingList model = new V1RoleBindingList(); + + /** + * Model tests for V1RoleBindingList + */ + @Test + public void testV1RoleBindingList() { + // TODO: test V1RoleBindingList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleBindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleBindingTest.java new file mode 100644 index 0000000000..d065da8835 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleBindingTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1RoleRef; +import io.kubernetes.client.models.V1Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RoleBinding + */ +public class V1RoleBindingTest { + private final V1RoleBinding model = new V1RoleBinding(); + + /** + * Model tests for V1RoleBinding + */ + @Test + public void testV1RoleBinding() { + // TODO: test V1RoleBinding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'roleRef' + */ + @Test + public void roleRefTest() { + // TODO: test roleRef + } + + /** + * Test the property 'subjects' + */ + @Test + public void subjectsTest() { + // TODO: test subjects + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleListTest.java new file mode 100644 index 0000000000..52802fdda3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1Role; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RoleList + */ +public class V1RoleListTest { + private final V1RoleList model = new V1RoleList(); + + /** + * Model tests for V1RoleList + */ + @Test + public void testV1RoleList() { + // TODO: test V1RoleList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleRefTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleRefTest.java new file mode 100644 index 0000000000..dfb4882ddf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleRefTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RoleRef + */ +public class V1RoleRefTest { + private final V1RoleRef model = new V1RoleRef(); + + /** + * Model tests for V1RoleRef + */ + @Test + public void testV1RoleRef() { + // TODO: test V1RoleRef + } + + /** + * Test the property 'apiGroup' + */ + @Test + public void apiGroupTest() { + // TODO: test apiGroup + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleTest.java new file mode 100644 index 0000000000..1199f8a98c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RoleTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Role + */ +public class V1RoleTest { + private final V1Role model = new V1Role(); + + /** + * Model tests for V1Role + */ + @Test + public void testV1Role() { + // TODO: test V1Role + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateDaemonSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateDaemonSetTest.java new file mode 100644 index 0000000000..d7255e4daf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateDaemonSetTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RollingUpdateDaemonSet + */ +public class V1RollingUpdateDaemonSetTest { + private final V1RollingUpdateDaemonSet model = new V1RollingUpdateDaemonSet(); + + /** + * Model tests for V1RollingUpdateDaemonSet + */ + @Test + public void testV1RollingUpdateDaemonSet() { + // TODO: test V1RollingUpdateDaemonSet + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateDeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateDeploymentTest.java new file mode 100644 index 0000000000..b10628f65e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateDeploymentTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RollingUpdateDeployment + */ +public class V1RollingUpdateDeploymentTest { + private final V1RollingUpdateDeployment model = new V1RollingUpdateDeployment(); + + /** + * Model tests for V1RollingUpdateDeployment + */ + @Test + public void testV1RollingUpdateDeployment() { + // TODO: test V1RollingUpdateDeployment + } + + /** + * Test the property 'maxSurge' + */ + @Test + public void maxSurgeTest() { + // TODO: test maxSurge + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategyTest.java new file mode 100644 index 0000000000..4db3faed95 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1RollingUpdateStatefulSetStrategyTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1RollingUpdateStatefulSetStrategy + */ +public class V1RollingUpdateStatefulSetStrategyTest { + private final V1RollingUpdateStatefulSetStrategy model = new V1RollingUpdateStatefulSetStrategy(); + + /** + * Model tests for V1RollingUpdateStatefulSetStrategy + */ + @Test + public void testV1RollingUpdateStatefulSetStrategy() { + // TODO: test V1RollingUpdateStatefulSetStrategy + } + + /** + * Test the property 'partition' + */ + @Test + public void partitionTest() { + // TODO: test partition + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SELinuxOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SELinuxOptionsTest.java new file mode 100644 index 0000000000..978e55890b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SELinuxOptionsTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SELinuxOptions + */ +public class V1SELinuxOptionsTest { + private final V1SELinuxOptions model = new V1SELinuxOptions(); + + /** + * Model tests for V1SELinuxOptions + */ + @Test + public void testV1SELinuxOptions() { + // TODO: test V1SELinuxOptions + } + + /** + * Test the property 'level' + */ + @Test + public void levelTest() { + // TODO: test level + } + + /** + * Test the property 'role' + */ + @Test + public void roleTest() { + // TODO: test role + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..50b4a7fc91 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleIOPersistentVolumeSourceTest.java @@ -0,0 +1,124 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1SecretReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ScaleIOPersistentVolumeSource + */ +public class V1ScaleIOPersistentVolumeSourceTest { + private final V1ScaleIOPersistentVolumeSource model = new V1ScaleIOPersistentVolumeSource(); + + /** + * Model tests for V1ScaleIOPersistentVolumeSource + */ + @Test + public void testV1ScaleIOPersistentVolumeSource() { + // TODO: test V1ScaleIOPersistentVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'gateway' + */ + @Test + public void gatewayTest() { + // TODO: test gateway + } + + /** + * Test the property 'protectionDomain' + */ + @Test + public void protectionDomainTest() { + // TODO: test protectionDomain + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'sslEnabled' + */ + @Test + public void sslEnabledTest() { + // TODO: test sslEnabled + } + + /** + * Test the property 'storageMode' + */ + @Test + public void storageModeTest() { + // TODO: test storageMode + } + + /** + * Test the property 'storagePool' + */ + @Test + public void storagePoolTest() { + // TODO: test storagePool + } + + /** + * Test the property 'system' + */ + @Test + public void systemTest() { + // TODO: test system + } + + /** + * Test the property 'volumeName' + */ + @Test + public void volumeNameTest() { + // TODO: test volumeName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleIOVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleIOVolumeSourceTest.java new file mode 100644 index 0000000000..c3352fc888 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleIOVolumeSourceTest.java @@ -0,0 +1,124 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ScaleIOVolumeSource + */ +public class V1ScaleIOVolumeSourceTest { + private final V1ScaleIOVolumeSource model = new V1ScaleIOVolumeSource(); + + /** + * Model tests for V1ScaleIOVolumeSource + */ + @Test + public void testV1ScaleIOVolumeSource() { + // TODO: test V1ScaleIOVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'gateway' + */ + @Test + public void gatewayTest() { + // TODO: test gateway + } + + /** + * Test the property 'protectionDomain' + */ + @Test + public void protectionDomainTest() { + // TODO: test protectionDomain + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'sslEnabled' + */ + @Test + public void sslEnabledTest() { + // TODO: test sslEnabled + } + + /** + * Test the property 'storageMode' + */ + @Test + public void storageModeTest() { + // TODO: test storageMode + } + + /** + * Test the property 'storagePool' + */ + @Test + public void storagePoolTest() { + // TODO: test storagePool + } + + /** + * Test the property 'system' + */ + @Test + public void systemTest() { + // TODO: test system + } + + /** + * Test the property 'volumeName' + */ + @Test + public void volumeNameTest() { + // TODO: test volumeName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleSpecTest.java new file mode 100644 index 0000000000..d61589bd6a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ScaleSpec + */ +public class V1ScaleSpecTest { + private final V1ScaleSpec model = new V1ScaleSpec(); + + /** + * Model tests for V1ScaleSpec + */ + @Test + public void testV1ScaleSpec() { + // TODO: test V1ScaleSpec + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleStatusTest.java new file mode 100644 index 0000000000..817688716e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleStatusTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ScaleStatus + */ +public class V1ScaleStatusTest { + private final V1ScaleStatus model = new V1ScaleStatus(); + + /** + * Model tests for V1ScaleStatus + */ + @Test + public void testV1ScaleStatus() { + // TODO: test V1ScaleStatus + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleTest.java new file mode 100644 index 0000000000..b68d15c5bf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScaleTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ScaleSpec; +import io.kubernetes.client.models.V1ScaleStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Scale + */ +public class V1ScaleTest { + private final V1Scale model = new V1Scale(); + + /** + * Model tests for V1Scale + */ + @Test + public void testV1Scale() { + // TODO: test V1Scale + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScopeSelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScopeSelectorTest.java new file mode 100644 index 0000000000..a3ac2f02cf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScopeSelectorTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ScopedResourceSelectorRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ScopeSelector + */ +public class V1ScopeSelectorTest { + private final V1ScopeSelector model = new V1ScopeSelector(); + + /** + * Model tests for V1ScopeSelector + */ + @Test + public void testV1ScopeSelector() { + // TODO: test V1ScopeSelector + } + + /** + * Test the property 'matchExpressions' + */ + @Test + public void matchExpressionsTest() { + // TODO: test matchExpressions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirementTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirementTest.java new file mode 100644 index 0000000000..9f4cb01064 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ScopedResourceSelectorRequirementTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ScopedResourceSelectorRequirement + */ +public class V1ScopedResourceSelectorRequirementTest { + private final V1ScopedResourceSelectorRequirement model = new V1ScopedResourceSelectorRequirement(); + + /** + * Model tests for V1ScopedResourceSelectorRequirement + */ + @Test + public void testV1ScopedResourceSelectorRequirement() { + // TODO: test V1ScopedResourceSelectorRequirement + } + + /** + * Test the property 'operator' + */ + @Test + public void operatorTest() { + // TODO: test operator + } + + /** + * Test the property 'scopeName' + */ + @Test + public void scopeNameTest() { + // TODO: test scopeName + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretEnvSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretEnvSourceTest.java new file mode 100644 index 0000000000..52f54e251c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretEnvSourceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecretEnvSource + */ +public class V1SecretEnvSourceTest { + private final V1SecretEnvSource model = new V1SecretEnvSource(); + + /** + * Model tests for V1SecretEnvSource + */ + @Test + public void testV1SecretEnvSource() { + // TODO: test V1SecretEnvSource + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretKeySelectorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretKeySelectorTest.java new file mode 100644 index 0000000000..84991e86b6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretKeySelectorTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecretKeySelector + */ +public class V1SecretKeySelectorTest { + private final V1SecretKeySelector model = new V1SecretKeySelector(); + + /** + * Model tests for V1SecretKeySelector + */ + @Test + public void testV1SecretKeySelector() { + // TODO: test V1SecretKeySelector + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretListTest.java new file mode 100644 index 0000000000..ab3de480ff --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1Secret; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecretList + */ +public class V1SecretListTest { + private final V1SecretList model = new V1SecretList(); + + /** + * Model tests for V1SecretList + */ + @Test + public void testV1SecretList() { + // TODO: test V1SecretList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretProjectionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretProjectionTest.java new file mode 100644 index 0000000000..9fe0e45804 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretProjectionTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecretProjection + */ +public class V1SecretProjectionTest { + private final V1SecretProjection model = new V1SecretProjection(); + + /** + * Model tests for V1SecretProjection + */ + @Test + public void testV1SecretProjection() { + // TODO: test V1SecretProjection + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretReferenceTest.java new file mode 100644 index 0000000000..f53901c2a2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretReferenceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecretReference + */ +public class V1SecretReferenceTest { + private final V1SecretReference model = new V1SecretReference(); + + /** + * Model tests for V1SecretReference + */ + @Test + public void testV1SecretReference() { + // TODO: test V1SecretReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretTest.java new file mode 100644 index 0000000000..8fb69b775f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretTest.java @@ -0,0 +1,95 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Secret + */ +public class V1SecretTest { + private final V1Secret model = new V1Secret(); + + /** + * Model tests for V1Secret + */ + @Test + public void testV1Secret() { + // TODO: test V1Secret + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'stringData' + */ + @Test + public void stringDataTest() { + // TODO: test stringData + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretVolumeSourceTest.java new file mode 100644 index 0000000000..353052666d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecretVolumeSourceTest.java @@ -0,0 +1,78 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1KeyToPath; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecretVolumeSource + */ +public class V1SecretVolumeSourceTest { + private final V1SecretVolumeSource model = new V1SecretVolumeSource(); + + /** + * Model tests for V1SecretVolumeSource + */ + @Test + public void testV1SecretVolumeSource() { + // TODO: test V1SecretVolumeSource + } + + /** + * Test the property 'defaultMode' + */ + @Test + public void defaultModeTest() { + // TODO: test defaultMode + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + + /** + * Test the property 'secretName' + */ + @Test + public void secretNameTest() { + // TODO: test secretName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SecurityContextTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecurityContextTest.java new file mode 100644 index 0000000000..9711d1dbee --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SecurityContextTest.java @@ -0,0 +1,126 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1Capabilities; +import io.kubernetes.client.models.V1SELinuxOptions; +import io.kubernetes.client.models.V1WindowsSecurityContextOptions; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SecurityContext + */ +public class V1SecurityContextTest { + private final V1SecurityContext model = new V1SecurityContext(); + + /** + * Model tests for V1SecurityContext + */ + @Test + public void testV1SecurityContext() { + // TODO: test V1SecurityContext + } + + /** + * Test the property 'allowPrivilegeEscalation' + */ + @Test + public void allowPrivilegeEscalationTest() { + // TODO: test allowPrivilegeEscalation + } + + /** + * Test the property 'capabilities' + */ + @Test + public void capabilitiesTest() { + // TODO: test capabilities + } + + /** + * Test the property 'privileged' + */ + @Test + public void privilegedTest() { + // TODO: test privileged + } + + /** + * Test the property 'procMount' + */ + @Test + public void procMountTest() { + // TODO: test procMount + } + + /** + * Test the property 'readOnlyRootFilesystem' + */ + @Test + public void readOnlyRootFilesystemTest() { + // TODO: test readOnlyRootFilesystem + } + + /** + * Test the property 'runAsGroup' + */ + @Test + public void runAsGroupTest() { + // TODO: test runAsGroup + } + + /** + * Test the property 'runAsNonRoot' + */ + @Test + public void runAsNonRootTest() { + // TODO: test runAsNonRoot + } + + /** + * Test the property 'runAsUser' + */ + @Test + public void runAsUserTest() { + // TODO: test runAsUser + } + + /** + * Test the property 'seLinuxOptions' + */ + @Test + public void seLinuxOptionsTest() { + // TODO: test seLinuxOptions + } + + /** + * Test the property 'windowsOptions' + */ + @Test + public void windowsOptionsTest() { + // TODO: test windowsOptions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpecTest.java new file mode 100644 index 0000000000..7f52a50da5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NonResourceAttributes; +import io.kubernetes.client.models.V1ResourceAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SelfSubjectAccessReviewSpec + */ +public class V1SelfSubjectAccessReviewSpecTest { + private final V1SelfSubjectAccessReviewSpec model = new V1SelfSubjectAccessReviewSpec(); + + /** + * Model tests for V1SelfSubjectAccessReviewSpec + */ + @Test + public void testV1SelfSubjectAccessReviewSpec() { + // TODO: test V1SelfSubjectAccessReviewSpec + } + + /** + * Test the property 'nonResourceAttributes' + */ + @Test + public void nonResourceAttributesTest() { + // TODO: test nonResourceAttributes + } + + /** + * Test the property 'resourceAttributes' + */ + @Test + public void resourceAttributesTest() { + // TODO: test resourceAttributes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewTest.java new file mode 100644 index 0000000000..412a30cbc5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectAccessReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1SelfSubjectAccessReviewSpec; +import io.kubernetes.client.models.V1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SelfSubjectAccessReview + */ +public class V1SelfSubjectAccessReviewTest { + private final V1SelfSubjectAccessReview model = new V1SelfSubjectAccessReview(); + + /** + * Model tests for V1SelfSubjectAccessReview + */ + @Test + public void testV1SelfSubjectAccessReview() { + // TODO: test V1SelfSubjectAccessReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpecTest.java new file mode 100644 index 0000000000..94036aa6b1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SelfSubjectRulesReviewSpec + */ +public class V1SelfSubjectRulesReviewSpecTest { + private final V1SelfSubjectRulesReviewSpec model = new V1SelfSubjectRulesReviewSpec(); + + /** + * Model tests for V1SelfSubjectRulesReviewSpec + */ + @Test + public void testV1SelfSubjectRulesReviewSpec() { + // TODO: test V1SelfSubjectRulesReviewSpec + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewTest.java new file mode 100644 index 0000000000..b681d8023a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SelfSubjectRulesReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1SelfSubjectRulesReviewSpec; +import io.kubernetes.client.models.V1SubjectRulesReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SelfSubjectRulesReview + */ +public class V1SelfSubjectRulesReviewTest { + private final V1SelfSubjectRulesReview model = new V1SelfSubjectRulesReview(); + + /** + * Model tests for V1SelfSubjectRulesReview + */ + @Test + public void testV1SelfSubjectRulesReview() { + // TODO: test V1SelfSubjectRulesReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServerAddressByClientCIDRTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServerAddressByClientCIDRTest.java new file mode 100644 index 0000000000..bea07b6879 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServerAddressByClientCIDRTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServerAddressByClientCIDR + */ +public class V1ServerAddressByClientCIDRTest { + private final V1ServerAddressByClientCIDR model = new V1ServerAddressByClientCIDR(); + + /** + * Model tests for V1ServerAddressByClientCIDR + */ + @Test + public void testV1ServerAddressByClientCIDR() { + // TODO: test V1ServerAddressByClientCIDR + } + + /** + * Test the property 'clientCIDR' + */ + @Test + public void clientCIDRTest() { + // TODO: test clientCIDR + } + + /** + * Test the property 'serverAddress' + */ + @Test + public void serverAddressTest() { + // TODO: test serverAddress + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountListTest.java new file mode 100644 index 0000000000..2801c83468 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1ServiceAccount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceAccountList + */ +public class V1ServiceAccountListTest { + private final V1ServiceAccountList model = new V1ServiceAccountList(); + + /** + * Model tests for V1ServiceAccountList + */ + @Test + public void testV1ServiceAccountList() { + // TODO: test V1ServiceAccountList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountTest.java new file mode 100644 index 0000000000..b4e17fd916 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountTest.java @@ -0,0 +1,96 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceAccount + */ +public class V1ServiceAccountTest { + private final V1ServiceAccount model = new V1ServiceAccount(); + + /** + * Model tests for V1ServiceAccount + */ + @Test + public void testV1ServiceAccount() { + // TODO: test V1ServiceAccount + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'automountServiceAccountToken' + */ + @Test + public void automountServiceAccountTokenTest() { + // TODO: test automountServiceAccountToken + } + + /** + * Test the property 'imagePullSecrets' + */ + @Test + public void imagePullSecretsTest() { + // TODO: test imagePullSecrets + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'secrets' + */ + @Test + public void secretsTest() { + // TODO: test secrets + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountTokenProjectionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountTokenProjectionTest.java new file mode 100644 index 0000000000..6791d90efb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceAccountTokenProjectionTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceAccountTokenProjection + */ +public class V1ServiceAccountTokenProjectionTest { + private final V1ServiceAccountTokenProjection model = new V1ServiceAccountTokenProjection(); + + /** + * Model tests for V1ServiceAccountTokenProjection + */ + @Test + public void testV1ServiceAccountTokenProjection() { + // TODO: test V1ServiceAccountTokenProjection + } + + /** + * Test the property 'audience' + */ + @Test + public void audienceTest() { + // TODO: test audience + } + + /** + * Test the property 'expirationSeconds' + */ + @Test + public void expirationSecondsTest() { + // TODO: test expirationSeconds + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceListTest.java new file mode 100644 index 0000000000..1ace964589 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1Service; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceList + */ +public class V1ServiceListTest { + private final V1ServiceList model = new V1ServiceList(); + + /** + * Model tests for V1ServiceList + */ + @Test + public void testV1ServiceList() { + // TODO: test V1ServiceList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServicePortTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServicePortTest.java new file mode 100644 index 0000000000..3e23dedf14 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServicePortTest.java @@ -0,0 +1,83 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServicePort + */ +public class V1ServicePortTest { + private final V1ServicePort model = new V1ServicePort(); + + /** + * Model tests for V1ServicePort + */ + @Test + public void testV1ServicePort() { + // TODO: test V1ServicePort + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'nodePort' + */ + @Test + public void nodePortTest() { + // TODO: test nodePort + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + + /** + * Test the property 'protocol' + */ + @Test + public void protocolTest() { + // TODO: test protocol + } + + /** + * Test the property 'targetPort' + */ + @Test + public void targetPortTest() { + // TODO: test targetPort + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceReferenceTest.java new file mode 100644 index 0000000000..6954a43ed8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceReference + */ +public class V1ServiceReferenceTest { + private final V1ServiceReference model = new V1ServiceReference(); + + /** + * Model tests for V1ServiceReference + */ + @Test + public void testV1ServiceReference() { + // TODO: test V1ServiceReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceSpecTest.java new file mode 100644 index 0000000000..cc7b4abc98 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceSpecTest.java @@ -0,0 +1,153 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ServicePort; +import io.kubernetes.client.models.V1SessionAffinityConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceSpec + */ +public class V1ServiceSpecTest { + private final V1ServiceSpec model = new V1ServiceSpec(); + + /** + * Model tests for V1ServiceSpec + */ + @Test + public void testV1ServiceSpec() { + // TODO: test V1ServiceSpec + } + + /** + * Test the property 'clusterIP' + */ + @Test + public void clusterIPTest() { + // TODO: test clusterIP + } + + /** + * Test the property 'externalIPs' + */ + @Test + public void externalIPsTest() { + // TODO: test externalIPs + } + + /** + * Test the property 'externalName' + */ + @Test + public void externalNameTest() { + // TODO: test externalName + } + + /** + * Test the property 'externalTrafficPolicy' + */ + @Test + public void externalTrafficPolicyTest() { + // TODO: test externalTrafficPolicy + } + + /** + * Test the property 'healthCheckNodePort' + */ + @Test + public void healthCheckNodePortTest() { + // TODO: test healthCheckNodePort + } + + /** + * Test the property 'loadBalancerIP' + */ + @Test + public void loadBalancerIPTest() { + // TODO: test loadBalancerIP + } + + /** + * Test the property 'loadBalancerSourceRanges' + */ + @Test + public void loadBalancerSourceRangesTest() { + // TODO: test loadBalancerSourceRanges + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + + /** + * Test the property 'publishNotReadyAddresses' + */ + @Test + public void publishNotReadyAddressesTest() { + // TODO: test publishNotReadyAddresses + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'sessionAffinity' + */ + @Test + public void sessionAffinityTest() { + // TODO: test sessionAffinity + } + + /** + * Test the property 'sessionAffinityConfig' + */ + @Test + public void sessionAffinityConfigTest() { + // TODO: test sessionAffinityConfig + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceStatusTest.java new file mode 100644 index 0000000000..60bf2b9341 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceStatusTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LoadBalancerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1ServiceStatus + */ +public class V1ServiceStatusTest { + private final V1ServiceStatus model = new V1ServiceStatus(); + + /** + * Model tests for V1ServiceStatus + */ + @Test + public void testV1ServiceStatus() { + // TODO: test V1ServiceStatus + } + + /** + * Test the property 'loadBalancer' + */ + @Test + public void loadBalancerTest() { + // TODO: test loadBalancer + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceTest.java new file mode 100644 index 0000000000..fb00387f28 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1ServiceTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ServiceSpec; +import io.kubernetes.client.models.V1ServiceStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Service + */ +public class V1ServiceTest { + private final V1Service model = new V1Service(); + + /** + * Model tests for V1Service + */ + @Test + public void testV1Service() { + // TODO: test V1Service + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SessionAffinityConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SessionAffinityConfigTest.java new file mode 100644 index 0000000000..7a9d746836 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SessionAffinityConfigTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ClientIPConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SessionAffinityConfig + */ +public class V1SessionAffinityConfigTest { + private final V1SessionAffinityConfig model = new V1SessionAffinityConfig(); + + /** + * Model tests for V1SessionAffinityConfig + */ + @Test + public void testV1SessionAffinityConfig() { + // TODO: test V1SessionAffinityConfig + } + + /** + * Test the property 'clientIP' + */ + @Test + public void clientIPTest() { + // TODO: test clientIP + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetConditionTest.java new file mode 100644 index 0000000000..b718c51b7a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatefulSetCondition + */ +public class V1StatefulSetConditionTest { + private final V1StatefulSetCondition model = new V1StatefulSetCondition(); + + /** + * Model tests for V1StatefulSetCondition + */ + @Test + public void testV1StatefulSetCondition() { + // TODO: test V1StatefulSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetListTest.java new file mode 100644 index 0000000000..f8f2309d1a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1StatefulSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatefulSetList + */ +public class V1StatefulSetListTest { + private final V1StatefulSetList model = new V1StatefulSetList(); + + /** + * Model tests for V1StatefulSetList + */ + @Test + public void testV1StatefulSetList() { + // TODO: test V1StatefulSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetSpecTest.java new file mode 100644 index 0000000000..ae074fd248 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetSpecTest.java @@ -0,0 +1,113 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PersistentVolumeClaim; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.kubernetes.client.models.V1StatefulSetUpdateStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatefulSetSpec + */ +public class V1StatefulSetSpecTest { + private final V1StatefulSetSpec model = new V1StatefulSetSpec(); + + /** + * Model tests for V1StatefulSetSpec + */ + @Test + public void testV1StatefulSetSpec() { + // TODO: test V1StatefulSetSpec + } + + /** + * Test the property 'podManagementPolicy' + */ + @Test + public void podManagementPolicyTest() { + // TODO: test podManagementPolicy + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'serviceName' + */ + @Test + public void serviceNameTest() { + // TODO: test serviceName + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'updateStrategy' + */ + @Test + public void updateStrategyTest() { + // TODO: test updateStrategy + } + + /** + * Test the property 'volumeClaimTemplates' + */ + @Test + public void volumeClaimTemplatesTest() { + // TODO: test volumeClaimTemplates + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetStatusTest.java new file mode 100644 index 0000000000..26e7ea4dbf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetStatusTest.java @@ -0,0 +1,118 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1StatefulSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatefulSetStatus + */ +public class V1StatefulSetStatusTest { + private final V1StatefulSetStatus model = new V1StatefulSetStatus(); + + /** + * Model tests for V1StatefulSetStatus + */ + @Test + public void testV1StatefulSetStatus() { + // TODO: test V1StatefulSetStatus + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentReplicas' + */ + @Test + public void currentReplicasTest() { + // TODO: test currentReplicas + } + + /** + * Test the property 'currentRevision' + */ + @Test + public void currentRevisionTest() { + // TODO: test currentRevision + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'updateRevision' + */ + @Test + public void updateRevisionTest() { + // TODO: test updateRevision + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetTest.java new file mode 100644 index 0000000000..bcbc6271d2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1StatefulSetSpec; +import io.kubernetes.client.models.V1StatefulSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatefulSet + */ +public class V1StatefulSetTest { + private final V1StatefulSet model = new V1StatefulSet(); + + /** + * Model tests for V1StatefulSet + */ + @Test + public void testV1StatefulSet() { + // TODO: test V1StatefulSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategyTest.java new file mode 100644 index 0000000000..32392ac492 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatefulSetUpdateStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1RollingUpdateStatefulSetStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatefulSetUpdateStrategy + */ +public class V1StatefulSetUpdateStrategyTest { + private final V1StatefulSetUpdateStrategy model = new V1StatefulSetUpdateStrategy(); + + /** + * Model tests for V1StatefulSetUpdateStrategy + */ + @Test + public void testV1StatefulSetUpdateStrategy() { + // TODO: test V1StatefulSetUpdateStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusCauseTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusCauseTest.java new file mode 100644 index 0000000000..d829d01bdd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusCauseTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatusCause + */ +public class V1StatusCauseTest { + private final V1StatusCause model = new V1StatusCause(); + + /** + * Model tests for V1StatusCause + */ + @Test + public void testV1StatusCause() { + // TODO: test V1StatusCause + } + + /** + * Test the property 'field' + */ + @Test + public void fieldTest() { + // TODO: test field + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusDetailsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusDetailsTest.java new file mode 100644 index 0000000000..146ff7d703 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusDetailsTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1StatusCause; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StatusDetails + */ +public class V1StatusDetailsTest { + private final V1StatusDetails model = new V1StatusDetails(); + + /** + * Model tests for V1StatusDetails + */ + @Test + public void testV1StatusDetails() { + // TODO: test V1StatusDetails + } + + /** + * Test the property 'causes' + */ + @Test + public void causesTest() { + // TODO: test causes + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'retryAfterSeconds' + */ + @Test + public void retryAfterSecondsTest() { + // TODO: test retryAfterSeconds + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusTest.java new file mode 100644 index 0000000000..389219d959 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StatusTest.java @@ -0,0 +1,109 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1StatusDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Status + */ +public class V1StatusTest { + private final V1Status model = new V1Status(); + + /** + * Model tests for V1Status + */ + @Test + public void testV1Status() { + // TODO: test V1Status + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'details' + */ + @Test + public void detailsTest() { + // TODO: test details + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageClassListTest.java new file mode 100644 index 0000000000..5f5d1107c6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1StorageClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StorageClassList + */ +public class V1StorageClassListTest { + private final V1StorageClassList model = new V1StorageClassList(); + + /** + * Model tests for V1StorageClassList + */ + @Test + public void testV1StorageClassList() { + // TODO: test V1StorageClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageClassTest.java new file mode 100644 index 0000000000..d1b4b83f25 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageClassTest.java @@ -0,0 +1,129 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1TopologySelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StorageClass + */ +public class V1StorageClassTest { + private final V1StorageClass model = new V1StorageClass(); + + /** + * Model tests for V1StorageClass + */ + @Test + public void testV1StorageClass() { + // TODO: test V1StorageClass + } + + /** + * Test the property 'allowVolumeExpansion' + */ + @Test + public void allowVolumeExpansionTest() { + // TODO: test allowVolumeExpansion + } + + /** + * Test the property 'allowedTopologies' + */ + @Test + public void allowedTopologiesTest() { + // TODO: test allowedTopologies + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'mountOptions' + */ + @Test + public void mountOptionsTest() { + // TODO: test mountOptions + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'provisioner' + */ + @Test + public void provisionerTest() { + // TODO: test provisioner + } + + /** + * Test the property 'reclaimPolicy' + */ + @Test + public void reclaimPolicyTest() { + // TODO: test reclaimPolicy + } + + /** + * Test the property 'volumeBindingMode' + */ + @Test + public void volumeBindingModeTest() { + // TODO: test volumeBindingMode + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSourceTest.java new file mode 100644 index 0000000000..1cc01016a8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageOSPersistentVolumeSourceTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StorageOSPersistentVolumeSource + */ +public class V1StorageOSPersistentVolumeSourceTest { + private final V1StorageOSPersistentVolumeSource model = new V1StorageOSPersistentVolumeSource(); + + /** + * Model tests for V1StorageOSPersistentVolumeSource + */ + @Test + public void testV1StorageOSPersistentVolumeSource() { + // TODO: test V1StorageOSPersistentVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'volumeName' + */ + @Test + public void volumeNameTest() { + // TODO: test volumeName + } + + /** + * Test the property 'volumeNamespace' + */ + @Test + public void volumeNamespaceTest() { + // TODO: test volumeNamespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageOSVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageOSVolumeSourceTest.java new file mode 100644 index 0000000000..4d474385e2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1StorageOSVolumeSourceTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LocalObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1StorageOSVolumeSource + */ +public class V1StorageOSVolumeSourceTest { + private final V1StorageOSVolumeSource model = new V1StorageOSVolumeSource(); + + /** + * Model tests for V1StorageOSVolumeSource + */ + @Test + public void testV1StorageOSVolumeSource() { + // TODO: test V1StorageOSVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'secretRef' + */ + @Test + public void secretRefTest() { + // TODO: test secretRef + } + + /** + * Test the property 'volumeName' + */ + @Test + public void volumeNameTest() { + // TODO: test volumeName + } + + /** + * Test the property 'volumeNamespace' + */ + @Test + public void volumeNamespaceTest() { + // TODO: test volumeNamespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewSpecTest.java new file mode 100644 index 0000000000..cc920fbebe --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewSpecTest.java @@ -0,0 +1,97 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NonResourceAttributes; +import io.kubernetes.client.models.V1ResourceAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SubjectAccessReviewSpec + */ +public class V1SubjectAccessReviewSpecTest { + private final V1SubjectAccessReviewSpec model = new V1SubjectAccessReviewSpec(); + + /** + * Model tests for V1SubjectAccessReviewSpec + */ + @Test + public void testV1SubjectAccessReviewSpec() { + // TODO: test V1SubjectAccessReviewSpec + } + + /** + * Test the property 'extra' + */ + @Test + public void extraTest() { + // TODO: test extra + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'nonResourceAttributes' + */ + @Test + public void nonResourceAttributesTest() { + // TODO: test nonResourceAttributes + } + + /** + * Test the property 'resourceAttributes' + */ + @Test + public void resourceAttributesTest() { + // TODO: test resourceAttributes + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewStatusTest.java new file mode 100644 index 0000000000..df845e0cb6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewStatusTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SubjectAccessReviewStatus + */ +public class V1SubjectAccessReviewStatusTest { + private final V1SubjectAccessReviewStatus model = new V1SubjectAccessReviewStatus(); + + /** + * Model tests for V1SubjectAccessReviewStatus + */ + @Test + public void testV1SubjectAccessReviewStatus() { + // TODO: test V1SubjectAccessReviewStatus + } + + /** + * Test the property 'allowed' + */ + @Test + public void allowedTest() { + // TODO: test allowed + } + + /** + * Test the property 'denied' + */ + @Test + public void deniedTest() { + // TODO: test denied + } + + /** + * Test the property 'evaluationError' + */ + @Test + public void evaluationErrorTest() { + // TODO: test evaluationError + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewTest.java new file mode 100644 index 0000000000..5cffd06c15 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectAccessReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1SubjectAccessReviewSpec; +import io.kubernetes.client.models.V1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SubjectAccessReview + */ +public class V1SubjectAccessReviewTest { + private final V1SubjectAccessReview model = new V1SubjectAccessReview(); + + /** + * Model tests for V1SubjectAccessReview + */ + @Test + public void testV1SubjectAccessReview() { + // TODO: test V1SubjectAccessReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectRulesReviewStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectRulesReviewStatusTest.java new file mode 100644 index 0000000000..61e5b45719 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectRulesReviewStatusTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NonResourceRule; +import io.kubernetes.client.models.V1ResourceRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1SubjectRulesReviewStatus + */ +public class V1SubjectRulesReviewStatusTest { + private final V1SubjectRulesReviewStatus model = new V1SubjectRulesReviewStatus(); + + /** + * Model tests for V1SubjectRulesReviewStatus + */ + @Test + public void testV1SubjectRulesReviewStatus() { + // TODO: test V1SubjectRulesReviewStatus + } + + /** + * Test the property 'evaluationError' + */ + @Test + public void evaluationErrorTest() { + // TODO: test evaluationError + } + + /** + * Test the property 'incomplete' + */ + @Test + public void incompleteTest() { + // TODO: test incomplete + } + + /** + * Test the property 'nonResourceRules' + */ + @Test + public void nonResourceRulesTest() { + // TODO: test nonResourceRules + } + + /** + * Test the property 'resourceRules' + */ + @Test + public void resourceRulesTest() { + // TODO: test resourceRules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectTest.java new file mode 100644 index 0000000000..1b4e2c3ea7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SubjectTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Subject + */ +public class V1SubjectTest { + private final V1Subject model = new V1Subject(); + + /** + * Model tests for V1Subject + */ + @Test + public void testV1Subject() { + // TODO: test V1Subject + } + + /** + * Test the property 'apiGroup' + */ + @Test + public void apiGroupTest() { + // TODO: test apiGroup + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1SysctlTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1SysctlTest.java new file mode 100644 index 0000000000..6c2335a173 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1SysctlTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Sysctl + */ +public class V1SysctlTest { + private final V1Sysctl model = new V1Sysctl(); + + /** + * Model tests for V1Sysctl + */ + @Test + public void testV1Sysctl() { + // TODO: test V1Sysctl + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TCPSocketActionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TCPSocketActionTest.java new file mode 100644 index 0000000000..97e505dd2b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TCPSocketActionTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TCPSocketAction + */ +public class V1TCPSocketActionTest { + private final V1TCPSocketAction model = new V1TCPSocketAction(); + + /** + * Model tests for V1TCPSocketAction + */ + @Test + public void testV1TCPSocketAction() { + // TODO: test V1TCPSocketAction + } + + /** + * Test the property 'host' + */ + @Test + public void hostTest() { + // TODO: test host + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TaintTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TaintTest.java new file mode 100644 index 0000000000..a212f53ad5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TaintTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Taint + */ +public class V1TaintTest { + private final V1Taint model = new V1Taint(); + + /** + * Model tests for V1Taint + */ + @Test + public void testV1Taint() { + // TODO: test V1Taint + } + + /** + * Test the property 'effect' + */ + @Test + public void effectTest() { + // TODO: test effect + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'timeAdded' + */ + @Test + public void timeAddedTest() { + // TODO: test timeAdded + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewSpecTest.java new file mode 100644 index 0000000000..2a749df7a2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TokenReviewSpec + */ +public class V1TokenReviewSpecTest { + private final V1TokenReviewSpec model = new V1TokenReviewSpec(); + + /** + * Model tests for V1TokenReviewSpec + */ + @Test + public void testV1TokenReviewSpec() { + // TODO: test V1TokenReviewSpec + } + + /** + * Test the property 'audiences' + */ + @Test + public void audiencesTest() { + // TODO: test audiences + } + + /** + * Test the property 'token' + */ + @Test + public void tokenTest() { + // TODO: test token + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewStatusTest.java new file mode 100644 index 0000000000..c60565da55 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewStatusTest.java @@ -0,0 +1,78 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1UserInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TokenReviewStatus + */ +public class V1TokenReviewStatusTest { + private final V1TokenReviewStatus model = new V1TokenReviewStatus(); + + /** + * Model tests for V1TokenReviewStatus + */ + @Test + public void testV1TokenReviewStatus() { + // TODO: test V1TokenReviewStatus + } + + /** + * Test the property 'audiences' + */ + @Test + public void audiencesTest() { + // TODO: test audiences + } + + /** + * Test the property 'authenticated' + */ + @Test + public void authenticatedTest() { + // TODO: test authenticated + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewTest.java new file mode 100644 index 0000000000..e1cb7823da --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TokenReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1TokenReviewSpec; +import io.kubernetes.client.models.V1TokenReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TokenReview + */ +public class V1TokenReviewTest { + private final V1TokenReview model = new V1TokenReview(); + + /** + * Model tests for V1TokenReview + */ + @Test + public void testV1TokenReview() { + // TODO: test V1TokenReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TolerationTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TolerationTest.java new file mode 100644 index 0000000000..3b6c812a65 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TolerationTest.java @@ -0,0 +1,83 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Toleration + */ +public class V1TolerationTest { + private final V1Toleration model = new V1Toleration(); + + /** + * Model tests for V1Toleration + */ + @Test + public void testV1Toleration() { + // TODO: test V1Toleration + } + + /** + * Test the property 'effect' + */ + @Test + public void effectTest() { + // TODO: test effect + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'operator' + */ + @Test + public void operatorTest() { + // TODO: test operator + } + + /** + * Test the property 'tolerationSeconds' + */ + @Test + public void tolerationSecondsTest() { + // TODO: test tolerationSeconds + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirementTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirementTest.java new file mode 100644 index 0000000000..18a1eb26f7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TopologySelectorLabelRequirementTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TopologySelectorLabelRequirement + */ +public class V1TopologySelectorLabelRequirementTest { + private final V1TopologySelectorLabelRequirement model = new V1TopologySelectorLabelRequirement(); + + /** + * Model tests for V1TopologySelectorLabelRequirement + */ + @Test + public void testV1TopologySelectorLabelRequirement() { + // TODO: test V1TopologySelectorLabelRequirement + } + + /** + * Test the property 'key' + */ + @Test + public void keyTest() { + // TODO: test key + } + + /** + * Test the property 'values' + */ + @Test + public void valuesTest() { + // TODO: test values + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TopologySelectorTermTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TopologySelectorTermTest.java new file mode 100644 index 0000000000..3178892caf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TopologySelectorTermTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1TopologySelectorLabelRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TopologySelectorTerm + */ +public class V1TopologySelectorTermTest { + private final V1TopologySelectorTerm model = new V1TopologySelectorTerm(); + + /** + * Model tests for V1TopologySelectorTerm + */ + @Test + public void testV1TopologySelectorTerm() { + // TODO: test V1TopologySelectorTerm + } + + /** + * Test the property 'matchLabelExpressions' + */ + @Test + public void matchLabelExpressionsTest() { + // TODO: test matchLabelExpressions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1TypedLocalObjectReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1TypedLocalObjectReferenceTest.java new file mode 100644 index 0000000000..a8684cea8f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1TypedLocalObjectReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1TypedLocalObjectReference + */ +public class V1TypedLocalObjectReferenceTest { + private final V1TypedLocalObjectReference model = new V1TypedLocalObjectReference(); + + /** + * Model tests for V1TypedLocalObjectReference + */ + @Test + public void testV1TypedLocalObjectReference() { + // TODO: test V1TypedLocalObjectReference + } + + /** + * Test the property 'apiGroup' + */ + @Test + public void apiGroupTest() { + // TODO: test apiGroup + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1UserInfoTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1UserInfoTest.java new file mode 100644 index 0000000000..02206d807b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1UserInfoTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1UserInfo + */ +public class V1UserInfoTest { + private final V1UserInfo model = new V1UserInfo(); + + /** + * Model tests for V1UserInfo + */ + @Test + public void testV1UserInfo() { + // TODO: test V1UserInfo + } + + /** + * Test the property 'extra' + */ + @Test + public void extraTest() { + // TODO: test extra + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentListTest.java new file mode 100644 index 0000000000..727a03e5da --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1VolumeAttachment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeAttachmentList + */ +public class V1VolumeAttachmentListTest { + private final V1VolumeAttachmentList model = new V1VolumeAttachmentList(); + + /** + * Model tests for V1VolumeAttachmentList + */ + @Test + public void testV1VolumeAttachmentList() { + // TODO: test V1VolumeAttachmentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentSourceTest.java new file mode 100644 index 0000000000..db174ab9d6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentSourceTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeAttachmentSource + */ +public class V1VolumeAttachmentSourceTest { + private final V1VolumeAttachmentSource model = new V1VolumeAttachmentSource(); + + /** + * Model tests for V1VolumeAttachmentSource + */ + @Test + public void testV1VolumeAttachmentSource() { + // TODO: test V1VolumeAttachmentSource + } + + /** + * Test the property 'inlineVolumeSpec' + */ + @Test + public void inlineVolumeSpecTest() { + // TODO: test inlineVolumeSpec + } + + /** + * Test the property 'persistentVolumeName' + */ + @Test + public void persistentVolumeNameTest() { + // TODO: test persistentVolumeName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentSpecTest.java new file mode 100644 index 0000000000..710f849d9a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentSpecTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1VolumeAttachmentSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeAttachmentSpec + */ +public class V1VolumeAttachmentSpecTest { + private final V1VolumeAttachmentSpec model = new V1VolumeAttachmentSpec(); + + /** + * Model tests for V1VolumeAttachmentSpec + */ + @Test + public void testV1VolumeAttachmentSpec() { + // TODO: test V1VolumeAttachmentSpec + } + + /** + * Test the property 'attacher' + */ + @Test + public void attacherTest() { + // TODO: test attacher + } + + /** + * Test the property 'nodeName' + */ + @Test + public void nodeNameTest() { + // TODO: test nodeName + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentStatusTest.java new file mode 100644 index 0000000000..f29baaf401 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentStatusTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1VolumeError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeAttachmentStatus + */ +public class V1VolumeAttachmentStatusTest { + private final V1VolumeAttachmentStatus model = new V1VolumeAttachmentStatus(); + + /** + * Model tests for V1VolumeAttachmentStatus + */ + @Test + public void testV1VolumeAttachmentStatus() { + // TODO: test V1VolumeAttachmentStatus + } + + /** + * Test the property 'attachError' + */ + @Test + public void attachErrorTest() { + // TODO: test attachError + } + + /** + * Test the property 'attached' + */ + @Test + public void attachedTest() { + // TODO: test attached + } + + /** + * Test the property 'attachmentMetadata' + */ + @Test + public void attachmentMetadataTest() { + // TODO: test attachmentMetadata + } + + /** + * Test the property 'detachError' + */ + @Test + public void detachErrorTest() { + // TODO: test detachError + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentTest.java new file mode 100644 index 0000000000..53d8f19b71 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeAttachmentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1VolumeAttachmentSpec; +import io.kubernetes.client.models.V1VolumeAttachmentStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeAttachment + */ +public class V1VolumeAttachmentTest { + private final V1VolumeAttachment model = new V1VolumeAttachment(); + + /** + * Model tests for V1VolumeAttachment + */ + @Test + public void testV1VolumeAttachment() { + // TODO: test V1VolumeAttachment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeDeviceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeDeviceTest.java new file mode 100644 index 0000000000..6375395253 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeDeviceTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeDevice + */ +public class V1VolumeDeviceTest { + private final V1VolumeDevice model = new V1VolumeDevice(); + + /** + * Model tests for V1VolumeDevice + */ + @Test + public void testV1VolumeDevice() { + // TODO: test V1VolumeDevice + } + + /** + * Test the property 'devicePath' + */ + @Test + public void devicePathTest() { + // TODO: test devicePath + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeErrorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeErrorTest.java new file mode 100644 index 0000000000..0c25799a8b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeErrorTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeError + */ +public class V1VolumeErrorTest { + private final V1VolumeError model = new V1VolumeError(); + + /** + * Model tests for V1VolumeError + */ + @Test + public void testV1VolumeError() { + // TODO: test V1VolumeError + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeMountTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeMountTest.java new file mode 100644 index 0000000000..d28e578205 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeMountTest.java @@ -0,0 +1,91 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeMount + */ +public class V1VolumeMountTest { + private final V1VolumeMount model = new V1VolumeMount(); + + /** + * Model tests for V1VolumeMount + */ + @Test + public void testV1VolumeMount() { + // TODO: test V1VolumeMount + } + + /** + * Test the property 'mountPath' + */ + @Test + public void mountPathTest() { + // TODO: test mountPath + } + + /** + * Test the property 'mountPropagation' + */ + @Test + public void mountPropagationTest() { + // TODO: test mountPropagation + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'readOnly' + */ + @Test + public void readOnlyTest() { + // TODO: test readOnly + } + + /** + * Test the property 'subPath' + */ + @Test + public void subPathTest() { + // TODO: test subPath + } + + /** + * Test the property 'subPathExpr' + */ + @Test + public void subPathExprTest() { + // TODO: test subPathExpr + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeNodeAffinityTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeNodeAffinityTest.java new file mode 100644 index 0000000000..affd626e04 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeNodeAffinityTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1NodeSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeNodeAffinity + */ +public class V1VolumeNodeAffinityTest { + private final V1VolumeNodeAffinity model = new V1VolumeNodeAffinity(); + + /** + * Model tests for V1VolumeNodeAffinity + */ + @Test + public void testV1VolumeNodeAffinity() { + // TODO: test V1VolumeNodeAffinity + } + + /** + * Test the property 'required' + */ + @Test + public void requiredTest() { + // TODO: test required + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeProjectionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeProjectionTest.java new file mode 100644 index 0000000000..f8ee3ab049 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeProjectionTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ConfigMapProjection; +import io.kubernetes.client.models.V1DownwardAPIProjection; +import io.kubernetes.client.models.V1SecretProjection; +import io.kubernetes.client.models.V1ServiceAccountTokenProjection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VolumeProjection + */ +public class V1VolumeProjectionTest { + private final V1VolumeProjection model = new V1VolumeProjection(); + + /** + * Model tests for V1VolumeProjection + */ + @Test + public void testV1VolumeProjection() { + // TODO: test V1VolumeProjection + } + + /** + * Test the property 'configMap' + */ + @Test + public void configMapTest() { + // TODO: test configMap + } + + /** + * Test the property 'downwardAPI' + */ + @Test + public void downwardAPITest() { + // TODO: test downwardAPI + } + + /** + * Test the property 'secret' + */ + @Test + public void secretTest() { + // TODO: test secret + } + + /** + * Test the property 'serviceAccountToken' + */ + @Test + public void serviceAccountTokenTest() { + // TODO: test serviceAccountToken + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeTest.java new file mode 100644 index 0000000000..6e172a98ce --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VolumeTest.java @@ -0,0 +1,303 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1AWSElasticBlockStoreVolumeSource; +import io.kubernetes.client.models.V1AzureDiskVolumeSource; +import io.kubernetes.client.models.V1AzureFileVolumeSource; +import io.kubernetes.client.models.V1CSIVolumeSource; +import io.kubernetes.client.models.V1CephFSVolumeSource; +import io.kubernetes.client.models.V1CinderVolumeSource; +import io.kubernetes.client.models.V1ConfigMapVolumeSource; +import io.kubernetes.client.models.V1DownwardAPIVolumeSource; +import io.kubernetes.client.models.V1EmptyDirVolumeSource; +import io.kubernetes.client.models.V1FCVolumeSource; +import io.kubernetes.client.models.V1FlexVolumeSource; +import io.kubernetes.client.models.V1FlockerVolumeSource; +import io.kubernetes.client.models.V1GCEPersistentDiskVolumeSource; +import io.kubernetes.client.models.V1GitRepoVolumeSource; +import io.kubernetes.client.models.V1GlusterfsVolumeSource; +import io.kubernetes.client.models.V1HostPathVolumeSource; +import io.kubernetes.client.models.V1ISCSIVolumeSource; +import io.kubernetes.client.models.V1NFSVolumeSource; +import io.kubernetes.client.models.V1PersistentVolumeClaimVolumeSource; +import io.kubernetes.client.models.V1PhotonPersistentDiskVolumeSource; +import io.kubernetes.client.models.V1PortworxVolumeSource; +import io.kubernetes.client.models.V1ProjectedVolumeSource; +import io.kubernetes.client.models.V1QuobyteVolumeSource; +import io.kubernetes.client.models.V1RBDVolumeSource; +import io.kubernetes.client.models.V1ScaleIOVolumeSource; +import io.kubernetes.client.models.V1SecretVolumeSource; +import io.kubernetes.client.models.V1StorageOSVolumeSource; +import io.kubernetes.client.models.V1VsphereVirtualDiskVolumeSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1Volume + */ +public class V1VolumeTest { + private final V1Volume model = new V1Volume(); + + /** + * Model tests for V1Volume + */ + @Test + public void testV1Volume() { + // TODO: test V1Volume + } + + /** + * Test the property 'awsElasticBlockStore' + */ + @Test + public void awsElasticBlockStoreTest() { + // TODO: test awsElasticBlockStore + } + + /** + * Test the property 'azureDisk' + */ + @Test + public void azureDiskTest() { + // TODO: test azureDisk + } + + /** + * Test the property 'azureFile' + */ + @Test + public void azureFileTest() { + // TODO: test azureFile + } + + /** + * Test the property 'cephfs' + */ + @Test + public void cephfsTest() { + // TODO: test cephfs + } + + /** + * Test the property 'cinder' + */ + @Test + public void cinderTest() { + // TODO: test cinder + } + + /** + * Test the property 'configMap' + */ + @Test + public void configMapTest() { + // TODO: test configMap + } + + /** + * Test the property 'csi' + */ + @Test + public void csiTest() { + // TODO: test csi + } + + /** + * Test the property 'downwardAPI' + */ + @Test + public void downwardAPITest() { + // TODO: test downwardAPI + } + + /** + * Test the property 'emptyDir' + */ + @Test + public void emptyDirTest() { + // TODO: test emptyDir + } + + /** + * Test the property 'fc' + */ + @Test + public void fcTest() { + // TODO: test fc + } + + /** + * Test the property 'flexVolume' + */ + @Test + public void flexVolumeTest() { + // TODO: test flexVolume + } + + /** + * Test the property 'flocker' + */ + @Test + public void flockerTest() { + // TODO: test flocker + } + + /** + * Test the property 'gcePersistentDisk' + */ + @Test + public void gcePersistentDiskTest() { + // TODO: test gcePersistentDisk + } + + /** + * Test the property 'gitRepo' + */ + @Test + public void gitRepoTest() { + // TODO: test gitRepo + } + + /** + * Test the property 'glusterfs' + */ + @Test + public void glusterfsTest() { + // TODO: test glusterfs + } + + /** + * Test the property 'hostPath' + */ + @Test + public void hostPathTest() { + // TODO: test hostPath + } + + /** + * Test the property 'iscsi' + */ + @Test + public void iscsiTest() { + // TODO: test iscsi + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'nfs' + */ + @Test + public void nfsTest() { + // TODO: test nfs + } + + /** + * Test the property 'persistentVolumeClaim' + */ + @Test + public void persistentVolumeClaimTest() { + // TODO: test persistentVolumeClaim + } + + /** + * Test the property 'photonPersistentDisk' + */ + @Test + public void photonPersistentDiskTest() { + // TODO: test photonPersistentDisk + } + + /** + * Test the property 'portworxVolume' + */ + @Test + public void portworxVolumeTest() { + // TODO: test portworxVolume + } + + /** + * Test the property 'projected' + */ + @Test + public void projectedTest() { + // TODO: test projected + } + + /** + * Test the property 'quobyte' + */ + @Test + public void quobyteTest() { + // TODO: test quobyte + } + + /** + * Test the property 'rbd' + */ + @Test + public void rbdTest() { + // TODO: test rbd + } + + /** + * Test the property 'scaleIO' + */ + @Test + public void scaleIOTest() { + // TODO: test scaleIO + } + + /** + * Test the property 'secret' + */ + @Test + public void secretTest() { + // TODO: test secret + } + + /** + * Test the property 'storageos' + */ + @Test + public void storageosTest() { + // TODO: test storageos + } + + /** + * Test the property 'vsphereVolume' + */ + @Test + public void vsphereVolumeTest() { + // TODO: test vsphereVolume + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSourceTest.java new file mode 100644 index 0000000000..92b2d757c7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1VsphereVirtualDiskVolumeSourceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1VsphereVirtualDiskVolumeSource + */ +public class V1VsphereVirtualDiskVolumeSourceTest { + private final V1VsphereVirtualDiskVolumeSource model = new V1VsphereVirtualDiskVolumeSource(); + + /** + * Model tests for V1VsphereVirtualDiskVolumeSource + */ + @Test + public void testV1VsphereVirtualDiskVolumeSource() { + // TODO: test V1VsphereVirtualDiskVolumeSource + } + + /** + * Test the property 'fsType' + */ + @Test + public void fsTypeTest() { + // TODO: test fsType + } + + /** + * Test the property 'storagePolicyID' + */ + @Test + public void storagePolicyIDTest() { + // TODO: test storagePolicyID + } + + /** + * Test the property 'storagePolicyName' + */ + @Test + public void storagePolicyNameTest() { + // TODO: test storagePolicyName + } + + /** + * Test the property 'volumePath' + */ + @Test + public void volumePathTest() { + // TODO: test volumePath + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1WatchEventTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1WatchEventTest.java new file mode 100644 index 0000000000..7171c56a87 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1WatchEventTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.RuntimeRawExtension; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1WatchEvent + */ +public class V1WatchEventTest { + private final V1WatchEvent model = new V1WatchEvent(); + + /** + * Model tests for V1WatchEvent + */ + @Test + public void testV1WatchEvent() { + // TODO: test V1WatchEvent + } + + /** + * Test the property '_object' + */ + @Test + public void _objectTest() { + // TODO: test _object + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1WeightedPodAffinityTermTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1WeightedPodAffinityTermTest.java new file mode 100644 index 0000000000..f34685cdf8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1WeightedPodAffinityTermTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PodAffinityTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1WeightedPodAffinityTerm + */ +public class V1WeightedPodAffinityTermTest { + private final V1WeightedPodAffinityTerm model = new V1WeightedPodAffinityTerm(); + + /** + * Model tests for V1WeightedPodAffinityTerm + */ + @Test + public void testV1WeightedPodAffinityTerm() { + // TODO: test V1WeightedPodAffinityTerm + } + + /** + * Test the property 'podAffinityTerm' + */ + @Test + public void podAffinityTermTest() { + // TODO: test podAffinityTerm + } + + /** + * Test the property 'weight' + */ + @Test + public void weightTest() { + // TODO: test weight + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1WindowsSecurityContextOptionsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1WindowsSecurityContextOptionsTest.java new file mode 100644 index 0000000000..3700c080bb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1WindowsSecurityContextOptionsTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1WindowsSecurityContextOptions + */ +public class V1WindowsSecurityContextOptionsTest { + private final V1WindowsSecurityContextOptions model = new V1WindowsSecurityContextOptions(); + + /** + * Model tests for V1WindowsSecurityContextOptions + */ + @Test + public void testV1WindowsSecurityContextOptions() { + // TODO: test V1WindowsSecurityContextOptions + } + + /** + * Test the property 'gmsaCredentialSpec' + */ + @Test + public void gmsaCredentialSpecTest() { + // TODO: test gmsaCredentialSpec + } + + /** + * Test the property 'gmsaCredentialSpecName' + */ + @Test + public void gmsaCredentialSpecNameTest() { + // TODO: test gmsaCredentialSpecName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AggregationRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AggregationRuleTest.java new file mode 100644 index 0000000000..8ce289347a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AggregationRuleTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1AggregationRule + */ +public class V1alpha1AggregationRuleTest { + private final V1alpha1AggregationRule model = new V1alpha1AggregationRule(); + + /** + * Model tests for V1alpha1AggregationRule + */ + @Test + public void testV1alpha1AggregationRule() { + // TODO: test V1alpha1AggregationRule + } + + /** + * Test the property 'clusterRoleSelectors' + */ + @Test + public void clusterRoleSelectorsTest() { + // TODO: test clusterRoleSelectors + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkListTest.java new file mode 100644 index 0000000000..ebc43cfe5f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1AuditSink; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1AuditSinkList + */ +public class V1alpha1AuditSinkListTest { + private final V1alpha1AuditSinkList model = new V1alpha1AuditSinkList(); + + /** + * Model tests for V1alpha1AuditSinkList + */ + @Test + public void testV1alpha1AuditSinkList() { + // TODO: test V1alpha1AuditSinkList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkSpecTest.java new file mode 100644 index 0000000000..713854ac14 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1alpha1Policy; +import io.kubernetes.client.models.V1alpha1Webhook; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1AuditSinkSpec + */ +public class V1alpha1AuditSinkSpecTest { + private final V1alpha1AuditSinkSpec model = new V1alpha1AuditSinkSpec(); + + /** + * Model tests for V1alpha1AuditSinkSpec + */ + @Test + public void testV1alpha1AuditSinkSpec() { + // TODO: test V1alpha1AuditSinkSpec + } + + /** + * Test the property 'policy' + */ + @Test + public void policyTest() { + // TODO: test policy + } + + /** + * Test the property 'webhook' + */ + @Test + public void webhookTest() { + // TODO: test webhook + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkTest.java new file mode 100644 index 0000000000..621141c59a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1AuditSinkTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1AuditSinkSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1AuditSink + */ +public class V1alpha1AuditSinkTest { + private final V1alpha1AuditSink model = new V1alpha1AuditSink(); + + /** + * Model tests for V1alpha1AuditSink + */ + @Test + public void testV1alpha1AuditSink() { + // TODO: test V1alpha1AuditSink + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingListTest.java new file mode 100644 index 0000000000..2c45f193a1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1ClusterRoleBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1ClusterRoleBindingList + */ +public class V1alpha1ClusterRoleBindingListTest { + private final V1alpha1ClusterRoleBindingList model = new V1alpha1ClusterRoleBindingList(); + + /** + * Model tests for V1alpha1ClusterRoleBindingList + */ + @Test + public void testV1alpha1ClusterRoleBindingList() { + // TODO: test V1alpha1ClusterRoleBindingList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingTest.java new file mode 100644 index 0000000000..d870e64d98 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleBindingTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1RoleRef; +import io.kubernetes.client.models.V1alpha1Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1ClusterRoleBinding + */ +public class V1alpha1ClusterRoleBindingTest { + private final V1alpha1ClusterRoleBinding model = new V1alpha1ClusterRoleBinding(); + + /** + * Model tests for V1alpha1ClusterRoleBinding + */ + @Test + public void testV1alpha1ClusterRoleBinding() { + // TODO: test V1alpha1ClusterRoleBinding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'roleRef' + */ + @Test + public void roleRefTest() { + // TODO: test roleRef + } + + /** + * Test the property 'subjects' + */ + @Test + public void subjectsTest() { + // TODO: test subjects + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleListTest.java new file mode 100644 index 0000000000..f1069bd909 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1ClusterRole; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1ClusterRoleList + */ +public class V1alpha1ClusterRoleListTest { + private final V1alpha1ClusterRoleList model = new V1alpha1ClusterRoleList(); + + /** + * Model tests for V1alpha1ClusterRoleList + */ + @Test + public void testV1alpha1ClusterRoleList() { + // TODO: test V1alpha1ClusterRoleList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleTest.java new file mode 100644 index 0000000000..161a36c94a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ClusterRoleTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1AggregationRule; +import io.kubernetes.client.models.V1alpha1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1ClusterRole + */ +public class V1alpha1ClusterRoleTest { + private final V1alpha1ClusterRole model = new V1alpha1ClusterRole(); + + /** + * Model tests for V1alpha1ClusterRole + */ + @Test + public void testV1alpha1ClusterRole() { + // TODO: test V1alpha1ClusterRole + } + + /** + * Test the property 'aggregationRule' + */ + @Test + public void aggregationRuleTest() { + // TODO: test aggregationRule + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetListTest.java new file mode 100644 index 0000000000..5a79128a8d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1PodPreset; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1PodPresetList + */ +public class V1alpha1PodPresetListTest { + private final V1alpha1PodPresetList model = new V1alpha1PodPresetList(); + + /** + * Model tests for V1alpha1PodPresetList + */ + @Test + public void testV1alpha1PodPresetList() { + // TODO: test V1alpha1PodPresetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetSpecTest.java new file mode 100644 index 0000000000..33ca98419a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetSpecTest.java @@ -0,0 +1,90 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1EnvFromSource; +import io.kubernetes.client.models.V1EnvVar; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1Volume; +import io.kubernetes.client.models.V1VolumeMount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1PodPresetSpec + */ +public class V1alpha1PodPresetSpecTest { + private final V1alpha1PodPresetSpec model = new V1alpha1PodPresetSpec(); + + /** + * Model tests for V1alpha1PodPresetSpec + */ + @Test + public void testV1alpha1PodPresetSpec() { + // TODO: test V1alpha1PodPresetSpec + } + + /** + * Test the property 'env' + */ + @Test + public void envTest() { + // TODO: test env + } + + /** + * Test the property 'envFrom' + */ + @Test + public void envFromTest() { + // TODO: test envFrom + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'volumeMounts' + */ + @Test + public void volumeMountsTest() { + // TODO: test volumeMounts + } + + /** + * Test the property 'volumes' + */ + @Test + public void volumesTest() { + // TODO: test volumes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetTest.java new file mode 100644 index 0000000000..d6a1188dc1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PodPresetTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1PodPresetSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1PodPreset + */ +public class V1alpha1PodPresetTest { + private final V1alpha1PodPreset model = new V1alpha1PodPreset(); + + /** + * Model tests for V1alpha1PodPreset + */ + @Test + public void testV1alpha1PodPreset() { + // TODO: test V1alpha1PodPreset + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PolicyRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PolicyRuleTest.java new file mode 100644 index 0000000000..f2cc333d09 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PolicyRuleTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1PolicyRule + */ +public class V1alpha1PolicyRuleTest { + private final V1alpha1PolicyRule model = new V1alpha1PolicyRule(); + + /** + * Model tests for V1alpha1PolicyRule + */ + @Test + public void testV1alpha1PolicyRule() { + // TODO: test V1alpha1PolicyRule + } + + /** + * Test the property 'apiGroups' + */ + @Test + public void apiGroupsTest() { + // TODO: test apiGroups + } + + /** + * Test the property 'nonResourceURLs' + */ + @Test + public void nonResourceURLsTest() { + // TODO: test nonResourceURLs + } + + /** + * Test the property 'resourceNames' + */ + @Test + public void resourceNamesTest() { + // TODO: test resourceNames + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PolicyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PolicyTest.java new file mode 100644 index 0000000000..48f3544643 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PolicyTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1Policy + */ +public class V1alpha1PolicyTest { + private final V1alpha1Policy model = new V1alpha1Policy(); + + /** + * Model tests for V1alpha1Policy + */ + @Test + public void testV1alpha1Policy() { + // TODO: test V1alpha1Policy + } + + /** + * Test the property 'level' + */ + @Test + public void levelTest() { + // TODO: test level + } + + /** + * Test the property 'stages' + */ + @Test + public void stagesTest() { + // TODO: test stages + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PriorityClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PriorityClassListTest.java new file mode 100644 index 0000000000..c3dc67d6cc --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PriorityClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1PriorityClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1PriorityClassList + */ +public class V1alpha1PriorityClassListTest { + private final V1alpha1PriorityClassList model = new V1alpha1PriorityClassList(); + + /** + * Model tests for V1alpha1PriorityClassList + */ + @Test + public void testV1alpha1PriorityClassList() { + // TODO: test V1alpha1PriorityClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PriorityClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PriorityClassTest.java new file mode 100644 index 0000000000..f17865c31a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1PriorityClassTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1PriorityClass + */ +public class V1alpha1PriorityClassTest { + private final V1alpha1PriorityClass model = new V1alpha1PriorityClass(); + + /** + * Model tests for V1alpha1PriorityClass + */ + @Test + public void testV1alpha1PriorityClass() { + // TODO: test V1alpha1PriorityClass + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'globalDefault' + */ + @Test + public void globalDefaultTest() { + // TODO: test globalDefault + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'preemptionPolicy' + */ + @Test + public void preemptionPolicyTest() { + // TODO: test preemptionPolicy + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleBindingListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleBindingListTest.java new file mode 100644 index 0000000000..dcf6555973 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleBindingListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1RoleBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RoleBindingList + */ +public class V1alpha1RoleBindingListTest { + private final V1alpha1RoleBindingList model = new V1alpha1RoleBindingList(); + + /** + * Model tests for V1alpha1RoleBindingList + */ + @Test + public void testV1alpha1RoleBindingList() { + // TODO: test V1alpha1RoleBindingList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleBindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleBindingTest.java new file mode 100644 index 0000000000..fc86b7466b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleBindingTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1RoleRef; +import io.kubernetes.client.models.V1alpha1Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RoleBinding + */ +public class V1alpha1RoleBindingTest { + private final V1alpha1RoleBinding model = new V1alpha1RoleBinding(); + + /** + * Model tests for V1alpha1RoleBinding + */ + @Test + public void testV1alpha1RoleBinding() { + // TODO: test V1alpha1RoleBinding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'roleRef' + */ + @Test + public void roleRefTest() { + // TODO: test roleRef + } + + /** + * Test the property 'subjects' + */ + @Test + public void subjectsTest() { + // TODO: test subjects + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleListTest.java new file mode 100644 index 0000000000..18eaf07f38 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1Role; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RoleList + */ +public class V1alpha1RoleListTest { + private final V1alpha1RoleList model = new V1alpha1RoleList(); + + /** + * Model tests for V1alpha1RoleList + */ + @Test + public void testV1alpha1RoleList() { + // TODO: test V1alpha1RoleList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleRefTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleRefTest.java new file mode 100644 index 0000000000..11f4b651ce --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleRefTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RoleRef + */ +public class V1alpha1RoleRefTest { + private final V1alpha1RoleRef model = new V1alpha1RoleRef(); + + /** + * Model tests for V1alpha1RoleRef + */ + @Test + public void testV1alpha1RoleRef() { + // TODO: test V1alpha1RoleRef + } + + /** + * Test the property 'apiGroup' + */ + @Test + public void apiGroupTest() { + // TODO: test apiGroup + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleTest.java new file mode 100644 index 0000000000..9618fb9099 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RoleTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1Role + */ +public class V1alpha1RoleTest { + private final V1alpha1Role model = new V1alpha1Role(); + + /** + * Model tests for V1alpha1Role + */ + @Test + public void testV1alpha1Role() { + // TODO: test V1alpha1Role + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassListTest.java new file mode 100644 index 0000000000..7f987428ae --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1RuntimeClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RuntimeClassList + */ +public class V1alpha1RuntimeClassListTest { + private final V1alpha1RuntimeClassList model = new V1alpha1RuntimeClassList(); + + /** + * Model tests for V1alpha1RuntimeClassList + */ + @Test + public void testV1alpha1RuntimeClassList() { + // TODO: test V1alpha1RuntimeClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpecTest.java new file mode 100644 index 0000000000..987f4c45a9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RuntimeClassSpec + */ +public class V1alpha1RuntimeClassSpecTest { + private final V1alpha1RuntimeClassSpec model = new V1alpha1RuntimeClassSpec(); + + /** + * Model tests for V1alpha1RuntimeClassSpec + */ + @Test + public void testV1alpha1RuntimeClassSpec() { + // TODO: test V1alpha1RuntimeClassSpec + } + + /** + * Test the property 'runtimeHandler' + */ + @Test + public void runtimeHandlerTest() { + // TODO: test runtimeHandler + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassTest.java new file mode 100644 index 0000000000..673bf4ea53 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1RuntimeClassTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1RuntimeClassSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1RuntimeClass + */ +public class V1alpha1RuntimeClassTest { + private final V1alpha1RuntimeClass model = new V1alpha1RuntimeClass(); + + /** + * Model tests for V1alpha1RuntimeClass + */ + @Test + public void testV1alpha1RuntimeClass() { + // TODO: test V1alpha1RuntimeClass + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ServiceReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ServiceReferenceTest.java new file mode 100644 index 0000000000..acc0f20522 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1ServiceReferenceTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1ServiceReference + */ +public class V1alpha1ServiceReferenceTest { + private final V1alpha1ServiceReference model = new V1alpha1ServiceReference(); + + /** + * Model tests for V1alpha1ServiceReference + */ + @Test + public void testV1alpha1ServiceReference() { + // TODO: test V1alpha1ServiceReference + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1SubjectTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1SubjectTest.java new file mode 100644 index 0000000000..df2f4f7190 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1SubjectTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1Subject + */ +public class V1alpha1SubjectTest { + private final V1alpha1Subject model = new V1alpha1Subject(); + + /** + * Model tests for V1alpha1Subject + */ + @Test + public void testV1alpha1Subject() { + // TODO: test V1alpha1Subject + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentListTest.java new file mode 100644 index 0000000000..305144222e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1alpha1VolumeAttachment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1VolumeAttachmentList + */ +public class V1alpha1VolumeAttachmentListTest { + private final V1alpha1VolumeAttachmentList model = new V1alpha1VolumeAttachmentList(); + + /** + * Model tests for V1alpha1VolumeAttachmentList + */ + @Test + public void testV1alpha1VolumeAttachmentList() { + // TODO: test V1alpha1VolumeAttachmentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSourceTest.java new file mode 100644 index 0000000000..184b17fd39 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSourceTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1VolumeAttachmentSource + */ +public class V1alpha1VolumeAttachmentSourceTest { + private final V1alpha1VolumeAttachmentSource model = new V1alpha1VolumeAttachmentSource(); + + /** + * Model tests for V1alpha1VolumeAttachmentSource + */ + @Test + public void testV1alpha1VolumeAttachmentSource() { + // TODO: test V1alpha1VolumeAttachmentSource + } + + /** + * Test the property 'inlineVolumeSpec' + */ + @Test + public void inlineVolumeSpecTest() { + // TODO: test inlineVolumeSpec + } + + /** + * Test the property 'persistentVolumeName' + */ + @Test + public void persistentVolumeNameTest() { + // TODO: test persistentVolumeName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpecTest.java new file mode 100644 index 0000000000..ab3ab29ade --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentSpecTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1alpha1VolumeAttachmentSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1VolumeAttachmentSpec + */ +public class V1alpha1VolumeAttachmentSpecTest { + private final V1alpha1VolumeAttachmentSpec model = new V1alpha1VolumeAttachmentSpec(); + + /** + * Model tests for V1alpha1VolumeAttachmentSpec + */ + @Test + public void testV1alpha1VolumeAttachmentSpec() { + // TODO: test V1alpha1VolumeAttachmentSpec + } + + /** + * Test the property 'attacher' + */ + @Test + public void attacherTest() { + // TODO: test attacher + } + + /** + * Test the property 'nodeName' + */ + @Test + public void nodeNameTest() { + // TODO: test nodeName + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatusTest.java new file mode 100644 index 0000000000..7d6c11ba1c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentStatusTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1alpha1VolumeError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1VolumeAttachmentStatus + */ +public class V1alpha1VolumeAttachmentStatusTest { + private final V1alpha1VolumeAttachmentStatus model = new V1alpha1VolumeAttachmentStatus(); + + /** + * Model tests for V1alpha1VolumeAttachmentStatus + */ + @Test + public void testV1alpha1VolumeAttachmentStatus() { + // TODO: test V1alpha1VolumeAttachmentStatus + } + + /** + * Test the property 'attachError' + */ + @Test + public void attachErrorTest() { + // TODO: test attachError + } + + /** + * Test the property 'attached' + */ + @Test + public void attachedTest() { + // TODO: test attached + } + + /** + * Test the property 'attachmentMetadata' + */ + @Test + public void attachmentMetadataTest() { + // TODO: test attachmentMetadata + } + + /** + * Test the property 'detachError' + */ + @Test + public void detachErrorTest() { + // TODO: test detachError + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentTest.java new file mode 100644 index 0000000000..6391a7a557 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeAttachmentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1alpha1VolumeAttachmentSpec; +import io.kubernetes.client.models.V1alpha1VolumeAttachmentStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1VolumeAttachment + */ +public class V1alpha1VolumeAttachmentTest { + private final V1alpha1VolumeAttachment model = new V1alpha1VolumeAttachment(); + + /** + * Model tests for V1alpha1VolumeAttachment + */ + @Test + public void testV1alpha1VolumeAttachment() { + // TODO: test V1alpha1VolumeAttachment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeErrorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeErrorTest.java new file mode 100644 index 0000000000..ea4100c89d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1VolumeErrorTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1VolumeError + */ +public class V1alpha1VolumeErrorTest { + private final V1alpha1VolumeError model = new V1alpha1VolumeError(); + + /** + * Model tests for V1alpha1VolumeError + */ + @Test + public void testV1alpha1VolumeError() { + // TODO: test V1alpha1VolumeError + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookClientConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookClientConfigTest.java new file mode 100644 index 0000000000..b3bb4d4cee --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookClientConfigTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1alpha1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1WebhookClientConfig + */ +public class V1alpha1WebhookClientConfigTest { + private final V1alpha1WebhookClientConfig model = new V1alpha1WebhookClientConfig(); + + /** + * Model tests for V1alpha1WebhookClientConfig + */ + @Test + public void testV1alpha1WebhookClientConfig() { + // TODO: test V1alpha1WebhookClientConfig + } + + /** + * Test the property 'caBundle' + */ + @Test + public void caBundleTest() { + // TODO: test caBundle + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookTest.java new file mode 100644 index 0000000000..97b3d2bd8a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1alpha1WebhookClientConfig; +import io.kubernetes.client.models.V1alpha1WebhookThrottleConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1Webhook + */ +public class V1alpha1WebhookTest { + private final V1alpha1Webhook model = new V1alpha1Webhook(); + + /** + * Model tests for V1alpha1Webhook + */ + @Test + public void testV1alpha1Webhook() { + // TODO: test V1alpha1Webhook + } + + /** + * Test the property 'clientConfig' + */ + @Test + public void clientConfigTest() { + // TODO: test clientConfig + } + + /** + * Test the property 'throttle' + */ + @Test + public void throttleTest() { + // TODO: test throttle + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfigTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfigTest.java new file mode 100644 index 0000000000..30158b4915 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1alpha1WebhookThrottleConfigTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1alpha1WebhookThrottleConfig + */ +public class V1alpha1WebhookThrottleConfigTest { + private final V1alpha1WebhookThrottleConfig model = new V1alpha1WebhookThrottleConfig(); + + /** + * Model tests for V1alpha1WebhookThrottleConfig + */ + @Test + public void testV1alpha1WebhookThrottleConfig() { + // TODO: test V1alpha1WebhookThrottleConfig + } + + /** + * Test the property 'burst' + */ + @Test + public void burstTest() { + // TODO: test burst + } + + /** + * Test the property 'qps' + */ + @Test + public void qpsTest() { + // TODO: test qps + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceConditionTest.java new file mode 100644 index 0000000000..1410db4117 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1APIServiceCondition + */ +public class V1beta1APIServiceConditionTest { + private final V1beta1APIServiceCondition model = new V1beta1APIServiceCondition(); + + /** + * Model tests for V1beta1APIServiceCondition + */ + @Test + public void testV1beta1APIServiceCondition() { + // TODO: test V1beta1APIServiceCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceListTest.java new file mode 100644 index 0000000000..cbd29093fa --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1APIService; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1APIServiceList + */ +public class V1beta1APIServiceListTest { + private final V1beta1APIServiceList model = new V1beta1APIServiceList(); + + /** + * Model tests for V1beta1APIServiceList + */ + @Test + public void testV1beta1APIServiceList() { + // TODO: test V1beta1APIServiceList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceSpecTest.java new file mode 100644 index 0000000000..0010b502e7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceSpecTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ApiregistrationV1beta1ServiceReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1APIServiceSpec + */ +public class V1beta1APIServiceSpecTest { + private final V1beta1APIServiceSpec model = new V1beta1APIServiceSpec(); + + /** + * Model tests for V1beta1APIServiceSpec + */ + @Test + public void testV1beta1APIServiceSpec() { + // TODO: test V1beta1APIServiceSpec + } + + /** + * Test the property 'caBundle' + */ + @Test + public void caBundleTest() { + // TODO: test caBundle + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'groupPriorityMinimum' + */ + @Test + public void groupPriorityMinimumTest() { + // TODO: test groupPriorityMinimum + } + + /** + * Test the property 'insecureSkipTLSVerify' + */ + @Test + public void insecureSkipTLSVerifyTest() { + // TODO: test insecureSkipTLSVerify + } + + /** + * Test the property 'service' + */ + @Test + public void serviceTest() { + // TODO: test service + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'versionPriority' + */ + @Test + public void versionPriorityTest() { + // TODO: test versionPriority + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceStatusTest.java new file mode 100644 index 0000000000..1cf2af5b99 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceStatusTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1APIServiceCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1APIServiceStatus + */ +public class V1beta1APIServiceStatusTest { + private final V1beta1APIServiceStatus model = new V1beta1APIServiceStatus(); + + /** + * Model tests for V1beta1APIServiceStatus + */ + @Test + public void testV1beta1APIServiceStatus() { + // TODO: test V1beta1APIServiceStatus + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceTest.java new file mode 100644 index 0000000000..9dacc631d8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1APIServiceTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1APIServiceSpec; +import io.kubernetes.client.models.V1beta1APIServiceStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1APIService + */ +public class V1beta1APIServiceTest { + private final V1beta1APIService model = new V1beta1APIService(); + + /** + * Model tests for V1beta1APIService + */ + @Test + public void testV1beta1APIService() { + // TODO: test V1beta1APIService + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1AggregationRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1AggregationRuleTest.java new file mode 100644 index 0000000000..3f8dff99c2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1AggregationRuleTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1AggregationRule + */ +public class V1beta1AggregationRuleTest { + private final V1beta1AggregationRule model = new V1beta1AggregationRule(); + + /** + * Model tests for V1beta1AggregationRule + */ + @Test + public void testV1beta1AggregationRule() { + // TODO: test V1beta1AggregationRule + } + + /** + * Test the property 'clusterRoleSelectors' + */ + @Test + public void clusterRoleSelectorsTest() { + // TODO: test clusterRoleSelectors + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverListTest.java new file mode 100644 index 0000000000..59ab4eeea3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1CSIDriver; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSIDriverList + */ +public class V1beta1CSIDriverListTest { + private final V1beta1CSIDriverList model = new V1beta1CSIDriverList(); + + /** + * Model tests for V1beta1CSIDriverList + */ + @Test + public void testV1beta1CSIDriverList() { + // TODO: test V1beta1CSIDriverList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverSpecTest.java new file mode 100644 index 0000000000..a958bff285 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverSpecTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSIDriverSpec + */ +public class V1beta1CSIDriverSpecTest { + private final V1beta1CSIDriverSpec model = new V1beta1CSIDriverSpec(); + + /** + * Model tests for V1beta1CSIDriverSpec + */ + @Test + public void testV1beta1CSIDriverSpec() { + // TODO: test V1beta1CSIDriverSpec + } + + /** + * Test the property 'attachRequired' + */ + @Test + public void attachRequiredTest() { + // TODO: test attachRequired + } + + /** + * Test the property 'podInfoOnMount' + */ + @Test + public void podInfoOnMountTest() { + // TODO: test podInfoOnMount + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverTest.java new file mode 100644 index 0000000000..13034d1f4e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSIDriverTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1CSIDriverSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSIDriver + */ +public class V1beta1CSIDriverTest { + private final V1beta1CSIDriver model = new V1beta1CSIDriver(); + + /** + * Model tests for V1beta1CSIDriver + */ + @Test + public void testV1beta1CSIDriver() { + // TODO: test V1beta1CSIDriver + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeDriverTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeDriverTest.java new file mode 100644 index 0000000000..16deceafd7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeDriverTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSINodeDriver + */ +public class V1beta1CSINodeDriverTest { + private final V1beta1CSINodeDriver model = new V1beta1CSINodeDriver(); + + /** + * Model tests for V1beta1CSINodeDriver + */ + @Test + public void testV1beta1CSINodeDriver() { + // TODO: test V1beta1CSINodeDriver + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'nodeID' + */ + @Test + public void nodeIDTest() { + // TODO: test nodeID + } + + /** + * Test the property 'topologyKeys' + */ + @Test + public void topologyKeysTest() { + // TODO: test topologyKeys + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeListTest.java new file mode 100644 index 0000000000..3ff9afd3fd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1CSINode; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSINodeList + */ +public class V1beta1CSINodeListTest { + private final V1beta1CSINodeList model = new V1beta1CSINodeList(); + + /** + * Model tests for V1beta1CSINodeList + */ + @Test + public void testV1beta1CSINodeList() { + // TODO: test V1beta1CSINodeList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeSpecTest.java new file mode 100644 index 0000000000..c6ef27dd89 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeSpecTest.java @@ -0,0 +1,54 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1CSINodeDriver; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSINodeSpec + */ +public class V1beta1CSINodeSpecTest { + private final V1beta1CSINodeSpec model = new V1beta1CSINodeSpec(); + + /** + * Model tests for V1beta1CSINodeSpec + */ + @Test + public void testV1beta1CSINodeSpec() { + // TODO: test V1beta1CSINodeSpec + } + + /** + * Test the property 'drivers' + */ + @Test + public void driversTest() { + // TODO: test drivers + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeTest.java new file mode 100644 index 0000000000..19fa31e659 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CSINodeTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1CSINodeSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CSINode + */ +public class V1beta1CSINodeTest { + private final V1beta1CSINode model = new V1beta1CSINode(); + + /** + * Model tests for V1beta1CSINode + */ + @Test + public void testV1beta1CSINode() { + // TODO: test V1beta1CSINode + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestConditionTest.java new file mode 100644 index 0000000000..a43c7352a0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestConditionTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CertificateSigningRequestCondition + */ +public class V1beta1CertificateSigningRequestConditionTest { + private final V1beta1CertificateSigningRequestCondition model = new V1beta1CertificateSigningRequestCondition(); + + /** + * Model tests for V1beta1CertificateSigningRequestCondition + */ + @Test + public void testV1beta1CertificateSigningRequestCondition() { + // TODO: test V1beta1CertificateSigningRequestCondition + } + + /** + * Test the property 'lastUpdateTime' + */ + @Test + public void lastUpdateTimeTest() { + // TODO: test lastUpdateTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestListTest.java new file mode 100644 index 0000000000..7b24f50f57 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1CertificateSigningRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CertificateSigningRequestList + */ +public class V1beta1CertificateSigningRequestListTest { + private final V1beta1CertificateSigningRequestList model = new V1beta1CertificateSigningRequestList(); + + /** + * Model tests for V1beta1CertificateSigningRequestList + */ + @Test + public void testV1beta1CertificateSigningRequestList() { + // TODO: test V1beta1CertificateSigningRequestList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpecTest.java new file mode 100644 index 0000000000..0f3bbdc752 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestSpecTest.java @@ -0,0 +1,95 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CertificateSigningRequestSpec + */ +public class V1beta1CertificateSigningRequestSpecTest { + private final V1beta1CertificateSigningRequestSpec model = new V1beta1CertificateSigningRequestSpec(); + + /** + * Model tests for V1beta1CertificateSigningRequestSpec + */ + @Test + public void testV1beta1CertificateSigningRequestSpec() { + // TODO: test V1beta1CertificateSigningRequestSpec + } + + /** + * Test the property 'extra' + */ + @Test + public void extraTest() { + // TODO: test extra + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'request' + */ + @Test + public void requestTest() { + // TODO: test request + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + + /** + * Test the property 'usages' + */ + @Test + public void usagesTest() { + // TODO: test usages + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatusTest.java new file mode 100644 index 0000000000..bbee07ffa6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestStatusTest.java @@ -0,0 +1,62 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1CertificateSigningRequestCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CertificateSigningRequestStatus + */ +public class V1beta1CertificateSigningRequestStatusTest { + private final V1beta1CertificateSigningRequestStatus model = new V1beta1CertificateSigningRequestStatus(); + + /** + * Model tests for V1beta1CertificateSigningRequestStatus + */ + @Test + public void testV1beta1CertificateSigningRequestStatus() { + // TODO: test V1beta1CertificateSigningRequestStatus + } + + /** + * Test the property 'certificate' + */ + @Test + public void certificateTest() { + // TODO: test certificate + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestTest.java new file mode 100644 index 0000000000..121d4c2cf5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CertificateSigningRequestTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1CertificateSigningRequestSpec; +import io.kubernetes.client.models.V1beta1CertificateSigningRequestStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CertificateSigningRequest + */ +public class V1beta1CertificateSigningRequestTest { + private final V1beta1CertificateSigningRequest model = new V1beta1CertificateSigningRequest(); + + /** + * Model tests for V1beta1CertificateSigningRequest + */ + @Test + public void testV1beta1CertificateSigningRequest() { + // TODO: test V1beta1CertificateSigningRequest + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingListTest.java new file mode 100644 index 0000000000..cc5309e826 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1ClusterRoleBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ClusterRoleBindingList + */ +public class V1beta1ClusterRoleBindingListTest { + private final V1beta1ClusterRoleBindingList model = new V1beta1ClusterRoleBindingList(); + + /** + * Model tests for V1beta1ClusterRoleBindingList + */ + @Test + public void testV1beta1ClusterRoleBindingList() { + // TODO: test V1beta1ClusterRoleBindingList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingTest.java new file mode 100644 index 0000000000..dc03c7e668 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleBindingTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1RoleRef; +import io.kubernetes.client.models.V1beta1Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ClusterRoleBinding + */ +public class V1beta1ClusterRoleBindingTest { + private final V1beta1ClusterRoleBinding model = new V1beta1ClusterRoleBinding(); + + /** + * Model tests for V1beta1ClusterRoleBinding + */ + @Test + public void testV1beta1ClusterRoleBinding() { + // TODO: test V1beta1ClusterRoleBinding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'roleRef' + */ + @Test + public void roleRefTest() { + // TODO: test roleRef + } + + /** + * Test the property 'subjects' + */ + @Test + public void subjectsTest() { + // TODO: test subjects + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleListTest.java new file mode 100644 index 0000000000..11a71442a4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1ClusterRole; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ClusterRoleList + */ +public class V1beta1ClusterRoleListTest { + private final V1beta1ClusterRoleList model = new V1beta1ClusterRoleList(); + + /** + * Model tests for V1beta1ClusterRoleList + */ + @Test + public void testV1beta1ClusterRoleList() { + // TODO: test V1beta1ClusterRoleList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleTest.java new file mode 100644 index 0000000000..cfd154eb22 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ClusterRoleTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1AggregationRule; +import io.kubernetes.client.models.V1beta1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ClusterRole + */ +public class V1beta1ClusterRoleTest { + private final V1beta1ClusterRole model = new V1beta1ClusterRole(); + + /** + * Model tests for V1beta1ClusterRole + */ + @Test + public void testV1beta1ClusterRole() { + // TODO: test V1beta1ClusterRole + } + + /** + * Test the property 'aggregationRule' + */ + @Test + public void aggregationRuleTest() { + // TODO: test aggregationRule + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ControllerRevisionListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ControllerRevisionListTest.java new file mode 100644 index 0000000000..9bd3378e34 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ControllerRevisionListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1ControllerRevision; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ControllerRevisionList + */ +public class V1beta1ControllerRevisionListTest { + private final V1beta1ControllerRevisionList model = new V1beta1ControllerRevisionList(); + + /** + * Model tests for V1beta1ControllerRevisionList + */ + @Test + public void testV1beta1ControllerRevisionList() { + // TODO: test V1beta1ControllerRevisionList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ControllerRevisionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ControllerRevisionTest.java new file mode 100644 index 0000000000..e2e620758b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ControllerRevisionTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.RuntimeRawExtension; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ControllerRevision + */ +public class V1beta1ControllerRevisionTest { + private final V1beta1ControllerRevision model = new V1beta1ControllerRevision(); + + /** + * Model tests for V1beta1ControllerRevision + */ + @Test + public void testV1beta1ControllerRevision() { + // TODO: test V1beta1ControllerRevision + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'revision' + */ + @Test + public void revisionTest() { + // TODO: test revision + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobListTest.java new file mode 100644 index 0000000000..e6e8a72655 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1CronJob; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CronJobList + */ +public class V1beta1CronJobListTest { + private final V1beta1CronJobList model = new V1beta1CronJobList(); + + /** + * Model tests for V1beta1CronJobList + */ + @Test + public void testV1beta1CronJobList() { + // TODO: test V1beta1CronJobList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobSpecTest.java new file mode 100644 index 0000000000..ee612ebac8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobSpecTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1JobTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CronJobSpec + */ +public class V1beta1CronJobSpecTest { + private final V1beta1CronJobSpec model = new V1beta1CronJobSpec(); + + /** + * Model tests for V1beta1CronJobSpec + */ + @Test + public void testV1beta1CronJobSpec() { + // TODO: test V1beta1CronJobSpec + } + + /** + * Test the property 'concurrencyPolicy' + */ + @Test + public void concurrencyPolicyTest() { + // TODO: test concurrencyPolicy + } + + /** + * Test the property 'failedJobsHistoryLimit' + */ + @Test + public void failedJobsHistoryLimitTest() { + // TODO: test failedJobsHistoryLimit + } + + /** + * Test the property 'jobTemplate' + */ + @Test + public void jobTemplateTest() { + // TODO: test jobTemplate + } + + /** + * Test the property 'schedule' + */ + @Test + public void scheduleTest() { + // TODO: test schedule + } + + /** + * Test the property 'startingDeadlineSeconds' + */ + @Test + public void startingDeadlineSecondsTest() { + // TODO: test startingDeadlineSeconds + } + + /** + * Test the property 'successfulJobsHistoryLimit' + */ + @Test + public void successfulJobsHistoryLimitTest() { + // TODO: test successfulJobsHistoryLimit + } + + /** + * Test the property 'suspend' + */ + @Test + public void suspendTest() { + // TODO: test suspend + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobStatusTest.java new file mode 100644 index 0000000000..a61141b0ec --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobStatusTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CronJobStatus + */ +public class V1beta1CronJobStatusTest { + private final V1beta1CronJobStatus model = new V1beta1CronJobStatus(); + + /** + * Model tests for V1beta1CronJobStatus + */ + @Test + public void testV1beta1CronJobStatus() { + // TODO: test V1beta1CronJobStatus + } + + /** + * Test the property 'active' + */ + @Test + public void activeTest() { + // TODO: test active + } + + /** + * Test the property 'lastScheduleTime' + */ + @Test + public void lastScheduleTimeTest() { + // TODO: test lastScheduleTime + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobTest.java new file mode 100644 index 0000000000..1fe7f7926a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CronJobTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1CronJobSpec; +import io.kubernetes.client.models.V1beta1CronJobStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CronJob + */ +public class V1beta1CronJobTest { + private final V1beta1CronJob model = new V1beta1CronJob(); + + /** + * Model tests for V1beta1CronJob + */ + @Test + public void testV1beta1CronJob() { + // TODO: test V1beta1CronJob + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinitionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinitionTest.java new file mode 100644 index 0000000000..a9c8b30bd6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceColumnDefinitionTest.java @@ -0,0 +1,91 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceColumnDefinition + */ +public class V1beta1CustomResourceColumnDefinitionTest { + private final V1beta1CustomResourceColumnDefinition model = new V1beta1CustomResourceColumnDefinition(); + + /** + * Model tests for V1beta1CustomResourceColumnDefinition + */ + @Test + public void testV1beta1CustomResourceColumnDefinition() { + // TODO: test V1beta1CustomResourceColumnDefinition + } + + /** + * Test the property 'jsONPath' + */ + @Test + public void jsONPathTest() { + // TODO: test jsONPath + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'format' + */ + @Test + public void formatTest() { + // TODO: test format + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'priority' + */ + @Test + public void priorityTest() { + // TODO: test priority + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceConversionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceConversionTest.java new file mode 100644 index 0000000000..10ffdfe314 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceConversionTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.ApiextensionsV1beta1WebhookClientConfig; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceConversion + */ +public class V1beta1CustomResourceConversionTest { + private final V1beta1CustomResourceConversion model = new V1beta1CustomResourceConversion(); + + /** + * Model tests for V1beta1CustomResourceConversion + */ + @Test + public void testV1beta1CustomResourceConversion() { + // TODO: test V1beta1CustomResourceConversion + } + + /** + * Test the property 'conversionReviewVersions' + */ + @Test + public void conversionReviewVersionsTest() { + // TODO: test conversionReviewVersions + } + + /** + * Test the property 'strategy' + */ + @Test + public void strategyTest() { + // TODO: test strategy + } + + /** + * Test the property 'webhookClientConfig' + */ + @Test + public void webhookClientConfigTest() { + // TODO: test webhookClientConfig + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionConditionTest.java new file mode 100644 index 0000000000..4fbc91e064 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinitionCondition + */ +public class V1beta1CustomResourceDefinitionConditionTest { + private final V1beta1CustomResourceDefinitionCondition model = new V1beta1CustomResourceDefinitionCondition(); + + /** + * Model tests for V1beta1CustomResourceDefinitionCondition + */ + @Test + public void testV1beta1CustomResourceDefinitionCondition() { + // TODO: test V1beta1CustomResourceDefinitionCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionListTest.java new file mode 100644 index 0000000000..2865298dfd --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1CustomResourceDefinition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinitionList + */ +public class V1beta1CustomResourceDefinitionListTest { + private final V1beta1CustomResourceDefinitionList model = new V1beta1CustomResourceDefinitionList(); + + /** + * Model tests for V1beta1CustomResourceDefinitionList + */ + @Test + public void testV1beta1CustomResourceDefinitionList() { + // TODO: test V1beta1CustomResourceDefinitionList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNamesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNamesTest.java new file mode 100644 index 0000000000..062eb1d04f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionNamesTest.java @@ -0,0 +1,93 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinitionNames + */ +public class V1beta1CustomResourceDefinitionNamesTest { + private final V1beta1CustomResourceDefinitionNames model = new V1beta1CustomResourceDefinitionNames(); + + /** + * Model tests for V1beta1CustomResourceDefinitionNames + */ + @Test + public void testV1beta1CustomResourceDefinitionNames() { + // TODO: test V1beta1CustomResourceDefinitionNames + } + + /** + * Test the property 'categories' + */ + @Test + public void categoriesTest() { + // TODO: test categories + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'listKind' + */ + @Test + public void listKindTest() { + // TODO: test listKind + } + + /** + * Test the property 'plural' + */ + @Test + public void pluralTest() { + // TODO: test plural + } + + /** + * Test the property 'shortNames' + */ + @Test + public void shortNamesTest() { + // TODO: test shortNames + } + + /** + * Test the property 'singular' + */ + @Test + public void singularTest() { + // TODO: test singular + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpecTest.java new file mode 100644 index 0000000000..9f8e83a065 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionSpecTest.java @@ -0,0 +1,131 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1CustomResourceColumnDefinition; +import io.kubernetes.client.models.V1beta1CustomResourceConversion; +import io.kubernetes.client.models.V1beta1CustomResourceDefinitionNames; +import io.kubernetes.client.models.V1beta1CustomResourceDefinitionVersion; +import io.kubernetes.client.models.V1beta1CustomResourceSubresources; +import io.kubernetes.client.models.V1beta1CustomResourceValidation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinitionSpec + */ +public class V1beta1CustomResourceDefinitionSpecTest { + private final V1beta1CustomResourceDefinitionSpec model = new V1beta1CustomResourceDefinitionSpec(); + + /** + * Model tests for V1beta1CustomResourceDefinitionSpec + */ + @Test + public void testV1beta1CustomResourceDefinitionSpec() { + // TODO: test V1beta1CustomResourceDefinitionSpec + } + + /** + * Test the property 'additionalPrinterColumns' + */ + @Test + public void additionalPrinterColumnsTest() { + // TODO: test additionalPrinterColumns + } + + /** + * Test the property 'conversion' + */ + @Test + public void conversionTest() { + // TODO: test conversion + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'names' + */ + @Test + public void namesTest() { + // TODO: test names + } + + /** + * Test the property 'preserveUnknownFields' + */ + @Test + public void preserveUnknownFieldsTest() { + // TODO: test preserveUnknownFields + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + + /** + * Test the property 'subresources' + */ + @Test + public void subresourcesTest() { + // TODO: test subresources + } + + /** + * Test the property 'validation' + */ + @Test + public void validationTest() { + // TODO: test validation + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + + /** + * Test the property 'versions' + */ + @Test + public void versionsTest() { + // TODO: test versions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatusTest.java new file mode 100644 index 0000000000..f3cb0be230 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionStatusTest.java @@ -0,0 +1,71 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1CustomResourceDefinitionCondition; +import io.kubernetes.client.models.V1beta1CustomResourceDefinitionNames; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinitionStatus + */ +public class V1beta1CustomResourceDefinitionStatusTest { + private final V1beta1CustomResourceDefinitionStatus model = new V1beta1CustomResourceDefinitionStatus(); + + /** + * Model tests for V1beta1CustomResourceDefinitionStatus + */ + @Test + public void testV1beta1CustomResourceDefinitionStatus() { + // TODO: test V1beta1CustomResourceDefinitionStatus + } + + /** + * Test the property 'acceptedNames' + */ + @Test + public void acceptedNamesTest() { + // TODO: test acceptedNames + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'storedVersions' + */ + @Test + public void storedVersionsTest() { + // TODO: test storedVersions + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionTest.java new file mode 100644 index 0000000000..9a94baee3c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1CustomResourceDefinitionSpec; +import io.kubernetes.client.models.V1beta1CustomResourceDefinitionStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinition + */ +public class V1beta1CustomResourceDefinitionTest { + private final V1beta1CustomResourceDefinition model = new V1beta1CustomResourceDefinition(); + + /** + * Model tests for V1beta1CustomResourceDefinition + */ + @Test + public void testV1beta1CustomResourceDefinition() { + // TODO: test V1beta1CustomResourceDefinition + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersionTest.java new file mode 100644 index 0000000000..6ef04358bf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceDefinitionVersionTest.java @@ -0,0 +1,96 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1CustomResourceColumnDefinition; +import io.kubernetes.client.models.V1beta1CustomResourceSubresources; +import io.kubernetes.client.models.V1beta1CustomResourceValidation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceDefinitionVersion + */ +public class V1beta1CustomResourceDefinitionVersionTest { + private final V1beta1CustomResourceDefinitionVersion model = new V1beta1CustomResourceDefinitionVersion(); + + /** + * Model tests for V1beta1CustomResourceDefinitionVersion + */ + @Test + public void testV1beta1CustomResourceDefinitionVersion() { + // TODO: test V1beta1CustomResourceDefinitionVersion + } + + /** + * Test the property 'additionalPrinterColumns' + */ + @Test + public void additionalPrinterColumnsTest() { + // TODO: test additionalPrinterColumns + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'schema' + */ + @Test + public void schemaTest() { + // TODO: test schema + } + + /** + * Test the property 'served' + */ + @Test + public void servedTest() { + // TODO: test served + } + + /** + * Test the property 'storage' + */ + @Test + public void storageTest() { + // TODO: test storage + } + + /** + * Test the property 'subresources' + */ + @Test + public void subresourcesTest() { + // TODO: test subresources + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScaleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScaleTest.java new file mode 100644 index 0000000000..32f622d624 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourceScaleTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceSubresourceScale + */ +public class V1beta1CustomResourceSubresourceScaleTest { + private final V1beta1CustomResourceSubresourceScale model = new V1beta1CustomResourceSubresourceScale(); + + /** + * Model tests for V1beta1CustomResourceSubresourceScale + */ + @Test + public void testV1beta1CustomResourceSubresourceScale() { + // TODO: test V1beta1CustomResourceSubresourceScale + } + + /** + * Test the property 'labelSelectorPath' + */ + @Test + public void labelSelectorPathTest() { + // TODO: test labelSelectorPath + } + + /** + * Test the property 'specReplicasPath' + */ + @Test + public void specReplicasPathTest() { + // TODO: test specReplicasPath + } + + /** + * Test the property 'statusReplicasPath' + */ + @Test + public void statusReplicasPathTest() { + // TODO: test statusReplicasPath + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourcesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourcesTest.java new file mode 100644 index 0000000000..189c095628 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceSubresourcesTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1CustomResourceSubresourceScale; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceSubresources + */ +public class V1beta1CustomResourceSubresourcesTest { + private final V1beta1CustomResourceSubresources model = new V1beta1CustomResourceSubresources(); + + /** + * Model tests for V1beta1CustomResourceSubresources + */ + @Test + public void testV1beta1CustomResourceSubresources() { + // TODO: test V1beta1CustomResourceSubresources + } + + /** + * Test the property 'scale' + */ + @Test + public void scaleTest() { + // TODO: test scale + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceValidationTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceValidationTest.java new file mode 100644 index 0000000000..9d90040314 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1CustomResourceValidationTest.java @@ -0,0 +1,52 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1JSONSchemaProps; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1CustomResourceValidation + */ +public class V1beta1CustomResourceValidationTest { + private final V1beta1CustomResourceValidation model = new V1beta1CustomResourceValidation(); + + /** + * Model tests for V1beta1CustomResourceValidation + */ + @Test + public void testV1beta1CustomResourceValidation() { + // TODO: test V1beta1CustomResourceValidation + } + + /** + * Test the property 'openAPIV3Schema' + */ + @Test + public void openAPIV3SchemaTest() { + // TODO: test openAPIV3Schema + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetConditionTest.java new file mode 100644 index 0000000000..723469f3de --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1DaemonSetCondition + */ +public class V1beta1DaemonSetConditionTest { + private final V1beta1DaemonSetCondition model = new V1beta1DaemonSetCondition(); + + /** + * Model tests for V1beta1DaemonSetCondition + */ + @Test + public void testV1beta1DaemonSetCondition() { + // TODO: test V1beta1DaemonSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetListTest.java new file mode 100644 index 0000000000..3e35567464 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1DaemonSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1DaemonSetList + */ +public class V1beta1DaemonSetListTest { + private final V1beta1DaemonSetList model = new V1beta1DaemonSetList(); + + /** + * Model tests for V1beta1DaemonSetList + */ + @Test + public void testV1beta1DaemonSetList() { + // TODO: test V1beta1DaemonSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetSpecTest.java new file mode 100644 index 0000000000..799d00fb09 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetSpecTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.kubernetes.client.models.V1beta1DaemonSetUpdateStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1DaemonSetSpec + */ +public class V1beta1DaemonSetSpecTest { + private final V1beta1DaemonSetSpec model = new V1beta1DaemonSetSpec(); + + /** + * Model tests for V1beta1DaemonSetSpec + */ + @Test + public void testV1beta1DaemonSetSpec() { + // TODO: test V1beta1DaemonSetSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'templateGeneration' + */ + @Test + public void templateGenerationTest() { + // TODO: test templateGeneration + } + + /** + * Test the property 'updateStrategy' + */ + @Test + public void updateStrategyTest() { + // TODO: test updateStrategy + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetStatusTest.java new file mode 100644 index 0000000000..ab46769af5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetStatusTest.java @@ -0,0 +1,126 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1DaemonSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1DaemonSetStatus + */ +public class V1beta1DaemonSetStatusTest { + private final V1beta1DaemonSetStatus model = new V1beta1DaemonSetStatus(); + + /** + * Model tests for V1beta1DaemonSetStatus + */ + @Test + public void testV1beta1DaemonSetStatus() { + // TODO: test V1beta1DaemonSetStatus + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentNumberScheduled' + */ + @Test + public void currentNumberScheduledTest() { + // TODO: test currentNumberScheduled + } + + /** + * Test the property 'desiredNumberScheduled' + */ + @Test + public void desiredNumberScheduledTest() { + // TODO: test desiredNumberScheduled + } + + /** + * Test the property 'numberAvailable' + */ + @Test + public void numberAvailableTest() { + // TODO: test numberAvailable + } + + /** + * Test the property 'numberMisscheduled' + */ + @Test + public void numberMisscheduledTest() { + // TODO: test numberMisscheduled + } + + /** + * Test the property 'numberReady' + */ + @Test + public void numberReadyTest() { + // TODO: test numberReady + } + + /** + * Test the property 'numberUnavailable' + */ + @Test + public void numberUnavailableTest() { + // TODO: test numberUnavailable + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'updatedNumberScheduled' + */ + @Test + public void updatedNumberScheduledTest() { + // TODO: test updatedNumberScheduled + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetTest.java new file mode 100644 index 0000000000..dd8b9316a1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1DaemonSetSpec; +import io.kubernetes.client.models.V1beta1DaemonSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1DaemonSet + */ +public class V1beta1DaemonSetTest { + private final V1beta1DaemonSet model = new V1beta1DaemonSet(); + + /** + * Model tests for V1beta1DaemonSet + */ + @Test + public void testV1beta1DaemonSet() { + // TODO: test V1beta1DaemonSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategyTest.java new file mode 100644 index 0000000000..b0a5c06107 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1DaemonSetUpdateStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1RollingUpdateDaemonSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1DaemonSetUpdateStrategy + */ +public class V1beta1DaemonSetUpdateStrategyTest { + private final V1beta1DaemonSetUpdateStrategy model = new V1beta1DaemonSetUpdateStrategy(); + + /** + * Model tests for V1beta1DaemonSetUpdateStrategy + */ + @Test + public void testV1beta1DaemonSetUpdateStrategy() { + // TODO: test V1beta1DaemonSetUpdateStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventListTest.java new file mode 100644 index 0000000000..e1548aee40 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1Event; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1EventList + */ +public class V1beta1EventListTest { + private final V1beta1EventList model = new V1beta1EventList(); + + /** + * Model tests for V1beta1EventList + */ + @Test + public void testV1beta1EventList() { + // TODO: test V1beta1EventList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventSeriesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventSeriesTest.java new file mode 100644 index 0000000000..aa264dbb76 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventSeriesTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1EventSeries + */ +public class V1beta1EventSeriesTest { + private final V1beta1EventSeries model = new V1beta1EventSeries(); + + /** + * Model tests for V1beta1EventSeries + */ + @Test + public void testV1beta1EventSeries() { + // TODO: test V1beta1EventSeries + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + + /** + * Test the property 'lastObservedTime' + */ + @Test + public void lastObservedTimeTest() { + // TODO: test lastObservedTime + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventTest.java new file mode 100644 index 0000000000..5525d97976 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EventTest.java @@ -0,0 +1,184 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1EventSource; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1ObjectReference; +import io.kubernetes.client.models.V1beta1EventSeries; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1Event + */ +public class V1beta1EventTest { + private final V1beta1Event model = new V1beta1Event(); + + /** + * Model tests for V1beta1Event + */ + @Test + public void testV1beta1Event() { + // TODO: test V1beta1Event + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'deprecatedCount' + */ + @Test + public void deprecatedCountTest() { + // TODO: test deprecatedCount + } + + /** + * Test the property 'deprecatedFirstTimestamp' + */ + @Test + public void deprecatedFirstTimestampTest() { + // TODO: test deprecatedFirstTimestamp + } + + /** + * Test the property 'deprecatedLastTimestamp' + */ + @Test + public void deprecatedLastTimestampTest() { + // TODO: test deprecatedLastTimestamp + } + + /** + * Test the property 'deprecatedSource' + */ + @Test + public void deprecatedSourceTest() { + // TODO: test deprecatedSource + } + + /** + * Test the property 'eventTime' + */ + @Test + public void eventTimeTest() { + // TODO: test eventTime + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'note' + */ + @Test + public void noteTest() { + // TODO: test note + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'regarding' + */ + @Test + public void regardingTest() { + // TODO: test regarding + } + + /** + * Test the property 'related' + */ + @Test + public void relatedTest() { + // TODO: test related + } + + /** + * Test the property 'reportingController' + */ + @Test + public void reportingControllerTest() { + // TODO: test reportingController + } + + /** + * Test the property 'reportingInstance' + */ + @Test + public void reportingInstanceTest() { + // TODO: test reportingInstance + } + + /** + * Test the property 'series' + */ + @Test + public void seriesTest() { + // TODO: test series + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EvictionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EvictionTest.java new file mode 100644 index 0000000000..39541019ec --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1EvictionTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1DeleteOptions; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1Eviction + */ +public class V1beta1EvictionTest { + private final V1beta1Eviction model = new V1beta1Eviction(); + + /** + * Model tests for V1beta1Eviction + */ + @Test + public void testV1beta1Eviction() { + // TODO: test V1beta1Eviction + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'deleteOptions' + */ + @Test + public void deleteOptionsTest() { + // TODO: test deleteOptions + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ExternalDocumentationTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ExternalDocumentationTest.java new file mode 100644 index 0000000000..e88c5c7f6a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ExternalDocumentationTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ExternalDocumentation + */ +public class V1beta1ExternalDocumentationTest { + private final V1beta1ExternalDocumentation model = new V1beta1ExternalDocumentation(); + + /** + * Model tests for V1beta1ExternalDocumentation + */ + @Test + public void testV1beta1ExternalDocumentation() { + // TODO: test V1beta1ExternalDocumentation + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1IPBlockTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1IPBlockTest.java new file mode 100644 index 0000000000..2bac565cb8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1IPBlockTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1IPBlock + */ +public class V1beta1IPBlockTest { + private final V1beta1IPBlock model = new V1beta1IPBlock(); + + /** + * Model tests for V1beta1IPBlock + */ + @Test + public void testV1beta1IPBlock() { + // TODO: test V1beta1IPBlock + } + + /** + * Test the property 'cidr' + */ + @Test + public void cidrTest() { + // TODO: test cidr + } + + /** + * Test the property 'except' + */ + @Test + public void exceptTest() { + // TODO: test except + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1JSONSchemaPropsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1JSONSchemaPropsTest.java new file mode 100644 index 0000000000..0e413ace1d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1JSONSchemaPropsTest.java @@ -0,0 +1,368 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1ExternalDocumentation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1JSONSchemaProps + */ +public class V1beta1JSONSchemaPropsTest { + private final V1beta1JSONSchemaProps model = new V1beta1JSONSchemaProps(); + + /** + * Model tests for V1beta1JSONSchemaProps + */ + @Test + public void testV1beta1JSONSchemaProps() { + // TODO: test V1beta1JSONSchemaProps + } + + /** + * Test the property '$ref' + */ + @Test + public void $refTest() { + // TODO: test $ref + } + + /** + * Test the property '$schema' + */ + @Test + public void $schemaTest() { + // TODO: test $schema + } + + /** + * Test the property 'additionalItems' + */ + @Test + public void additionalItemsTest() { + // TODO: test additionalItems + } + + /** + * Test the property 'additionalProperties' + */ + @Test + public void additionalPropertiesTest() { + // TODO: test additionalProperties + } + + /** + * Test the property 'allOf' + */ + @Test + public void allOfTest() { + // TODO: test allOf + } + + /** + * Test the property 'anyOf' + */ + @Test + public void anyOfTest() { + // TODO: test anyOf + } + + /** + * Test the property '_default' + */ + @Test + public void _defaultTest() { + // TODO: test _default + } + + /** + * Test the property 'definitions' + */ + @Test + public void definitionsTest() { + // TODO: test definitions + } + + /** + * Test the property 'dependencies' + */ + @Test + public void dependenciesTest() { + // TODO: test dependencies + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property '_enum' + */ + @Test + public void _enumTest() { + // TODO: test _enum + } + + /** + * Test the property 'example' + */ + @Test + public void exampleTest() { + // TODO: test example + } + + /** + * Test the property 'exclusiveMaximum' + */ + @Test + public void exclusiveMaximumTest() { + // TODO: test exclusiveMaximum + } + + /** + * Test the property 'exclusiveMinimum' + */ + @Test + public void exclusiveMinimumTest() { + // TODO: test exclusiveMinimum + } + + /** + * Test the property 'externalDocs' + */ + @Test + public void externalDocsTest() { + // TODO: test externalDocs + } + + /** + * Test the property 'format' + */ + @Test + public void formatTest() { + // TODO: test format + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'maxItems' + */ + @Test + public void maxItemsTest() { + // TODO: test maxItems + } + + /** + * Test the property 'maxLength' + */ + @Test + public void maxLengthTest() { + // TODO: test maxLength + } + + /** + * Test the property 'maxProperties' + */ + @Test + public void maxPropertiesTest() { + // TODO: test maxProperties + } + + /** + * Test the property 'maximum' + */ + @Test + public void maximumTest() { + // TODO: test maximum + } + + /** + * Test the property 'minItems' + */ + @Test + public void minItemsTest() { + // TODO: test minItems + } + + /** + * Test the property 'minLength' + */ + @Test + public void minLengthTest() { + // TODO: test minLength + } + + /** + * Test the property 'minProperties' + */ + @Test + public void minPropertiesTest() { + // TODO: test minProperties + } + + /** + * Test the property 'minimum' + */ + @Test + public void minimumTest() { + // TODO: test minimum + } + + /** + * Test the property 'multipleOf' + */ + @Test + public void multipleOfTest() { + // TODO: test multipleOf + } + + /** + * Test the property 'not' + */ + @Test + public void notTest() { + // TODO: test not + } + + /** + * Test the property 'nullable' + */ + @Test + public void nullableTest() { + // TODO: test nullable + } + + /** + * Test the property 'oneOf' + */ + @Test + public void oneOfTest() { + // TODO: test oneOf + } + + /** + * Test the property 'pattern' + */ + @Test + public void patternTest() { + // TODO: test pattern + } + + /** + * Test the property 'patternProperties' + */ + @Test + public void patternPropertiesTest() { + // TODO: test patternProperties + } + + /** + * Test the property 'properties' + */ + @Test + public void propertiesTest() { + // TODO: test properties + } + + /** + * Test the property 'required' + */ + @Test + public void requiredTest() { + // TODO: test required + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'uniqueItems' + */ + @Test + public void uniqueItemsTest() { + // TODO: test uniqueItems + } + + /** + * Test the property 'xKubernetesEmbeddedResource' + */ + @Test + public void xKubernetesEmbeddedResourceTest() { + // TODO: test xKubernetesEmbeddedResource + } + + /** + * Test the property 'xKubernetesIntOrString' + */ + @Test + public void xKubernetesIntOrStringTest() { + // TODO: test xKubernetesIntOrString + } + + /** + * Test the property 'xKubernetesPreserveUnknownFields' + */ + @Test + public void xKubernetesPreserveUnknownFieldsTest() { + // TODO: test xKubernetesPreserveUnknownFields + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1JobTemplateSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1JobTemplateSpecTest.java new file mode 100644 index 0000000000..08cf867fa4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1JobTemplateSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1JobSpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1JobTemplateSpec + */ +public class V1beta1JobTemplateSpecTest { + private final V1beta1JobTemplateSpec model = new V1beta1JobTemplateSpec(); + + /** + * Model tests for V1beta1JobTemplateSpec + */ + @Test + public void testV1beta1JobTemplateSpec() { + // TODO: test V1beta1JobTemplateSpec + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseListTest.java new file mode 100644 index 0000000000..c14edb6413 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1Lease; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1LeaseList + */ +public class V1beta1LeaseListTest { + private final V1beta1LeaseList model = new V1beta1LeaseList(); + + /** + * Model tests for V1beta1LeaseList + */ + @Test + public void testV1beta1LeaseList() { + // TODO: test V1beta1LeaseList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseSpecTest.java new file mode 100644 index 0000000000..e66ef0e389 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseSpecTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1LeaseSpec + */ +public class V1beta1LeaseSpecTest { + private final V1beta1LeaseSpec model = new V1beta1LeaseSpec(); + + /** + * Model tests for V1beta1LeaseSpec + */ + @Test + public void testV1beta1LeaseSpec() { + // TODO: test V1beta1LeaseSpec + } + + /** + * Test the property 'acquireTime' + */ + @Test + public void acquireTimeTest() { + // TODO: test acquireTime + } + + /** + * Test the property 'holderIdentity' + */ + @Test + public void holderIdentityTest() { + // TODO: test holderIdentity + } + + /** + * Test the property 'leaseDurationSeconds' + */ + @Test + public void leaseDurationSecondsTest() { + // TODO: test leaseDurationSeconds + } + + /** + * Test the property 'leaseTransitions' + */ + @Test + public void leaseTransitionsTest() { + // TODO: test leaseTransitions + } + + /** + * Test the property 'renewTime' + */ + @Test + public void renewTimeTest() { + // TODO: test renewTime + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseTest.java new file mode 100644 index 0000000000..058d000480 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LeaseTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1LeaseSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1Lease + */ +public class V1beta1LeaseTest { + private final V1beta1Lease model = new V1beta1Lease(); + + /** + * Model tests for V1beta1Lease + */ + @Test + public void testV1beta1Lease() { + // TODO: test V1beta1Lease + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReviewTest.java new file mode 100644 index 0000000000..7f2b1cac22 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1LocalSubjectAccessReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1SubjectAccessReviewSpec; +import io.kubernetes.client.models.V1beta1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1LocalSubjectAccessReview + */ +public class V1beta1LocalSubjectAccessReviewTest { + private final V1beta1LocalSubjectAccessReview model = new V1beta1LocalSubjectAccessReview(); + + /** + * Model tests for V1beta1LocalSubjectAccessReview + */ + @Test + public void testV1beta1LocalSubjectAccessReview() { + // TODO: test V1beta1LocalSubjectAccessReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationListTest.java new file mode 100644 index 0000000000..67ee882bf5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1MutatingWebhookConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1MutatingWebhookConfigurationList + */ +public class V1beta1MutatingWebhookConfigurationListTest { + private final V1beta1MutatingWebhookConfigurationList model = new V1beta1MutatingWebhookConfigurationList(); + + /** + * Model tests for V1beta1MutatingWebhookConfigurationList + */ + @Test + public void testV1beta1MutatingWebhookConfigurationList() { + // TODO: test V1beta1MutatingWebhookConfigurationList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationTest.java new file mode 100644 index 0000000000..779973ceaa --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookConfigurationTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1MutatingWebhook; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1MutatingWebhookConfiguration + */ +public class V1beta1MutatingWebhookConfigurationTest { + private final V1beta1MutatingWebhookConfiguration model = new V1beta1MutatingWebhookConfiguration(); + + /** + * Model tests for V1beta1MutatingWebhookConfiguration + */ + @Test + public void testV1beta1MutatingWebhookConfiguration() { + // TODO: test V1beta1MutatingWebhookConfiguration + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'webhooks' + */ + @Test + public void webhooksTest() { + // TODO: test webhooks + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookTest.java new file mode 100644 index 0000000000..7ec8b052b1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1MutatingWebhookTest.java @@ -0,0 +1,136 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AdmissionregistrationV1beta1WebhookClientConfig; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1beta1RuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1MutatingWebhook + */ +public class V1beta1MutatingWebhookTest { + private final V1beta1MutatingWebhook model = new V1beta1MutatingWebhook(); + + /** + * Model tests for V1beta1MutatingWebhook + */ + @Test + public void testV1beta1MutatingWebhook() { + // TODO: test V1beta1MutatingWebhook + } + + /** + * Test the property 'admissionReviewVersions' + */ + @Test + public void admissionReviewVersionsTest() { + // TODO: test admissionReviewVersions + } + + /** + * Test the property 'clientConfig' + */ + @Test + public void clientConfigTest() { + // TODO: test clientConfig + } + + /** + * Test the property 'failurePolicy' + */ + @Test + public void failurePolicyTest() { + // TODO: test failurePolicy + } + + /** + * Test the property 'matchPolicy' + */ + @Test + public void matchPolicyTest() { + // TODO: test matchPolicy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespaceSelector' + */ + @Test + public void namespaceSelectorTest() { + // TODO: test namespaceSelector + } + + /** + * Test the property 'objectSelector' + */ + @Test + public void objectSelectorTest() { + // TODO: test objectSelector + } + + /** + * Test the property 'reinvocationPolicy' + */ + @Test + public void reinvocationPolicyTest() { + // TODO: test reinvocationPolicy + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'sideEffects' + */ + @Test + public void sideEffectsTest() { + // TODO: test sideEffects + } + + /** + * Test the property 'timeoutSeconds' + */ + @Test + public void timeoutSecondsTest() { + // TODO: test timeoutSeconds + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRuleTest.java new file mode 100644 index 0000000000..0d3b5c2075 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyEgressRuleTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1NetworkPolicyPeer; +import io.kubernetes.client.models.V1beta1NetworkPolicyPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicyEgressRule + */ +public class V1beta1NetworkPolicyEgressRuleTest { + private final V1beta1NetworkPolicyEgressRule model = new V1beta1NetworkPolicyEgressRule(); + + /** + * Model tests for V1beta1NetworkPolicyEgressRule + */ + @Test + public void testV1beta1NetworkPolicyEgressRule() { + // TODO: test V1beta1NetworkPolicyEgressRule + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + + /** + * Test the property 'to' + */ + @Test + public void toTest() { + // TODO: test to + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRuleTest.java new file mode 100644 index 0000000000..fddea781e6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyIngressRuleTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1NetworkPolicyPeer; +import io.kubernetes.client.models.V1beta1NetworkPolicyPort; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicyIngressRule + */ +public class V1beta1NetworkPolicyIngressRuleTest { + private final V1beta1NetworkPolicyIngressRule model = new V1beta1NetworkPolicyIngressRule(); + + /** + * Model tests for V1beta1NetworkPolicyIngressRule + */ + @Test + public void testV1beta1NetworkPolicyIngressRule() { + // TODO: test V1beta1NetworkPolicyIngressRule + } + + /** + * Test the property 'from' + */ + @Test + public void fromTest() { + // TODO: test from + } + + /** + * Test the property 'ports' + */ + @Test + public void portsTest() { + // TODO: test ports + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyListTest.java new file mode 100644 index 0000000000..2dec6813d4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1NetworkPolicy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicyList + */ +public class V1beta1NetworkPolicyListTest { + private final V1beta1NetworkPolicyList model = new V1beta1NetworkPolicyList(); + + /** + * Model tests for V1beta1NetworkPolicyList + */ + @Test + public void testV1beta1NetworkPolicyList() { + // TODO: test V1beta1NetworkPolicyList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeerTest.java new file mode 100644 index 0000000000..1a3d245dde --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyPeerTest.java @@ -0,0 +1,69 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1beta1IPBlock; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicyPeer + */ +public class V1beta1NetworkPolicyPeerTest { + private final V1beta1NetworkPolicyPeer model = new V1beta1NetworkPolicyPeer(); + + /** + * Model tests for V1beta1NetworkPolicyPeer + */ + @Test + public void testV1beta1NetworkPolicyPeer() { + // TODO: test V1beta1NetworkPolicyPeer + } + + /** + * Test the property 'ipBlock' + */ + @Test + public void ipBlockTest() { + // TODO: test ipBlock + } + + /** + * Test the property 'namespaceSelector' + */ + @Test + public void namespaceSelectorTest() { + // TODO: test namespaceSelector + } + + /** + * Test the property 'podSelector' + */ + @Test + public void podSelectorTest() { + // TODO: test podSelector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyPortTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyPortTest.java new file mode 100644 index 0000000000..b68c2c2ae1 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyPortTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicyPort + */ +public class V1beta1NetworkPolicyPortTest { + private final V1beta1NetworkPolicyPort model = new V1beta1NetworkPolicyPort(); + + /** + * Model tests for V1beta1NetworkPolicyPort + */ + @Test + public void testV1beta1NetworkPolicyPort() { + // TODO: test V1beta1NetworkPolicyPort + } + + /** + * Test the property 'port' + */ + @Test + public void portTest() { + // TODO: test port + } + + /** + * Test the property 'protocol' + */ + @Test + public void protocolTest() { + // TODO: test protocol + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicySpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicySpecTest.java new file mode 100644 index 0000000000..940120cb8b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicySpecTest.java @@ -0,0 +1,80 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1beta1NetworkPolicyEgressRule; +import io.kubernetes.client.models.V1beta1NetworkPolicyIngressRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicySpec + */ +public class V1beta1NetworkPolicySpecTest { + private final V1beta1NetworkPolicySpec model = new V1beta1NetworkPolicySpec(); + + /** + * Model tests for V1beta1NetworkPolicySpec + */ + @Test + public void testV1beta1NetworkPolicySpec() { + // TODO: test V1beta1NetworkPolicySpec + } + + /** + * Test the property 'egress' + */ + @Test + public void egressTest() { + // TODO: test egress + } + + /** + * Test the property 'ingress' + */ + @Test + public void ingressTest() { + // TODO: test ingress + } + + /** + * Test the property 'podSelector' + */ + @Test + public void podSelectorTest() { + // TODO: test podSelector + } + + /** + * Test the property 'policyTypes' + */ + @Test + public void policyTypesTest() { + // TODO: test policyTypes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyTest.java new file mode 100644 index 0000000000..745b389c01 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NetworkPolicyTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1NetworkPolicySpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NetworkPolicy + */ +public class V1beta1NetworkPolicyTest { + private final V1beta1NetworkPolicy model = new V1beta1NetworkPolicy(); + + /** + * Model tests for V1beta1NetworkPolicy + */ + @Test + public void testV1beta1NetworkPolicy() { + // TODO: test V1beta1NetworkPolicy + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NonResourceAttributesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NonResourceAttributesTest.java new file mode 100644 index 0000000000..5c7a19338d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NonResourceAttributesTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NonResourceAttributes + */ +public class V1beta1NonResourceAttributesTest { + private final V1beta1NonResourceAttributes model = new V1beta1NonResourceAttributes(); + + /** + * Model tests for V1beta1NonResourceAttributes + */ + @Test + public void testV1beta1NonResourceAttributes() { + // TODO: test V1beta1NonResourceAttributes + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + + /** + * Test the property 'verb' + */ + @Test + public void verbTest() { + // TODO: test verb + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NonResourceRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NonResourceRuleTest.java new file mode 100644 index 0000000000..736c531afa --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1NonResourceRuleTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1NonResourceRule + */ +public class V1beta1NonResourceRuleTest { + private final V1beta1NonResourceRule model = new V1beta1NonResourceRule(); + + /** + * Model tests for V1beta1NonResourceRule + */ + @Test + public void testV1beta1NonResourceRule() { + // TODO: test V1beta1NonResourceRule + } + + /** + * Test the property 'nonResourceURLs' + */ + @Test + public void nonResourceURLsTest() { + // TODO: test nonResourceURLs + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetListTest.java new file mode 100644 index 0000000000..a3d95ea8ff --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1PodDisruptionBudget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PodDisruptionBudgetList + */ +public class V1beta1PodDisruptionBudgetListTest { + private final V1beta1PodDisruptionBudgetList model = new V1beta1PodDisruptionBudgetList(); + + /** + * Model tests for V1beta1PodDisruptionBudgetList + */ + @Test + public void testV1beta1PodDisruptionBudgetList() { + // TODO: test V1beta1PodDisruptionBudgetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpecTest.java new file mode 100644 index 0000000000..36d6f397f3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetSpecTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PodDisruptionBudgetSpec + */ +public class V1beta1PodDisruptionBudgetSpecTest { + private final V1beta1PodDisruptionBudgetSpec model = new V1beta1PodDisruptionBudgetSpec(); + + /** + * Model tests for V1beta1PodDisruptionBudgetSpec + */ + @Test + public void testV1beta1PodDisruptionBudgetSpec() { + // TODO: test V1beta1PodDisruptionBudgetSpec + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + + /** + * Test the property 'minAvailable' + */ + @Test + public void minAvailableTest() { + // TODO: test minAvailable + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatusTest.java new file mode 100644 index 0000000000..bf12c5ca74 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetStatusTest.java @@ -0,0 +1,95 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PodDisruptionBudgetStatus + */ +public class V1beta1PodDisruptionBudgetStatusTest { + private final V1beta1PodDisruptionBudgetStatus model = new V1beta1PodDisruptionBudgetStatus(); + + /** + * Model tests for V1beta1PodDisruptionBudgetStatus + */ + @Test + public void testV1beta1PodDisruptionBudgetStatus() { + // TODO: test V1beta1PodDisruptionBudgetStatus + } + + /** + * Test the property 'currentHealthy' + */ + @Test + public void currentHealthyTest() { + // TODO: test currentHealthy + } + + /** + * Test the property 'desiredHealthy' + */ + @Test + public void desiredHealthyTest() { + // TODO: test desiredHealthy + } + + /** + * Test the property 'disruptedPods' + */ + @Test + public void disruptedPodsTest() { + // TODO: test disruptedPods + } + + /** + * Test the property 'disruptionsAllowed' + */ + @Test + public void disruptionsAllowedTest() { + // TODO: test disruptionsAllowed + } + + /** + * Test the property 'expectedPods' + */ + @Test + public void expectedPodsTest() { + // TODO: test expectedPods + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetTest.java new file mode 100644 index 0000000000..5091502b94 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PodDisruptionBudgetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1PodDisruptionBudgetSpec; +import io.kubernetes.client.models.V1beta1PodDisruptionBudgetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PodDisruptionBudget + */ +public class V1beta1PodDisruptionBudgetTest { + private final V1beta1PodDisruptionBudget model = new V1beta1PodDisruptionBudget(); + + /** + * Model tests for V1beta1PodDisruptionBudget + */ + @Test + public void testV1beta1PodDisruptionBudget() { + // TODO: test V1beta1PodDisruptionBudget + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PolicyRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PolicyRuleTest.java new file mode 100644 index 0000000000..1797a5c93e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PolicyRuleTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PolicyRule + */ +public class V1beta1PolicyRuleTest { + private final V1beta1PolicyRule model = new V1beta1PolicyRule(); + + /** + * Model tests for V1beta1PolicyRule + */ + @Test + public void testV1beta1PolicyRule() { + // TODO: test V1beta1PolicyRule + } + + /** + * Test the property 'apiGroups' + */ + @Test + public void apiGroupsTest() { + // TODO: test apiGroups + } + + /** + * Test the property 'nonResourceURLs' + */ + @Test + public void nonResourceURLsTest() { + // TODO: test nonResourceURLs + } + + /** + * Test the property 'resourceNames' + */ + @Test + public void resourceNamesTest() { + // TODO: test resourceNames + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PriorityClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PriorityClassListTest.java new file mode 100644 index 0000000000..995feaac87 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PriorityClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1PriorityClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PriorityClassList + */ +public class V1beta1PriorityClassListTest { + private final V1beta1PriorityClassList model = new V1beta1PriorityClassList(); + + /** + * Model tests for V1beta1PriorityClassList + */ + @Test + public void testV1beta1PriorityClassList() { + // TODO: test V1beta1PriorityClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PriorityClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PriorityClassTest.java new file mode 100644 index 0000000000..e31f0f3a33 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1PriorityClassTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1PriorityClass + */ +public class V1beta1PriorityClassTest { + private final V1beta1PriorityClass model = new V1beta1PriorityClass(); + + /** + * Model tests for V1beta1PriorityClass + */ + @Test + public void testV1beta1PriorityClass() { + // TODO: test V1beta1PriorityClass + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'globalDefault' + */ + @Test + public void globalDefaultTest() { + // TODO: test globalDefault + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'preemptionPolicy' + */ + @Test + public void preemptionPolicyTest() { + // TODO: test preemptionPolicy + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetConditionTest.java new file mode 100644 index 0000000000..b2c5c68df7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ReplicaSetCondition + */ +public class V1beta1ReplicaSetConditionTest { + private final V1beta1ReplicaSetCondition model = new V1beta1ReplicaSetCondition(); + + /** + * Model tests for V1beta1ReplicaSetCondition + */ + @Test + public void testV1beta1ReplicaSetCondition() { + // TODO: test V1beta1ReplicaSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetListTest.java new file mode 100644 index 0000000000..20bf6db51b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1ReplicaSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ReplicaSetList + */ +public class V1beta1ReplicaSetListTest { + private final V1beta1ReplicaSetList model = new V1beta1ReplicaSetList(); + + /** + * Model tests for V1beta1ReplicaSetList + */ + @Test + public void testV1beta1ReplicaSetList() { + // TODO: test V1beta1ReplicaSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetSpecTest.java new file mode 100644 index 0000000000..3fae74b4f7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetSpecTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ReplicaSetSpec + */ +public class V1beta1ReplicaSetSpecTest { + private final V1beta1ReplicaSetSpec model = new V1beta1ReplicaSetSpec(); + + /** + * Model tests for V1beta1ReplicaSetSpec + */ + @Test + public void testV1beta1ReplicaSetSpec() { + // TODO: test V1beta1ReplicaSetSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetStatusTest.java new file mode 100644 index 0000000000..91c61d6dc3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetStatusTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1ReplicaSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ReplicaSetStatus + */ +public class V1beta1ReplicaSetStatusTest { + private final V1beta1ReplicaSetStatus model = new V1beta1ReplicaSetStatus(); + + /** + * Model tests for V1beta1ReplicaSetStatus + */ + @Test + public void testV1beta1ReplicaSetStatus() { + // TODO: test V1beta1ReplicaSetStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'fullyLabeledReplicas' + */ + @Test + public void fullyLabeledReplicasTest() { + // TODO: test fullyLabeledReplicas + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetTest.java new file mode 100644 index 0000000000..ed48169693 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ReplicaSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1ReplicaSetSpec; +import io.kubernetes.client.models.V1beta1ReplicaSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ReplicaSet + */ +public class V1beta1ReplicaSetTest { + private final V1beta1ReplicaSet model = new V1beta1ReplicaSet(); + + /** + * Model tests for V1beta1ReplicaSet + */ + @Test + public void testV1beta1ReplicaSet() { + // TODO: test V1beta1ReplicaSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ResourceAttributesTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ResourceAttributesTest.java new file mode 100644 index 0000000000..9469ddc86d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ResourceAttributesTest.java @@ -0,0 +1,99 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ResourceAttributes + */ +public class V1beta1ResourceAttributesTest { + private final V1beta1ResourceAttributes model = new V1beta1ResourceAttributes(); + + /** + * Model tests for V1beta1ResourceAttributes + */ + @Test + public void testV1beta1ResourceAttributes() { + // TODO: test V1beta1ResourceAttributes + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'subresource' + */ + @Test + public void subresourceTest() { + // TODO: test subresource + } + + /** + * Test the property 'verb' + */ + @Test + public void verbTest() { + // TODO: test verb + } + + /** + * Test the property 'version' + */ + @Test + public void versionTest() { + // TODO: test version + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ResourceRuleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ResourceRuleTest.java new file mode 100644 index 0000000000..0add3a2a99 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ResourceRuleTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ResourceRule + */ +public class V1beta1ResourceRuleTest { + private final V1beta1ResourceRule model = new V1beta1ResourceRule(); + + /** + * Model tests for V1beta1ResourceRule + */ + @Test + public void testV1beta1ResourceRule() { + // TODO: test V1beta1ResourceRule + } + + /** + * Test the property 'apiGroups' + */ + @Test + public void apiGroupsTest() { + // TODO: test apiGroups + } + + /** + * Test the property 'resourceNames' + */ + @Test + public void resourceNamesTest() { + // TODO: test resourceNames + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'verbs' + */ + @Test + public void verbsTest() { + // TODO: test verbs + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleBindingListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleBindingListTest.java new file mode 100644 index 0000000000..8484074456 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleBindingListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1RoleBinding; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RoleBindingList + */ +public class V1beta1RoleBindingListTest { + private final V1beta1RoleBindingList model = new V1beta1RoleBindingList(); + + /** + * Model tests for V1beta1RoleBindingList + */ + @Test + public void testV1beta1RoleBindingList() { + // TODO: test V1beta1RoleBindingList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleBindingTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleBindingTest.java new file mode 100644 index 0000000000..b9857f4803 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleBindingTest.java @@ -0,0 +1,88 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1RoleRef; +import io.kubernetes.client.models.V1beta1Subject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RoleBinding + */ +public class V1beta1RoleBindingTest { + private final V1beta1RoleBinding model = new V1beta1RoleBinding(); + + /** + * Model tests for V1beta1RoleBinding + */ + @Test + public void testV1beta1RoleBinding() { + // TODO: test V1beta1RoleBinding + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'roleRef' + */ + @Test + public void roleRefTest() { + // TODO: test roleRef + } + + /** + * Test the property 'subjects' + */ + @Test + public void subjectsTest() { + // TODO: test subjects + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleListTest.java new file mode 100644 index 0000000000..1bd3785fd9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1Role; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RoleList + */ +public class V1beta1RoleListTest { + private final V1beta1RoleList model = new V1beta1RoleList(); + + /** + * Model tests for V1beta1RoleList + */ + @Test + public void testV1beta1RoleList() { + // TODO: test V1beta1RoleList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleRefTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleRefTest.java new file mode 100644 index 0000000000..580558523a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleRefTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RoleRef + */ +public class V1beta1RoleRefTest { + private final V1beta1RoleRef model = new V1beta1RoleRef(); + + /** + * Model tests for V1beta1RoleRef + */ + @Test + public void testV1beta1RoleRef() { + // TODO: test V1beta1RoleRef + } + + /** + * Test the property 'apiGroup' + */ + @Test + public void apiGroupTest() { + // TODO: test apiGroup + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleTest.java new file mode 100644 index 0000000000..199c2579a4 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RoleTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1PolicyRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1Role + */ +public class V1beta1RoleTest { + private final V1beta1Role model = new V1beta1Role(); + + /** + * Model tests for V1beta1Role + */ + @Test + public void testV1beta1Role() { + // TODO: test V1beta1Role + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSetTest.java new file mode 100644 index 0000000000..6cab695b6c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RollingUpdateDaemonSetTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RollingUpdateDaemonSet + */ +public class V1beta1RollingUpdateDaemonSetTest { + private final V1beta1RollingUpdateDaemonSet model = new V1beta1RollingUpdateDaemonSet(); + + /** + * Model tests for V1beta1RollingUpdateDaemonSet + */ + @Test + public void testV1beta1RollingUpdateDaemonSet() { + // TODO: test V1beta1RollingUpdateDaemonSet + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategyTest.java new file mode 100644 index 0000000000..beb2753b0f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RollingUpdateStatefulSetStrategyTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RollingUpdateStatefulSetStrategy + */ +public class V1beta1RollingUpdateStatefulSetStrategyTest { + private final V1beta1RollingUpdateStatefulSetStrategy model = new V1beta1RollingUpdateStatefulSetStrategy(); + + /** + * Model tests for V1beta1RollingUpdateStatefulSetStrategy + */ + @Test + public void testV1beta1RollingUpdateStatefulSetStrategy() { + // TODO: test V1beta1RollingUpdateStatefulSetStrategy + } + + /** + * Test the property 'partition' + */ + @Test + public void partitionTest() { + // TODO: test partition + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuleWithOperationsTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuleWithOperationsTest.java new file mode 100644 index 0000000000..75fa383e4e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuleWithOperationsTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RuleWithOperations + */ +public class V1beta1RuleWithOperationsTest { + private final V1beta1RuleWithOperations model = new V1beta1RuleWithOperations(); + + /** + * Model tests for V1beta1RuleWithOperations + */ + @Test + public void testV1beta1RuleWithOperations() { + // TODO: test V1beta1RuleWithOperations + } + + /** + * Test the property 'apiGroups' + */ + @Test + public void apiGroupsTest() { + // TODO: test apiGroups + } + + /** + * Test the property 'apiVersions' + */ + @Test + public void apiVersionsTest() { + // TODO: test apiVersions + } + + /** + * Test the property 'operations' + */ + @Test + public void operationsTest() { + // TODO: test operations + } + + /** + * Test the property 'resources' + */ + @Test + public void resourcesTest() { + // TODO: test resources + } + + /** + * Test the property 'scope' + */ + @Test + public void scopeTest() { + // TODO: test scope + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuntimeClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuntimeClassListTest.java new file mode 100644 index 0000000000..f675d75750 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuntimeClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1RuntimeClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RuntimeClassList + */ +public class V1beta1RuntimeClassListTest { + private final V1beta1RuntimeClassList model = new V1beta1RuntimeClassList(); + + /** + * Model tests for V1beta1RuntimeClassList + */ + @Test + public void testV1beta1RuntimeClassList() { + // TODO: test V1beta1RuntimeClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuntimeClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuntimeClassTest.java new file mode 100644 index 0000000000..1bd9530e05 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1RuntimeClassTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1RuntimeClass + */ +public class V1beta1RuntimeClassTest { + private final V1beta1RuntimeClass model = new V1beta1RuntimeClass(); + + /** + * Model tests for V1beta1RuntimeClass + */ + @Test + public void testV1beta1RuntimeClass() { + // TODO: test V1beta1RuntimeClass + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'handler' + */ + @Test + public void handlerTest() { + // TODO: test handler + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpecTest.java new file mode 100644 index 0000000000..e2cb5a2733 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1NonResourceAttributes; +import io.kubernetes.client.models.V1beta1ResourceAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SelfSubjectAccessReviewSpec + */ +public class V1beta1SelfSubjectAccessReviewSpecTest { + private final V1beta1SelfSubjectAccessReviewSpec model = new V1beta1SelfSubjectAccessReviewSpec(); + + /** + * Model tests for V1beta1SelfSubjectAccessReviewSpec + */ + @Test + public void testV1beta1SelfSubjectAccessReviewSpec() { + // TODO: test V1beta1SelfSubjectAccessReviewSpec + } + + /** + * Test the property 'nonResourceAttributes' + */ + @Test + public void nonResourceAttributesTest() { + // TODO: test nonResourceAttributes + } + + /** + * Test the property 'resourceAttributes' + */ + @Test + public void resourceAttributesTest() { + // TODO: test resourceAttributes + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewTest.java new file mode 100644 index 0000000000..ddaeb71129 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectAccessReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1SelfSubjectAccessReviewSpec; +import io.kubernetes.client.models.V1beta1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SelfSubjectAccessReview + */ +public class V1beta1SelfSubjectAccessReviewTest { + private final V1beta1SelfSubjectAccessReview model = new V1beta1SelfSubjectAccessReview(); + + /** + * Model tests for V1beta1SelfSubjectAccessReview + */ + @Test + public void testV1beta1SelfSubjectAccessReview() { + // TODO: test V1beta1SelfSubjectAccessReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpecTest.java new file mode 100644 index 0000000000..6f0d236337 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SelfSubjectRulesReviewSpec + */ +public class V1beta1SelfSubjectRulesReviewSpecTest { + private final V1beta1SelfSubjectRulesReviewSpec model = new V1beta1SelfSubjectRulesReviewSpec(); + + /** + * Model tests for V1beta1SelfSubjectRulesReviewSpec + */ + @Test + public void testV1beta1SelfSubjectRulesReviewSpec() { + // TODO: test V1beta1SelfSubjectRulesReviewSpec + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewTest.java new file mode 100644 index 0000000000..78f750a97e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SelfSubjectRulesReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1SelfSubjectRulesReviewSpec; +import io.kubernetes.client.models.V1beta1SubjectRulesReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SelfSubjectRulesReview + */ +public class V1beta1SelfSubjectRulesReviewTest { + private final V1beta1SelfSubjectRulesReview model = new V1beta1SelfSubjectRulesReview(); + + /** + * Model tests for V1beta1SelfSubjectRulesReview + */ + @Test + public void testV1beta1SelfSubjectRulesReview() { + // TODO: test V1beta1SelfSubjectRulesReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetConditionTest.java new file mode 100644 index 0000000000..3a504c74b3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StatefulSetCondition + */ +public class V1beta1StatefulSetConditionTest { + private final V1beta1StatefulSetCondition model = new V1beta1StatefulSetCondition(); + + /** + * Model tests for V1beta1StatefulSetCondition + */ + @Test + public void testV1beta1StatefulSetCondition() { + // TODO: test V1beta1StatefulSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetListTest.java new file mode 100644 index 0000000000..9e79183b66 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1StatefulSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StatefulSetList + */ +public class V1beta1StatefulSetListTest { + private final V1beta1StatefulSetList model = new V1beta1StatefulSetList(); + + /** + * Model tests for V1beta1StatefulSetList + */ + @Test + public void testV1beta1StatefulSetList() { + // TODO: test V1beta1StatefulSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetSpecTest.java new file mode 100644 index 0000000000..e10e501b41 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetSpecTest.java @@ -0,0 +1,113 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PersistentVolumeClaim; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.kubernetes.client.models.V1beta1StatefulSetUpdateStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StatefulSetSpec + */ +public class V1beta1StatefulSetSpecTest { + private final V1beta1StatefulSetSpec model = new V1beta1StatefulSetSpec(); + + /** + * Model tests for V1beta1StatefulSetSpec + */ + @Test + public void testV1beta1StatefulSetSpec() { + // TODO: test V1beta1StatefulSetSpec + } + + /** + * Test the property 'podManagementPolicy' + */ + @Test + public void podManagementPolicyTest() { + // TODO: test podManagementPolicy + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'serviceName' + */ + @Test + public void serviceNameTest() { + // TODO: test serviceName + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'updateStrategy' + */ + @Test + public void updateStrategyTest() { + // TODO: test updateStrategy + } + + /** + * Test the property 'volumeClaimTemplates' + */ + @Test + public void volumeClaimTemplatesTest() { + // TODO: test volumeClaimTemplates + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetStatusTest.java new file mode 100644 index 0000000000..83cb0faea5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetStatusTest.java @@ -0,0 +1,118 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1StatefulSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StatefulSetStatus + */ +public class V1beta1StatefulSetStatusTest { + private final V1beta1StatefulSetStatus model = new V1beta1StatefulSetStatus(); + + /** + * Model tests for V1beta1StatefulSetStatus + */ + @Test + public void testV1beta1StatefulSetStatus() { + // TODO: test V1beta1StatefulSetStatus + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentReplicas' + */ + @Test + public void currentReplicasTest() { + // TODO: test currentReplicas + } + + /** + * Test the property 'currentRevision' + */ + @Test + public void currentRevisionTest() { + // TODO: test currentRevision + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'updateRevision' + */ + @Test + public void updateRevisionTest() { + // TODO: test updateRevision + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetTest.java new file mode 100644 index 0000000000..8e0c6fb28f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1StatefulSetSpec; +import io.kubernetes.client.models.V1beta1StatefulSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StatefulSet + */ +public class V1beta1StatefulSetTest { + private final V1beta1StatefulSet model = new V1beta1StatefulSet(); + + /** + * Model tests for V1beta1StatefulSet + */ + @Test + public void testV1beta1StatefulSet() { + // TODO: test V1beta1StatefulSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategyTest.java new file mode 100644 index 0000000000..9d36086644 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StatefulSetUpdateStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1RollingUpdateStatefulSetStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StatefulSetUpdateStrategy + */ +public class V1beta1StatefulSetUpdateStrategyTest { + private final V1beta1StatefulSetUpdateStrategy model = new V1beta1StatefulSetUpdateStrategy(); + + /** + * Model tests for V1beta1StatefulSetUpdateStrategy + */ + @Test + public void testV1beta1StatefulSetUpdateStrategy() { + // TODO: test V1beta1StatefulSetUpdateStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StorageClassListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StorageClassListTest.java new file mode 100644 index 0000000000..a5e9166158 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StorageClassListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1StorageClass; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StorageClassList + */ +public class V1beta1StorageClassListTest { + private final V1beta1StorageClassList model = new V1beta1StorageClassList(); + + /** + * Model tests for V1beta1StorageClassList + */ + @Test + public void testV1beta1StorageClassList() { + // TODO: test V1beta1StorageClassList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StorageClassTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StorageClassTest.java new file mode 100644 index 0000000000..a8905bc404 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1StorageClassTest.java @@ -0,0 +1,129 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1TopologySelectorTerm; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1StorageClass + */ +public class V1beta1StorageClassTest { + private final V1beta1StorageClass model = new V1beta1StorageClass(); + + /** + * Model tests for V1beta1StorageClass + */ + @Test + public void testV1beta1StorageClass() { + // TODO: test V1beta1StorageClass + } + + /** + * Test the property 'allowVolumeExpansion' + */ + @Test + public void allowVolumeExpansionTest() { + // TODO: test allowVolumeExpansion + } + + /** + * Test the property 'allowedTopologies' + */ + @Test + public void allowedTopologiesTest() { + // TODO: test allowedTopologies + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'mountOptions' + */ + @Test + public void mountOptionsTest() { + // TODO: test mountOptions + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'provisioner' + */ + @Test + public void provisionerTest() { + // TODO: test provisioner + } + + /** + * Test the property 'reclaimPolicy' + */ + @Test + public void reclaimPolicyTest() { + // TODO: test reclaimPolicy + } + + /** + * Test the property 'volumeBindingMode' + */ + @Test + public void volumeBindingModeTest() { + // TODO: test volumeBindingMode + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpecTest.java new file mode 100644 index 0000000000..caaeb04b97 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewSpecTest.java @@ -0,0 +1,97 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1NonResourceAttributes; +import io.kubernetes.client.models.V1beta1ResourceAttributes; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SubjectAccessReviewSpec + */ +public class V1beta1SubjectAccessReviewSpecTest { + private final V1beta1SubjectAccessReviewSpec model = new V1beta1SubjectAccessReviewSpec(); + + /** + * Model tests for V1beta1SubjectAccessReviewSpec + */ + @Test + public void testV1beta1SubjectAccessReviewSpec() { + // TODO: test V1beta1SubjectAccessReviewSpec + } + + /** + * Test the property 'extra' + */ + @Test + public void extraTest() { + // TODO: test extra + } + + /** + * Test the property 'group' + */ + @Test + public void groupTest() { + // TODO: test group + } + + /** + * Test the property 'nonResourceAttributes' + */ + @Test + public void nonResourceAttributesTest() { + // TODO: test nonResourceAttributes + } + + /** + * Test the property 'resourceAttributes' + */ + @Test + public void resourceAttributesTest() { + // TODO: test resourceAttributes + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatusTest.java new file mode 100644 index 0000000000..1bb143a6e3 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewStatusTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SubjectAccessReviewStatus + */ +public class V1beta1SubjectAccessReviewStatusTest { + private final V1beta1SubjectAccessReviewStatus model = new V1beta1SubjectAccessReviewStatus(); + + /** + * Model tests for V1beta1SubjectAccessReviewStatus + */ + @Test + public void testV1beta1SubjectAccessReviewStatus() { + // TODO: test V1beta1SubjectAccessReviewStatus + } + + /** + * Test the property 'allowed' + */ + @Test + public void allowedTest() { + // TODO: test allowed + } + + /** + * Test the property 'denied' + */ + @Test + public void deniedTest() { + // TODO: test denied + } + + /** + * Test the property 'evaluationError' + */ + @Test + public void evaluationErrorTest() { + // TODO: test evaluationError + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewTest.java new file mode 100644 index 0000000000..3edd52d7fb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectAccessReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1SubjectAccessReviewSpec; +import io.kubernetes.client.models.V1beta1SubjectAccessReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SubjectAccessReview + */ +public class V1beta1SubjectAccessReviewTest { + private final V1beta1SubjectAccessReview model = new V1beta1SubjectAccessReview(); + + /** + * Model tests for V1beta1SubjectAccessReview + */ + @Test + public void testV1beta1SubjectAccessReview() { + // TODO: test V1beta1SubjectAccessReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatusTest.java new file mode 100644 index 0000000000..49587322bf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectRulesReviewStatusTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1NonResourceRule; +import io.kubernetes.client.models.V1beta1ResourceRule; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1SubjectRulesReviewStatus + */ +public class V1beta1SubjectRulesReviewStatusTest { + private final V1beta1SubjectRulesReviewStatus model = new V1beta1SubjectRulesReviewStatus(); + + /** + * Model tests for V1beta1SubjectRulesReviewStatus + */ + @Test + public void testV1beta1SubjectRulesReviewStatus() { + // TODO: test V1beta1SubjectRulesReviewStatus + } + + /** + * Test the property 'evaluationError' + */ + @Test + public void evaluationErrorTest() { + // TODO: test evaluationError + } + + /** + * Test the property 'incomplete' + */ + @Test + public void incompleteTest() { + // TODO: test incomplete + } + + /** + * Test the property 'nonResourceRules' + */ + @Test + public void nonResourceRulesTest() { + // TODO: test nonResourceRules + } + + /** + * Test the property 'resourceRules' + */ + @Test + public void resourceRulesTest() { + // TODO: test resourceRules + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectTest.java new file mode 100644 index 0000000000..99a9521374 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1SubjectTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1Subject + */ +public class V1beta1SubjectTest { + private final V1beta1Subject model = new V1beta1Subject(); + + /** + * Model tests for V1beta1Subject + */ + @Test + public void testV1beta1Subject() { + // TODO: test V1beta1Subject + } + + /** + * Test the property 'apiGroup' + */ + @Test + public void apiGroupTest() { + // TODO: test apiGroup + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespace' + */ + @Test + public void namespaceTest() { + // TODO: test namespace + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewSpecTest.java new file mode 100644 index 0000000000..7a660fdadc --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1TokenReviewSpec + */ +public class V1beta1TokenReviewSpecTest { + private final V1beta1TokenReviewSpec model = new V1beta1TokenReviewSpec(); + + /** + * Model tests for V1beta1TokenReviewSpec + */ + @Test + public void testV1beta1TokenReviewSpec() { + // TODO: test V1beta1TokenReviewSpec + } + + /** + * Test the property 'audiences' + */ + @Test + public void audiencesTest() { + // TODO: test audiences + } + + /** + * Test the property 'token' + */ + @Test + public void tokenTest() { + // TODO: test token + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewStatusTest.java new file mode 100644 index 0000000000..a38964a5b2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewStatusTest.java @@ -0,0 +1,78 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1UserInfo; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1TokenReviewStatus + */ +public class V1beta1TokenReviewStatusTest { + private final V1beta1TokenReviewStatus model = new V1beta1TokenReviewStatus(); + + /** + * Model tests for V1beta1TokenReviewStatus + */ + @Test + public void testV1beta1TokenReviewStatus() { + // TODO: test V1beta1TokenReviewStatus + } + + /** + * Test the property 'audiences' + */ + @Test + public void audiencesTest() { + // TODO: test audiences + } + + /** + * Test the property 'authenticated' + */ + @Test + public void authenticatedTest() { + // TODO: test authenticated + } + + /** + * Test the property 'error' + */ + @Test + public void errorTest() { + // TODO: test error + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewTest.java new file mode 100644 index 0000000000..db02e51a4f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1TokenReviewTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1TokenReviewSpec; +import io.kubernetes.client.models.V1beta1TokenReviewStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1TokenReview + */ +public class V1beta1TokenReviewTest { + private final V1beta1TokenReview model = new V1beta1TokenReview(); + + /** + * Model tests for V1beta1TokenReview + */ + @Test + public void testV1beta1TokenReview() { + // TODO: test V1beta1TokenReview + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1UserInfoTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1UserInfoTest.java new file mode 100644 index 0000000000..fbece8c4fb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1UserInfoTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1UserInfo + */ +public class V1beta1UserInfoTest { + private final V1beta1UserInfo model = new V1beta1UserInfo(); + + /** + * Model tests for V1beta1UserInfo + */ + @Test + public void testV1beta1UserInfo() { + // TODO: test V1beta1UserInfo + } + + /** + * Test the property 'extra' + */ + @Test + public void extraTest() { + // TODO: test extra + } + + /** + * Test the property 'groups' + */ + @Test + public void groupsTest() { + // TODO: test groups + } + + /** + * Test the property 'uid' + */ + @Test + public void uidTest() { + // TODO: test uid + } + + /** + * Test the property 'username' + */ + @Test + public void usernameTest() { + // TODO: test username + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationListTest.java new file mode 100644 index 0000000000..76fcf77aac --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1ValidatingWebhookConfiguration; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ValidatingWebhookConfigurationList + */ +public class V1beta1ValidatingWebhookConfigurationListTest { + private final V1beta1ValidatingWebhookConfigurationList model = new V1beta1ValidatingWebhookConfigurationList(); + + /** + * Model tests for V1beta1ValidatingWebhookConfigurationList + */ + @Test + public void testV1beta1ValidatingWebhookConfigurationList() { + // TODO: test V1beta1ValidatingWebhookConfigurationList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationTest.java new file mode 100644 index 0000000000..85382dea4d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookConfigurationTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1ValidatingWebhook; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ValidatingWebhookConfiguration + */ +public class V1beta1ValidatingWebhookConfigurationTest { + private final V1beta1ValidatingWebhookConfiguration model = new V1beta1ValidatingWebhookConfiguration(); + + /** + * Model tests for V1beta1ValidatingWebhookConfiguration + */ + @Test + public void testV1beta1ValidatingWebhookConfiguration() { + // TODO: test V1beta1ValidatingWebhookConfiguration + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'webhooks' + */ + @Test + public void webhooksTest() { + // TODO: test webhooks + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookTest.java new file mode 100644 index 0000000000..ddd19c3813 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1ValidatingWebhookTest.java @@ -0,0 +1,128 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.AdmissionregistrationV1beta1WebhookClientConfig; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1beta1RuleWithOperations; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1ValidatingWebhook + */ +public class V1beta1ValidatingWebhookTest { + private final V1beta1ValidatingWebhook model = new V1beta1ValidatingWebhook(); + + /** + * Model tests for V1beta1ValidatingWebhook + */ + @Test + public void testV1beta1ValidatingWebhook() { + // TODO: test V1beta1ValidatingWebhook + } + + /** + * Test the property 'admissionReviewVersions' + */ + @Test + public void admissionReviewVersionsTest() { + // TODO: test admissionReviewVersions + } + + /** + * Test the property 'clientConfig' + */ + @Test + public void clientConfigTest() { + // TODO: test clientConfig + } + + /** + * Test the property 'failurePolicy' + */ + @Test + public void failurePolicyTest() { + // TODO: test failurePolicy + } + + /** + * Test the property 'matchPolicy' + */ + @Test + public void matchPolicyTest() { + // TODO: test matchPolicy + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'namespaceSelector' + */ + @Test + public void namespaceSelectorTest() { + // TODO: test namespaceSelector + } + + /** + * Test the property 'objectSelector' + */ + @Test + public void objectSelectorTest() { + // TODO: test objectSelector + } + + /** + * Test the property 'rules' + */ + @Test + public void rulesTest() { + // TODO: test rules + } + + /** + * Test the property 'sideEffects' + */ + @Test + public void sideEffectsTest() { + // TODO: test sideEffects + } + + /** + * Test the property 'timeoutSeconds' + */ + @Test + public void timeoutSecondsTest() { + // TODO: test timeoutSeconds + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentListTest.java new file mode 100644 index 0000000000..8c4341121b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta1VolumeAttachment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1VolumeAttachmentList + */ +public class V1beta1VolumeAttachmentListTest { + private final V1beta1VolumeAttachmentList model = new V1beta1VolumeAttachmentList(); + + /** + * Model tests for V1beta1VolumeAttachmentList + */ + @Test + public void testV1beta1VolumeAttachmentList() { + // TODO: test V1beta1VolumeAttachmentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSourceTest.java new file mode 100644 index 0000000000..caa3695f50 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSourceTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1PersistentVolumeSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1VolumeAttachmentSource + */ +public class V1beta1VolumeAttachmentSourceTest { + private final V1beta1VolumeAttachmentSource model = new V1beta1VolumeAttachmentSource(); + + /** + * Model tests for V1beta1VolumeAttachmentSource + */ + @Test + public void testV1beta1VolumeAttachmentSource() { + // TODO: test V1beta1VolumeAttachmentSource + } + + /** + * Test the property 'inlineVolumeSpec' + */ + @Test + public void inlineVolumeSpecTest() { + // TODO: test inlineVolumeSpec + } + + /** + * Test the property 'persistentVolumeName' + */ + @Test + public void persistentVolumeNameTest() { + // TODO: test persistentVolumeName + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpecTest.java new file mode 100644 index 0000000000..d0abf43599 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentSpecTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1VolumeAttachmentSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1VolumeAttachmentSpec + */ +public class V1beta1VolumeAttachmentSpecTest { + private final V1beta1VolumeAttachmentSpec model = new V1beta1VolumeAttachmentSpec(); + + /** + * Model tests for V1beta1VolumeAttachmentSpec + */ + @Test + public void testV1beta1VolumeAttachmentSpec() { + // TODO: test V1beta1VolumeAttachmentSpec + } + + /** + * Test the property 'attacher' + */ + @Test + public void attacherTest() { + // TODO: test attacher + } + + /** + * Test the property 'nodeName' + */ + @Test + public void nodeNameTest() { + // TODO: test nodeName + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatusTest.java new file mode 100644 index 0000000000..97859e5fa8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentStatusTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta1VolumeError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1VolumeAttachmentStatus + */ +public class V1beta1VolumeAttachmentStatusTest { + private final V1beta1VolumeAttachmentStatus model = new V1beta1VolumeAttachmentStatus(); + + /** + * Model tests for V1beta1VolumeAttachmentStatus + */ + @Test + public void testV1beta1VolumeAttachmentStatus() { + // TODO: test V1beta1VolumeAttachmentStatus + } + + /** + * Test the property 'attachError' + */ + @Test + public void attachErrorTest() { + // TODO: test attachError + } + + /** + * Test the property 'attached' + */ + @Test + public void attachedTest() { + // TODO: test attached + } + + /** + * Test the property 'attachmentMetadata' + */ + @Test + public void attachmentMetadataTest() { + // TODO: test attachmentMetadata + } + + /** + * Test the property 'detachError' + */ + @Test + public void detachErrorTest() { + // TODO: test detachError + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentTest.java new file mode 100644 index 0000000000..5db9be50bf --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeAttachmentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta1VolumeAttachmentSpec; +import io.kubernetes.client.models.V1beta1VolumeAttachmentStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1VolumeAttachment + */ +public class V1beta1VolumeAttachmentTest { + private final V1beta1VolumeAttachment model = new V1beta1VolumeAttachment(); + + /** + * Model tests for V1beta1VolumeAttachment + */ + @Test + public void testV1beta1VolumeAttachment() { + // TODO: test V1beta1VolumeAttachment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeErrorTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeErrorTest.java new file mode 100644 index 0000000000..b323f4fa98 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta1VolumeErrorTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta1VolumeError + */ +public class V1beta1VolumeErrorTest { + private final V1beta1VolumeError model = new V1beta1VolumeError(); + + /** + * Model tests for V1beta1VolumeError + */ + @Test + public void testV1beta1VolumeError() { + // TODO: test V1beta1VolumeError + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ControllerRevisionListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ControllerRevisionListTest.java new file mode 100644 index 0000000000..03e4a3915c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ControllerRevisionListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta2ControllerRevision; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ControllerRevisionList + */ +public class V1beta2ControllerRevisionListTest { + private final V1beta2ControllerRevisionList model = new V1beta2ControllerRevisionList(); + + /** + * Model tests for V1beta2ControllerRevisionList + */ + @Test + public void testV1beta2ControllerRevisionList() { + // TODO: test V1beta2ControllerRevisionList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ControllerRevisionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ControllerRevisionTest.java new file mode 100644 index 0000000000..72b98d8570 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ControllerRevisionTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.RuntimeRawExtension; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ControllerRevision + */ +public class V1beta2ControllerRevisionTest { + private final V1beta2ControllerRevision model = new V1beta2ControllerRevision(); + + /** + * Model tests for V1beta2ControllerRevision + */ + @Test + public void testV1beta2ControllerRevision() { + // TODO: test V1beta2ControllerRevision + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'revision' + */ + @Test + public void revisionTest() { + // TODO: test revision + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetConditionTest.java new file mode 100644 index 0000000000..5391eb81bb --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DaemonSetCondition + */ +public class V1beta2DaemonSetConditionTest { + private final V1beta2DaemonSetCondition model = new V1beta2DaemonSetCondition(); + + /** + * Model tests for V1beta2DaemonSetCondition + */ + @Test + public void testV1beta2DaemonSetCondition() { + // TODO: test V1beta2DaemonSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetListTest.java new file mode 100644 index 0000000000..ee74174d14 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta2DaemonSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DaemonSetList + */ +public class V1beta2DaemonSetListTest { + private final V1beta2DaemonSetList model = new V1beta2DaemonSetList(); + + /** + * Model tests for V1beta2DaemonSetList + */ + @Test + public void testV1beta2DaemonSetList() { + // TODO: test V1beta2DaemonSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetSpecTest.java new file mode 100644 index 0000000000..c559e80e5e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetSpecTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.kubernetes.client.models.V1beta2DaemonSetUpdateStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DaemonSetSpec + */ +public class V1beta2DaemonSetSpecTest { + private final V1beta2DaemonSetSpec model = new V1beta2DaemonSetSpec(); + + /** + * Model tests for V1beta2DaemonSetSpec + */ + @Test + public void testV1beta2DaemonSetSpec() { + // TODO: test V1beta2DaemonSetSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'updateStrategy' + */ + @Test + public void updateStrategyTest() { + // TODO: test updateStrategy + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetStatusTest.java new file mode 100644 index 0000000000..791b5f039c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetStatusTest.java @@ -0,0 +1,126 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2DaemonSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DaemonSetStatus + */ +public class V1beta2DaemonSetStatusTest { + private final V1beta2DaemonSetStatus model = new V1beta2DaemonSetStatus(); + + /** + * Model tests for V1beta2DaemonSetStatus + */ + @Test + public void testV1beta2DaemonSetStatus() { + // TODO: test V1beta2DaemonSetStatus + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentNumberScheduled' + */ + @Test + public void currentNumberScheduledTest() { + // TODO: test currentNumberScheduled + } + + /** + * Test the property 'desiredNumberScheduled' + */ + @Test + public void desiredNumberScheduledTest() { + // TODO: test desiredNumberScheduled + } + + /** + * Test the property 'numberAvailable' + */ + @Test + public void numberAvailableTest() { + // TODO: test numberAvailable + } + + /** + * Test the property 'numberMisscheduled' + */ + @Test + public void numberMisscheduledTest() { + // TODO: test numberMisscheduled + } + + /** + * Test the property 'numberReady' + */ + @Test + public void numberReadyTest() { + // TODO: test numberReady + } + + /** + * Test the property 'numberUnavailable' + */ + @Test + public void numberUnavailableTest() { + // TODO: test numberUnavailable + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'updatedNumberScheduled' + */ + @Test + public void updatedNumberScheduledTest() { + // TODO: test updatedNumberScheduled + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetTest.java new file mode 100644 index 0000000000..d00648b026 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta2DaemonSetSpec; +import io.kubernetes.client.models.V1beta2DaemonSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DaemonSet + */ +public class V1beta2DaemonSetTest { + private final V1beta2DaemonSet model = new V1beta2DaemonSet(); + + /** + * Model tests for V1beta2DaemonSet + */ + @Test + public void testV1beta2DaemonSet() { + // TODO: test V1beta2DaemonSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategyTest.java new file mode 100644 index 0000000000..961cc9b997 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DaemonSetUpdateStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2RollingUpdateDaemonSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DaemonSetUpdateStrategy + */ +public class V1beta2DaemonSetUpdateStrategyTest { + private final V1beta2DaemonSetUpdateStrategy model = new V1beta2DaemonSetUpdateStrategy(); + + /** + * Model tests for V1beta2DaemonSetUpdateStrategy + */ + @Test + public void testV1beta2DaemonSetUpdateStrategy() { + // TODO: test V1beta2DaemonSetUpdateStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentConditionTest.java new file mode 100644 index 0000000000..a0e3628eb8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentConditionTest.java @@ -0,0 +1,92 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DeploymentCondition + */ +public class V1beta2DeploymentConditionTest { + private final V1beta2DeploymentCondition model = new V1beta2DeploymentCondition(); + + /** + * Model tests for V1beta2DeploymentCondition + */ + @Test + public void testV1beta2DeploymentCondition() { + // TODO: test V1beta2DeploymentCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'lastUpdateTime' + */ + @Test + public void lastUpdateTimeTest() { + // TODO: test lastUpdateTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentListTest.java new file mode 100644 index 0000000000..22c74b947e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta2Deployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DeploymentList + */ +public class V1beta2DeploymentListTest { + private final V1beta2DeploymentList model = new V1beta2DeploymentList(); + + /** + * Model tests for V1beta2DeploymentList + */ + @Test + public void testV1beta2DeploymentList() { + // TODO: test V1beta2DeploymentList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentSpecTest.java new file mode 100644 index 0000000000..5a3155ad84 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentSpecTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.kubernetes.client.models.V1beta2DeploymentStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DeploymentSpec + */ +public class V1beta2DeploymentSpecTest { + private final V1beta2DeploymentSpec model = new V1beta2DeploymentSpec(); + + /** + * Model tests for V1beta2DeploymentSpec + */ + @Test + public void testV1beta2DeploymentSpec() { + // TODO: test V1beta2DeploymentSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'paused' + */ + @Test + public void pausedTest() { + // TODO: test paused + } + + /** + * Test the property 'progressDeadlineSeconds' + */ + @Test + public void progressDeadlineSecondsTest() { + // TODO: test progressDeadlineSeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'strategy' + */ + @Test + public void strategyTest() { + // TODO: test strategy + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentStatusTest.java new file mode 100644 index 0000000000..896e00f1ab --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentStatusTest.java @@ -0,0 +1,110 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2DeploymentCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DeploymentStatus + */ +public class V1beta2DeploymentStatusTest { + private final V1beta2DeploymentStatus model = new V1beta2DeploymentStatus(); + + /** + * Model tests for V1beta2DeploymentStatus + */ + @Test + public void testV1beta2DeploymentStatus() { + // TODO: test V1beta2DeploymentStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'unavailableReplicas' + */ + @Test + public void unavailableReplicasTest() { + // TODO: test unavailableReplicas + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentStrategyTest.java new file mode 100644 index 0000000000..1d84a7cc79 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2RollingUpdateDeployment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2DeploymentStrategy + */ +public class V1beta2DeploymentStrategyTest { + private final V1beta2DeploymentStrategy model = new V1beta2DeploymentStrategy(); + + /** + * Model tests for V1beta2DeploymentStrategy + */ + @Test + public void testV1beta2DeploymentStrategy() { + // TODO: test V1beta2DeploymentStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentTest.java new file mode 100644 index 0000000000..5cc5d9c52e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2DeploymentTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta2DeploymentSpec; +import io.kubernetes.client.models.V1beta2DeploymentStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2Deployment + */ +public class V1beta2DeploymentTest { + private final V1beta2Deployment model = new V1beta2Deployment(); + + /** + * Model tests for V1beta2Deployment + */ + @Test + public void testV1beta2Deployment() { + // TODO: test V1beta2Deployment + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetConditionTest.java new file mode 100644 index 0000000000..59165f24c2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ReplicaSetCondition + */ +public class V1beta2ReplicaSetConditionTest { + private final V1beta2ReplicaSetCondition model = new V1beta2ReplicaSetCondition(); + + /** + * Model tests for V1beta2ReplicaSetCondition + */ + @Test + public void testV1beta2ReplicaSetCondition() { + // TODO: test V1beta2ReplicaSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetListTest.java new file mode 100644 index 0000000000..4a7d238c05 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta2ReplicaSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ReplicaSetList + */ +public class V1beta2ReplicaSetListTest { + private final V1beta2ReplicaSetList model = new V1beta2ReplicaSetList(); + + /** + * Model tests for V1beta2ReplicaSetList + */ + @Test + public void testV1beta2ReplicaSetList() { + // TODO: test V1beta2ReplicaSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetSpecTest.java new file mode 100644 index 0000000000..567b684bee --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetSpecTest.java @@ -0,0 +1,77 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ReplicaSetSpec + */ +public class V1beta2ReplicaSetSpecTest { + private final V1beta2ReplicaSetSpec model = new V1beta2ReplicaSetSpec(); + + /** + * Model tests for V1beta2ReplicaSetSpec + */ + @Test + public void testV1beta2ReplicaSetSpec() { + // TODO: test V1beta2ReplicaSetSpec + } + + /** + * Test the property 'minReadySeconds' + */ + @Test + public void minReadySecondsTest() { + // TODO: test minReadySeconds + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetStatusTest.java new file mode 100644 index 0000000000..1af7c5e22b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetStatusTest.java @@ -0,0 +1,94 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2ReplicaSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ReplicaSetStatus + */ +public class V1beta2ReplicaSetStatusTest { + private final V1beta2ReplicaSetStatus model = new V1beta2ReplicaSetStatus(); + + /** + * Model tests for V1beta2ReplicaSetStatus + */ + @Test + public void testV1beta2ReplicaSetStatus() { + // TODO: test V1beta2ReplicaSetStatus + } + + /** + * Test the property 'availableReplicas' + */ + @Test + public void availableReplicasTest() { + // TODO: test availableReplicas + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'fullyLabeledReplicas' + */ + @Test + public void fullyLabeledReplicasTest() { + // TODO: test fullyLabeledReplicas + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetTest.java new file mode 100644 index 0000000000..37da219306 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ReplicaSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta2ReplicaSetSpec; +import io.kubernetes.client.models.V1beta2ReplicaSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ReplicaSet + */ +public class V1beta2ReplicaSetTest { + private final V1beta2ReplicaSet model = new V1beta2ReplicaSet(); + + /** + * Model tests for V1beta2ReplicaSet + */ + @Test + public void testV1beta2ReplicaSet() { + // TODO: test V1beta2ReplicaSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSetTest.java new file mode 100644 index 0000000000..3e8905b7a0 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateDaemonSetTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2RollingUpdateDaemonSet + */ +public class V1beta2RollingUpdateDaemonSetTest { + private final V1beta2RollingUpdateDaemonSet model = new V1beta2RollingUpdateDaemonSet(); + + /** + * Model tests for V1beta2RollingUpdateDaemonSet + */ + @Test + public void testV1beta2RollingUpdateDaemonSet() { + // TODO: test V1beta2RollingUpdateDaemonSet + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateDeploymentTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateDeploymentTest.java new file mode 100644 index 0000000000..7297b51b3b --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateDeploymentTest.java @@ -0,0 +1,59 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2RollingUpdateDeployment + */ +public class V1beta2RollingUpdateDeploymentTest { + private final V1beta2RollingUpdateDeployment model = new V1beta2RollingUpdateDeployment(); + + /** + * Model tests for V1beta2RollingUpdateDeployment + */ + @Test + public void testV1beta2RollingUpdateDeployment() { + // TODO: test V1beta2RollingUpdateDeployment + } + + /** + * Test the property 'maxSurge' + */ + @Test + public void maxSurgeTest() { + // TODO: test maxSurge + } + + /** + * Test the property 'maxUnavailable' + */ + @Test + public void maxUnavailableTest() { + // TODO: test maxUnavailable + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategyTest.java new file mode 100644 index 0000000000..38e6f3aef5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2RollingUpdateStatefulSetStrategyTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2RollingUpdateStatefulSetStrategy + */ +public class V1beta2RollingUpdateStatefulSetStrategyTest { + private final V1beta2RollingUpdateStatefulSetStrategy model = new V1beta2RollingUpdateStatefulSetStrategy(); + + /** + * Model tests for V1beta2RollingUpdateStatefulSetStrategy + */ + @Test + public void testV1beta2RollingUpdateStatefulSetStrategy() { + // TODO: test V1beta2RollingUpdateStatefulSetStrategy + } + + /** + * Test the property 'partition' + */ + @Test + public void partitionTest() { + // TODO: test partition + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleSpecTest.java new file mode 100644 index 0000000000..f66407309e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleSpecTest.java @@ -0,0 +1,51 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ScaleSpec + */ +public class V1beta2ScaleSpecTest { + private final V1beta2ScaleSpec model = new V1beta2ScaleSpec(); + + /** + * Model tests for V1beta2ScaleSpec + */ + @Test + public void testV1beta2ScaleSpec() { + // TODO: test V1beta2ScaleSpec + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleStatusTest.java new file mode 100644 index 0000000000..d77a6c8432 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleStatusTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2ScaleStatus + */ +public class V1beta2ScaleStatusTest { + private final V1beta2ScaleStatus model = new V1beta2ScaleStatus(); + + /** + * Model tests for V1beta2ScaleStatus + */ + @Test + public void testV1beta2ScaleStatus() { + // TODO: test V1beta2ScaleStatus + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'targetSelector' + */ + @Test + public void targetSelectorTest() { + // TODO: test targetSelector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleTest.java new file mode 100644 index 0000000000..393b61e087 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2ScaleTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta2ScaleSpec; +import io.kubernetes.client.models.V1beta2ScaleStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2Scale + */ +public class V1beta2ScaleTest { + private final V1beta2Scale model = new V1beta2Scale(); + + /** + * Model tests for V1beta2Scale + */ + @Test + public void testV1beta2Scale() { + // TODO: test V1beta2Scale + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetConditionTest.java new file mode 100644 index 0000000000..277c64a9ef --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2StatefulSetCondition + */ +public class V1beta2StatefulSetConditionTest { + private final V1beta2StatefulSetCondition model = new V1beta2StatefulSetCondition(); + + /** + * Model tests for V1beta2StatefulSetCondition + */ + @Test + public void testV1beta2StatefulSetCondition() { + // TODO: test V1beta2StatefulSetCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetListTest.java new file mode 100644 index 0000000000..44415ca318 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V1beta2StatefulSet; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2StatefulSetList + */ +public class V1beta2StatefulSetListTest { + private final V1beta2StatefulSetList model = new V1beta2StatefulSetList(); + + /** + * Model tests for V1beta2StatefulSetList + */ + @Test + public void testV1beta2StatefulSetList() { + // TODO: test V1beta2StatefulSetList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetSpecTest.java new file mode 100644 index 0000000000..397ee8ce82 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetSpecTest.java @@ -0,0 +1,113 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V1PersistentVolumeClaim; +import io.kubernetes.client.models.V1PodTemplateSpec; +import io.kubernetes.client.models.V1beta2StatefulSetUpdateStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2StatefulSetSpec + */ +public class V1beta2StatefulSetSpecTest { + private final V1beta2StatefulSetSpec model = new V1beta2StatefulSetSpec(); + + /** + * Model tests for V1beta2StatefulSetSpec + */ + @Test + public void testV1beta2StatefulSetSpec() { + // TODO: test V1beta2StatefulSetSpec + } + + /** + * Test the property 'podManagementPolicy' + */ + @Test + public void podManagementPolicyTest() { + // TODO: test podManagementPolicy + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'revisionHistoryLimit' + */ + @Test + public void revisionHistoryLimitTest() { + // TODO: test revisionHistoryLimit + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'serviceName' + */ + @Test + public void serviceNameTest() { + // TODO: test serviceName + } + + /** + * Test the property 'template' + */ + @Test + public void templateTest() { + // TODO: test template + } + + /** + * Test the property 'updateStrategy' + */ + @Test + public void updateStrategyTest() { + // TODO: test updateStrategy + } + + /** + * Test the property 'volumeClaimTemplates' + */ + @Test + public void volumeClaimTemplatesTest() { + // TODO: test volumeClaimTemplates + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetStatusTest.java new file mode 100644 index 0000000000..01a8afa65f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetStatusTest.java @@ -0,0 +1,118 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2StatefulSetCondition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2StatefulSetStatus + */ +public class V1beta2StatefulSetStatusTest { + private final V1beta2StatefulSetStatus model = new V1beta2StatefulSetStatus(); + + /** + * Model tests for V1beta2StatefulSetStatus + */ + @Test + public void testV1beta2StatefulSetStatus() { + // TODO: test V1beta2StatefulSetStatus + } + + /** + * Test the property 'collisionCount' + */ + @Test + public void collisionCountTest() { + // TODO: test collisionCount + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentReplicas' + */ + @Test + public void currentReplicasTest() { + // TODO: test currentReplicas + } + + /** + * Test the property 'currentRevision' + */ + @Test + public void currentRevisionTest() { + // TODO: test currentRevision + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + + /** + * Test the property 'readyReplicas' + */ + @Test + public void readyReplicasTest() { + // TODO: test readyReplicas + } + + /** + * Test the property 'replicas' + */ + @Test + public void replicasTest() { + // TODO: test replicas + } + + /** + * Test the property 'updateRevision' + */ + @Test + public void updateRevisionTest() { + // TODO: test updateRevision + } + + /** + * Test the property 'updatedReplicas' + */ + @Test + public void updatedReplicasTest() { + // TODO: test updatedReplicas + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetTest.java new file mode 100644 index 0000000000..ec80411656 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V1beta2StatefulSetSpec; +import io.kubernetes.client.models.V1beta2StatefulSetStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2StatefulSet + */ +public class V1beta2StatefulSetTest { + private final V1beta2StatefulSet model = new V1beta2StatefulSet(); + + /** + * Model tests for V1beta2StatefulSet + */ + @Test + public void testV1beta2StatefulSet() { + // TODO: test V1beta2StatefulSet + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategyTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategyTest.java new file mode 100644 index 0000000000..7ecc51bf48 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V1beta2StatefulSetUpdateStrategyTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1beta2RollingUpdateStatefulSetStrategy; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V1beta2StatefulSetUpdateStrategy + */ +public class V1beta2StatefulSetUpdateStrategyTest { + private final V1beta2StatefulSetUpdateStrategy model = new V1beta2StatefulSetUpdateStrategy(); + + /** + * Model tests for V1beta2StatefulSetUpdateStrategy + */ + @Test + public void testV1beta2StatefulSetUpdateStrategy() { + // TODO: test V1beta2StatefulSetUpdateStrategy + } + + /** + * Test the property 'rollingUpdate' + */ + @Test + public void rollingUpdateTest() { + // TODO: test rollingUpdate + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobListTest.java new file mode 100644 index 0000000000..049cff975f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V2alpha1CronJob; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2alpha1CronJobList + */ +public class V2alpha1CronJobListTest { + private final V2alpha1CronJobList model = new V2alpha1CronJobList(); + + /** + * Model tests for V2alpha1CronJobList + */ + @Test + public void testV2alpha1CronJobList() { + // TODO: test V2alpha1CronJobList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobSpecTest.java new file mode 100644 index 0000000000..31f38ba73e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobSpecTest.java @@ -0,0 +1,100 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2alpha1JobTemplateSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2alpha1CronJobSpec + */ +public class V2alpha1CronJobSpecTest { + private final V2alpha1CronJobSpec model = new V2alpha1CronJobSpec(); + + /** + * Model tests for V2alpha1CronJobSpec + */ + @Test + public void testV2alpha1CronJobSpec() { + // TODO: test V2alpha1CronJobSpec + } + + /** + * Test the property 'concurrencyPolicy' + */ + @Test + public void concurrencyPolicyTest() { + // TODO: test concurrencyPolicy + } + + /** + * Test the property 'failedJobsHistoryLimit' + */ + @Test + public void failedJobsHistoryLimitTest() { + // TODO: test failedJobsHistoryLimit + } + + /** + * Test the property 'jobTemplate' + */ + @Test + public void jobTemplateTest() { + // TODO: test jobTemplate + } + + /** + * Test the property 'schedule' + */ + @Test + public void scheduleTest() { + // TODO: test schedule + } + + /** + * Test the property 'startingDeadlineSeconds' + */ + @Test + public void startingDeadlineSecondsTest() { + // TODO: test startingDeadlineSeconds + } + + /** + * Test the property 'successfulJobsHistoryLimit' + */ + @Test + public void successfulJobsHistoryLimitTest() { + // TODO: test successfulJobsHistoryLimit + } + + /** + * Test the property 'suspend' + */ + @Test + public void suspendTest() { + // TODO: test suspend + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobStatusTest.java new file mode 100644 index 0000000000..199f320c62 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobStatusTest.java @@ -0,0 +1,63 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2alpha1CronJobStatus + */ +public class V2alpha1CronJobStatusTest { + private final V2alpha1CronJobStatus model = new V2alpha1CronJobStatus(); + + /** + * Model tests for V2alpha1CronJobStatus + */ + @Test + public void testV2alpha1CronJobStatus() { + // TODO: test V2alpha1CronJobStatus + } + + /** + * Test the property 'active' + */ + @Test + public void activeTest() { + // TODO: test active + } + + /** + * Test the property 'lastScheduleTime' + */ + @Test + public void lastScheduleTimeTest() { + // TODO: test lastScheduleTime + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobTest.java new file mode 100644 index 0000000000..7bcf7e6db6 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1CronJobTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V2alpha1CronJobSpec; +import io.kubernetes.client.models.V2alpha1CronJobStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2alpha1CronJob + */ +public class V2alpha1CronJobTest { + private final V2alpha1CronJob model = new V2alpha1CronJob(); + + /** + * Model tests for V2alpha1CronJob + */ + @Test + public void testV2alpha1CronJob() { + // TODO: test V2alpha1CronJob + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1JobTemplateSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1JobTemplateSpecTest.java new file mode 100644 index 0000000000..b823c0f72c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2alpha1JobTemplateSpecTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1JobSpec; +import io.kubernetes.client.models.V1ObjectMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2alpha1JobTemplateSpec + */ +public class V2alpha1JobTemplateSpecTest { + private final V2alpha1JobTemplateSpec model = new V2alpha1JobTemplateSpec(); + + /** + * Model tests for V2alpha1JobTemplateSpec + */ + @Test + public void testV2alpha1JobTemplateSpec() { + // TODO: test V2alpha1JobTemplateSpec + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReferenceTest.java new file mode 100644 index 0000000000..92f80ccec8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1CrossVersionObjectReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1CrossVersionObjectReference + */ +public class V2beta1CrossVersionObjectReferenceTest { + private final V2beta1CrossVersionObjectReference model = new V2beta1CrossVersionObjectReference(); + + /** + * Model tests for V2beta1CrossVersionObjectReference + */ + @Test + public void testV2beta1CrossVersionObjectReference() { + // TODO: test V2beta1CrossVersionObjectReference + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ExternalMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ExternalMetricSourceTest.java new file mode 100644 index 0000000000..c08f1eb503 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ExternalMetricSourceTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1ExternalMetricSource + */ +public class V2beta1ExternalMetricSourceTest { + private final V2beta1ExternalMetricSource model = new V2beta1ExternalMetricSource(); + + /** + * Model tests for V2beta1ExternalMetricSource + */ + @Test + public void testV2beta1ExternalMetricSource() { + // TODO: test V2beta1ExternalMetricSource + } + + /** + * Test the property 'metricName' + */ + @Test + public void metricNameTest() { + // TODO: test metricName + } + + /** + * Test the property 'metricSelector' + */ + @Test + public void metricSelectorTest() { + // TODO: test metricSelector + } + + /** + * Test the property 'targetAverageValue' + */ + @Test + public void targetAverageValueTest() { + // TODO: test targetAverageValue + } + + /** + * Test the property 'targetValue' + */ + @Test + public void targetValueTest() { + // TODO: test targetValue + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ExternalMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ExternalMetricStatusTest.java new file mode 100644 index 0000000000..f1d49f57e5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ExternalMetricStatusTest.java @@ -0,0 +1,76 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1ExternalMetricStatus + */ +public class V2beta1ExternalMetricStatusTest { + private final V2beta1ExternalMetricStatus model = new V2beta1ExternalMetricStatus(); + + /** + * Model tests for V2beta1ExternalMetricStatus + */ + @Test + public void testV2beta1ExternalMetricStatus() { + // TODO: test V2beta1ExternalMetricStatus + } + + /** + * Test the property 'currentAverageValue' + */ + @Test + public void currentAverageValueTest() { + // TODO: test currentAverageValue + } + + /** + * Test the property 'currentValue' + */ + @Test + public void currentValueTest() { + // TODO: test currentValue + } + + /** + * Test the property 'metricName' + */ + @Test + public void metricNameTest() { + // TODO: test metricName + } + + /** + * Test the property 'metricSelector' + */ + @Test + public void metricSelectorTest() { + // TODO: test metricSelector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerConditionTest.java new file mode 100644 index 0000000000..e582b785f7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1HorizontalPodAutoscalerCondition + */ +public class V2beta1HorizontalPodAutoscalerConditionTest { + private final V2beta1HorizontalPodAutoscalerCondition model = new V2beta1HorizontalPodAutoscalerCondition(); + + /** + * Model tests for V2beta1HorizontalPodAutoscalerCondition + */ + @Test + public void testV2beta1HorizontalPodAutoscalerCondition() { + // TODO: test V2beta1HorizontalPodAutoscalerCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerListTest.java new file mode 100644 index 0000000000..d0160ee33e --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V2beta1HorizontalPodAutoscaler; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1HorizontalPodAutoscalerList + */ +public class V2beta1HorizontalPodAutoscalerListTest { + private final V2beta1HorizontalPodAutoscalerList model = new V2beta1HorizontalPodAutoscalerList(); + + /** + * Model tests for V2beta1HorizontalPodAutoscalerList + */ + @Test + public void testV2beta1HorizontalPodAutoscalerList() { + // TODO: test V2beta1HorizontalPodAutoscalerList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpecTest.java new file mode 100644 index 0000000000..e5c1410a71 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerSpecTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta1CrossVersionObjectReference; +import io.kubernetes.client.models.V2beta1MetricSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1HorizontalPodAutoscalerSpec + */ +public class V2beta1HorizontalPodAutoscalerSpecTest { + private final V2beta1HorizontalPodAutoscalerSpec model = new V2beta1HorizontalPodAutoscalerSpec(); + + /** + * Model tests for V2beta1HorizontalPodAutoscalerSpec + */ + @Test + public void testV2beta1HorizontalPodAutoscalerSpec() { + // TODO: test V2beta1HorizontalPodAutoscalerSpec + } + + /** + * Test the property 'maxReplicas' + */ + @Test + public void maxReplicasTest() { + // TODO: test maxReplicas + } + + /** + * Test the property 'metrics' + */ + @Test + public void metricsTest() { + // TODO: test metrics + } + + /** + * Test the property 'minReplicas' + */ + @Test + public void minReplicasTest() { + // TODO: test minReplicas + } + + /** + * Test the property 'scaleTargetRef' + */ + @Test + public void scaleTargetRefTest() { + // TODO: test scaleTargetRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatusTest.java new file mode 100644 index 0000000000..c124f944b8 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerStatusTest.java @@ -0,0 +1,96 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta1HorizontalPodAutoscalerCondition; +import io.kubernetes.client.models.V2beta1MetricStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1HorizontalPodAutoscalerStatus + */ +public class V2beta1HorizontalPodAutoscalerStatusTest { + private final V2beta1HorizontalPodAutoscalerStatus model = new V2beta1HorizontalPodAutoscalerStatus(); + + /** + * Model tests for V2beta1HorizontalPodAutoscalerStatus + */ + @Test + public void testV2beta1HorizontalPodAutoscalerStatus() { + // TODO: test V2beta1HorizontalPodAutoscalerStatus + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentMetrics' + */ + @Test + public void currentMetricsTest() { + // TODO: test currentMetrics + } + + /** + * Test the property 'currentReplicas' + */ + @Test + public void currentReplicasTest() { + // TODO: test currentReplicas + } + + /** + * Test the property 'desiredReplicas' + */ + @Test + public void desiredReplicasTest() { + // TODO: test desiredReplicas + } + + /** + * Test the property 'lastScaleTime' + */ + @Test + public void lastScaleTimeTest() { + // TODO: test lastScaleTime + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerTest.java new file mode 100644 index 0000000000..8f0c4970c7 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1HorizontalPodAutoscalerTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V2beta1HorizontalPodAutoscalerSpec; +import io.kubernetes.client.models.V2beta1HorizontalPodAutoscalerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1HorizontalPodAutoscaler + */ +public class V2beta1HorizontalPodAutoscalerTest { + private final V2beta1HorizontalPodAutoscaler model = new V2beta1HorizontalPodAutoscaler(); + + /** + * Model tests for V2beta1HorizontalPodAutoscaler + */ + @Test + public void testV2beta1HorizontalPodAutoscaler() { + // TODO: test V2beta1HorizontalPodAutoscaler + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1MetricSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1MetricSpecTest.java new file mode 100644 index 0000000000..3482ab456d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1MetricSpecTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta1ExternalMetricSource; +import io.kubernetes.client.models.V2beta1ObjectMetricSource; +import io.kubernetes.client.models.V2beta1PodsMetricSource; +import io.kubernetes.client.models.V2beta1ResourceMetricSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1MetricSpec + */ +public class V2beta1MetricSpecTest { + private final V2beta1MetricSpec model = new V2beta1MetricSpec(); + + /** + * Model tests for V2beta1MetricSpec + */ + @Test + public void testV2beta1MetricSpec() { + // TODO: test V2beta1MetricSpec + } + + /** + * Test the property 'external' + */ + @Test + public void externalTest() { + // TODO: test external + } + + /** + * Test the property '_object' + */ + @Test + public void _objectTest() { + // TODO: test _object + } + + /** + * Test the property 'pods' + */ + @Test + public void podsTest() { + // TODO: test pods + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1MetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1MetricStatusTest.java new file mode 100644 index 0000000000..1869dffbf5 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1MetricStatusTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta1ExternalMetricStatus; +import io.kubernetes.client.models.V2beta1ObjectMetricStatus; +import io.kubernetes.client.models.V2beta1PodsMetricStatus; +import io.kubernetes.client.models.V2beta1ResourceMetricStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1MetricStatus + */ +public class V2beta1MetricStatusTest { + private final V2beta1MetricStatus model = new V2beta1MetricStatus(); + + /** + * Model tests for V2beta1MetricStatus + */ + @Test + public void testV2beta1MetricStatus() { + // TODO: test V2beta1MetricStatus + } + + /** + * Test the property 'external' + */ + @Test + public void externalTest() { + // TODO: test external + } + + /** + * Test the property '_object' + */ + @Test + public void _objectTest() { + // TODO: test _object + } + + /** + * Test the property 'pods' + */ + @Test + public void podsTest() { + // TODO: test pods + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ObjectMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ObjectMetricSourceTest.java new file mode 100644 index 0000000000..2c717ebf63 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ObjectMetricSourceTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V2beta1CrossVersionObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1ObjectMetricSource + */ +public class V2beta1ObjectMetricSourceTest { + private final V2beta1ObjectMetricSource model = new V2beta1ObjectMetricSource(); + + /** + * Model tests for V2beta1ObjectMetricSource + */ + @Test + public void testV2beta1ObjectMetricSource() { + // TODO: test V2beta1ObjectMetricSource + } + + /** + * Test the property 'averageValue' + */ + @Test + public void averageValueTest() { + // TODO: test averageValue + } + + /** + * Test the property 'metricName' + */ + @Test + public void metricNameTest() { + // TODO: test metricName + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + + /** + * Test the property 'targetValue' + */ + @Test + public void targetValueTest() { + // TODO: test targetValue + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ObjectMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ObjectMetricStatusTest.java new file mode 100644 index 0000000000..c0ef152a10 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ObjectMetricStatusTest.java @@ -0,0 +1,85 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.kubernetes.client.models.V2beta1CrossVersionObjectReference; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1ObjectMetricStatus + */ +public class V2beta1ObjectMetricStatusTest { + private final V2beta1ObjectMetricStatus model = new V2beta1ObjectMetricStatus(); + + /** + * Model tests for V2beta1ObjectMetricStatus + */ + @Test + public void testV2beta1ObjectMetricStatus() { + // TODO: test V2beta1ObjectMetricStatus + } + + /** + * Test the property 'averageValue' + */ + @Test + public void averageValueTest() { + // TODO: test averageValue + } + + /** + * Test the property 'currentValue' + */ + @Test + public void currentValueTest() { + // TODO: test currentValue + } + + /** + * Test the property 'metricName' + */ + @Test + public void metricNameTest() { + // TODO: test metricName + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1PodsMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1PodsMetricSourceTest.java new file mode 100644 index 0000000000..b2513affd2 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1PodsMetricSourceTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1PodsMetricSource + */ +public class V2beta1PodsMetricSourceTest { + private final V2beta1PodsMetricSource model = new V2beta1PodsMetricSource(); + + /** + * Model tests for V2beta1PodsMetricSource + */ + @Test + public void testV2beta1PodsMetricSource() { + // TODO: test V2beta1PodsMetricSource + } + + /** + * Test the property 'metricName' + */ + @Test + public void metricNameTest() { + // TODO: test metricName + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + + /** + * Test the property 'targetAverageValue' + */ + @Test + public void targetAverageValueTest() { + // TODO: test targetAverageValue + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1PodsMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1PodsMetricStatusTest.java new file mode 100644 index 0000000000..2ba22c9330 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1PodsMetricStatusTest.java @@ -0,0 +1,68 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1PodsMetricStatus + */ +public class V2beta1PodsMetricStatusTest { + private final V2beta1PodsMetricStatus model = new V2beta1PodsMetricStatus(); + + /** + * Model tests for V2beta1PodsMetricStatus + */ + @Test + public void testV2beta1PodsMetricStatus() { + // TODO: test V2beta1PodsMetricStatus + } + + /** + * Test the property 'currentAverageValue' + */ + @Test + public void currentAverageValueTest() { + // TODO: test currentAverageValue + } + + /** + * Test the property 'metricName' + */ + @Test + public void metricNameTest() { + // TODO: test metricName + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ResourceMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ResourceMetricSourceTest.java new file mode 100644 index 0000000000..c52443c02c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ResourceMetricSourceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1ResourceMetricSource + */ +public class V2beta1ResourceMetricSourceTest { + private final V2beta1ResourceMetricSource model = new V2beta1ResourceMetricSource(); + + /** + * Model tests for V2beta1ResourceMetricSource + */ + @Test + public void testV2beta1ResourceMetricSource() { + // TODO: test V2beta1ResourceMetricSource + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'targetAverageUtilization' + */ + @Test + public void targetAverageUtilizationTest() { + // TODO: test targetAverageUtilization + } + + /** + * Test the property 'targetAverageValue' + */ + @Test + public void targetAverageValueTest() { + // TODO: test targetAverageValue + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ResourceMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ResourceMetricStatusTest.java new file mode 100644 index 0000000000..f0f7576228 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta1ResourceMetricStatusTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta1ResourceMetricStatus + */ +public class V2beta1ResourceMetricStatusTest { + private final V2beta1ResourceMetricStatus model = new V2beta1ResourceMetricStatus(); + + /** + * Model tests for V2beta1ResourceMetricStatus + */ + @Test + public void testV2beta1ResourceMetricStatus() { + // TODO: test V2beta1ResourceMetricStatus + } + + /** + * Test the property 'currentAverageUtilization' + */ + @Test + public void currentAverageUtilizationTest() { + // TODO: test currentAverageUtilization + } + + /** + * Test the property 'currentAverageValue' + */ + @Test + public void currentAverageValueTest() { + // TODO: test currentAverageValue + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReferenceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReferenceTest.java new file mode 100644 index 0000000000..5768f25408 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2CrossVersionObjectReferenceTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2CrossVersionObjectReference + */ +public class V2beta2CrossVersionObjectReferenceTest { + private final V2beta2CrossVersionObjectReference model = new V2beta2CrossVersionObjectReference(); + + /** + * Model tests for V2beta2CrossVersionObjectReference + */ + @Test + public void testV2beta2CrossVersionObjectReference() { + // TODO: test V2beta2CrossVersionObjectReference + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ExternalMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ExternalMetricSourceTest.java new file mode 100644 index 0000000000..fd4e8b0c9c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ExternalMetricSourceTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2MetricIdentifier; +import io.kubernetes.client.models.V2beta2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2ExternalMetricSource + */ +public class V2beta2ExternalMetricSourceTest { + private final V2beta2ExternalMetricSource model = new V2beta2ExternalMetricSource(); + + /** + * Model tests for V2beta2ExternalMetricSource + */ + @Test + public void testV2beta2ExternalMetricSource() { + // TODO: test V2beta2ExternalMetricSource + } + + /** + * Test the property 'metric' + */ + @Test + public void metricTest() { + // TODO: test metric + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ExternalMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ExternalMetricStatusTest.java new file mode 100644 index 0000000000..2f2a3c0121 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ExternalMetricStatusTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2MetricIdentifier; +import io.kubernetes.client.models.V2beta2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2ExternalMetricStatus + */ +public class V2beta2ExternalMetricStatusTest { + private final V2beta2ExternalMetricStatus model = new V2beta2ExternalMetricStatus(); + + /** + * Model tests for V2beta2ExternalMetricStatus + */ + @Test + public void testV2beta2ExternalMetricStatus() { + // TODO: test V2beta2ExternalMetricStatus + } + + /** + * Test the property 'current' + */ + @Test + public void currentTest() { + // TODO: test current + } + + /** + * Test the property 'metric' + */ + @Test + public void metricTest() { + // TODO: test metric + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerConditionTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerConditionTest.java new file mode 100644 index 0000000000..fd79240a9d --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerConditionTest.java @@ -0,0 +1,84 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2HorizontalPodAutoscalerCondition + */ +public class V2beta2HorizontalPodAutoscalerConditionTest { + private final V2beta2HorizontalPodAutoscalerCondition model = new V2beta2HorizontalPodAutoscalerCondition(); + + /** + * Model tests for V2beta2HorizontalPodAutoscalerCondition + */ + @Test + public void testV2beta2HorizontalPodAutoscalerCondition() { + // TODO: test V2beta2HorizontalPodAutoscalerCondition + } + + /** + * Test the property 'lastTransitionTime' + */ + @Test + public void lastTransitionTimeTest() { + // TODO: test lastTransitionTime + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerListTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerListTest.java new file mode 100644 index 0000000000..510bd2524c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerListTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ListMeta; +import io.kubernetes.client.models.V2beta2HorizontalPodAutoscaler; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2HorizontalPodAutoscalerList + */ +public class V2beta2HorizontalPodAutoscalerListTest { + private final V2beta2HorizontalPodAutoscalerList model = new V2beta2HorizontalPodAutoscalerList(); + + /** + * Model tests for V2beta2HorizontalPodAutoscalerList + */ + @Test + public void testV2beta2HorizontalPodAutoscalerList() { + // TODO: test V2beta2HorizontalPodAutoscalerList + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'items' + */ + @Test + public void itemsTest() { + // TODO: test items + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpecTest.java new file mode 100644 index 0000000000..b1c3c7701a --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerSpecTest.java @@ -0,0 +1,79 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2CrossVersionObjectReference; +import io.kubernetes.client.models.V2beta2MetricSpec; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2HorizontalPodAutoscalerSpec + */ +public class V2beta2HorizontalPodAutoscalerSpecTest { + private final V2beta2HorizontalPodAutoscalerSpec model = new V2beta2HorizontalPodAutoscalerSpec(); + + /** + * Model tests for V2beta2HorizontalPodAutoscalerSpec + */ + @Test + public void testV2beta2HorizontalPodAutoscalerSpec() { + // TODO: test V2beta2HorizontalPodAutoscalerSpec + } + + /** + * Test the property 'maxReplicas' + */ + @Test + public void maxReplicasTest() { + // TODO: test maxReplicas + } + + /** + * Test the property 'metrics' + */ + @Test + public void metricsTest() { + // TODO: test metrics + } + + /** + * Test the property 'minReplicas' + */ + @Test + public void minReplicasTest() { + // TODO: test minReplicas + } + + /** + * Test the property 'scaleTargetRef' + */ + @Test + public void scaleTargetRefTest() { + // TODO: test scaleTargetRef + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatusTest.java new file mode 100644 index 0000000000..9683b70a79 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerStatusTest.java @@ -0,0 +1,96 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2HorizontalPodAutoscalerCondition; +import io.kubernetes.client.models.V2beta2MetricStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.joda.time.DateTime; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2HorizontalPodAutoscalerStatus + */ +public class V2beta2HorizontalPodAutoscalerStatusTest { + private final V2beta2HorizontalPodAutoscalerStatus model = new V2beta2HorizontalPodAutoscalerStatus(); + + /** + * Model tests for V2beta2HorizontalPodAutoscalerStatus + */ + @Test + public void testV2beta2HorizontalPodAutoscalerStatus() { + // TODO: test V2beta2HorizontalPodAutoscalerStatus + } + + /** + * Test the property 'conditions' + */ + @Test + public void conditionsTest() { + // TODO: test conditions + } + + /** + * Test the property 'currentMetrics' + */ + @Test + public void currentMetricsTest() { + // TODO: test currentMetrics + } + + /** + * Test the property 'currentReplicas' + */ + @Test + public void currentReplicasTest() { + // TODO: test currentReplicas + } + + /** + * Test the property 'desiredReplicas' + */ + @Test + public void desiredReplicasTest() { + // TODO: test desiredReplicas + } + + /** + * Test the property 'lastScaleTime' + */ + @Test + public void lastScaleTimeTest() { + // TODO: test lastScaleTime + } + + /** + * Test the property 'observedGeneration' + */ + @Test + public void observedGenerationTest() { + // TODO: test observedGeneration + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerTest.java new file mode 100644 index 0000000000..7bd2134d8f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2HorizontalPodAutoscalerTest.java @@ -0,0 +1,86 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1ObjectMeta; +import io.kubernetes.client.models.V2beta2HorizontalPodAutoscalerSpec; +import io.kubernetes.client.models.V2beta2HorizontalPodAutoscalerStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2HorizontalPodAutoscaler + */ +public class V2beta2HorizontalPodAutoscalerTest { + private final V2beta2HorizontalPodAutoscaler model = new V2beta2HorizontalPodAutoscaler(); + + /** + * Model tests for V2beta2HorizontalPodAutoscaler + */ + @Test + public void testV2beta2HorizontalPodAutoscaler() { + // TODO: test V2beta2HorizontalPodAutoscaler + } + + /** + * Test the property 'apiVersion' + */ + @Test + public void apiVersionTest() { + // TODO: test apiVersion + } + + /** + * Test the property 'kind' + */ + @Test + public void kindTest() { + // TODO: test kind + } + + /** + * Test the property 'metadata' + */ + @Test + public void metadataTest() { + // TODO: test metadata + } + + /** + * Test the property 'spec' + */ + @Test + public void specTest() { + // TODO: test spec + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricIdentifierTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricIdentifierTest.java new file mode 100644 index 0000000000..e68dc0d337 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricIdentifierTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V1LabelSelector; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2MetricIdentifier + */ +public class V2beta2MetricIdentifierTest { + private final V2beta2MetricIdentifier model = new V2beta2MetricIdentifier(); + + /** + * Model tests for V2beta2MetricIdentifier + */ + @Test + public void testV2beta2MetricIdentifier() { + // TODO: test V2beta2MetricIdentifier + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'selector' + */ + @Test + public void selectorTest() { + // TODO: test selector + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricSpecTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricSpecTest.java new file mode 100644 index 0000000000..9009b77477 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricSpecTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2ExternalMetricSource; +import io.kubernetes.client.models.V2beta2ObjectMetricSource; +import io.kubernetes.client.models.V2beta2PodsMetricSource; +import io.kubernetes.client.models.V2beta2ResourceMetricSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2MetricSpec + */ +public class V2beta2MetricSpecTest { + private final V2beta2MetricSpec model = new V2beta2MetricSpec(); + + /** + * Model tests for V2beta2MetricSpec + */ + @Test + public void testV2beta2MetricSpec() { + // TODO: test V2beta2MetricSpec + } + + /** + * Test the property 'external' + */ + @Test + public void externalTest() { + // TODO: test external + } + + /** + * Test the property '_object' + */ + @Test + public void _objectTest() { + // TODO: test _object + } + + /** + * Test the property 'pods' + */ + @Test + public void podsTest() { + // TODO: test pods + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricStatusTest.java new file mode 100644 index 0000000000..30ef330cea --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricStatusTest.java @@ -0,0 +1,87 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2ExternalMetricStatus; +import io.kubernetes.client.models.V2beta2ObjectMetricStatus; +import io.kubernetes.client.models.V2beta2PodsMetricStatus; +import io.kubernetes.client.models.V2beta2ResourceMetricStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2MetricStatus + */ +public class V2beta2MetricStatusTest { + private final V2beta2MetricStatus model = new V2beta2MetricStatus(); + + /** + * Model tests for V2beta2MetricStatus + */ + @Test + public void testV2beta2MetricStatus() { + // TODO: test V2beta2MetricStatus + } + + /** + * Test the property 'external' + */ + @Test + public void externalTest() { + // TODO: test external + } + + /** + * Test the property '_object' + */ + @Test + public void _objectTest() { + // TODO: test _object + } + + /** + * Test the property 'pods' + */ + @Test + public void podsTest() { + // TODO: test pods + } + + /** + * Test the property 'resource' + */ + @Test + public void resourceTest() { + // TODO: test resource + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricTargetTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricTargetTest.java new file mode 100644 index 0000000000..8358b6c1b9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricTargetTest.java @@ -0,0 +1,75 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2MetricTarget + */ +public class V2beta2MetricTargetTest { + private final V2beta2MetricTarget model = new V2beta2MetricTarget(); + + /** + * Model tests for V2beta2MetricTarget + */ + @Test + public void testV2beta2MetricTarget() { + // TODO: test V2beta2MetricTarget + } + + /** + * Test the property 'averageUtilization' + */ + @Test + public void averageUtilizationTest() { + // TODO: test averageUtilization + } + + /** + * Test the property 'averageValue' + */ + @Test + public void averageValueTest() { + // TODO: test averageValue + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricValueStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricValueStatusTest.java new file mode 100644 index 0000000000..1ec1200d9c --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2MetricValueStatusTest.java @@ -0,0 +1,67 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2MetricValueStatus + */ +public class V2beta2MetricValueStatusTest { + private final V2beta2MetricValueStatus model = new V2beta2MetricValueStatus(); + + /** + * Model tests for V2beta2MetricValueStatus + */ + @Test + public void testV2beta2MetricValueStatus() { + // TODO: test V2beta2MetricValueStatus + } + + /** + * Test the property 'averageUtilization' + */ + @Test + public void averageUtilizationTest() { + // TODO: test averageUtilization + } + + /** + * Test the property 'averageValue' + */ + @Test + public void averageValueTest() { + // TODO: test averageValue + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ObjectMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ObjectMetricSourceTest.java new file mode 100644 index 0000000000..4e7a408543 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ObjectMetricSourceTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2CrossVersionObjectReference; +import io.kubernetes.client.models.V2beta2MetricIdentifier; +import io.kubernetes.client.models.V2beta2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2ObjectMetricSource + */ +public class V2beta2ObjectMetricSourceTest { + private final V2beta2ObjectMetricSource model = new V2beta2ObjectMetricSource(); + + /** + * Model tests for V2beta2ObjectMetricSource + */ + @Test + public void testV2beta2ObjectMetricSource() { + // TODO: test V2beta2ObjectMetricSource + } + + /** + * Test the property 'describedObject' + */ + @Test + public void describedObjectTest() { + // TODO: test describedObject + } + + /** + * Test the property 'metric' + */ + @Test + public void metricTest() { + // TODO: test metric + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ObjectMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ObjectMetricStatusTest.java new file mode 100644 index 0000000000..2e1b5f5950 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ObjectMetricStatusTest.java @@ -0,0 +1,70 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2CrossVersionObjectReference; +import io.kubernetes.client.models.V2beta2MetricIdentifier; +import io.kubernetes.client.models.V2beta2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2ObjectMetricStatus + */ +public class V2beta2ObjectMetricStatusTest { + private final V2beta2ObjectMetricStatus model = new V2beta2ObjectMetricStatus(); + + /** + * Model tests for V2beta2ObjectMetricStatus + */ + @Test + public void testV2beta2ObjectMetricStatus() { + // TODO: test V2beta2ObjectMetricStatus + } + + /** + * Test the property 'current' + */ + @Test + public void currentTest() { + // TODO: test current + } + + /** + * Test the property 'describedObject' + */ + @Test + public void describedObjectTest() { + // TODO: test describedObject + } + + /** + * Test the property 'metric' + */ + @Test + public void metricTest() { + // TODO: test metric + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2PodsMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2PodsMetricSourceTest.java new file mode 100644 index 0000000000..a5d722b885 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2PodsMetricSourceTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2MetricIdentifier; +import io.kubernetes.client.models.V2beta2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2PodsMetricSource + */ +public class V2beta2PodsMetricSourceTest { + private final V2beta2PodsMetricSource model = new V2beta2PodsMetricSource(); + + /** + * Model tests for V2beta2PodsMetricSource + */ + @Test + public void testV2beta2PodsMetricSource() { + // TODO: test V2beta2PodsMetricSource + } + + /** + * Test the property 'metric' + */ + @Test + public void metricTest() { + // TODO: test metric + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2PodsMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2PodsMetricStatusTest.java new file mode 100644 index 0000000000..2119b06815 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2PodsMetricStatusTest.java @@ -0,0 +1,61 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2MetricIdentifier; +import io.kubernetes.client.models.V2beta2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2PodsMetricStatus + */ +public class V2beta2PodsMetricStatusTest { + private final V2beta2PodsMetricStatus model = new V2beta2PodsMetricStatus(); + + /** + * Model tests for V2beta2PodsMetricStatus + */ + @Test + public void testV2beta2PodsMetricStatus() { + // TODO: test V2beta2PodsMetricStatus + } + + /** + * Test the property 'current' + */ + @Test + public void currentTest() { + // TODO: test current + } + + /** + * Test the property 'metric' + */ + @Test + public void metricTest() { + // TODO: test metric + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ResourceMetricSourceTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ResourceMetricSourceTest.java new file mode 100644 index 0000000000..3373263e81 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ResourceMetricSourceTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2MetricTarget; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2ResourceMetricSource + */ +public class V2beta2ResourceMetricSourceTest { + private final V2beta2ResourceMetricSource model = new V2beta2ResourceMetricSource(); + + /** + * Model tests for V2beta2ResourceMetricSource + */ + @Test + public void testV2beta2ResourceMetricSource() { + // TODO: test V2beta2ResourceMetricSource + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'target' + */ + @Test + public void targetTest() { + // TODO: test target + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ResourceMetricStatusTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ResourceMetricStatusTest.java new file mode 100644 index 0000000000..d9f39861a9 --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/V2beta2ResourceMetricStatusTest.java @@ -0,0 +1,60 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.kubernetes.client.models.V2beta2MetricValueStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for V2beta2ResourceMetricStatus + */ +public class V2beta2ResourceMetricStatusTest { + private final V2beta2ResourceMetricStatus model = new V2beta2ResourceMetricStatus(); + + /** + * Model tests for V2beta2ResourceMetricStatus + */ + @Test + public void testV2beta2ResourceMetricStatus() { + // TODO: test V2beta2ResourceMetricStatus + } + + /** + * Test the property 'current' + */ + @Test + public void currentTest() { + // TODO: test current + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/kubernetes/src/test/java/io/kubernetes/client/models/VersionInfoTest.java b/kubernetes/src/test/java/io/kubernetes/client/models/VersionInfoTest.java new file mode 100644 index 0000000000..e77808835f --- /dev/null +++ b/kubernetes/src/test/java/io/kubernetes/client/models/VersionInfoTest.java @@ -0,0 +1,115 @@ +/* + * Kubernetes + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: v1.15.6 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.kubernetes.client.models; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +/** + * Model tests for VersionInfo + */ +public class VersionInfoTest { + private final VersionInfo model = new VersionInfo(); + + /** + * Model tests for VersionInfo + */ + @Test + public void testVersionInfo() { + // TODO: test VersionInfo + } + + /** + * Test the property 'buildDate' + */ + @Test + public void buildDateTest() { + // TODO: test buildDate + } + + /** + * Test the property 'compiler' + */ + @Test + public void compilerTest() { + // TODO: test compiler + } + + /** + * Test the property 'gitCommit' + */ + @Test + public void gitCommitTest() { + // TODO: test gitCommit + } + + /** + * Test the property 'gitTreeState' + */ + @Test + public void gitTreeStateTest() { + // TODO: test gitTreeState + } + + /** + * Test the property 'gitVersion' + */ + @Test + public void gitVersionTest() { + // TODO: test gitVersion + } + + /** + * Test the property 'goVersion' + */ + @Test + public void goVersionTest() { + // TODO: test goVersion + } + + /** + * Test the property 'major' + */ + @Test + public void majorTest() { + // TODO: test major + } + + /** + * Test the property 'minor' + */ + @Test + public void minorTest() { + // TODO: test minor + } + + /** + * Test the property 'platform' + */ + @Test + public void platformTest() { + // TODO: test platform + } + +} diff --git a/kubernetes/swagger.json b/kubernetes/swagger.json index 7cd87860af..beb86583db 100644 --- a/kubernetes/swagger.json +++ b/kubernetes/swagger.json @@ -443,6 +443,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -636,6 +641,10 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -710,6 +719,10 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -1111,7 +1124,7 @@ }, "service": { "$ref": "#/definitions/apiextensions.v1beta1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -1378,7 +1391,7 @@ }, "service": { "$ref": "#/definitions/v1alpha1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -1423,15 +1436,61 @@ } ] }, - "v1.RollingUpdateStatefulSetStrategy": { - "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "v1beta1.ValidatingWebhook": { + "description": "ValidatingWebhook describes an admission webhook and the resources and operations it applies to.", "properties": { - "partition": { - "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clientConfig": { + "$ref": "#/definitions/admissionregistration.v1beta1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", + "type": "string" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/v1beta1.RuleWithOperations" + }, + "type": "array" + }, + "sideEffects": { + "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", "format": "int32", "type": "integer" } }, + "required": [ + "name", + "clientConfig" + ], "type": "object" }, "v1beta1.RoleList": { @@ -1655,7 +1714,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the Secret or it's key must be defined", + "description": "Specify whether the Secret or its key must be defined", "type": "boolean" } }, @@ -4029,7 +4088,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's key must be defined", + "description": "Specify whether the ConfigMap or its key must be defined", "type": "boolean" } }, @@ -4221,7 +4280,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", + "description": "Specify whether the ConfigMap or its keys must be defined", "type": "boolean" } }, @@ -4465,7 +4524,7 @@ "type": "boolean" }, "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.", + "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", "items": { "$ref": "#/definitions/extensions.v1beta1.AllowedCSIDriver" }, @@ -4570,6 +4629,10 @@ "$ref": "#/definitions/extensions.v1beta1.RunAsUserStrategyOptions", "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." }, + "runtimeClass": { + "$ref": "#/definitions/extensions.v1beta1.RuntimeClassStrategyOptions", + "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + }, "seLinux": { "$ref": "#/definitions/extensions.v1beta1.SELinuxStrategyOptions", "description": "seLinux is the strategy that will dictate the allowable labels that may be set." @@ -4619,6 +4682,26 @@ ], "type": "object" }, + "extensions.v1beta1.RuntimeClassStrategyOptions": { + "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", + "properties": { + "allowedRuntimeClassNames": { + "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", + "items": { + "type": "string" + }, + "type": "array" + }, + "defaultRuntimeClassName": { + "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", + "type": "string" + } + }, + "required": [ + "allowedRuntimeClassNames" + ], + "type": "object" + }, "v1beta1.DaemonSet": { "description": "DEPRECATED - This group version of DaemonSet is deprecated by apps/v1beta2/DaemonSet. See the release notes for more information. DaemonSet represents the configuration of a daemon set.", "properties": { @@ -5011,7 +5094,7 @@ "type": "string" }, "subPathExpr": { - "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is alpha in 1.14.", + "description": "Expanded path within the volume from which the container's volume should be mounted. Behaves similarly to SubPath but environment variable references $(VAR_NAME) are expanded using the container's environment. Defaults to \"\" (volume's root). SubPathExpr and SubPath are mutually exclusive. This field is beta in 1.15.", "type": "string" } }, @@ -5606,6 +5689,33 @@ ], "type": "object" }, + "v1.PodDNSConfig": { + "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", + "properties": { + "nameservers": { + "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", + "items": { + "type": "string" + }, + "type": "array" + }, + "options": { + "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", + "items": { + "$ref": "#/definitions/v1.PodDNSConfigOption" + }, + "type": "array" + }, + "searches": { + "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", + "items": { + "type": "string" + }, + "type": "array" + } + }, + "type": "object" + }, "v2beta1.HorizontalPodAutoscalerStatus": { "description": "HorizontalPodAutoscalerStatus describes the current status of a horizontal pod autoscaler.", "properties": { @@ -5846,6 +5956,10 @@ "seLinuxOptions": { "$ref": "#/definitions/v1.SELinuxOptions", "description": "The SELinux context to be applied to the container. If unspecified, the container runtime will allocate a random SELinux context for each container. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence." + }, + "windowsOptions": { + "$ref": "#/definitions/v1.WindowsSecurityContextOptions", + "description": "Windows security options." } }, "type": "object" @@ -5915,22 +6029,24 @@ } ] }, - "v1.EnvFromSource": { - "description": "EnvFromSource represents the source of a set of ConfigMaps", + "policy.v1beta1.RuntimeClassStrategyOptions": { + "description": "RuntimeClassStrategyOptions define the strategy that will dictate the allowable RuntimeClasses for a pod.", "properties": { - "configMapRef": { - "$ref": "#/definitions/v1.ConfigMapEnvSource", - "description": "The ConfigMap to select from" + "allowedRuntimeClassNames": { + "description": "allowedRuntimeClassNames is a whitelist of RuntimeClass names that may be specified on a pod. A value of \"*\" means that any RuntimeClass name is allowed, and must be the only item in the list. An empty list requires the RuntimeClassName field to be unset.", + "items": { + "type": "string" + }, + "type": "array" }, - "prefix": { - "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "defaultRuntimeClassName": { + "description": "defaultRuntimeClassName is the default RuntimeClassName to set on the pod. The default MUST be allowed by the allowedRuntimeClassNames list. A value of nil does not mutate the Pod.", "type": "string" - }, - "secretRef": { - "$ref": "#/definitions/v1.SecretEnvSource", - "description": "The Secret to select from" } }, + "required": [ + "allowedRuntimeClassNames" + ], "type": "object" }, "v1.Service": { @@ -5980,7 +6096,7 @@ "type": "string" }, "state": { - "description": "State of this Series: Ongoing or Finished", + "description": "State of this Series: Ongoing or Finished Deprecated. Planned removal for 1.18", "type": "string" } }, @@ -6237,6 +6353,10 @@ "v1alpha1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -6361,7 +6481,7 @@ "type": "string" }, "optional": { - "description": "Specify whether the ConfigMap or it's keys must be defined", + "description": "Specify whether the ConfigMap or its keys must be defined", "type": "boolean" } }, @@ -6844,6 +6964,10 @@ "$ref": "#/definitions/v1beta1.CustomResourceDefinitionNames", "description": "Names are the names used to describe this custom resource" }, + "preserveUnknownFields": { + "description": "preserveUnknownFields disables pruning of object fields which are not specified in the OpenAPI schema. apiVersion, kind, metadata and known fields inside metadata are always preserved. Defaults to true in v1beta and will default to false in v1.", + "type": "boolean" + }, "scope": { "description": "Scope indicates whether this resource is cluster or namespace scoped. Default is namespaced", "type": "string" @@ -7032,7 +7156,7 @@ "webhooks": { "description": "Webhooks is a list of webhooks and the affected resources and operations.", "items": { - "$ref": "#/definitions/v1beta1.Webhook" + "$ref": "#/definitions/v1beta1.ValidatingWebhook" }, "type": "array", "x-kubernetes-patch-merge-key": "name", @@ -7723,6 +7847,17 @@ ], "type": "object" }, + "v1.RollingUpdateStatefulSetStrategy": { + "description": "RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.", + "properties": { + "partition": { + "description": "Partition indicates the ordinal at which the StatefulSet should be partitioned. Default value is 0.", + "format": "int32", + "type": "integer" + } + }, + "type": "object" + }, "v1alpha1.AuditSinkList": { "description": "AuditSinkList is a list of AuditSink items.", "properties": { @@ -7767,6 +7902,11 @@ "namespace": { "description": "Namespace is the namespace of the service", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -7890,6 +8030,10 @@ "v1beta1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -7970,7 +8114,8 @@ }, "resource.Quantity": { "description": "Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and Int64() accessors.\n\nThe serialization format is:\n\n ::= \n (Note that may be empty, from the \"\" case in .)\n ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . ::= \"+\" | \"-\" ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei\n (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html)\n ::= m | \"\" | k | M | G | T | P | E\n (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.)\n ::= \"e\" | \"E\" \n\nNo matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities.\n\nWhen a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized.\n\nBefore serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that:\n a. No precision is lost\n b. No fractional digits will be emitted\n c. The exponent (or suffix) is as large as possible.\nThe sign will be omitted unless the number is negative.\n\nExamples:\n 1.5 will be serialized as \"1500m\"\n 1.5Gi will be serialized as \"1536Mi\"\n\nNote that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise.\n\nNon-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.)\n\nThis format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation.", - "type": "string" + "type": "string", + "format": "quantity" }, "v1beta1.DaemonSetStatus": { "description": "DaemonSetStatus represents the current status of a daemon set.", @@ -8649,7 +8794,7 @@ "description": "CustomResourceSubresourceScale defines how to serve the scale subresource for CustomResources.", "properties": { "labelSelectorPath": { - "description": "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status. Must be set to work with HPA. If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.", + "description": "LabelSelectorPath defines the JSON path inside of a CustomResource that corresponds to Scale.Status.Selector. Only JSON paths without the array notation are allowed. Must be a JSON Path under .status or .spec. Must be set to work with HPA. The field pointed by this JSON path must be a string field (not a complex selector struct) which contains a serialized label selector in string form. More info: https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions#scale-subresource If there is no value under the given path in the CustomResource, the status label selector value in the /scale subresource will default to the empty string.", "type": "string" }, "specReplicasPath": { @@ -9434,7 +9579,7 @@ }, "service": { "$ref": "#/definitions/admissionregistration.v1beta1.ServiceReference", - "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`.\n\nPort 443 will be used if it is open, otherwise it is an error." + "description": "`service` is a reference to the service for this webhook. Either `service` or `url` must be specified.\n\nIf the webhook is running within the cluster, then you should use `service`." }, "url": { "description": "`url` gives the location of the webhook, in standard URL form (`scheme://host:port/path`). Exactly one of `url` or `service` must be specified.\n\nThe `host` should not refer to a service running in the cluster; use the `service` field instead. The host might be resolved via external DNS in some apiservers (e.g., `kube-apiserver` cannot resolve in-cluster DNS as that would be a layering violation). `host` may also be an IP address.\n\nPlease note that using `localhost` or `127.0.0.1` as a `host` is risky unless you take great care to run this webhook on all hosts which run an apiserver which might need to make calls to this webhook. Such installs are likely to be non-portable, i.e., not easy to turn up in a new cluster.\n\nThe scheme must be \"https\"; the URL must begin with \"https://\".\n\nA path is optional, and if present may be any string permissible in a URL. You may use the path to pass an arbitrary string to the webhook, for example, a cluster identifier.\n\nAttempting to use a user or basic auth e.g. \"user:password@\" is not allowed. Fragments (\"#...\") and query parameters (\"?...\") are not allowed, either.", @@ -9640,7 +9785,7 @@ "type": "boolean" }, "allowedCSIDrivers": { - "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value means no CSI drivers can run inline within a pod spec.", + "description": "AllowedCSIDrivers is a whitelist of inline CSI drivers that must be explicitly set to be embedded within a pod spec. An empty value indicates that any CSI driver can be used for inline ephemeral volumes. This is an alpha field, and is only honored if the API server enables the CSIInlineVolume feature gate.", "items": { "$ref": "#/definitions/policy.v1beta1.AllowedCSIDriver" }, @@ -9745,6 +9890,10 @@ "$ref": "#/definitions/policy.v1beta1.RunAsUserStrategyOptions", "description": "runAsUser is the strategy that will dictate the allowable RunAsUser values that may be set." }, + "runtimeClass": { + "$ref": "#/definitions/policy.v1beta1.RuntimeClassStrategyOptions", + "description": "runtimeClass is the strategy that will dictate the allowable RuntimeClasses for a pod. If this field is omitted, the pod's runtimeClassName field is unrestricted. Enforcement of this field depends on the RuntimeClass feature gate being enabled." + }, "seLinux": { "$ref": "#/definitions/policy.v1beta1.SELinuxStrategyOptions", "description": "seLinux is the strategy that will dictate the allowable labels that may be set." @@ -10396,6 +10545,24 @@ }, "type": "object" }, + "v1.EnvFromSource": { + "description": "EnvFromSource represents the source of a set of ConfigMaps", + "properties": { + "configMapRef": { + "$ref": "#/definitions/v1.ConfigMapEnvSource", + "description": "The ConfigMap to select from" + }, + "prefix": { + "description": "An optional identifier to prepend to each key in the ConfigMap. Must be a C_IDENTIFIER.", + "type": "string" + }, + "secretRef": { + "$ref": "#/definitions/v1.SecretEnvSource", + "description": "The Secret to select from" + } + }, + "type": "object" + }, "v1alpha1.RoleRef": { "description": "RoleRef contains information that points to the role being used", "properties": { @@ -10721,6 +10888,28 @@ } ] }, + "v2beta1.PodsMetricStatus": { + "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "properties": { + "currentAverageValue": { + "$ref": "#/definitions/resource.Quantity", + "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)" + }, + "metricName": { + "description": "metricName is the name of the metric in question", + "type": "string" + }, + "selector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + } + }, + "required": [ + "metricName", + "currentAverageValue" + ], + "type": "object" + }, "extensions.v1beta1.IngressRule": { "description": "IngressRule represents the rules mapping the paths under a specified host to the related backend services. Incoming requests are first evaluated for a host match, then routed to the backend associated with the matching IngressRuleValue.", "properties": { @@ -10817,55 +11006,6 @@ } ] }, - "v1beta1.Webhook": { - "description": "Webhook describes an admission webhook and the resources and operations it applies to.", - "properties": { - "admissionReviewVersions": { - "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", - "items": { - "type": "string" - }, - "type": "array" - }, - "clientConfig": { - "$ref": "#/definitions/admissionregistration.v1beta1.WebhookClientConfig", - "description": "ClientConfig defines how to communicate with the hook. Required" - }, - "failurePolicy": { - "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", - "type": "string" - }, - "name": { - "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", - "type": "string" - }, - "namespaceSelector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." - }, - "rules": { - "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", - "items": { - "$ref": "#/definitions/v1beta1.RuleWithOperations" - }, - "type": "array" - }, - "sideEffects": { - "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", - "type": "string" - }, - "timeoutSeconds": { - "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", - "format": "int32", - "type": "integer" - } - }, - "required": [ - "name", - "clientConfig" - ], - "type": "object" - }, "v1.ListMeta": { "description": "ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.", "properties": { @@ -10873,6 +11013,11 @@ "description": "continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message.", "type": "string" }, + "remainingItemCount": { + "description": "remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact.\n\nThis field is alpha and can be changed or removed without notice.", + "format": "int64", + "type": "integer" + }, "resourceVersion": { "description": "String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#concurrency-control-and-consistency", "type": "string" @@ -11191,7 +11336,7 @@ "type": "string" }, "type": { - "description": "Type is the type of the condition.", + "description": "Type is the type of the condition. Types include Established, NamesAccepted and Terminating.", "type": "string" } }, @@ -11201,26 +11346,18 @@ ], "type": "object" }, - "v2beta1.PodsMetricStatus": { - "description": "PodsMetricStatus indicates the current value of a metric describing each pod in the current scale target (for example, transactions-processed-per-second).", + "v1.WindowsSecurityContextOptions": { + "description": "WindowsSecurityContextOptions contain Windows-specific options and credentials.", "properties": { - "currentAverageValue": { - "$ref": "#/definitions/resource.Quantity", - "description": "currentAverageValue is the current value of the average of the metric across all relevant pods (as a quantity)" - }, - "metricName": { - "description": "metricName is the name of the metric in question", + "gmsaCredentialSpec": { + "description": "GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", "type": "string" }, - "selector": { - "$ref": "#/definitions/v1.LabelSelector", - "description": "selector is the string-encoded form of a standard kubernetes label selector for the given metric When set in the PodsMetricSource, it is passed as an additional parameter to the metrics server for more specific metrics scoping. When unset, just the metricName will be used to gather metrics." + "gmsaCredentialSpecName": { + "description": "GMSACredentialSpecName is the name of the GMSA credential spec to use. This field is alpha-level and is only honored by servers that enable the WindowsGMSA feature flag.", + "type": "string" } }, - "required": [ - "metricName", - "currentAverageValue" - ], "type": "object" }, "v1.DaemonEndpoint": { @@ -11428,7 +11565,7 @@ "type": "string" }, "state": { - "description": "Information whether this series is ongoing or finished.", + "description": "Information whether this series is ongoing or finished. Deprecated. Planned removal for 1.18", "type": "string" } }, @@ -12642,6 +12779,10 @@ "v1.VolumeAttachmentSource": { "description": "VolumeAttachmentSource represents a volume that should be attached. Right now only PersistenVolumes can be attached via external attacher, in future we may allow also inline volumes in pods. Exactly one member can be set.", "properties": { + "inlineVolumeSpec": { + "$ref": "#/definitions/v1.PersistentVolumeSpec", + "description": "inlineVolumeSpec contains all the information necessary to attach a persistent volume defined by a pod's inline VolumeSource. This field is populated only for the CSIMigration feature. It contains translated fields from a pod's inline VolumeSource to a PersistentVolumeSpec. This field is alpha-level and is only honored by servers that enabled the CSIMigration feature." + }, "persistentVolumeName": { "description": "Name of the persistent volume to attach.", "type": "string" @@ -12935,6 +13076,10 @@ "$ref": "#/definitions/v1.ObjectMeta", "description": "Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "value": { "description": "The value of this priority class. This is the actual priority that pods receive when they have the name of this class in their pod spec.", "format": "int32", @@ -14094,7 +14239,7 @@ "type": "array" }, "strategy": { - "description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information is needed for this option.", + "description": "`strategy` specifies the conversion strategy. Allowed values are: - `None`: The converter only change the apiVersion and would not touch any other field in the CR. - `Webhook`: API Server will call to an external webhook to do the conversion. Additional information\n is needed for this option. This requires spec.preserveUnknownFields to be false.", "type": "string" }, "webhookClientConfig": { @@ -14936,6 +15081,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -15317,33 +15467,6 @@ }, "type": "object" }, - "v1.PodDNSConfig": { - "description": "PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.", - "properties": { - "nameservers": { - "description": "A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.", - "items": { - "type": "string" - }, - "type": "array" - }, - "options": { - "description": "A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.", - "items": { - "$ref": "#/definitions/v1.PodDNSConfigOption" - }, - "type": "array" - }, - "searches": { - "description": "A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.", - "items": { - "type": "string" - }, - "type": "array" - } - }, - "type": "object" - }, "v1.PodCondition": { "description": "PodCondition contains details for the current condition of this pod.", "properties": { @@ -15571,6 +15694,10 @@ "v1.CSIPersistentVolumeSource": { "description": "Represents storage that is managed by an external CSI volume driver (Beta feature)", "properties": { + "controllerExpandSecretRef": { + "$ref": "#/definitions/v1.SecretReference", + "description": "ControllerExpandSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerExpandVolume call. This is an alpha field and requires enabling ExpandCSIVolumes feature gate. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." + }, "controllerPublishSecretRef": { "$ref": "#/definitions/v1.SecretReference", "description": "ControllerPublishSecretRef is a reference to the secret object containing sensitive information to pass to the CSI driver to complete the CSI ControllerPublishVolume and ControllerUnpublishVolume calls. This field is optional, and may be empty if no secret is required. If the secret object contains more than one secret, all secrets are passed." @@ -15872,10 +15999,6 @@ } ] }, - "v1.Patch": { - "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", - "type": "object" - }, "v1.SecretVolumeSource": { "description": "Adapts a Secret into a volume.\n\nThe contents of the target Secret's Data field will be presented in a volume as files using the keys in the Data field as the file names. Secret volumes support ownership management and SELinux relabeling.", "properties": { @@ -15892,7 +16015,7 @@ "type": "array" }, "optional": { - "description": "Specify whether the Secret or it's keys must be defined", + "description": "Specify whether the Secret or its keys must be defined", "type": "boolean" }, "secretName": { @@ -16229,6 +16352,11 @@ "namespace": { "description": "Namespace is the namespace of the service", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "type": "object" @@ -16301,6 +16429,11 @@ "path": { "description": "`path` is an optional URL path which will be sent in any request to this service.", "type": "string" + }, + "port": { + "description": "If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).", + "format": "int32", + "type": "integer" } }, "required": [ @@ -16435,6 +16568,10 @@ "description": "NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/", "type": "object" }, + "preemptionPolicy": { + "description": "PreemptionPolicy is the Policy for preempting pods with lower priority. One of Never, PreemptLowerPriority. Defaults to PreemptLowerPriority if unset. This field is alpha-level and is only honored by servers that enable the NonPreemptingPriority feature.", + "type": "string" + }, "priority": { "description": "The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority.", "format": "int32", @@ -16456,7 +16593,7 @@ "type": "string" }, "runtimeClassName": { - "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is an alpha feature and may change in the future.", + "description": "RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14.", "type": "string" }, "schedulerName": { @@ -17329,7 +17466,7 @@ "type": "array" }, "default": { - "description": "JSON represents any valid JSON value. These types are supported: bool, int64, float64, string, []interface{}, map[string]interface{} and nil.", + "description": "default is a default value for undefined object fields. Defaulting is an alpha feature under the CustomResourceDefaulting feature gate. Defaulting requires spec.preserveUnknownFields to be false.", "type": "object" }, "definitions": { @@ -17455,6 +17592,18 @@ }, "uniqueItems": { "type": "boolean" + }, + "x-kubernetes-embedded-resource": { + "description": "x-kubernetes-embedded-resource defines that the value is an embedded Kubernetes runtime.Object, with TypeMeta and ObjectMeta. The type must be object. It is allowed to further restrict the embedded object. kind, apiVersion and metadata are validated automatically. x-kubernetes-preserve-unknown-fields is allowed to be true, but does not have to be if the object is fully specified (up to kind, apiVersion, metadata).", + "type": "boolean" + }, + "x-kubernetes-int-or-string": { + "description": "x-kubernetes-int-or-string specifies that this value is either an integer or a string. If this is true, an empty type is allowed and type as child of anyOf is permitted if following one of the following patterns:\n\n1) anyOf:\n - type: integer\n - type: string\n2) allOf:\n - anyOf:\n - type: integer\n - type: string\n - ... zero or more", + "type": "boolean" + }, + "x-kubernetes-preserve-unknown-fields": { + "description": "x-kubernetes-preserve-unknown-fields stops the API server decoding step from pruning fields which are not specified in the validation schema. This affects fields recursively, but switches back to normal pruning behaviour if nested properties or additionalProperties are specified in the schema. This can either be true or undefined. False is forbidden.", + "type": "boolean" } }, "type": "object" @@ -17851,7 +18000,7 @@ "webhooks": { "description": "Webhooks is a list of webhooks and the affected resources and operations.", "items": { - "$ref": "#/definitions/v1beta1.Webhook" + "$ref": "#/definitions/v1beta1.MutatingWebhook" }, "type": "array", "x-kubernetes-patch-merge-key": "name", @@ -18246,6 +18395,10 @@ "$ref": "#/definitions/v1.Sysctl" }, "type": "array" + }, + "windowsOptions": { + "$ref": "#/definitions/v1.WindowsSecurityContextOptions", + "description": "Windows security options." } }, "type": "object" @@ -18337,11 +18490,72 @@ "status" ], "type": "object" + }, + "v1beta1.MutatingWebhook": { + "description": "MutatingWebhook describes an admission webhook and the resources and operations it applies to.", + "properties": { + "admissionReviewVersions": { + "description": "AdmissionReviewVersions is an ordered list of preferred `AdmissionReview` versions the Webhook expects. API server will try to use first version in the list which it supports. If none of the versions specified in this list supported by API server, validation will fail for this object. If a persisted webhook configuration specifies allowed versions and does not include any versions known to the API Server, calls to the webhook will fail and be subject to the failure policy. Default to `['v1beta1']`.", + "items": { + "type": "string" + }, + "type": "array" + }, + "clientConfig": { + "$ref": "#/definitions/admissionregistration.v1beta1.WebhookClientConfig", + "description": "ClientConfig defines how to communicate with the hook. Required" + }, + "failurePolicy": { + "description": "FailurePolicy defines how unrecognized errors from the admission endpoint are handled - allowed values are Ignore or Fail. Defaults to Ignore.", + "type": "string" + }, + "matchPolicy": { + "description": "matchPolicy defines how the \"rules\" list is used to match incoming requests. Allowed values are \"Exact\" or \"Equivalent\".\n\n- Exact: match a request only if it exactly matches a specified rule. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, but \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be sent to the webhook.\n\n- Equivalent: match a request if modifies a resource listed in rules, even via another API group or version. For example, if deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, and \"rules\" only included `apiGroups:[\"apps\"], apiVersions:[\"v1\"], resources: [\"deployments\"]`, a request to apps/v1beta1 or extensions/v1beta1 would be converted to apps/v1 and sent to the webhook.\n\nDefaults to \"Exact\"", + "type": "string" + }, + "name": { + "description": "The name of the admission webhook. Name should be fully qualified, e.g., imagepolicy.kubernetes.io, where \"imagepolicy\" is the name of the webhook, and kubernetes.io is the name of the organization. Required.", + "type": "string" + }, + "namespaceSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "NamespaceSelector decides whether to run the webhook on an object based on whether the namespace for that object matches the selector. If the object itself is a namespace, the matching is performed on object.metadata.labels. If the object is another cluster scoped resource, it never skips the webhook.\n\nFor example, to run the webhook on any objects whose namespace is not associated with \"runlevel\" of \"0\" or \"1\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"runlevel\",\n \"operator\": \"NotIn\",\n \"values\": [\n \"0\",\n \"1\"\n ]\n }\n ]\n}\n\nIf instead you want to only run the webhook on any objects whose namespace is associated with the \"environment\" of \"prod\" or \"staging\"; you will set the selector as follows: \"namespaceSelector\": {\n \"matchExpressions\": [\n {\n \"key\": \"environment\",\n \"operator\": \"In\",\n \"values\": [\n \"prod\",\n \"staging\"\n ]\n }\n ]\n}\n\nSee https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ for more examples of label selectors.\n\nDefault to the empty LabelSelector, which matches everything." + }, + "objectSelector": { + "$ref": "#/definitions/v1.LabelSelector", + "description": "ObjectSelector decides whether to run the webhook based on if the object has matching labels. objectSelector is evaluated against both the oldObject and newObject that would be sent to the webhook, and is considered to match if either object matches the selector. A null object (oldObject in the case of create, or newObject in the case of delete) or an object that cannot have labels (like a DeploymentRollback or a PodProxyOptions object) is not considered to match. Use the object selector only if the webhook is opt-in, because end users may skip the admission webhook by setting the labels. Default to the empty LabelSelector, which matches everything." + }, + "reinvocationPolicy": { + "description": "reinvocationPolicy indicates whether this webhook should be called multiple times as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\".\n\nNever: the webhook will not be called more than once in a single admission evaluation.\n\nIfNeeded: the webhook will be called at least one additional time as part of the admission evaluation if the object being admitted is modified by other admission plugins after the initial webhook call. Webhooks that specify this option *must* be idempotent, able to process objects they previously admitted. Note: * the number of additional invocations is not guaranteed to be exactly one. * if additional invocations result in further modifications to the object, webhooks are not guaranteed to be invoked again. * webhooks that use this option may be reordered to minimize the number of additional invocations. * to validate an object after all mutations are guaranteed complete, use a validating admission webhook instead.\n\nDefaults to \"Never\".", + "type": "string" + }, + "rules": { + "description": "Rules describes what operations on what resources/subresources the webhook cares about. The webhook cares about an operation if it matches _any_ Rule. However, in order to prevent ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks from putting the cluster in a state which cannot be recovered from without completely disabling the plugin, ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on admission requests for ValidatingWebhookConfiguration and MutatingWebhookConfiguration objects.", + "items": { + "$ref": "#/definitions/v1beta1.RuleWithOperations" + }, + "type": "array" + }, + "sideEffects": { + "description": "SideEffects states whether this webhookk has side effects. Acceptable values are: Unknown, None, Some, NoneOnDryRun Webhooks with side effects MUST implement a reconciliation system, since a request may be rejected by a future step in the admission change and the side effects therefore need to be undone. Requests with the dryRun attribute will be auto-rejected if they match a webhook with sideEffects == Unknown or Some. Defaults to Unknown.", + "type": "string" + }, + "timeoutSeconds": { + "description": "TimeoutSeconds specifies the timeout for this webhook. After the timeout passes, the webhook call will be ignored or the API call will fail based on the failure policy. The timeout value must be between 1 and 30 seconds. Default to 30 seconds.", + "format": "int32", + "type": "integer" + } + }, + "required": [ + "name", + "clientConfig" + ], + "type": "object" } }, "info": { "title": "Kubernetes", - "version": "v1.14.2" + "version": "v1.15.6" }, "paths": { "/api/": { @@ -18449,6 +18663,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18600,6 +18821,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18697,6 +18925,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18794,6 +19029,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18891,6 +19133,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -18957,6 +19206,13 @@ "description": "list or watch objects of kind Namespace", "operationId": "listNamespace", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19219,6 +19475,20 @@ "description": "delete collection of ConfigMap", "operationId": "deleteCollectionNamespacedConfigMap", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19226,6 +19496,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -19233,6 +19510,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -19247,6 +19531,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -19305,6 +19603,13 @@ "description": "list or watch objects of kind ConfigMap", "operationId": "listNamespacedConfigMap", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19646,7 +19951,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -19776,6 +20082,20 @@ "description": "delete collection of Endpoints", "operationId": "deleteCollectionNamespacedEndpoints", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -19783,6 +20103,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -19790,6 +20117,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -19804,6 +20138,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -19862,6 +20210,13 @@ "description": "list or watch objects of kind Endpoints", "operationId": "listNamespacedEndpoints", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20203,7 +20558,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -20333,6 +20689,20 @@ "description": "delete collection of Event", "operationId": "deleteCollectionNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20340,6 +20710,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -20347,6 +20724,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -20361,6 +20745,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -20419,6 +20817,13 @@ "description": "list or watch objects of kind Event", "operationId": "listNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20760,7 +21165,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -20890,6 +21296,20 @@ "description": "delete collection of LimitRange", "operationId": "deleteCollectionNamespacedLimitRange", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -20897,6 +21317,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -20904,6 +21331,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -20918,6 +21352,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -20976,6 +21424,13 @@ "description": "list or watch objects of kind LimitRange", "operationId": "listNamespacedLimitRange", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21317,7 +21772,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -21447,6 +21903,20 @@ "description": "delete collection of PersistentVolumeClaim", "operationId": "deleteCollectionNamespacedPersistentVolumeClaim", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21454,6 +21924,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -21461,6 +21938,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -21475,6 +21959,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -21533,6 +22031,13 @@ "description": "list or watch objects of kind PersistentVolumeClaim", "operationId": "listNamespacedPersistentVolumeClaim", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -21874,7 +22379,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -22071,7 +22577,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -22201,6 +22708,20 @@ "description": "delete collection of Pod", "operationId": "deleteCollectionNamespacedPod", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -22208,6 +22729,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -22215,6 +22743,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -22229,6 +22764,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -22287,6 +22836,13 @@ "description": "list or watch objects of kind Pod", "operationId": "listNamespacedPod", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -22628,7 +23184,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -24001,7 +24558,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -24131,6 +24689,20 @@ "description": "delete collection of PodTemplate", "operationId": "deleteCollectionNamespacedPodTemplate", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24138,6 +24710,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -24145,6 +24724,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -24159,6 +24745,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -24217,6 +24817,13 @@ "description": "list or watch objects of kind PodTemplate", "operationId": "listNamespacedPodTemplate", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24558,7 +25165,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -24688,6 +25296,20 @@ "description": "delete collection of ReplicationController", "operationId": "deleteCollectionNamespacedReplicationController", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -24695,6 +25317,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -24702,6 +25331,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -24716,6 +25352,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -24774,6 +25424,13 @@ "description": "list or watch objects of kind ReplicationController", "operationId": "listNamespacedReplicationController", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -25115,7 +25772,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -25312,7 +25970,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -25509,7 +26168,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -25639,6 +26299,20 @@ "description": "delete collection of ResourceQuota", "operationId": "deleteCollectionNamespacedResourceQuota", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -25646,6 +26320,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -25653,6 +26334,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -25667,6 +26355,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -25725,6 +26427,13 @@ "description": "list or watch objects of kind ResourceQuota", "operationId": "listNamespacedResourceQuota", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26066,7 +26775,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -26263,7 +26973,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -26393,6 +27104,20 @@ "description": "delete collection of Secret", "operationId": "deleteCollectionNamespacedSecret", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26400,6 +27125,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -26407,6 +27139,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -26421,6 +27160,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -26479,6 +27232,13 @@ "description": "list or watch objects of kind Secret", "operationId": "listNamespacedSecret", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26820,7 +27580,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -26950,6 +27711,20 @@ "description": "delete collection of ServiceAccount", "operationId": "deleteCollectionNamespacedServiceAccount", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -26957,6 +27732,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -26964,6 +27746,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -26978,6 +27767,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -27036,6 +27839,13 @@ "description": "list or watch objects of kind ServiceAccount", "operationId": "listNamespacedServiceAccount", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -27377,7 +28187,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -27507,6 +28318,13 @@ "description": "list or watch objects of kind Service", "operationId": "listNamespacedService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -27848,7 +28666,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -28569,7 +29388,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -28853,7 +29673,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -29127,7 +29948,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -29257,6 +30079,20 @@ "description": "delete collection of Node", "operationId": "deleteCollectionNode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -29264,6 +30100,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -29271,6 +30114,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -29285,6 +30135,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -29343,6 +30207,13 @@ "description": "list or watch objects of kind Node", "operationId": "listNode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -29668,7 +30539,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -30365,7 +31237,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -30526,6 +31399,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30592,6 +31472,20 @@ "description": "delete collection of PersistentVolume", "operationId": "deleteCollectionPersistentVolume", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -30599,6 +31493,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -30606,6 +31507,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -30620,6 +31528,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -30678,6 +31600,13 @@ "description": "list or watch objects of kind PersistentVolume", "operationId": "listPersistentVolume", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31003,7 +31932,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -31192,7 +32122,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -31353,6 +32284,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31450,6 +32388,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31547,6 +32492,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31644,6 +32596,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31741,6 +32700,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31838,6 +32804,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31935,6 +32908,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -31995,6 +32975,13 @@ }, "/api/v1/watch/configmaps": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32056,65 +33043,79 @@ "/api/v1/watch/endpoints": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/api/v1/watch/events": { - "parameters": [ + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/events": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32175,6 +33176,13 @@ }, "/api/v1/watch/limitranges": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32235,6 +33243,13 @@ }, "/api/v1/watch/namespaces": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32295,6 +33310,13 @@ }, "/api/v1/watch/namespaces/{namespace}/configmaps": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32363,6 +33385,13 @@ }, "/api/v1/watch/namespaces/{namespace}/configmaps/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32439,6 +33468,13 @@ }, "/api/v1/watch/namespaces/{namespace}/endpoints": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32507,6 +33543,13 @@ }, "/api/v1/watch/namespaces/{namespace}/endpoints/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32583,6 +33626,13 @@ }, "/api/v1/watch/namespaces/{namespace}/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32651,6 +33701,13 @@ }, "/api/v1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32727,6 +33784,13 @@ }, "/api/v1/watch/namespaces/{namespace}/limitranges": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32795,6 +33859,13 @@ }, "/api/v1/watch/namespaces/{namespace}/limitranges/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32871,6 +33942,13 @@ }, "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -32939,6 +34017,13 @@ }, "/api/v1/watch/namespaces/{namespace}/persistentvolumeclaims/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33015,6 +34100,13 @@ }, "/api/v1/watch/namespaces/{namespace}/pods": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33083,6 +34175,13 @@ }, "/api/v1/watch/namespaces/{namespace}/pods/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33159,6 +34258,13 @@ }, "/api/v1/watch/namespaces/{namespace}/podtemplates": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33227,6 +34333,13 @@ }, "/api/v1/watch/namespaces/{namespace}/podtemplates/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33303,6 +34416,13 @@ }, "/api/v1/watch/namespaces/{namespace}/replicationcontrollers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33371,6 +34491,13 @@ }, "/api/v1/watch/namespaces/{namespace}/replicationcontrollers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33447,6 +34574,13 @@ }, "/api/v1/watch/namespaces/{namespace}/resourcequotas": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33515,6 +34649,13 @@ }, "/api/v1/watch/namespaces/{namespace}/resourcequotas/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33591,6 +34732,13 @@ }, "/api/v1/watch/namespaces/{namespace}/secrets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33659,6 +34807,13 @@ }, "/api/v1/watch/namespaces/{namespace}/secrets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33735,6 +34890,13 @@ }, "/api/v1/watch/namespaces/{namespace}/serviceaccounts": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33803,6 +34965,13 @@ }, "/api/v1/watch/namespaces/{namespace}/serviceaccounts/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33879,6 +35048,13 @@ }, "/api/v1/watch/namespaces/{namespace}/services": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -33947,6 +35123,13 @@ }, "/api/v1/watch/namespaces/{namespace}/services/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34023,6 +35206,13 @@ }, "/api/v1/watch/namespaces/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34092,65 +35282,79 @@ "/api/v1/watch/nodes": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/api/v1/watch/nodes/{name}": { - "parameters": [ + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/api/v1/watch/nodes/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34219,6 +35423,13 @@ }, "/api/v1/watch/persistentvolumeclaims": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34279,6 +35490,13 @@ }, "/api/v1/watch/persistentvolumes": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34339,6 +35557,13 @@ }, "/api/v1/watch/persistentvolumes/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34407,6 +35632,13 @@ }, "/api/v1/watch/pods": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34467,6 +35699,13 @@ }, "/api/v1/watch/podtemplates": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34527,6 +35766,13 @@ }, "/api/v1/watch/replicationcontrollers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34587,6 +35833,13 @@ }, "/api/v1/watch/resourcequotas": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34647,6 +35900,13 @@ }, "/api/v1/watch/secrets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34707,6 +35967,13 @@ }, "/api/v1/watch/serviceaccounts": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34767,6 +36034,13 @@ }, "/api/v1/watch/services": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34932,6 +36206,20 @@ "description": "delete collection of MutatingWebhookConfiguration", "operationId": "deleteCollectionMutatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -34939,6 +36227,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -34946,6 +36241,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -34960,6 +36262,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -35018,6 +36334,13 @@ "description": "list or watch objects of kind MutatingWebhookConfiguration", "operationId": "listMutatingWebhookConfiguration", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -35343,7 +36666,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -35474,117 +36798,166 @@ "operationId": "deleteCollectionValidatingWebhookConfiguration", "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "continue", - "type": "string", + "name": "allowWatchBookmarks", + "type": "boolean", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", - "name": "labelSelector", + "name": "continue", "type": "string", "uniqueItems": true }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", "in": "query", - "name": "limit", - "type": "integer", + "name": "dryRun", + "type": "string", "uniqueItems": true }, { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", - "name": "resourceVersion", + "name": "fieldSelector", "type": "string", "uniqueItems": true }, { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", "in": "query", - "name": "timeoutSeconds", + "name": "gracePeriodSeconds", "type": "integer", "uniqueItems": true }, { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", - "type": "boolean", - "uniqueItems": true - } - ], - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.Status" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "admissionregistration_v1beta1" - ], - "x-kubernetes-action": "deletecollection", - "x-kubernetes-group-version-kind": { - "group": "admissionregistration.k8s.io", - "kind": "ValidatingWebhookConfiguration", - "version": "v1beta1" - } - }, - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ValidatingWebhookConfiguration", - "operationId": "listValidatingWebhookConfiguration", - "parameters": [ - { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", - "name": "continue", + "name": "labelSelector", "type": "string", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", "in": "query", - "name": "fieldSelector", - "type": "string", + "name": "limit", + "type": "integer", "uniqueItems": true }, { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", "in": "query", - "name": "labelSelector", - "type": "string", + "name": "orphanDependents", + "type": "boolean", "uniqueItems": true }, { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", "in": "query", - "name": "limit", - "type": "integer", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ], + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.Status" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "admissionregistration_v1beta1" + ], + "x-kubernetes-action": "deletecollection", + "x-kubernetes-group-version-kind": { + "group": "admissionregistration.k8s.io", + "kind": "ValidatingWebhookConfiguration", + "version": "v1beta1" + } + }, + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ValidatingWebhookConfiguration", + "operationId": "listValidatingWebhookConfiguration", + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", "uniqueItems": true }, { @@ -35884,7 +37257,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -36008,6 +37382,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingwebhookconfigurations": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36068,6 +37449,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/mutatingwebhookconfigurations/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36136,6 +37524,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingwebhookconfigurations": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36196,6 +37591,13 @@ }, "/apis/admissionregistration.k8s.io/v1beta1/watch/validatingwebhookconfigurations/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36336,6 +37738,20 @@ "description": "delete collection of CustomResourceDefinition", "operationId": "deleteCollectionCustomResourceDefinition", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36343,6 +37759,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -36350,6 +37773,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -36364,6 +37794,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -36422,6 +37866,13 @@ "description": "list or watch objects of kind CustomResourceDefinition", "operationId": "listCustomResourceDefinition", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -36747,7 +38198,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -36936,7 +38388,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -37060,6 +38513,13 @@ }, "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37120,6 +38580,13 @@ }, "/apis/apiextensions.k8s.io/v1beta1/watch/customresourcedefinitions/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37260,6 +38727,20 @@ "description": "delete collection of APIService", "operationId": "deleteCollectionAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37267,6 +38748,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -37274,6 +38762,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -37288,6 +38783,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -37346,6 +38855,13 @@ "description": "list or watch objects of kind APIService", "operationId": "listAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -37671,7 +39187,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -37860,7 +39377,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -37984,6 +39502,13 @@ }, "/apis/apiregistration.k8s.io/v1/watch/apiservices": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38044,6 +39569,13 @@ }, "/apis/apiregistration.k8s.io/v1/watch/apiservices/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38151,6 +39683,20 @@ "description": "delete collection of APIService", "operationId": "deleteCollectionAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38158,6 +39704,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -38165,6 +39718,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -38179,6 +39739,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -38237,6 +39811,13 @@ "description": "list or watch objects of kind APIService", "operationId": "listAPIService", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38562,7 +40143,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -38751,7 +40333,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -38875,6 +40458,13 @@ }, "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -38935,6 +40525,13 @@ }, "/apis/apiregistration.k8s.io/v1beta1/watch/apiservices/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39106,6 +40703,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39203,6 +40807,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39300,6 +40911,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39366,6 +40984,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39373,6 +41005,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -39380,6 +41019,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -39394,6 +41040,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -39452,6 +41112,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39793,7 +41460,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -39923,6 +41591,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -39930,6 +41612,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -39937,6 +41626,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -39951,6 +41647,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -40009,6 +41719,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40350,7 +42067,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -40547,7 +42265,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -40677,6 +42396,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -40684,6 +42417,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -40691,6 +42431,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -40705,6 +42452,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -40763,6 +42524,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41104,7 +42872,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -41301,7 +43070,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -41498,7 +43268,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -41628,6 +43399,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -41635,6 +43420,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -41642,6 +43434,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -41656,6 +43455,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -41714,6 +43527,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -42055,7 +43875,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -42252,7 +44073,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -42449,7 +44271,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -42579,6 +44402,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -42586,6 +44423,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -42593,6 +44437,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -42607,6 +44458,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -42665,6 +44530,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43006,7 +44878,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -43203,7 +45076,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -43400,7 +45274,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -43561,6 +45436,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43658,6 +45540,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43718,6 +45607,13 @@ }, "/apis/apps/v1/watch/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43778,6 +45674,13 @@ }, "/apis/apps/v1/watch/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43838,6 +45741,13 @@ }, "/apis/apps/v1/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43899,73 +45809,12 @@ "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -43994,14 +45843,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the ControllerRevision", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -44040,76 +45881,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", - "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44139,7 +45919,7 @@ "uniqueItems": true }, { - "description": "name of the DaemonSet", + "description": "name of the ControllerRevision", "in": "path", "name": "name", "required": true, @@ -44184,76 +45964,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets": { "parameters": [ { - "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", - "in": "query", - "name": "continue", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", - "in": "query", - "name": "fieldSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", - "in": "query", - "name": "labelSelector", - "type": "string", - "uniqueItems": true - }, - { - "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", - "in": "query", - "name": "limit", - "type": "integer", - "uniqueItems": true - }, - { - "description": "object name and auth scope, such as for teams and projects", - "in": "path", - "name": "namespace", - "required": true, - "type": "string", - "uniqueItems": true - }, - { - "description": "If 'true', then the output is pretty printed.", - "in": "query", - "name": "pretty", - "type": "string", - "uniqueItems": true - }, - { - "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", - "in": "query", - "name": "resourceVersion", - "type": "string", - "uniqueItems": true - }, - { - "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", - "in": "query", - "name": "timeoutSeconds", - "type": "integer", - "uniqueItems": true - }, - { - "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", "in": "query", - "name": "watch", + "name": "allowWatchBookmarks", "type": "boolean", "uniqueItems": true - } - ] - }, - "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { - "parameters": [ + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44282,14 +46001,6 @@ "type": "integer", "uniqueItems": true }, - { - "description": "name of the Deployment", - "in": "path", - "name": "name", - "required": true, - "type": "string", - "uniqueItems": true - }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -44328,8 +46039,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { + "/apis/apps/v1/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44358,6 +46076,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the DaemonSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "object name and auth scope, such as for teams and projects", "in": "path", @@ -44396,8 +46122,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44427,7 +46160,82 @@ "uniqueItems": true }, { - "description": "name of the ReplicaSet", + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1/watch/namespaces/{namespace}/deployments/{name}": { + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "name of the Deployment", "in": "path", "name": "name", "required": true, @@ -44472,8 +46280,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44540,8 +46355,15 @@ } ] }, - "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { + "/apis/apps/v1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44571,7 +46393,7 @@ "uniqueItems": true }, { - "description": "name of the StatefulSet", + "description": "name of the ReplicaSet", "in": "path", "name": "name", "required": true, @@ -44616,8 +46438,15 @@ } ] }, - "/apis/apps/v1/watch/replicasets": { + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44646,6 +46475,14 @@ "type": "integer", "uniqueItems": true }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -44676,8 +46513,15 @@ } ] }, - "/apis/apps/v1/watch/statefulsets": { + "/apis/apps/v1/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44706,6 +46550,22 @@ "type": "integer", "uniqueItems": true }, + { + "description": "name of the StatefulSet", + "in": "path", + "name": "name", + "required": true, + "type": "string", + "uniqueItems": true + }, + { + "description": "object name and auth scope, such as for teams and projects", + "in": "path", + "name": "namespace", + "required": true, + "type": "string", + "uniqueItems": true + }, { "description": "If 'true', then the output is pretty printed.", "in": "query", @@ -44736,78 +46596,15 @@ } ] }, - "/apis/apps/v1beta1/": { - "get": { - "consumes": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "description": "get available resources", - "operationId": "getAPIResources", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1.APIResourceList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ] - } - }, - "/apis/apps/v1beta1/controllerrevisions": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind ControllerRevision", - "operationId": "listControllerRevisionForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/v1beta1.ControllerRevisionList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "ControllerRevision", - "version": "v1beta1" - } - }, + "/apis/apps/v1/watch/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44866,45 +46663,256 @@ } ] }, - "/apis/apps/v1beta1/deployments": { - "get": { - "consumes": [ - "*/*" - ], - "description": "list or watch objects of kind Deployment", - "operationId": "listDeploymentForAllNamespaces", - "produces": [ - "application/json", - "application/yaml", - "application/vnd.kubernetes.protobuf", - "application/json;stream=watch", - "application/vnd.kubernetes.protobuf;stream=watch" - ], - "responses": { - "200": { - "description": "OK", - "schema": { - "$ref": "#/definitions/apps.v1beta1.DeploymentList" - } - }, - "401": { - "description": "Unauthorized" - } - }, - "schemes": [ - "https" - ], - "tags": [ - "apps_v1beta1" - ], - "x-kubernetes-action": "list", - "x-kubernetes-group-version-kind": { - "group": "apps", - "kind": "Deployment", - "version": "v1beta1" - } - }, + "/apis/apps/v1/watch/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1beta1/": { + "get": { + "consumes": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "description": "get available resources", + "operationId": "getAPIResources", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1.APIResourceList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ] + } + }, + "/apis/apps/v1beta1/controllerrevisions": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind ControllerRevision", + "operationId": "listControllerRevisionForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/v1beta1.ControllerRevisionList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "ControllerRevision", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", + "in": "query", + "name": "continue", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", + "in": "query", + "name": "fieldSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", + "in": "query", + "name": "labelSelector", + "type": "string", + "uniqueItems": true + }, + { + "description": "limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true.\n\nThe server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.", + "in": "query", + "name": "limit", + "type": "integer", + "uniqueItems": true + }, + { + "description": "If 'true', then the output is pretty printed.", + "in": "query", + "name": "pretty", + "type": "string", + "uniqueItems": true + }, + { + "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", + "in": "query", + "name": "resourceVersion", + "type": "string", + "uniqueItems": true + }, + { + "description": "Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.", + "in": "query", + "name": "timeoutSeconds", + "type": "integer", + "uniqueItems": true + }, + { + "description": "Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.", + "in": "query", + "name": "watch", + "type": "boolean", + "uniqueItems": true + } + ] + }, + "/apis/apps/v1beta1/deployments": { + "get": { + "consumes": [ + "*/*" + ], + "description": "list or watch objects of kind Deployment", + "operationId": "listDeploymentForAllNamespaces", + "produces": [ + "application/json", + "application/yaml", + "application/vnd.kubernetes.protobuf", + "application/json;stream=watch", + "application/vnd.kubernetes.protobuf;stream=watch" + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/apps.v1beta1.DeploymentList" + } + }, + "401": { + "description": "Unauthorized" + } + }, + "schemes": [ + "https" + ], + "tags": [ + "apps_v1beta1" + ], + "x-kubernetes-action": "list", + "x-kubernetes-group-version-kind": { + "group": "apps", + "kind": "Deployment", + "version": "v1beta1" + } + }, + "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44971,6 +46979,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -44978,6 +47000,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -44985,6 +47014,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -44999,6 +47035,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -45057,6 +47107,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45398,7 +47455,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -45528,6 +47586,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45535,6 +47607,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -45542,6 +47621,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -45556,6 +47642,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -45614,6 +47714,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -45955,7 +48062,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -46251,7 +48359,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -46448,7 +48557,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -46578,6 +48688,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -46585,6 +48709,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -46592,6 +48723,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -46606,6 +48744,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -46664,6 +48816,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47005,7 +49164,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -47202,7 +49362,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -47399,7 +49560,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -47560,6 +49722,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47620,6 +49789,13 @@ }, "/apis/apps/v1beta1/watch/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47680,6 +49856,13 @@ }, "/apis/apps/v1beta1/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47740,6 +49923,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47808,6 +49998,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47884,6 +50081,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -47952,6 +50156,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48028,6 +50239,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48096,6 +50314,13 @@ }, "/apis/apps/v1beta1/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48172,6 +50397,13 @@ }, "/apis/apps/v1beta1/watch/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48302,6 +50534,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48399,6 +50638,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48496,6 +50742,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48562,6 +50815,20 @@ "description": "delete collection of ControllerRevision", "operationId": "deleteCollectionNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48569,6 +50836,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -48576,6 +50850,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -48590,6 +50871,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -48648,6 +50943,13 @@ "description": "list or watch objects of kind ControllerRevision", "operationId": "listNamespacedControllerRevision", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -48989,7 +51291,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -49119,6 +51422,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49126,6 +51443,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -49133,6 +51457,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -49147,6 +51478,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -49205,6 +51550,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49546,7 +51898,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -49743,7 +52096,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -49873,6 +52227,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -49880,6 +52248,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -49887,6 +52262,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -49901,6 +52283,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -49959,6 +52355,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50300,7 +52703,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -50497,7 +52901,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -50694,7 +53099,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -50824,6 +53230,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -50831,6 +53251,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -50838,6 +53265,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -50852,6 +53286,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -50910,6 +53358,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51251,7 +53706,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -51448,7 +53904,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -51645,7 +54102,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -51775,6 +54233,20 @@ "description": "delete collection of StatefulSet", "operationId": "deleteCollectionNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -51782,6 +54254,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -51789,6 +54268,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -51803,6 +54289,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -51861,6 +54361,13 @@ "description": "list or watch objects of kind StatefulSet", "operationId": "listNamespacedStatefulSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52202,7 +54709,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -52399,7 +54907,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -52596,7 +55105,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -52757,6 +55267,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52854,6 +55371,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52914,6 +55438,13 @@ }, "/apis/apps/v1beta2/watch/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -52974,6 +55505,13 @@ }, "/apis/apps/v1beta2/watch/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53034,6 +55572,13 @@ }, "/apis/apps/v1beta2/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53094,6 +55639,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53162,6 +55714,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/controllerrevisions/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53238,6 +55797,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53306,6 +55872,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53382,6 +55955,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53450,6 +56030,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53526,6 +56113,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53594,6 +56188,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53670,6 +56271,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53738,6 +56346,13 @@ }, "/apis/apps/v1beta2/watch/namespaces/{namespace}/statefulsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53814,6 +56429,13 @@ }, "/apis/apps/v1beta2/watch/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -53874,6 +56496,13 @@ }, "/apis/apps/v1beta2/watch/statefulsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54006,6 +56635,20 @@ "description": "delete collection of AuditSink", "operationId": "deleteCollectionAuditSink", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54013,6 +56656,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -54020,6 +56670,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -54034,6 +56691,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -54092,6 +56763,13 @@ "description": "list or watch objects of kind AuditSink", "operationId": "listAuditSink", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54417,7 +57095,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -54541,6 +57220,13 @@ }, "/apis/auditregistration.k8s.io/v1alpha1/watch/auditsinks": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -54601,6 +57287,13 @@ }, "/apis/auditregistration.k8s.io/v1alpha1/watch/auditsinks/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55816,6 +58509,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55882,6 +58582,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -55889,6 +58603,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -55896,6 +58617,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -55910,6 +58638,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -55968,6 +58710,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56309,7 +59058,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -56506,7 +59256,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -56630,6 +59381,13 @@ }, "/apis/autoscaling/v1/watch/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56690,6 +59448,13 @@ }, "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56758,6 +59523,13 @@ }, "/apis/autoscaling/v1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56904,6 +59676,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56970,6 +59749,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -56977,6 +59770,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -56984,6 +59784,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -56998,6 +59805,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -57056,6 +59877,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57397,7 +60225,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -57594,7 +60423,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -57718,6 +60548,13 @@ }, "/apis/autoscaling/v2beta1/watch/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57778,6 +60615,13 @@ }, "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57846,6 +60690,13 @@ }, "/apis/autoscaling/v2beta1/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -57992,6 +60843,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58058,6 +60916,20 @@ "description": "delete collection of HorizontalPodAutoscaler", "operationId": "deleteCollectionNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58065,6 +60937,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -58072,6 +60951,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -58086,6 +60972,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -58144,6 +61044,13 @@ "description": "list or watch objects of kind HorizontalPodAutoscaler", "operationId": "listNamespacedHorizontalPodAutoscaler", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58485,7 +61392,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -58682,7 +61590,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -58806,6 +61715,13 @@ }, "/apis/autoscaling/v2beta2/watch/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58866,6 +61782,13 @@ }, "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -58934,6 +61857,13 @@ }, "/apis/autoscaling/v2beta2/watch/namespaces/{namespace}/horizontalpodautoscalers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59113,6 +62043,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59179,6 +62116,20 @@ "description": "delete collection of Job", "operationId": "deleteCollectionNamespacedJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59186,6 +62137,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -59193,6 +62151,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -59207,6 +62172,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -59265,6 +62244,13 @@ "description": "list or watch objects of kind Job", "operationId": "listNamespacedJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59606,7 +62592,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -59803,7 +62790,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -59927,6 +62915,13 @@ }, "/apis/batch/v1/watch/jobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -59987,6 +62982,13 @@ }, "/apis/batch/v1/watch/namespaces/{namespace}/jobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60055,6 +63057,13 @@ }, "/apis/batch/v1/watch/namespaces/{namespace}/jobs/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60201,6 +63210,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60267,6 +63283,20 @@ "description": "delete collection of CronJob", "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60274,6 +63304,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -60281,6 +63318,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -60295,6 +63339,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -60353,6 +63411,13 @@ "description": "list or watch objects of kind CronJob", "operationId": "listNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -60694,7 +63759,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -60891,7 +63957,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -61015,6 +64082,13 @@ }, "/apis/batch/v1beta1/watch/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61075,6 +64149,13 @@ }, "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61143,6 +64224,13 @@ }, "/apis/batch/v1beta1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61289,6 +64377,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61355,6 +64450,20 @@ "description": "delete collection of CronJob", "operationId": "deleteCollectionNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61362,6 +64471,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -61369,6 +64485,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -61383,6 +64506,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -61441,6 +64578,13 @@ "description": "list or watch objects of kind CronJob", "operationId": "listNamespacedCronJob", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -61782,7 +64926,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -61979,7 +65124,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -62103,6 +65249,13 @@ }, "/apis/batch/v2alpha1/watch/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62163,6 +65316,13 @@ }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62231,6 +65391,13 @@ }, "/apis/batch/v2alpha1/watch/namespaces/{namespace}/cronjobs/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62379,6 +65546,20 @@ "description": "delete collection of CertificateSigningRequest", "operationId": "deleteCollectionCertificateSigningRequest", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62386,6 +65567,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -62393,6 +65581,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -62407,6 +65602,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -62465,6 +65674,13 @@ "description": "list or watch objects of kind CertificateSigningRequest", "operationId": "listCertificateSigningRequest", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -62790,7 +66006,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -63064,7 +66281,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -63188,6 +66406,13 @@ }, "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63248,6 +66473,13 @@ }, "/apis/certificates.k8s.io/v1beta1/watch/certificatesigningrequests/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63419,6 +66651,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63485,6 +66724,20 @@ "description": "delete collection of Lease", "operationId": "deleteCollectionNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63492,6 +66745,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -63499,6 +66759,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -63513,6 +66780,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -63571,6 +66852,13 @@ "description": "list or watch objects of kind Lease", "operationId": "listNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -63912,7 +67200,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -64036,6 +67325,13 @@ }, "/apis/coordination.k8s.io/v1/watch/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64096,6 +67392,13 @@ }, "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64164,6 +67467,13 @@ }, "/apis/coordination.k8s.io/v1/watch/namespaces/{namespace}/leases/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64310,6 +67620,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64376,6 +67693,20 @@ "description": "delete collection of Lease", "operationId": "deleteCollectionNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64383,6 +67714,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -64390,6 +67728,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -64404,6 +67749,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -64462,6 +67821,13 @@ "description": "list or watch objects of kind Lease", "operationId": "listNamespacedLease", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64803,7 +68169,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -64927,6 +68294,13 @@ }, "/apis/coordination.k8s.io/v1beta1/watch/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -64987,6 +68361,13 @@ }, "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leases": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65055,6 +68436,13 @@ }, "/apis/coordination.k8s.io/v1beta1/watch/namespaces/{namespace}/leases/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65234,6 +68622,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65300,6 +68695,20 @@ "description": "delete collection of Event", "operationId": "deleteCollectionNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65307,6 +68716,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -65314,6 +68730,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -65328,6 +68751,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -65386,6 +68823,13 @@ "description": "list or watch objects of kind Event", "operationId": "listNamespacedEvent", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65727,7 +69171,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -65851,6 +69296,13 @@ }, "/apis/events.k8s.io/v1beta1/watch/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65911,6 +69363,13 @@ }, "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -65979,6 +69438,13 @@ }, "/apis/events.k8s.io/v1beta1/watch/namespaces/{namespace}/events/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66158,6 +69624,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66255,6 +69728,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66352,6 +69832,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66418,6 +69905,20 @@ "description": "delete collection of DaemonSet", "operationId": "deleteCollectionNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66425,6 +69926,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -66432,6 +69940,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -66446,6 +69961,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -66504,6 +70033,13 @@ "description": "list or watch objects of kind DaemonSet", "operationId": "listNamespacedDaemonSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -66845,7 +70381,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -67042,7 +70579,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -67172,6 +70710,20 @@ "description": "delete collection of Deployment", "operationId": "deleteCollectionNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67179,6 +70731,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -67186,6 +70745,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -67200,6 +70766,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -67258,6 +70838,13 @@ "description": "list or watch objects of kind Deployment", "operationId": "listNamespacedDeployment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -67599,7 +71186,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -67895,7 +71483,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -68092,7 +71681,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -68222,6 +71812,20 @@ "description": "delete collection of Ingress", "operationId": "deleteCollectionNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68229,6 +71833,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -68236,6 +71847,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -68250,6 +71868,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -68308,6 +71940,13 @@ "description": "list or watch objects of kind Ingress", "operationId": "listNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68649,7 +72288,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -68846,7 +72486,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -68976,6 +72617,20 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -68983,6 +72638,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -68990,6 +72652,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -69004,6 +72673,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -69062,6 +72745,13 @@ "description": "list or watch objects of kind NetworkPolicy", "operationId": "listNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69403,7 +73093,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -69533,6 +73224,20 @@ "description": "delete collection of ReplicaSet", "operationId": "deleteCollectionNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69540,6 +73245,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -69547,6 +73259,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -69561,6 +73280,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -69619,6 +73352,13 @@ "description": "list or watch objects of kind ReplicaSet", "operationId": "listNamespacedReplicaSet", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -69960,7 +73700,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -70157,7 +73898,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -70354,7 +74096,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -70551,7 +74294,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -70712,6 +74456,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70778,6 +74529,20 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteCollectionPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -70785,6 +74550,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -70792,6 +74564,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -70806,6 +74585,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -70864,6 +74657,13 @@ "description": "list or watch objects of kind PodSecurityPolicy", "operationId": "listPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71189,7 +74989,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -71350,6 +75151,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71410,6 +75218,13 @@ }, "/apis/extensions/v1beta1/watch/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71470,6 +75285,13 @@ }, "/apis/extensions/v1beta1/watch/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71530,6 +75352,13 @@ }, "/apis/extensions/v1beta1/watch/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71590,6 +75419,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71658,6 +75494,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/daemonsets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71734,6 +75577,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71802,6 +75652,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/deployments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71878,6 +75735,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -71946,6 +75810,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72022,6 +75893,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72090,6 +75968,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72166,6 +76051,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72234,6 +76126,13 @@ }, "/apis/extensions/v1beta1/watch/namespaces/{namespace}/replicasets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72310,6 +76209,13 @@ }, "/apis/extensions/v1beta1/watch/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72370,6 +76276,13 @@ }, "/apis/extensions/v1beta1/watch/podsecuritypolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72430,6 +76343,13 @@ }, "/apis/extensions/v1beta1/watch/podsecuritypolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72498,6 +76418,13 @@ }, "/apis/extensions/v1beta1/watch/replicasets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72630,6 +76557,20 @@ "description": "delete collection of NetworkPolicy", "operationId": "deleteCollectionNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -72637,6 +76578,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -72644,6 +76592,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -72658,6 +76613,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -72716,6 +76685,13 @@ "description": "list or watch objects of kind NetworkPolicy", "operationId": "listNamespacedNetworkPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73057,7 +77033,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -73218,6 +77195,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73278,6 +77262,13 @@ }, "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73346,6 +77337,13 @@ }, "/apis/networking.k8s.io/v1/watch/namespaces/{namespace}/networkpolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73422,6 +77420,13 @@ }, "/apis/networking.k8s.io/v1/watch/networkpolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73552,6 +77557,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73618,6 +77630,20 @@ "description": "delete collection of Ingress", "operationId": "deleteCollectionNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -73625,6 +77651,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -73632,6 +77665,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -73646,6 +77686,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -73704,6 +77758,13 @@ "description": "list or watch objects of kind Ingress", "operationId": "listNamespacedIngress", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74045,7 +78106,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -74242,7 +78304,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -74366,6 +78429,13 @@ }, "/apis/networking.k8s.io/v1beta1/watch/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74426,6 +78496,13 @@ }, "/apis/networking.k8s.io/v1beta1/watch/namespaces/{namespace}/ingresses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74494,6 +78571,13 @@ }, "/apis/networking.k8s.io/v1beta1/watch/namespaces/{namespace}/ingresses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74642,6 +78726,20 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteCollectionRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -74649,6 +78747,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -74656,6 +78761,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -74670,6 +78782,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -74728,6 +78854,13 @@ "description": "list or watch objects of kind RuntimeClass", "operationId": "listRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75053,7 +79186,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -75177,6 +79311,13 @@ }, "/apis/node.k8s.io/v1alpha1/watch/runtimeclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75237,6 +79378,13 @@ }, "/apis/node.k8s.io/v1alpha1/watch/runtimeclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75344,6 +79492,20 @@ "description": "delete collection of RuntimeClass", "operationId": "deleteCollectionRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75351,6 +79513,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -75358,6 +79527,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -75372,6 +79548,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -75430,6 +79620,13 @@ "description": "list or watch objects of kind RuntimeClass", "operationId": "listRuntimeClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75755,7 +79952,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -75879,6 +80077,13 @@ }, "/apis/node.k8s.io/v1beta1/watch/runtimeclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -75939,6 +80144,13 @@ }, "/apis/node.k8s.io/v1beta1/watch/runtimeclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76079,6 +80291,20 @@ "description": "delete collection of PodDisruptionBudget", "operationId": "deleteCollectionNamespacedPodDisruptionBudget", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76086,6 +80312,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -76093,6 +80326,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -76107,6 +80347,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -76165,6 +80419,13 @@ "description": "list or watch objects of kind PodDisruptionBudget", "operationId": "listNamespacedPodDisruptionBudget", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76506,7 +80767,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -76703,7 +80965,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -76864,6 +81127,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76930,6 +81200,20 @@ "description": "delete collection of PodSecurityPolicy", "operationId": "deleteCollectionPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -76937,6 +81221,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -76944,6 +81235,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -76958,6 +81256,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -77016,6 +81328,13 @@ "description": "list or watch objects of kind PodSecurityPolicy", "operationId": "listPodSecurityPolicy", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77341,7 +81660,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -77465,6 +81785,13 @@ }, "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77533,6 +81860,13 @@ }, "/apis/policy/v1beta1/watch/namespaces/{namespace}/poddisruptionbudgets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77609,6 +81943,13 @@ }, "/apis/policy/v1beta1/watch/poddisruptionbudgets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77669,6 +82010,13 @@ }, "/apis/policy/v1beta1/watch/podsecuritypolicies": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77729,6 +82077,13 @@ }, "/apis/policy/v1beta1/watch/podsecuritypolicies/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77869,6 +82224,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -77876,6 +82245,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -77883,6 +82259,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -77897,6 +82280,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -77955,6 +82352,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78264,7 +82668,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -78394,6 +82799,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78401,6 +82820,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -78408,6 +82834,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -78422,6 +82855,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -78480,6 +82927,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78789,7 +83243,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -78919,6 +83374,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -78926,6 +83395,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -78933,6 +83409,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -78947,6 +83430,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -79005,6 +83502,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79330,7 +83834,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -79460,6 +83965,20 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79467,6 +83986,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -79474,6 +84000,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -79488,6 +84021,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -79546,6 +84093,13 @@ "description": "list or watch objects of kind Role", "operationId": "listNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -79871,7 +84425,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -80032,6 +84587,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80129,6 +84691,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80189,6 +84758,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80249,6 +84825,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/clusterrolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80317,6 +84900,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80377,6 +84967,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/clusterroles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80445,6 +85042,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80513,6 +85117,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80589,6 +85200,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80657,6 +85275,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80733,6 +85358,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80793,6 +85425,13 @@ }, "/apis/rbac.authorization.k8s.io/v1/watch/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80892,6 +85531,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -80899,6 +85552,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -80906,6 +85566,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -80920,6 +85587,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -80978,6 +85659,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81287,7 +85975,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -81417,6 +86106,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81424,6 +86127,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -81431,6 +86141,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -81445,6 +86162,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -81503,6 +86234,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81812,7 +86550,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -81942,6 +86681,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -81949,6 +86702,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -81956,6 +86716,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -81970,6 +86737,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -82028,6 +86809,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82353,7 +87141,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -82483,6 +87272,20 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82490,6 +87293,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -82497,6 +87307,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -82511,6 +87328,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -82569,6 +87400,13 @@ "description": "list or watch objects of kind Role", "operationId": "listNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -82894,7 +87732,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -83055,6 +87894,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83152,6 +87998,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83212,6 +88065,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83272,6 +88132,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterrolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83340,6 +88207,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83400,6 +88274,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/clusterroles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83468,6 +88349,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83536,6 +88424,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83612,6 +88507,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83680,6 +88582,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83756,6 +88665,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83816,6 +88732,13 @@ }, "/apis/rbac.authorization.k8s.io/v1alpha1/watch/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83915,6 +88838,20 @@ "description": "delete collection of ClusterRoleBinding", "operationId": "deleteCollectionClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -83922,6 +88859,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -83929,6 +88873,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -83943,6 +88894,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -84001,6 +88966,13 @@ "description": "list or watch objects of kind ClusterRoleBinding", "operationId": "listClusterRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84310,7 +89282,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -84440,6 +89413,20 @@ "description": "delete collection of ClusterRole", "operationId": "deleteCollectionClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84447,6 +89434,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -84454,6 +89448,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -84468,6 +89469,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -84526,6 +89541,13 @@ "description": "list or watch objects of kind ClusterRole", "operationId": "listClusterRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84835,7 +89857,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -84965,6 +89988,20 @@ "description": "delete collection of RoleBinding", "operationId": "deleteCollectionNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -84972,6 +90009,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -84979,6 +90023,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -84993,6 +90044,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -85051,6 +90116,13 @@ "description": "list or watch objects of kind RoleBinding", "operationId": "listNamespacedRoleBinding", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85376,7 +90448,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -85506,6 +90579,20 @@ "description": "delete collection of Role", "operationId": "deleteCollectionNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85513,6 +90600,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -85520,6 +90614,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -85534,6 +90635,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -85592,6 +90707,13 @@ "description": "list or watch objects of kind Role", "operationId": "listNamespacedRole", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -85917,7 +91039,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -86078,6 +91201,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86175,6 +91305,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86235,6 +91372,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86295,6 +91439,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterrolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86363,6 +91514,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86423,6 +91581,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/clusterroles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86491,6 +91656,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86559,6 +91731,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/rolebindings/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86635,6 +91814,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86703,6 +91889,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/namespaces/{namespace}/roles/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86779,6 +91972,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/rolebindings": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86839,6 +92039,13 @@ }, "/apis/rbac.authorization.k8s.io/v1beta1/watch/roles": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86971,6 +92178,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -86978,6 +92199,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -86985,6 +92213,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -86999,6 +92234,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -87057,6 +92306,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87382,7 +92638,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -87506,6 +92763,13 @@ }, "/apis/scheduling.k8s.io/v1/watch/priorityclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87566,6 +92830,13 @@ }, "/apis/scheduling.k8s.io/v1/watch/priorityclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87673,6 +92944,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -87680,6 +92965,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -87687,6 +92979,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -87701,6 +93000,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -87759,6 +93072,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88084,7 +93404,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -88208,6 +93529,13 @@ }, "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88268,6 +93596,13 @@ }, "/apis/scheduling.k8s.io/v1alpha1/watch/priorityclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88375,6 +93710,20 @@ "description": "delete collection of PriorityClass", "operationId": "deleteCollectionPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88382,6 +93731,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -88389,6 +93745,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -88403,6 +93766,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -88461,6 +93838,13 @@ "description": "list or watch objects of kind PriorityClass", "operationId": "listPriorityClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88786,7 +94170,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -88910,6 +94295,13 @@ }, "/apis/scheduling.k8s.io/v1beta1/watch/priorityclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -88970,6 +94362,13 @@ }, "/apis/scheduling.k8s.io/v1beta1/watch/priorityclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89110,6 +94509,20 @@ "description": "delete collection of PodPreset", "operationId": "deleteCollectionNamespacedPodPreset", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89117,6 +94530,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -89124,6 +94544,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -89138,6 +94565,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -89196,6 +94637,13 @@ "description": "list or watch objects of kind PodPreset", "operationId": "listNamespacedPodPreset", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89537,7 +94985,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -89698,6 +95147,13 @@ } }, "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89758,6 +95214,13 @@ }, "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89826,6 +95289,13 @@ }, "/apis/settings.k8s.io/v1alpha1/watch/namespaces/{namespace}/podpresets/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -89902,6 +95372,13 @@ }, "/apis/settings.k8s.io/v1alpha1/watch/podpresets": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90034,6 +95511,20 @@ "description": "delete collection of StorageClass", "operationId": "deleteCollectionStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90041,6 +95532,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -90048,6 +95546,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -90062,6 +95567,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -90120,6 +95639,13 @@ "description": "list or watch objects of kind StorageClass", "operationId": "listStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90445,7 +95971,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -90575,6 +96102,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90582,6 +96123,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -90589,6 +96137,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -90603,6 +96158,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -90661,6 +96230,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -90986,7 +96562,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -91175,7 +96752,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -91299,6 +96877,13 @@ }, "/apis/storage.k8s.io/v1/watch/storageclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91359,6 +96944,13 @@ }, "/apis/storage.k8s.io/v1/watch/storageclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91427,6 +97019,13 @@ }, "/apis/storage.k8s.io/v1/watch/volumeattachments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91487,6 +97086,13 @@ }, "/apis/storage.k8s.io/v1/watch/volumeattachments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91594,6 +97200,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -91601,6 +97221,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -91608,6 +97235,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -91622,6 +97256,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -91680,6 +97328,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92005,7 +97660,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -92129,6 +97785,13 @@ }, "/apis/storage.k8s.io/v1alpha1/watch/volumeattachments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92189,6 +97852,13 @@ }, "/apis/storage.k8s.io/v1alpha1/watch/volumeattachments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92296,6 +97966,20 @@ "description": "delete collection of CSIDriver", "operationId": "deleteCollectionCSIDriver", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92303,6 +97987,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -92310,6 +98001,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -92324,6 +98022,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -92382,6 +98094,13 @@ "description": "list or watch objects of kind CSIDriver", "operationId": "listCSIDriver", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92707,7 +98426,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -92837,6 +98557,20 @@ "description": "delete collection of CSINode", "operationId": "deleteCollectionCSINode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -92844,6 +98578,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -92851,6 +98592,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -92865,6 +98613,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -92923,6 +98685,13 @@ "description": "list or watch objects of kind CSINode", "operationId": "listCSINode", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93248,7 +99017,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -93378,6 +99148,20 @@ "description": "delete collection of StorageClass", "operationId": "deleteCollectionStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93385,6 +99169,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -93392,6 +99183,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -93406,6 +99204,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -93464,6 +99276,13 @@ "description": "list or watch objects of kind StorageClass", "operationId": "listStorageClass", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93789,7 +99608,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -93919,6 +99739,20 @@ "description": "delete collection of VolumeAttachment", "operationId": "deleteCollectionVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, + { + "in": "body", + "name": "body", + "schema": { + "$ref": "#/definitions/v1.DeleteOptions" + } + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -93926,6 +99760,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed", + "in": "query", + "name": "dryRun", + "type": "string", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their fields. Defaults to everything.", "in": "query", @@ -93933,6 +99774,13 @@ "type": "string", "uniqueItems": true }, + { + "description": "The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.", + "in": "query", + "name": "gracePeriodSeconds", + "type": "integer", + "uniqueItems": true + }, { "description": "A selector to restrict the list of returned objects by their labels. Defaults to everything.", "in": "query", @@ -93947,6 +99795,20 @@ "type": "integer", "uniqueItems": true }, + { + "description": "Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.", + "in": "query", + "name": "orphanDependents", + "type": "boolean", + "uniqueItems": true + }, + { + "description": "Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.", + "in": "query", + "name": "propagationPolicy", + "type": "string", + "uniqueItems": true + }, { "description": "When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. When specified for list: - if unset, then the result is returned from remote storage based on quorum-read flag; - if it's 0, then we simply return what we currently have in cache, no guarantee; - if set to non zero, then the result is at least as fresh as given rv.", "in": "query", @@ -94005,6 +99867,13 @@ "description": "list or watch objects of kind VolumeAttachment", "operationId": "listVolumeAttachment", "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94330,7 +100199,8 @@ "name": "body", "required": true, "schema": { - "$ref": "#/definitions/v1.Patch" + "description": "Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.", + "type": "object" } }, { @@ -94454,6 +100324,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csidrivers": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94514,6 +100391,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csidrivers/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94582,6 +100466,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csinodes": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94642,6 +100533,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/csinodes/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94710,6 +100608,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/storageclasses": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94770,6 +100675,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/storageclasses/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94838,6 +100750,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/volumeattachments": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query", @@ -94898,6 +100817,13 @@ }, "/apis/storage.k8s.io/v1beta1/watch/volumeattachments/{name}": { "parameters": [ + { + "description": "allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. If the feature gate WatchBookmarks is not enabled in apiserver, this field is ignored.\n\nThis field is alpha and can be changed or removed without notice.", + "in": "query", + "name": "allowWatchBookmarks", + "type": "boolean", + "uniqueItems": true + }, { "description": "The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\".\n\nThis field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.", "in": "query",